Class: OvirtSDK4::IscsiDetails
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#disk_id ⇒ String
Returns the value of the
disk_id
attribute. -
#disk_id=(value) ⇒ Object
Sets the value of the
disk_id
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ IscsiDetails
constructor
Creates a new instance of the IscsiDetails class.
-
#initiator ⇒ String
Returns the value of the
initiator
attribute. -
#initiator=(value) ⇒ Object
Sets the value of the
initiator
attribute. -
#lun_mapping ⇒ Integer
Returns the value of the
lun_mapping
attribute. -
#lun_mapping=(value) ⇒ Object
Sets the value of the
lun_mapping
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#paths ⇒ Integer
Returns the value of the
paths
attribute. -
#paths=(value) ⇒ Object
Sets the value of the
paths
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#portal ⇒ String
Returns the value of the
portal
attribute. -
#portal=(value) ⇒ Object
Sets the value of the
portal
attribute. -
#product_id ⇒ String
Returns the value of the
product_id
attribute. -
#product_id=(value) ⇒ Object
Sets the value of the
product_id
attribute. -
#serial ⇒ String
Returns the value of the
serial
attribute. -
#serial=(value) ⇒ Object
Sets the value of the
serial
attribute. -
#size ⇒ Integer
Returns the value of the
size
attribute. -
#size=(value) ⇒ Object
Sets the value of the
size
attribute. -
#status ⇒ String
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage_domain_id ⇒ String
Returns the value of the
storage_domain_id
attribute. -
#storage_domain_id=(value) ⇒ Object
Sets the value of the
storage_domain_id
attribute. -
#target ⇒ String
Returns the value of the
target
attribute. -
#target=(value) ⇒ Object
Sets the value of the
target
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute. -
#vendor_id ⇒ String
Returns the value of the
vendor_id
attribute. -
#vendor_id=(value) ⇒ Object
Sets the value of the
vendor_id
attribute. -
#volume_group_id ⇒ String
Returns the value of the
volume_group_id
attribute. -
#volume_group_id=(value) ⇒ Object
Sets the value of the
volume_group_id
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ IscsiDetails
Creates a new instance of the OvirtSDK4::IscsiDetails class.
7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 |
# File 'lib/ovirtsdk4/types.rb', line 7245 def initialize(opts = {}) super(opts) self.address = opts[:address] self.disk_id = opts[:disk_id] self.initiator = opts[:initiator] self.lun_mapping = opts[:lun_mapping] self.password = opts[:password] self.paths = opts[:paths] self.port = opts[:port] self.portal = opts[:portal] self.product_id = opts[:product_id] self.serial = opts[:serial] self.size = opts[:size] self.status = opts[:status] self.storage_domain_id = opts[:storage_domain_id] self.target = opts[:target] self.username = opts[:username] self.vendor_id = opts[:vendor_id] self.volume_group_id = opts[:volume_group_id] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 |
# File 'lib/ovirtsdk4/types.rb', line 7269 def ==(other) super && @address == other.address && @disk_id == other.disk_id && @initiator == other.initiator && @lun_mapping == other.lun_mapping && @password == other.password && @paths == other.paths && @port == other.port && @portal == other.portal && @product_id == other.product_id && @serial == other.serial && @size == other.size && @status == other.status && @storage_domain_id == other.storage_domain_id && @target == other.target && @username == other.username && @vendor_id == other.vendor_id && @volume_group_id == other.volume_group_id end |
#address ⇒ String
Returns the value of the address
attribute.
6902 6903 6904 |
# File 'lib/ovirtsdk4/types.rb', line 6902 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
6911 6912 6913 |
# File 'lib/ovirtsdk4/types.rb', line 6911 def address=(value) @address = value end |
#disk_id ⇒ String
Returns the value of the disk_id
attribute.
6920 6921 6922 |
# File 'lib/ovirtsdk4/types.rb', line 6920 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id
attribute.
6929 6930 6931 |
# File 'lib/ovirtsdk4/types.rb', line 6929 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 |
# File 'lib/ovirtsdk4/types.rb', line 7293 def hash super + @address.hash + @disk_id.hash + @initiator.hash + @lun_mapping.hash + @password.hash + @paths.hash + @port.hash + @portal.hash + @product_id.hash + @serial.hash + @size.hash + @status.hash + @storage_domain_id.hash + @target.hash + @username.hash + @vendor_id.hash + @volume_group_id.hash end |
#initiator ⇒ String
Returns the value of the initiator
attribute.
6938 6939 6940 |
# File 'lib/ovirtsdk4/types.rb', line 6938 def initiator @initiator end |
#initiator=(value) ⇒ Object
Sets the value of the initiator
attribute.
6947 6948 6949 |
# File 'lib/ovirtsdk4/types.rb', line 6947 def initiator=(value) @initiator = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping
attribute.
6956 6957 6958 |
# File 'lib/ovirtsdk4/types.rb', line 6956 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping
attribute.
6965 6966 6967 |
# File 'lib/ovirtsdk4/types.rb', line 6965 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password
attribute.
6974 6975 6976 |
# File 'lib/ovirtsdk4/types.rb', line 6974 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
6983 6984 6985 |
# File 'lib/ovirtsdk4/types.rb', line 6983 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths
attribute.
6992 6993 6994 |
# File 'lib/ovirtsdk4/types.rb', line 6992 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths
attribute.
7001 7002 7003 |
# File 'lib/ovirtsdk4/types.rb', line 7001 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
7010 7011 7012 |
# File 'lib/ovirtsdk4/types.rb', line 7010 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
7019 7020 7021 |
# File 'lib/ovirtsdk4/types.rb', line 7019 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
7028 7029 7030 |
# File 'lib/ovirtsdk4/types.rb', line 7028 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
7037 7038 7039 |
# File 'lib/ovirtsdk4/types.rb', line 7037 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id
attribute.
7046 7047 7048 |
# File 'lib/ovirtsdk4/types.rb', line 7046 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id
attribute.
7055 7056 7057 |
# File 'lib/ovirtsdk4/types.rb', line 7055 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial
attribute.
7064 7065 7066 |
# File 'lib/ovirtsdk4/types.rb', line 7064 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial
attribute.
7073 7074 7075 |
# File 'lib/ovirtsdk4/types.rb', line 7073 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size
attribute.
7082 7083 7084 |
# File 'lib/ovirtsdk4/types.rb', line 7082 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
7091 7092 7093 |
# File 'lib/ovirtsdk4/types.rb', line 7091 def size=(value) @size = value end |
#status ⇒ String
Returns the value of the status
attribute.
7100 7101 7102 |
# File 'lib/ovirtsdk4/types.rb', line 7100 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
7109 7110 7111 |
# File 'lib/ovirtsdk4/types.rb', line 7109 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id
attribute.
7118 7119 7120 |
# File 'lib/ovirtsdk4/types.rb', line 7118 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id
attribute.
7127 7128 7129 |
# File 'lib/ovirtsdk4/types.rb', line 7127 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target
attribute.
7136 7137 7138 |
# File 'lib/ovirtsdk4/types.rb', line 7136 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
7145 7146 7147 |
# File 'lib/ovirtsdk4/types.rb', line 7145 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
7154 7155 7156 |
# File 'lib/ovirtsdk4/types.rb', line 7154 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
7163 7164 7165 |
# File 'lib/ovirtsdk4/types.rb', line 7163 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id
attribute.
7172 7173 7174 |
# File 'lib/ovirtsdk4/types.rb', line 7172 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id
attribute.
7181 7182 7183 |
# File 'lib/ovirtsdk4/types.rb', line 7181 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id
attribute.
7190 7191 7192 |
# File 'lib/ovirtsdk4/types.rb', line 7190 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id
attribute.
7199 7200 7201 |
# File 'lib/ovirtsdk4/types.rb', line 7199 def volume_group_id=(value) @volume_group_id = value end |