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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ LogicalUnit

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.

  • :discard_max_size (Integer)

    The value of attribute discard_max_size.

  • :discard_zeroes_data (Boolean)

    The value of attribute discard_zeroes_data.

  • :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.


8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
# File 'lib/ovirtsdk4/types.rb', line 8735

def initialize(opts = {})
  super(opts)
  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

Instance Method Details

#==(other) ⇒ Object

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


8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
# File 'lib/ovirtsdk4/types.rb', line 8761

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

#addressString

Returns the value of the address attribute.

Returns:

  • (String)

8352
8353
8354
# File 'lib/ovirtsdk4/types.rb', line 8352

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)

8361
8362
8363
# File 'lib/ovirtsdk4/types.rb', line 8361

def address=(value)
  @address = value
end

#discard_max_sizeInteger

Returns the value of the discard_max_size attribute.

Returns:

  • (Integer)

8370
8371
8372
# File 'lib/ovirtsdk4/types.rb', line 8370

def discard_max_size
  @discard_max_size
end

#discard_max_size=(value) ⇒ Object

Sets the value of the discard_max_size attribute.

Parameters:

  • value (Integer)

8379
8380
8381
# File 'lib/ovirtsdk4/types.rb', line 8379

def discard_max_size=(value)
  @discard_max_size = value
end

#discard_zeroes_dataBoolean

Returns the value of the discard_zeroes_data attribute.

Returns:

  • (Boolean)

8388
8389
8390
# File 'lib/ovirtsdk4/types.rb', line 8388

def discard_zeroes_data
  @discard_zeroes_data
end

#discard_zeroes_data=(value) ⇒ Object

Sets the value of the discard_zeroes_data attribute.

Parameters:

  • value (Boolean)

8397
8398
8399
# File 'lib/ovirtsdk4/types.rb', line 8397

def discard_zeroes_data=(value)
  @discard_zeroes_data = value
end

#disk_idString

Returns the value of the disk_id attribute.

Returns:

  • (String)

8406
8407
8408
# File 'lib/ovirtsdk4/types.rb', line 8406

def disk_id
  @disk_id
end

#disk_id=(value) ⇒ Object

Sets the value of the disk_id attribute.

Parameters:

  • value (String)

8415
8416
8417
# File 'lib/ovirtsdk4/types.rb', line 8415

def disk_id=(value)
  @disk_id = value
end

#hashObject

Generates a hash value for this object.


8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
# File 'lib/ovirtsdk4/types.rb', line 8787

def hash
  super +
  @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

#idString

Returns the value of the id attribute.

Returns:

  • (String)

8424
8425
8426
# File 'lib/ovirtsdk4/types.rb', line 8424

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

8433
8434
8435
# File 'lib/ovirtsdk4/types.rb', line 8433

def id=(value)
  @id = value
end

#lun_mappingInteger

Returns the value of the lun_mapping attribute.

Returns:

  • (Integer)

8442
8443
8444
# File 'lib/ovirtsdk4/types.rb', line 8442

def lun_mapping
  @lun_mapping
end

#lun_mapping=(value) ⇒ Object

Sets the value of the lun_mapping attribute.

Parameters:

  • value (Integer)

8451
8452
8453
# File 'lib/ovirtsdk4/types.rb', line 8451

def lun_mapping=(value)
  @lun_mapping = value
end

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)

8460
8461
8462
# File 'lib/ovirtsdk4/types.rb', line 8460

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)

8469
8470
8471
# File 'lib/ovirtsdk4/types.rb', line 8469

def password=(value)
  @password = value
end

#pathsInteger

Returns the value of the paths attribute.

Returns:

  • (Integer)

8478
8479
8480
# File 'lib/ovirtsdk4/types.rb', line 8478

def paths
  @paths
end

#paths=(value) ⇒ Object

Sets the value of the paths attribute.

Parameters:

  • value (Integer)

8487
8488
8489
# File 'lib/ovirtsdk4/types.rb', line 8487

def paths=(value)
  @paths = value
end

#portInteger

Returns the value of the port attribute.

Returns:

  • (Integer)

8496
8497
8498
# File 'lib/ovirtsdk4/types.rb', line 8496

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)

8505
8506
8507
# File 'lib/ovirtsdk4/types.rb', line 8505

def port=(value)
  @port = value
end

#portalString

Returns the value of the portal attribute.

Returns:

  • (String)

8514
8515
8516
# File 'lib/ovirtsdk4/types.rb', line 8514

def portal
  @portal
end

#portal=(value) ⇒ Object

Sets the value of the portal attribute.

Parameters:

  • value (String)

8523
8524
8525
# File 'lib/ovirtsdk4/types.rb', line 8523

def portal=(value)
  @portal = value
end

#product_idString

Returns the value of the product_id attribute.

Returns:

  • (String)

8532
8533
8534
# File 'lib/ovirtsdk4/types.rb', line 8532

def product_id
  @product_id
end

#product_id=(value) ⇒ Object

Sets the value of the product_id attribute.

Parameters:

  • value (String)

8541
8542
8543
# File 'lib/ovirtsdk4/types.rb', line 8541

def product_id=(value)
  @product_id = value
end

#serialString

Returns the value of the serial attribute.

Returns:

  • (String)

8550
8551
8552
# File 'lib/ovirtsdk4/types.rb', line 8550

def serial
  @serial
end

#serial=(value) ⇒ Object

Sets the value of the serial attribute.

Parameters:

  • value (String)

8559
8560
8561
# File 'lib/ovirtsdk4/types.rb', line 8559

def serial=(value)
  @serial = value
end

#sizeInteger

Returns the value of the size attribute.

Returns:

  • (Integer)

8568
8569
8570
# File 'lib/ovirtsdk4/types.rb', line 8568

def size
  @size
end

#size=(value) ⇒ Object

Sets the value of the size attribute.

Parameters:

  • value (Integer)

8577
8578
8579
# File 'lib/ovirtsdk4/types.rb', line 8577

def size=(value)
  @size = value
end

#statusLunStatus

Returns the value of the status attribute.

Returns:


8586
8587
8588
# File 'lib/ovirtsdk4/types.rb', line 8586

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


8595
8596
8597
# File 'lib/ovirtsdk4/types.rb', line 8595

def status=(value)
  @status = value
end

#storage_domain_idString

Returns the value of the storage_domain_id attribute.

Returns:

  • (String)

8604
8605
8606
# File 'lib/ovirtsdk4/types.rb', line 8604

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)

8613
8614
8615
# File 'lib/ovirtsdk4/types.rb', line 8613

def storage_domain_id=(value)
  @storage_domain_id = value
end

#targetString

Returns the value of the target attribute.

Returns:

  • (String)

8622
8623
8624
# File 'lib/ovirtsdk4/types.rb', line 8622

def target
  @target
end

#target=(value) ⇒ Object

Sets the value of the target attribute.

Parameters:

  • value (String)

8631
8632
8633
# File 'lib/ovirtsdk4/types.rb', line 8631

def target=(value)
  @target = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)

8640
8641
8642
# File 'lib/ovirtsdk4/types.rb', line 8640

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)

8649
8650
8651
# File 'lib/ovirtsdk4/types.rb', line 8649

def username=(value)
  @username = value
end

#vendor_idString

Returns the value of the vendor_id attribute.

Returns:

  • (String)

8658
8659
8660
# File 'lib/ovirtsdk4/types.rb', line 8658

def vendor_id
  @vendor_id
end

#vendor_id=(value) ⇒ Object

Sets the value of the vendor_id attribute.

Parameters:

  • value (String)

8667
8668
8669
# File 'lib/ovirtsdk4/types.rb', line 8667

def vendor_id=(value)
  @vendor_id = value
end

#volume_group_idString

Returns the value of the volume_group_id attribute.

Returns:

  • (String)

8676
8677
8678
# File 'lib/ovirtsdk4/types.rb', line 8676

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)

8685
8686
8687
# File 'lib/ovirtsdk4/types.rb', line 8685

def volume_group_id=(value)
  @volume_group_id = value
end