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.
8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 |
# File 'lib/ovirtsdk4/types.rb', line 8598 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.
8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 |
# File 'lib/ovirtsdk4/types.rb', line 8624 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.
8215 8216 8217 |
# File 'lib/ovirtsdk4/types.rb', line 8215 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
8224 8225 8226 |
# File 'lib/ovirtsdk4/types.rb', line 8224 def address=(value) @address = value end |
#discard_max_size ⇒ Integer
Returns the value of the discard_max_size
attribute.
8233 8234 8235 |
# File 'lib/ovirtsdk4/types.rb', line 8233 def discard_max_size @discard_max_size end |
#discard_max_size=(value) ⇒ Object
Sets the value of the discard_max_size
attribute.
8242 8243 8244 |
# File 'lib/ovirtsdk4/types.rb', line 8242 def discard_max_size=(value) @discard_max_size = value end |
#discard_zeroes_data ⇒ Boolean
Returns the value of the discard_zeroes_data
attribute.
8251 8252 8253 |
# File 'lib/ovirtsdk4/types.rb', line 8251 def discard_zeroes_data @discard_zeroes_data end |
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the discard_zeroes_data
attribute.
8260 8261 8262 |
# File 'lib/ovirtsdk4/types.rb', line 8260 def discard_zeroes_data=(value) @discard_zeroes_data = value end |
#disk_id ⇒ String
Returns the value of the disk_id
attribute.
8269 8270 8271 |
# File 'lib/ovirtsdk4/types.rb', line 8269 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id
attribute.
8278 8279 8280 |
# File 'lib/ovirtsdk4/types.rb', line 8278 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 |
# File 'lib/ovirtsdk4/types.rb', line 8650 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.
8287 8288 8289 |
# File 'lib/ovirtsdk4/types.rb', line 8287 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8296 8297 8298 |
# File 'lib/ovirtsdk4/types.rb', line 8296 def id=(value) @id = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping
attribute.
8305 8306 8307 |
# File 'lib/ovirtsdk4/types.rb', line 8305 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping
attribute.
8314 8315 8316 |
# File 'lib/ovirtsdk4/types.rb', line 8314 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password
attribute.
8323 8324 8325 |
# File 'lib/ovirtsdk4/types.rb', line 8323 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
8332 8333 8334 |
# File 'lib/ovirtsdk4/types.rb', line 8332 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths
attribute.
8341 8342 8343 |
# File 'lib/ovirtsdk4/types.rb', line 8341 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths
attribute.
8350 8351 8352 |
# File 'lib/ovirtsdk4/types.rb', line 8350 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
8359 8360 8361 |
# File 'lib/ovirtsdk4/types.rb', line 8359 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
8368 8369 8370 |
# File 'lib/ovirtsdk4/types.rb', line 8368 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
8377 8378 8379 |
# File 'lib/ovirtsdk4/types.rb', line 8377 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
8386 8387 8388 |
# File 'lib/ovirtsdk4/types.rb', line 8386 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id
attribute.
8395 8396 8397 |
# File 'lib/ovirtsdk4/types.rb', line 8395 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id
attribute.
8404 8405 8406 |
# File 'lib/ovirtsdk4/types.rb', line 8404 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial
attribute.
8413 8414 8415 |
# File 'lib/ovirtsdk4/types.rb', line 8413 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial
attribute.
8422 8423 8424 |
# File 'lib/ovirtsdk4/types.rb', line 8422 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size
attribute.
8431 8432 8433 |
# File 'lib/ovirtsdk4/types.rb', line 8431 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
8440 8441 8442 |
# File 'lib/ovirtsdk4/types.rb', line 8440 def size=(value) @size = value end |
#status ⇒ LunStatus
Returns the value of the status
attribute.
8449 8450 8451 |
# File 'lib/ovirtsdk4/types.rb', line 8449 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
8458 8459 8460 |
# File 'lib/ovirtsdk4/types.rb', line 8458 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id
attribute.
8467 8468 8469 |
# File 'lib/ovirtsdk4/types.rb', line 8467 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id
attribute.
8476 8477 8478 |
# File 'lib/ovirtsdk4/types.rb', line 8476 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target
attribute.
8485 8486 8487 |
# File 'lib/ovirtsdk4/types.rb', line 8485 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
8494 8495 8496 |
# File 'lib/ovirtsdk4/types.rb', line 8494 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
8503 8504 8505 |
# File 'lib/ovirtsdk4/types.rb', line 8503 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
8512 8513 8514 |
# File 'lib/ovirtsdk4/types.rb', line 8512 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id
attribute.
8521 8522 8523 |
# File 'lib/ovirtsdk4/types.rb', line 8521 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id
attribute.
8530 8531 8532 |
# File 'lib/ovirtsdk4/types.rb', line 8530 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id
attribute.
8539 8540 8541 |
# File 'lib/ovirtsdk4/types.rb', line 8539 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id
attribute.
8548 8549 8550 |
# File 'lib/ovirtsdk4/types.rb', line 8548 def volume_group_id=(value) @volume_group_id = value end |