Class: OvirtSDK4::LogicalUnit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active_paths ⇒ Integer
Returns the value of the
active_pathsattribute. -
#active_paths=(value) ⇒ Object
Sets the value of the
active_pathsattribute. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#discard_max_size ⇒ Integer
Returns the value of the
discard_max_sizeattribute. -
#discard_max_size=(value) ⇒ Object
Sets the value of the
discard_max_sizeattribute. -
#discard_zeroes_data ⇒ Boolean
Returns the value of the
discard_zeroes_dataattribute. -
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the
discard_zeroes_dataattribute. -
#disk_id ⇒ String
Returns the value of the
disk_idattribute. -
#disk_id=(value) ⇒ Object
Sets the value of the
disk_idattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ LogicalUnit
constructor
Creates a new instance of the LogicalUnit class.
-
#lun_mapping ⇒ Integer
Returns the value of the
lun_mappingattribute. -
#lun_mapping=(value) ⇒ Object
Sets the value of the
lun_mappingattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#paths ⇒ Integer
Returns the value of the
pathsattribute. -
#paths=(value) ⇒ Object
Sets the value of the
pathsattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#portal ⇒ String
Returns the value of the
portalattribute. -
#portal=(value) ⇒ Object
Sets the value of the
portalattribute. -
#product_id ⇒ String
Returns the value of the
product_idattribute. -
#product_id=(value) ⇒ Object
Sets the value of the
product_idattribute. -
#serial ⇒ String
Returns the value of the
serialattribute. -
#serial=(value) ⇒ Object
Sets the value of the
serialattribute. -
#size ⇒ Integer
Returns the value of the
sizeattribute. -
#size=(value) ⇒ Object
Sets the value of the
sizeattribute. -
#status ⇒ LunStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#storage_domain_id ⇒ String
Returns the value of the
storage_domain_idattribute. -
#storage_domain_id=(value) ⇒ Object
Sets the value of the
storage_domain_idattribute. -
#target ⇒ String
Returns the value of the
targetattribute. -
#target=(value) ⇒ Object
Sets the value of the
targetattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute. -
#vendor_id ⇒ String
Returns the value of the
vendor_idattribute. -
#vendor_id=(value) ⇒ Object
Sets the value of the
vendor_idattribute. -
#volume_group_id ⇒ String
Returns the value of the
volume_group_idattribute. -
#volume_group_id=(value) ⇒ Object
Sets the value of the
volume_group_idattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ LogicalUnit
Creates a new instance of the OvirtSDK4::LogicalUnit class.
9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 |
# File 'lib/ovirtsdk4/types.rb', line 9360 def initialize(opts = {}) super(opts) self.active_paths = opts[:active_paths] 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.
9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 |
# File 'lib/ovirtsdk4/types.rb', line 9387 def ==(other) super && @active_paths == other.active_paths && @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 |
#active_paths ⇒ Integer
Returns the value of the active_paths attribute.
8957 8958 8959 |
# File 'lib/ovirtsdk4/types.rb', line 8957 def active_paths @active_paths end |
#active_paths=(value) ⇒ Object
Sets the value of the active_paths attribute.
8966 8967 8968 |
# File 'lib/ovirtsdk4/types.rb', line 8966 def active_paths=(value) @active_paths = value end |
#address ⇒ String
Returns the value of the address attribute.
8975 8976 8977 |
# File 'lib/ovirtsdk4/types.rb', line 8975 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
8984 8985 8986 |
# File 'lib/ovirtsdk4/types.rb', line 8984 def address=(value) @address = value end |
#discard_max_size ⇒ Integer
Returns the value of the discard_max_size attribute.
8993 8994 8995 |
# File 'lib/ovirtsdk4/types.rb', line 8993 def discard_max_size @discard_max_size end |
#discard_max_size=(value) ⇒ Object
Sets the value of the discard_max_size attribute.
9002 9003 9004 |
# File 'lib/ovirtsdk4/types.rb', line 9002 def discard_max_size=(value) @discard_max_size = value end |
#discard_zeroes_data ⇒ Boolean
Returns the value of the discard_zeroes_data attribute.
9011 9012 9013 |
# File 'lib/ovirtsdk4/types.rb', line 9011 def discard_zeroes_data @discard_zeroes_data end |
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the discard_zeroes_data attribute.
9020 9021 9022 |
# File 'lib/ovirtsdk4/types.rb', line 9020 def discard_zeroes_data=(value) @discard_zeroes_data = value end |
#disk_id ⇒ String
Returns the value of the disk_id attribute.
9029 9030 9031 |
# File 'lib/ovirtsdk4/types.rb', line 9029 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id attribute.
9038 9039 9040 |
# File 'lib/ovirtsdk4/types.rb', line 9038 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 |
# File 'lib/ovirtsdk4/types.rb', line 9414 def hash super + @active_paths.hash + @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.
9047 9048 9049 |
# File 'lib/ovirtsdk4/types.rb', line 9047 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
9056 9057 9058 |
# File 'lib/ovirtsdk4/types.rb', line 9056 def id=(value) @id = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping attribute.
9065 9066 9067 |
# File 'lib/ovirtsdk4/types.rb', line 9065 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping attribute.
9074 9075 9076 |
# File 'lib/ovirtsdk4/types.rb', line 9074 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password attribute.
9083 9084 9085 |
# File 'lib/ovirtsdk4/types.rb', line 9083 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
9092 9093 9094 |
# File 'lib/ovirtsdk4/types.rb', line 9092 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths attribute.
9101 9102 9103 |
# File 'lib/ovirtsdk4/types.rb', line 9101 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths attribute.
9110 9111 9112 |
# File 'lib/ovirtsdk4/types.rb', line 9110 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port attribute.
9119 9120 9121 |
# File 'lib/ovirtsdk4/types.rb', line 9119 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
9128 9129 9130 |
# File 'lib/ovirtsdk4/types.rb', line 9128 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal attribute.
9137 9138 9139 |
# File 'lib/ovirtsdk4/types.rb', line 9137 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal attribute.
9146 9147 9148 |
# File 'lib/ovirtsdk4/types.rb', line 9146 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id attribute.
9155 9156 9157 |
# File 'lib/ovirtsdk4/types.rb', line 9155 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id attribute.
9164 9165 9166 |
# File 'lib/ovirtsdk4/types.rb', line 9164 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial attribute.
9173 9174 9175 |
# File 'lib/ovirtsdk4/types.rb', line 9173 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial attribute.
9182 9183 9184 |
# File 'lib/ovirtsdk4/types.rb', line 9182 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size attribute.
9191 9192 9193 |
# File 'lib/ovirtsdk4/types.rb', line 9191 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size attribute.
9200 9201 9202 |
# File 'lib/ovirtsdk4/types.rb', line 9200 def size=(value) @size = value end |
#status ⇒ LunStatus
Returns the value of the status attribute.
9209 9210 9211 |
# File 'lib/ovirtsdk4/types.rb', line 9209 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
9218 9219 9220 |
# File 'lib/ovirtsdk4/types.rb', line 9218 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id attribute.
9227 9228 9229 |
# File 'lib/ovirtsdk4/types.rb', line 9227 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id attribute.
9236 9237 9238 |
# File 'lib/ovirtsdk4/types.rb', line 9236 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target attribute.
9245 9246 9247 |
# File 'lib/ovirtsdk4/types.rb', line 9245 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target attribute.
9254 9255 9256 |
# File 'lib/ovirtsdk4/types.rb', line 9254 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username attribute.
9263 9264 9265 |
# File 'lib/ovirtsdk4/types.rb', line 9263 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
9272 9273 9274 |
# File 'lib/ovirtsdk4/types.rb', line 9272 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id attribute.
9281 9282 9283 |
# File 'lib/ovirtsdk4/types.rb', line 9281 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id attribute.
9290 9291 9292 |
# File 'lib/ovirtsdk4/types.rb', line 9290 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id attribute.
9299 9300 9301 |
# File 'lib/ovirtsdk4/types.rb', line 9299 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id attribute.
9308 9309 9310 |
# File 'lib/ovirtsdk4/types.rb', line 9308 def volume_group_id=(value) @volume_group_id = value end |