class OvirtSDK4::LogicalUnit

Public Class Methods

new(opts = {}) click to toggle source

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 [String] :address The value of attribute `address`.

@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`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 6713
def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  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

address() click to toggle source

Returns the value of the `address` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6370
def address
  return @address
end
address=(value) click to toggle source

Sets the value of the `address` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6379
def address=(value)
  @address = value
end
disk_id() click to toggle source

Returns the value of the `disk_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6388
def disk_id
  return @disk_id
end
disk_id=(value) click to toggle source

Sets the value of the `disk_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6397
def disk_id=(value)
  @disk_id = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6406
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6415
def id=(value)
  @id = value
end
lun_mapping() click to toggle source

Returns the value of the `lun_mapping` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 6424
def lun_mapping
  return @lun_mapping
end
lun_mapping=(value) click to toggle source

Sets the value of the `lun_mapping` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 6433
def lun_mapping=(value)
  @lun_mapping = value
end
password() click to toggle source

Returns the value of the `password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6442
def password
  return @password
end
password=(value) click to toggle source

Sets the value of the `password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6451
def password=(value)
  @password = value
end
paths() click to toggle source

Returns the value of the `paths` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 6460
def paths
  return @paths
end
paths=(value) click to toggle source

Sets the value of the `paths` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 6469
def paths=(value)
  @paths = value
end
port() click to toggle source

Returns the value of the `port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 6478
def port
  return @port
end
port=(value) click to toggle source

Sets the value of the `port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 6487
def port=(value)
  @port = value
end
portal() click to toggle source

Returns the value of the `portal` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6496
def portal
  return @portal
end
portal=(value) click to toggle source

Sets the value of the `portal` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6505
def portal=(value)
  @portal = value
end
product_id() click to toggle source

Returns the value of the `product_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6514
def product_id
  return @product_id
end
product_id=(value) click to toggle source

Sets the value of the `product_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6523
def product_id=(value)
  @product_id = value
end
serial() click to toggle source

Returns the value of the `serial` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6532
def serial
  return @serial
end
serial=(value) click to toggle source

Sets the value of the `serial` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6541
def serial=(value)
  @serial = value
end
size() click to toggle source

Returns the value of the `size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 6550
def size
  return @size
end
size=(value) click to toggle source

Sets the value of the `size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 6559
def size=(value)
  @size = value
end
status() click to toggle source

Returns the value of the `status` attribute.

@return [LunStatus]

# File lib/ovirtsdk4/types.rb, line 6568
def status
  return @status
end
status=(value) click to toggle source

Sets the value of the `status` attribute.

@param value [LunStatus]

# File lib/ovirtsdk4/types.rb, line 6577
def status=(value)
  @status = value
end
storage_domain_id() click to toggle source

Returns the value of the `storage_domain_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6586
def storage_domain_id
  return @storage_domain_id
end
storage_domain_id=(value) click to toggle source

Sets the value of the `storage_domain_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6595
def storage_domain_id=(value)
  @storage_domain_id = value
end
target() click to toggle source

Returns the value of the `target` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6604
def target
  return @target
end
target=(value) click to toggle source

Sets the value of the `target` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6613
def target=(value)
  @target = value
end
username() click to toggle source

Returns the value of the `username` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6622
def username
  return @username
end
username=(value) click to toggle source

Sets the value of the `username` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6631
def username=(value)
  @username = value
end
vendor_id() click to toggle source

Returns the value of the `vendor_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6640
def vendor_id
  return @vendor_id
end
vendor_id=(value) click to toggle source

Sets the value of the `vendor_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6649
def vendor_id=(value)
  @vendor_id = value
end
volume_group_id() click to toggle source

Returns the value of the `volume_group_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 6658
def volume_group_id
  return @volume_group_id
end
volume_group_id=(value) click to toggle source

Sets the value of the `volume_group_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 6667
def volume_group_id=(value)
  @volume_group_id = value
end