Class: OvirtSDK4::IscsiDetails

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

- (IscsiDetails) initialize(opts = {})

Creates a new instance of the OvirtSDK4::IscsiDetails 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.

  • :initiator (String)

    The value of attribute initiator.

  • :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 (String)

    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.



5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
# File 'lib/ovirtsdk4/types.rb', line 5055

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

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


4712
4713
4714
# File 'lib/ovirtsdk4/types.rb', line 4712

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


4721
4722
4723
# File 'lib/ovirtsdk4/types.rb', line 4721

def address=(value)
  @address = value
end

- (String) disk_id

Returns the value of the disk_id attribute.

Returns:

  • (String)


4730
4731
4732
# File 'lib/ovirtsdk4/types.rb', line 4730

def disk_id
  return @disk_id
end

- (Object) disk_id=(value)

Sets the value of the disk_id attribute.

Parameters:

  • value (String)


4739
4740
4741
# File 'lib/ovirtsdk4/types.rb', line 4739

def disk_id=(value)
  @disk_id = value
end

- (String) initiator

Returns the value of the initiator attribute.

Returns:

  • (String)


4748
4749
4750
# File 'lib/ovirtsdk4/types.rb', line 4748

def initiator
  return @initiator
end

- (Object) initiator=(value)

Sets the value of the initiator attribute.

Parameters:

  • value (String)


4757
4758
4759
# File 'lib/ovirtsdk4/types.rb', line 4757

def initiator=(value)
  @initiator = value
end

- (Integer) lun_mapping

Returns the value of the lun_mapping attribute.

Returns:

  • (Integer)


4766
4767
4768
# File 'lib/ovirtsdk4/types.rb', line 4766

def lun_mapping
  return @lun_mapping
end

- (Object) lun_mapping=(value)

Sets the value of the lun_mapping attribute.

Parameters:

  • value (Integer)


4775
4776
4777
# File 'lib/ovirtsdk4/types.rb', line 4775

def lun_mapping=(value)
  @lun_mapping = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


4784
4785
4786
# File 'lib/ovirtsdk4/types.rb', line 4784

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


4793
4794
4795
# File 'lib/ovirtsdk4/types.rb', line 4793

def password=(value)
  @password = value
end

- (Integer) paths

Returns the value of the paths attribute.

Returns:

  • (Integer)


4802
4803
4804
# File 'lib/ovirtsdk4/types.rb', line 4802

def paths
  return @paths
end

- (Object) paths=(value)

Sets the value of the paths attribute.

Parameters:

  • value (Integer)


4811
4812
4813
# File 'lib/ovirtsdk4/types.rb', line 4811

def paths=(value)
  @paths = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


4820
4821
4822
# File 'lib/ovirtsdk4/types.rb', line 4820

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


4829
4830
4831
# File 'lib/ovirtsdk4/types.rb', line 4829

def port=(value)
  @port = value
end

- (String) portal

Returns the value of the portal attribute.

Returns:

  • (String)


4838
4839
4840
# File 'lib/ovirtsdk4/types.rb', line 4838

def portal
  return @portal
end

- (Object) portal=(value)

Sets the value of the portal attribute.

Parameters:

  • value (String)


4847
4848
4849
# File 'lib/ovirtsdk4/types.rb', line 4847

def portal=(value)
  @portal = value
end

- (String) product_id

Returns the value of the product_id attribute.

Returns:

  • (String)


4856
4857
4858
# File 'lib/ovirtsdk4/types.rb', line 4856

def product_id
  return @product_id
end

- (Object) product_id=(value)

Sets the value of the product_id attribute.

Parameters:

  • value (String)


4865
4866
4867
# File 'lib/ovirtsdk4/types.rb', line 4865

def product_id=(value)
  @product_id = value
end

- (String) serial

Returns the value of the serial attribute.

Returns:

  • (String)


4874
4875
4876
# File 'lib/ovirtsdk4/types.rb', line 4874

def serial
  return @serial
end

- (Object) serial=(value)

Sets the value of the serial attribute.

Parameters:

  • value (String)


4883
4884
4885
# File 'lib/ovirtsdk4/types.rb', line 4883

def serial=(value)
  @serial = value
end

- (Integer) size

Returns the value of the size attribute.

Returns:

  • (Integer)


4892
4893
4894
# File 'lib/ovirtsdk4/types.rb', line 4892

def size
  return @size
end

- (Object) size=(value)

Sets the value of the size attribute.

Parameters:

  • value (Integer)


4901
4902
4903
# File 'lib/ovirtsdk4/types.rb', line 4901

def size=(value)
  @size = value
end

- (String) status

Returns the value of the status attribute.

Returns:

  • (String)


4910
4911
4912
# File 'lib/ovirtsdk4/types.rb', line 4910

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:

  • value (String)


4919
4920
4921
# File 'lib/ovirtsdk4/types.rb', line 4919

def status=(value)
  @status = value
end

- (String) storage_domain_id

Returns the value of the storage_domain_id attribute.

Returns:

  • (String)


4928
4929
4930
# File 'lib/ovirtsdk4/types.rb', line 4928

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)


4937
4938
4939
# File 'lib/ovirtsdk4/types.rb', line 4937

def storage_domain_id=(value)
  @storage_domain_id = value
end

- (String) target

Returns the value of the target attribute.

Returns:

  • (String)


4946
4947
4948
# File 'lib/ovirtsdk4/types.rb', line 4946

def target
  return @target
end

- (Object) target=(value)

Sets the value of the target attribute.

Parameters:

  • value (String)


4955
4956
4957
# File 'lib/ovirtsdk4/types.rb', line 4955

def target=(value)
  @target = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


4964
4965
4966
# File 'lib/ovirtsdk4/types.rb', line 4964

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


4973
4974
4975
# File 'lib/ovirtsdk4/types.rb', line 4973

def username=(value)
  @username = value
end

- (String) vendor_id

Returns the value of the vendor_id attribute.

Returns:

  • (String)


4982
4983
4984
# File 'lib/ovirtsdk4/types.rb', line 4982

def vendor_id
  return @vendor_id
end

- (Object) vendor_id=(value)

Sets the value of the vendor_id attribute.

Parameters:

  • value (String)


4991
4992
4993
# File 'lib/ovirtsdk4/types.rb', line 4991

def vendor_id=(value)
  @vendor_id = value
end

- (String) volume_group_id

Returns the value of the volume_group_id attribute.

Returns:

  • (String)


5000
5001
5002
# File 'lib/ovirtsdk4/types.rb', line 5000

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)


5009
5010
5011
# File 'lib/ovirtsdk4/types.rb', line 5009

def volume_group_id=(value)
  @volume_group_id = value
end