Class: OvirtSDK4::LogicalUnit
- 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. -
#discard_max_size ⇒ Integer
Returns the value of the
discard_max_size
attribute. -
#discard_max_size=(value) ⇒ Object
Sets the value of the
discard_max_size
attribute. -
#discard_zeroes_data ⇒ Boolean
Returns the value of the
discard_zeroes_data
attribute. -
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the
discard_zeroes_data
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.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ LogicalUnit
constructor
Creates a new instance of the LogicalUnit class.
-
#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 ⇒ LunStatus
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 = {}) ⇒ LogicalUnit
Creates a new instance of the OvirtSDK4::LogicalUnit class.
8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 |
# File 'lib/ovirtsdk4/types.rb', line 8575 def initialize(opts = {}) super(opts) self.address = opts[:address] self.discard_max_size = opts[:discard_max_size] self.discard_zeroes_data = opts[:discard_zeroes_data] self.disk_id = opts[:disk_id] self.id = opts[:id] 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.
8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 |
# File 'lib/ovirtsdk4/types.rb', line 8601 def ==(other) super && @address == other.address && @discard_max_size == other.discard_max_size && @discard_zeroes_data == other.discard_zeroes_data && @disk_id == other.disk_id && @id == other.id && @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.
8192 8193 8194 |
# File 'lib/ovirtsdk4/types.rb', line 8192 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
8201 8202 8203 |
# File 'lib/ovirtsdk4/types.rb', line 8201 def address=(value) @address = value end |
#discard_max_size ⇒ Integer
Returns the value of the discard_max_size
attribute.
8210 8211 8212 |
# File 'lib/ovirtsdk4/types.rb', line 8210 def discard_max_size @discard_max_size end |
#discard_max_size=(value) ⇒ Object
Sets the value of the discard_max_size
attribute.
8219 8220 8221 |
# File 'lib/ovirtsdk4/types.rb', line 8219 def discard_max_size=(value) @discard_max_size = value end |
#discard_zeroes_data ⇒ Boolean
Returns the value of the discard_zeroes_data
attribute.
8228 8229 8230 |
# File 'lib/ovirtsdk4/types.rb', line 8228 def discard_zeroes_data @discard_zeroes_data end |
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the discard_zeroes_data
attribute.
8237 8238 8239 |
# File 'lib/ovirtsdk4/types.rb', line 8237 def discard_zeroes_data=(value) @discard_zeroes_data = value end |
#disk_id ⇒ String
Returns the value of the disk_id
attribute.
8246 8247 8248 |
# File 'lib/ovirtsdk4/types.rb', line 8246 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id
attribute.
8255 8256 8257 |
# File 'lib/ovirtsdk4/types.rb', line 8255 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 |
# File 'lib/ovirtsdk4/types.rb', line 8627 def hash super + @address.hash + @discard_max_size.hash + @discard_zeroes_data.hash + @disk_id.hash + @id.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 |
#id ⇒ String
Returns the value of the id
attribute.
8264 8265 8266 |
# File 'lib/ovirtsdk4/types.rb', line 8264 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8273 8274 8275 |
# File 'lib/ovirtsdk4/types.rb', line 8273 def id=(value) @id = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping
attribute.
8282 8283 8284 |
# File 'lib/ovirtsdk4/types.rb', line 8282 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping
attribute.
8291 8292 8293 |
# File 'lib/ovirtsdk4/types.rb', line 8291 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password
attribute.
8300 8301 8302 |
# File 'lib/ovirtsdk4/types.rb', line 8300 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
8309 8310 8311 |
# File 'lib/ovirtsdk4/types.rb', line 8309 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths
attribute.
8318 8319 8320 |
# File 'lib/ovirtsdk4/types.rb', line 8318 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths
attribute.
8327 8328 8329 |
# File 'lib/ovirtsdk4/types.rb', line 8327 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
8336 8337 8338 |
# File 'lib/ovirtsdk4/types.rb', line 8336 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
8345 8346 8347 |
# File 'lib/ovirtsdk4/types.rb', line 8345 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
8354 8355 8356 |
# File 'lib/ovirtsdk4/types.rb', line 8354 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
8363 8364 8365 |
# File 'lib/ovirtsdk4/types.rb', line 8363 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id
attribute.
8372 8373 8374 |
# File 'lib/ovirtsdk4/types.rb', line 8372 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id
attribute.
8381 8382 8383 |
# File 'lib/ovirtsdk4/types.rb', line 8381 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial
attribute.
8390 8391 8392 |
# File 'lib/ovirtsdk4/types.rb', line 8390 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial
attribute.
8399 8400 8401 |
# File 'lib/ovirtsdk4/types.rb', line 8399 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size
attribute.
8408 8409 8410 |
# File 'lib/ovirtsdk4/types.rb', line 8408 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
8417 8418 8419 |
# File 'lib/ovirtsdk4/types.rb', line 8417 def size=(value) @size = value end |
#status ⇒ LunStatus
Returns the value of the status
attribute.
8426 8427 8428 |
# File 'lib/ovirtsdk4/types.rb', line 8426 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
8435 8436 8437 |
# File 'lib/ovirtsdk4/types.rb', line 8435 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id
attribute.
8444 8445 8446 |
# File 'lib/ovirtsdk4/types.rb', line 8444 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id
attribute.
8453 8454 8455 |
# File 'lib/ovirtsdk4/types.rb', line 8453 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target
attribute.
8462 8463 8464 |
# File 'lib/ovirtsdk4/types.rb', line 8462 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
8471 8472 8473 |
# File 'lib/ovirtsdk4/types.rb', line 8471 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
8480 8481 8482 |
# File 'lib/ovirtsdk4/types.rb', line 8480 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
8489 8490 8491 |
# File 'lib/ovirtsdk4/types.rb', line 8489 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id
attribute.
8498 8499 8500 |
# File 'lib/ovirtsdk4/types.rb', line 8498 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id
attribute.
8507 8508 8509 |
# File 'lib/ovirtsdk4/types.rb', line 8507 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id
attribute.
8516 8517 8518 |
# File 'lib/ovirtsdk4/types.rb', line 8516 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id
attribute.
8525 8526 8527 |
# File 'lib/ovirtsdk4/types.rb', line 8525 def volume_group_id=(value) @volume_group_id = value end |