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.
7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 |
# File 'lib/ovirtsdk4/types.rb', line 7661 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.
7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 |
# File 'lib/ovirtsdk4/types.rb', line 7685 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.
7318 7319 7320 |
# File 'lib/ovirtsdk4/types.rb', line 7318 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
7327 7328 7329 |
# File 'lib/ovirtsdk4/types.rb', line 7327 def address=(value) @address = value end |
#disk_id ⇒ String
Returns the value of the disk_id
attribute.
7336 7337 7338 |
# File 'lib/ovirtsdk4/types.rb', line 7336 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id
attribute.
7345 7346 7347 |
# File 'lib/ovirtsdk4/types.rb', line 7345 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 |
# File 'lib/ovirtsdk4/types.rb', line 7709 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.
7354 7355 7356 |
# File 'lib/ovirtsdk4/types.rb', line 7354 def initiator @initiator end |
#initiator=(value) ⇒ Object
Sets the value of the initiator
attribute.
7363 7364 7365 |
# File 'lib/ovirtsdk4/types.rb', line 7363 def initiator=(value) @initiator = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping
attribute.
7372 7373 7374 |
# File 'lib/ovirtsdk4/types.rb', line 7372 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping
attribute.
7381 7382 7383 |
# File 'lib/ovirtsdk4/types.rb', line 7381 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password
attribute.
7390 7391 7392 |
# File 'lib/ovirtsdk4/types.rb', line 7390 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
7399 7400 7401 |
# File 'lib/ovirtsdk4/types.rb', line 7399 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths
attribute.
7408 7409 7410 |
# File 'lib/ovirtsdk4/types.rb', line 7408 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths
attribute.
7417 7418 7419 |
# File 'lib/ovirtsdk4/types.rb', line 7417 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
7426 7427 7428 |
# File 'lib/ovirtsdk4/types.rb', line 7426 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
7435 7436 7437 |
# File 'lib/ovirtsdk4/types.rb', line 7435 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
7444 7445 7446 |
# File 'lib/ovirtsdk4/types.rb', line 7444 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
7453 7454 7455 |
# File 'lib/ovirtsdk4/types.rb', line 7453 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id
attribute.
7462 7463 7464 |
# File 'lib/ovirtsdk4/types.rb', line 7462 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id
attribute.
7471 7472 7473 |
# File 'lib/ovirtsdk4/types.rb', line 7471 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial
attribute.
7480 7481 7482 |
# File 'lib/ovirtsdk4/types.rb', line 7480 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial
attribute.
7489 7490 7491 |
# File 'lib/ovirtsdk4/types.rb', line 7489 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size
attribute.
7498 7499 7500 |
# File 'lib/ovirtsdk4/types.rb', line 7498 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
7507 7508 7509 |
# File 'lib/ovirtsdk4/types.rb', line 7507 def size=(value) @size = value end |
#status ⇒ String
Returns the value of the status
attribute.
7516 7517 7518 |
# File 'lib/ovirtsdk4/types.rb', line 7516 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
7525 7526 7527 |
# File 'lib/ovirtsdk4/types.rb', line 7525 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id
attribute.
7534 7535 7536 |
# File 'lib/ovirtsdk4/types.rb', line 7534 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id
attribute.
7543 7544 7545 |
# File 'lib/ovirtsdk4/types.rb', line 7543 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target
attribute.
7552 7553 7554 |
# File 'lib/ovirtsdk4/types.rb', line 7552 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
7561 7562 7563 |
# File 'lib/ovirtsdk4/types.rb', line 7561 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
7570 7571 7572 |
# File 'lib/ovirtsdk4/types.rb', line 7570 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
7579 7580 7581 |
# File 'lib/ovirtsdk4/types.rb', line 7579 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id
attribute.
7588 7589 7590 |
# File 'lib/ovirtsdk4/types.rb', line 7588 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id
attribute.
7597 7598 7599 |
# File 'lib/ovirtsdk4/types.rb', line 7597 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id
attribute.
7606 7607 7608 |
# File 'lib/ovirtsdk4/types.rb', line 7606 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id
attribute.
7615 7616 7617 |
# File 'lib/ovirtsdk4/types.rb', line 7615 def volume_group_id=(value) @volume_group_id = value end |