Class: OvirtSDK4::LogicalUnit

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (LogicalUnit) initialize(opts = {})

Creates a new instance of the OvirtSDK4::LogicalUnit class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :address (String)

    The value of attribute address.

  • :disk_id (String)

    The value of attribute disk_id.

  • :id (String)

    The value of attribute id.

  • :lun_mapping (Integer)

    The value of attribute lun_mapping.

  • :password (String)

    The value of attribute password.

  • :paths (Integer)

    The value of attribute paths.

  • :port (Integer)

    The value of attribute port.

  • :portal (String)

    The value of attribute portal.

  • :product_id (String)

    The value of attribute product_id.

  • :serial (String)

    The value of attribute serial.

  • :size (Integer)

    The value of attribute size.

  • :status (LunStatus)

    The value of attribute status.

  • :storage_domain_id (String)

    The value of attribute storage_domain_id.

  • :target (String)

    The value of attribute target.

  • :username (String)

    The value of attribute username.

  • :vendor_id (String)

    The value of attribute vendor_id.

  • :volume_group_id (String)

    The value of attribute volume_group_id.



6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
# File 'lib/ovirtsdk4/types.rb', line 6122

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

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


5779
5780
5781
# File 'lib/ovirtsdk4/types.rb', line 5779

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


5788
5789
5790
# File 'lib/ovirtsdk4/types.rb', line 5788

def address=(value)
  @address = value
end

- (String) disk_id

Returns the value of the disk_id attribute.

Returns:

  • (String)


5797
5798
5799
# File 'lib/ovirtsdk4/types.rb', line 5797

def disk_id
  return @disk_id
end

- (Object) disk_id=(value)

Sets the value of the disk_id attribute.

Parameters:

  • value (String)


5806
5807
5808
# File 'lib/ovirtsdk4/types.rb', line 5806

def disk_id=(value)
  @disk_id = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


5815
5816
5817
# File 'lib/ovirtsdk4/types.rb', line 5815

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


5824
5825
5826
# File 'lib/ovirtsdk4/types.rb', line 5824

def id=(value)
  @id = value
end

- (Integer) lun_mapping

Returns the value of the lun_mapping attribute.

Returns:

  • (Integer)


5833
5834
5835
# File 'lib/ovirtsdk4/types.rb', line 5833

def lun_mapping
  return @lun_mapping
end

- (Object) lun_mapping=(value)

Sets the value of the lun_mapping attribute.

Parameters:

  • value (Integer)


5842
5843
5844
# File 'lib/ovirtsdk4/types.rb', line 5842

def lun_mapping=(value)
  @lun_mapping = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


5851
5852
5853
# File 'lib/ovirtsdk4/types.rb', line 5851

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


5860
5861
5862
# File 'lib/ovirtsdk4/types.rb', line 5860

def password=(value)
  @password = value
end

- (Integer) paths

Returns the value of the paths attribute.

Returns:

  • (Integer)


5869
5870
5871
# File 'lib/ovirtsdk4/types.rb', line 5869

def paths
  return @paths
end

- (Object) paths=(value)

Sets the value of the paths attribute.

Parameters:

  • value (Integer)


5878
5879
5880
# File 'lib/ovirtsdk4/types.rb', line 5878

def paths=(value)
  @paths = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


5887
5888
5889
# File 'lib/ovirtsdk4/types.rb', line 5887

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


5896
5897
5898
# File 'lib/ovirtsdk4/types.rb', line 5896

def port=(value)
  @port = value
end

- (String) portal

Returns the value of the portal attribute.

Returns:

  • (String)


5905
5906
5907
# File 'lib/ovirtsdk4/types.rb', line 5905

def portal
  return @portal
end

- (Object) portal=(value)

Sets the value of the portal attribute.

Parameters:

  • value (String)


5914
5915
5916
# File 'lib/ovirtsdk4/types.rb', line 5914

def portal=(value)
  @portal = value
end

- (String) product_id

Returns the value of the product_id attribute.

Returns:

  • (String)


5923
5924
5925
# File 'lib/ovirtsdk4/types.rb', line 5923

def product_id
  return @product_id
end

- (Object) product_id=(value)

Sets the value of the product_id attribute.

Parameters:

  • value (String)


5932
5933
5934
# File 'lib/ovirtsdk4/types.rb', line 5932

def product_id=(value)
  @product_id = value
end

- (String) serial

Returns the value of the serial attribute.

Returns:

  • (String)


5941
5942
5943
# File 'lib/ovirtsdk4/types.rb', line 5941

def serial
  return @serial
end

- (Object) serial=(value)

Sets the value of the serial attribute.

Parameters:

  • value (String)


5950
5951
5952
# File 'lib/ovirtsdk4/types.rb', line 5950

def serial=(value)
  @serial = value
end

- (Integer) size

Returns the value of the size attribute.

Returns:

  • (Integer)


5959
5960
5961
# File 'lib/ovirtsdk4/types.rb', line 5959

def size
  return @size
end

- (Object) size=(value)

Sets the value of the size attribute.

Parameters:

  • value (Integer)


5968
5969
5970
# File 'lib/ovirtsdk4/types.rb', line 5968

def size=(value)
  @size = value
end

- (LunStatus) status

Returns the value of the status attribute.

Returns:



5977
5978
5979
# File 'lib/ovirtsdk4/types.rb', line 5977

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



5986
5987
5988
# File 'lib/ovirtsdk4/types.rb', line 5986

def status=(value)
  @status = value
end

- (String) storage_domain_id

Returns the value of the storage_domain_id attribute.

Returns:

  • (String)


5995
5996
5997
# File 'lib/ovirtsdk4/types.rb', line 5995

def storage_domain_id
  return @storage_domain_id
end

- (Object) storage_domain_id=(value)

Sets the value of the storage_domain_id attribute.

Parameters:

  • value (String)


6004
6005
6006
# File 'lib/ovirtsdk4/types.rb', line 6004

def storage_domain_id=(value)
  @storage_domain_id = value
end

- (String) target

Returns the value of the target attribute.

Returns:

  • (String)


6013
6014
6015
# File 'lib/ovirtsdk4/types.rb', line 6013

def target
  return @target
end

- (Object) target=(value)

Sets the value of the target attribute.

Parameters:

  • value (String)


6022
6023
6024
# File 'lib/ovirtsdk4/types.rb', line 6022

def target=(value)
  @target = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


6031
6032
6033
# File 'lib/ovirtsdk4/types.rb', line 6031

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


6040
6041
6042
# File 'lib/ovirtsdk4/types.rb', line 6040

def username=(value)
  @username = value
end

- (String) vendor_id

Returns the value of the vendor_id attribute.

Returns:

  • (String)


6049
6050
6051
# File 'lib/ovirtsdk4/types.rb', line 6049

def vendor_id
  return @vendor_id
end

- (Object) vendor_id=(value)

Sets the value of the vendor_id attribute.

Parameters:

  • value (String)


6058
6059
6060
# File 'lib/ovirtsdk4/types.rb', line 6058

def vendor_id=(value)
  @vendor_id = value
end

- (String) volume_group_id

Returns the value of the volume_group_id attribute.

Returns:

  • (String)


6067
6068
6069
# File 'lib/ovirtsdk4/types.rb', line 6067

def volume_group_id
  return @volume_group_id
end

- (Object) volume_group_id=(value)

Sets the value of the volume_group_id attribute.

Parameters:

  • value (String)


6076
6077
6078
# File 'lib/ovirtsdk4/types.rb', line 6076

def volume_group_id=(value)
  @volume_group_id = value
end