class OvirtSDK4::LogicalUnit
Public Class Methods
Creates a new instance of the {LogicalUnit} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :active_paths The value of attribute `active_paths`.
@option opts [String] :address The value of attribute `address`.
@option opts [Integer] :discard_max_size The value of attribute `discard_max_size`.
@option opts [Boolean] :discard_zeroes_data The value of attribute `discard_zeroes_data`.
@option opts [String] :disk_id The value of attribute `disk_id`.
@option opts [String] :id The value of attribute `id`.
@option opts [Integer] :lun_mapping The value of attribute `lun_mapping`.
@option opts [String] :password The value of attribute `password`.
@option opts [Integer] :paths The value of attribute `paths`.
@option opts [Integer] :port The value of attribute `port`.
@option opts [String] :portal The value of attribute `portal`.
@option opts [String] :product_id The value of attribute `product_id`.
@option opts [String] :serial The value of attribute `serial`.
@option opts [Integer] :size The value of attribute `size`.
@option opts [LunStatus] :status The value of attribute `status`.
@option opts [String] :storage_domain_id The value of attribute `storage_domain_id`.
@option opts [String] :target The value of attribute `target`.
@option opts [String] :username The value of attribute `username`.
@option opts [String] :vendor_id The value of attribute `vendor_id`.
@option opts [String] :volume_group_id The value of attribute `volume_group_id`.
OvirtSDK4::Struct::new
# 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# 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
Returns the value of the `active_paths` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 8957 def active_paths @active_paths end
Sets the value of the `active_paths` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 8966 def active_paths=(value) @active_paths = value end
Returns the value of the `address` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 8975 def address @address end
Sets the value of the `address` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 8984 def address=(value) @address = value end
Returns the value of the `discard_max_size` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 8993 def discard_max_size @discard_max_size end
Sets the value of the `discard_max_size` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9002 def discard_max_size=(value) @discard_max_size = value end
Returns the value of the `discard_zeroes_data` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 9011 def discard_zeroes_data @discard_zeroes_data end
Sets the value of the `discard_zeroes_data` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 9020 def discard_zeroes_data=(value) @discard_zeroes_data = value end
Returns the value of the `disk_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9029 def disk_id @disk_id end
Sets the value of the `disk_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9038 def disk_id=(value) @disk_id = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# 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
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9047 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9056 def id=(value) @id = value end
Returns the value of the `lun_mapping` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 9065 def lun_mapping @lun_mapping end
Sets the value of the `lun_mapping` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9074 def lun_mapping=(value) @lun_mapping = value end
Returns the value of the `password` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9083 def password @password end
Sets the value of the `password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9092 def password=(value) @password = value end
Returns the value of the `paths` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 9101 def paths @paths end
Sets the value of the `paths` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9110 def paths=(value) @paths = value end
Returns the value of the `port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 9119 def port @port end
Sets the value of the `port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9128 def port=(value) @port = value end
Returns the value of the `portal` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9137 def portal @portal end
Sets the value of the `portal` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9146 def portal=(value) @portal = value end
Returns the value of the `product_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9155 def product_id @product_id end
Sets the value of the `product_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9164 def product_id=(value) @product_id = value end
Returns the value of the `serial` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9173 def serial @serial end
Sets the value of the `serial` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9182 def serial=(value) @serial = value end
Returns the value of the `size` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 9191 def size @size end
Sets the value of the `size` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9200 def size=(value) @size = value end
Returns the value of the `status` attribute.
@return [LunStatus]
# File lib/ovirtsdk4/types.rb, line 9209 def status @status end
Sets the value of the `status` attribute.
@param value [LunStatus]
# File lib/ovirtsdk4/types.rb, line 9218 def status=(value) @status = value end
Returns the value of the `storage_domain_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9227 def storage_domain_id @storage_domain_id end
Sets the value of the `storage_domain_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9236 def storage_domain_id=(value) @storage_domain_id = value end
Returns the value of the `target` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9245 def target @target end
Sets the value of the `target` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9254 def target=(value) @target = value end
Returns the value of the `username` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9263 def username @username end
Sets the value of the `username` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9272 def username=(value) @username = value end
Returns the value of the `vendor_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9281 def vendor_id @vendor_id end
Sets the value of the `vendor_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9290 def vendor_id=(value) @vendor_id = value end
Returns the value of the `volume_group_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9299 def volume_group_id @volume_group_id end
Sets the value of the `volume_group_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9308 def volume_group_id=(value) @volume_group_id = value end