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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ IscsiDetails

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.



7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
# File 'lib/ovirtsdk4/types.rb', line 7120

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

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
# File 'lib/ovirtsdk4/types.rb', line 7144

def ==(other)
  super &&
  @address == other.address &&
  @disk_id == other.disk_id &&
  @initiator == other.initiator &&
  @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

#addressString

Returns the value of the address attribute.

Returns:

  • (String)


6777
6778
6779
# File 'lib/ovirtsdk4/types.rb', line 6777

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)


6786
6787
6788
# File 'lib/ovirtsdk4/types.rb', line 6786

def address=(value)
  @address = value
end

#disk_idString

Returns the value of the disk_id attribute.

Returns:

  • (String)


6795
6796
6797
# File 'lib/ovirtsdk4/types.rb', line 6795

def disk_id
  @disk_id
end

#disk_id=(value) ⇒ Object

Sets the value of the disk_id attribute.

Parameters:

  • value (String)


6804
6805
6806
# File 'lib/ovirtsdk4/types.rb', line 6804

def disk_id=(value)
  @disk_id = value
end

#hashObject

Generates a hash value for this object.



7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
# File 'lib/ovirtsdk4/types.rb', line 7168

def hash
  super +
  @address.hash +
  @disk_id.hash +
  @initiator.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

#initiatorString

Returns the value of the initiator attribute.

Returns:

  • (String)


6813
6814
6815
# File 'lib/ovirtsdk4/types.rb', line 6813

def initiator
  @initiator
end

#initiator=(value) ⇒ Object

Sets the value of the initiator attribute.

Parameters:

  • value (String)


6822
6823
6824
# File 'lib/ovirtsdk4/types.rb', line 6822

def initiator=(value)
  @initiator = value
end

#lun_mappingInteger

Returns the value of the lun_mapping attribute.

Returns:

  • (Integer)


6831
6832
6833
# File 'lib/ovirtsdk4/types.rb', line 6831

def lun_mapping
  @lun_mapping
end

#lun_mapping=(value) ⇒ Object

Sets the value of the lun_mapping attribute.

Parameters:

  • value (Integer)


6840
6841
6842
# File 'lib/ovirtsdk4/types.rb', line 6840

def lun_mapping=(value)
  @lun_mapping = value
end

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)


6849
6850
6851
# File 'lib/ovirtsdk4/types.rb', line 6849

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)


6858
6859
6860
# File 'lib/ovirtsdk4/types.rb', line 6858

def password=(value)
  @password = value
end

#pathsInteger

Returns the value of the paths attribute.

Returns:

  • (Integer)


6867
6868
6869
# File 'lib/ovirtsdk4/types.rb', line 6867

def paths
  @paths
end

#paths=(value) ⇒ Object

Sets the value of the paths attribute.

Parameters:

  • value (Integer)


6876
6877
6878
# File 'lib/ovirtsdk4/types.rb', line 6876

def paths=(value)
  @paths = value
end

#portInteger

Returns the value of the port attribute.

Returns:

  • (Integer)


6885
6886
6887
# File 'lib/ovirtsdk4/types.rb', line 6885

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)


6894
6895
6896
# File 'lib/ovirtsdk4/types.rb', line 6894

def port=(value)
  @port = value
end

#portalString

Returns the value of the portal attribute.

Returns:

  • (String)


6903
6904
6905
# File 'lib/ovirtsdk4/types.rb', line 6903

def portal
  @portal
end

#portal=(value) ⇒ Object

Sets the value of the portal attribute.

Parameters:

  • value (String)


6912
6913
6914
# File 'lib/ovirtsdk4/types.rb', line 6912

def portal=(value)
  @portal = value
end

#product_idString

Returns the value of the product_id attribute.

Returns:

  • (String)


6921
6922
6923
# File 'lib/ovirtsdk4/types.rb', line 6921

def product_id
  @product_id
end

#product_id=(value) ⇒ Object

Sets the value of the product_id attribute.

Parameters:

  • value (String)


6930
6931
6932
# File 'lib/ovirtsdk4/types.rb', line 6930

def product_id=(value)
  @product_id = value
end

#serialString

Returns the value of the serial attribute.

Returns:

  • (String)


6939
6940
6941
# File 'lib/ovirtsdk4/types.rb', line 6939

def serial
  @serial
end

#serial=(value) ⇒ Object

Sets the value of the serial attribute.

Parameters:

  • value (String)


6948
6949
6950
# File 'lib/ovirtsdk4/types.rb', line 6948

def serial=(value)
  @serial = value
end

#sizeInteger

Returns the value of the size attribute.

Returns:

  • (Integer)


6957
6958
6959
# File 'lib/ovirtsdk4/types.rb', line 6957

def size
  @size
end

#size=(value) ⇒ Object

Sets the value of the size attribute.

Parameters:

  • value (Integer)


6966
6967
6968
# File 'lib/ovirtsdk4/types.rb', line 6966

def size=(value)
  @size = value
end

#statusString

Returns the value of the status attribute.

Returns:

  • (String)


6975
6976
6977
# File 'lib/ovirtsdk4/types.rb', line 6975

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:

  • value (String)


6984
6985
6986
# File 'lib/ovirtsdk4/types.rb', line 6984

def status=(value)
  @status = value
end

#storage_domain_idString

Returns the value of the storage_domain_id attribute.

Returns:

  • (String)


6993
6994
6995
# File 'lib/ovirtsdk4/types.rb', line 6993

def storage_domain_id
  @storage_domain_id
end

#storage_domain_id=(value) ⇒ Object

Sets the value of the storage_domain_id attribute.

Parameters:

  • value (String)


7002
7003
7004
# File 'lib/ovirtsdk4/types.rb', line 7002

def storage_domain_id=(value)
  @storage_domain_id = value
end

#targetString

Returns the value of the target attribute.

Returns:

  • (String)


7011
7012
7013
# File 'lib/ovirtsdk4/types.rb', line 7011

def target
  @target
end

#target=(value) ⇒ Object

Sets the value of the target attribute.

Parameters:

  • value (String)


7020
7021
7022
# File 'lib/ovirtsdk4/types.rb', line 7020

def target=(value)
  @target = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)


7029
7030
7031
# File 'lib/ovirtsdk4/types.rb', line 7029

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)


7038
7039
7040
# File 'lib/ovirtsdk4/types.rb', line 7038

def username=(value)
  @username = value
end

#vendor_idString

Returns the value of the vendor_id attribute.

Returns:

  • (String)


7047
7048
7049
# File 'lib/ovirtsdk4/types.rb', line 7047

def vendor_id
  @vendor_id
end

#vendor_id=(value) ⇒ Object

Sets the value of the vendor_id attribute.

Parameters:

  • value (String)


7056
7057
7058
# File 'lib/ovirtsdk4/types.rb', line 7056

def vendor_id=(value)
  @vendor_id = value
end

#volume_group_idString

Returns the value of the volume_group_id attribute.

Returns:

  • (String)


7065
7066
7067
# File 'lib/ovirtsdk4/types.rb', line 7065

def volume_group_id
  @volume_group_id
end

#volume_group_id=(value) ⇒ Object

Sets the value of the volume_group_id attribute.

Parameters:

  • value (String)


7074
7075
7076
# File 'lib/ovirtsdk4/types.rb', line 7074

def volume_group_id=(value)
  @volume_group_id = value
end