Class: OvirtSDK4::Disk

Inherits:
Device show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Direct Known Subclasses

DiskSnapshot

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Disk

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

  • :active (Boolean)

    The value of attribute active.

  • :actual_size (Integer)

    The value of attribute actual_size.

  • :alias_ (String)

    The value of attribute alias_.

  • :backup (DiskBackup)

    The value of attribute backup.

  • :backup_mode (DiskBackupMode)

    The value of attribute backup_mode.

  • :bootable (Boolean)

    The value of attribute bootable.

  • :comment (String)

    The value of attribute comment.

  • :content_type (DiskContentType)

    The value of attribute content_type.

  • :description (String)

    The value of attribute description.

  • :disk_profile (DiskProfile, Hash)

    The value of attribute disk_profile.

  • :disk_snapshots (Array<DiskSnapshot>, Array<Hash>)

    The values of attribute disk_snapshots.

  • :external_disk (String)

    The value of attribute external_disk.

  • :format (DiskFormat)

    The value of attribute format.

  • :id (String)

    The value of attribute id.

  • :image_id (String)

    The value of attribute image_id.

  • :initial_size (Integer)

    The value of attribute initial_size.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :interface (DiskInterface)

    The value of attribute interface.

  • :logical_name (String)

    The value of attribute logical_name.

  • :lun_storage (HostStorage, Hash)

    The value of attribute lun_storage.

  • :name (String)

    The value of attribute name.

  • :openstack_volume_type (OpenStackVolumeType, Hash)

    The value of attribute openstack_volume_type.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :propagate_errors (Boolean)

    The value of attribute propagate_errors.

  • :provisioned_size (Integer)

    The value of attribute provisioned_size.

  • :qcow_version (QcowVersion)

    The value of attribute qcow_version.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :read_only (Boolean)

    The value of attribute read_only.

  • :sgio (ScsiGenericIO)

    The value of attribute sgio.

  • :shareable (Boolean)

    The value of attribute shareable.

  • :snapshot (Snapshot, Hash)

    The value of attribute snapshot.

  • :sparse (Boolean)

    The value of attribute sparse.

  • :statistics (Array<Statistic>, Array<Hash>)

    The values of attribute statistics.

  • :status (DiskStatus)

    The value of attribute status.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_domains (Array<StorageDomain>, Array<Hash>)

    The values of attribute storage_domains.

  • :storage_type (DiskStorageType)

    The value of attribute storage_type.

  • :template (Template, Hash)

    The value of attribute template.

  • :total_size (Integer)

    The value of attribute total_size.

  • :uses_scsi_reservation (Boolean)

    The value of attribute uses_scsi_reservation.

  • :vm (Vm, Hash)

    The value of attribute vm.

  • :vms (Array<Vm>, Array<Hash>)

    The values of attribute vms.

  • :wipe_after_delete (Boolean)

    The value of attribute wipe_after_delete.



37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
# File 'lib/ovirtsdk4/types.rb', line 37341

def initialize(opts = {})
  super(opts)
  self.active = opts[:active]
  self.actual_size = opts[:actual_size]
  self.alias_ = opts[:alias_]
  self.backup = opts[:backup]
  self.backup_mode = opts[:backup_mode]
  self.bootable = opts[:bootable]
  self.content_type = opts[:content_type]
  self.disk_profile = opts[:disk_profile]
  self.disk_snapshots = opts[:disk_snapshots]
  self.external_disk = opts[:external_disk]
  self.format = opts[:format]
  self.image_id = opts[:image_id]
  self.initial_size = opts[:initial_size]
  self.interface = opts[:interface]
  self.logical_name = opts[:logical_name]
  self.lun_storage = opts[:lun_storage]
  self.openstack_volume_type = opts[:openstack_volume_type]
  self.permissions = opts[:permissions]
  self.propagate_errors = opts[:propagate_errors]
  self.provisioned_size = opts[:provisioned_size]
  self.qcow_version = opts[:qcow_version]
  self.quota = opts[:quota]
  self.read_only = opts[:read_only]
  self.sgio = opts[:sgio]
  self.shareable = opts[:shareable]
  self.snapshot = opts[:snapshot]
  self.sparse = opts[:sparse]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.storage_domain = opts[:storage_domain]
  self.storage_domains = opts[:storage_domains]
  self.storage_type = opts[:storage_type]
  self.total_size = opts[:total_size]
  self.uses_scsi_reservation = opts[:uses_scsi_reservation]
  self.wipe_after_delete = opts[:wipe_after_delete]
end

Instance Method Details

#==(other) ⇒ Object

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



37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
# File 'lib/ovirtsdk4/types.rb', line 37383

def ==(other)
  super &&
  @active == other.active &&
  @actual_size == other.actual_size &&
  @alias_ == other.alias_ &&
  @backup == other.backup &&
  @backup_mode == other.backup_mode &&
  @bootable == other.bootable &&
  @content_type == other.content_type &&
  @disk_profile == other.disk_profile &&
  @disk_snapshots == other.disk_snapshots &&
  @external_disk == other.external_disk &&
  @format == other.format &&
  @image_id == other.image_id &&
  @initial_size == other.initial_size &&
  @interface == other.interface &&
  @logical_name == other.logical_name &&
  @lun_storage == other.lun_storage &&
  @openstack_volume_type == other.openstack_volume_type &&
  @permissions == other.permissions &&
  @propagate_errors == other.propagate_errors &&
  @provisioned_size == other.provisioned_size &&
  @qcow_version == other.qcow_version &&
  @quota == other.quota &&
  @read_only == other.read_only &&
  @sgio == other.sgio &&
  @shareable == other.shareable &&
  @snapshot == other.snapshot &&
  @sparse == other.sparse &&
  @statistics == other.statistics &&
  @status == other.status &&
  @storage_domain == other.storage_domain &&
  @storage_domains == other.storage_domains &&
  @storage_type == other.storage_type &&
  @total_size == other.total_size &&
  @uses_scsi_reservation == other.uses_scsi_reservation &&
  @wipe_after_delete == other.wipe_after_delete
end

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)


36375
36376
36377
# File 'lib/ovirtsdk4/types.rb', line 36375

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


36384
36385
36386
# File 'lib/ovirtsdk4/types.rb', line 36384

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)


36393
36394
36395
# File 'lib/ovirtsdk4/types.rb', line 36393

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)


36402
36403
36404
# File 'lib/ovirtsdk4/types.rb', line 36402

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)


36411
36412
36413
# File 'lib/ovirtsdk4/types.rb', line 36411

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)


36420
36421
36422
# File 'lib/ovirtsdk4/types.rb', line 36420

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:



36429
36430
36431
# File 'lib/ovirtsdk4/types.rb', line 36429

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:



36438
36439
36440
# File 'lib/ovirtsdk4/types.rb', line 36438

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:



36447
36448
36449
# File 'lib/ovirtsdk4/types.rb', line 36447

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:



36456
36457
36458
# File 'lib/ovirtsdk4/types.rb', line 36456

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)


36465
36466
36467
# File 'lib/ovirtsdk4/types.rb', line 36465

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)


36474
36475
36476
# File 'lib/ovirtsdk4/types.rb', line 36474

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


36483
36484
36485
# File 'lib/ovirtsdk4/types.rb', line 36483

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


36492
36493
36494
# File 'lib/ovirtsdk4/types.rb', line 36492

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:



36501
36502
36503
# File 'lib/ovirtsdk4/types.rb', line 36501

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:



36510
36511
36512
# File 'lib/ovirtsdk4/types.rb', line 36510

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


36519
36520
36521
# File 'lib/ovirtsdk4/types.rb', line 36519

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


36528
36529
36530
# File 'lib/ovirtsdk4/types.rb', line 36528

def description=(value)
  @description = value
end

#disk_profileDiskProfile

Returns the value of the disk_profile attribute.

Returns:



36537
36538
36539
# File 'lib/ovirtsdk4/types.rb', line 36537

def disk_profile
  @disk_profile
end

#disk_profile=(value) ⇒ Object

Sets the value of the disk_profile attribute.

The value parameter can be an instance of OvirtSDK4::DiskProfile or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36550
36551
36552
36553
36554
36555
# File 'lib/ovirtsdk4/types.rb', line 36550

def disk_profile=(value)
  if value.is_a?(Hash)
    value = DiskProfile.new(value)
  end
  @disk_profile = value
end

#disk_snapshotsArray<DiskSnapshot>

Returns the value of the disk_snapshots attribute.

Returns:



36562
36563
36564
# File 'lib/ovirtsdk4/types.rb', line 36562

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:



36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
# File 'lib/ovirtsdk4/types.rb', line 36571

def disk_snapshots=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = DiskSnapshot.new(value)
      end
    end
  end
  @disk_snapshots = list
end

#external_diskString

Returns the value of the external_disk attribute.

Returns:

  • (String)


36588
36589
36590
# File 'lib/ovirtsdk4/types.rb', line 36588

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)


36597
36598
36599
# File 'lib/ovirtsdk4/types.rb', line 36597

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:



36606
36607
36608
# File 'lib/ovirtsdk4/types.rb', line 36606

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:



36615
36616
36617
# File 'lib/ovirtsdk4/types.rb', line 36615

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.



37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
# File 'lib/ovirtsdk4/types.rb', line 37425

def hash
  super +
  @active.hash +
  @actual_size.hash +
  @alias_.hash +
  @backup.hash +
  @backup_mode.hash +
  @bootable.hash +
  @content_type.hash +
  @disk_profile.hash +
  @disk_snapshots.hash +
  @external_disk.hash +
  @format.hash +
  @image_id.hash +
  @initial_size.hash +
  @interface.hash +
  @logical_name.hash +
  @lun_storage.hash +
  @openstack_volume_type.hash +
  @permissions.hash +
  @propagate_errors.hash +
  @provisioned_size.hash +
  @qcow_version.hash +
  @quota.hash +
  @read_only.hash +
  @sgio.hash +
  @shareable.hash +
  @snapshot.hash +
  @sparse.hash +
  @statistics.hash +
  @status.hash +
  @storage_domain.hash +
  @storage_domains.hash +
  @storage_type.hash +
  @total_size.hash +
  @uses_scsi_reservation.hash +
  @wipe_after_delete.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


36624
36625
36626
# File 'lib/ovirtsdk4/types.rb', line 36624

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


36633
36634
36635
# File 'lib/ovirtsdk4/types.rb', line 36633

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)


36642
36643
36644
# File 'lib/ovirtsdk4/types.rb', line 36642

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)


36651
36652
36653
# File 'lib/ovirtsdk4/types.rb', line 36651

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)


36660
36661
36662
# File 'lib/ovirtsdk4/types.rb', line 36660

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)


36669
36670
36671
# File 'lib/ovirtsdk4/types.rb', line 36669

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



36678
36679
36680
# File 'lib/ovirtsdk4/types.rb', line 36678

def instance_type
  @instance_type
end

#instance_type=(value) ⇒ Object

Sets the value of the instance_type attribute.

The value parameter can be an instance of InstanceType or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36691
36692
36693
36694
36695
36696
# File 'lib/ovirtsdk4/types.rb', line 36691

def instance_type=(value)
  if value.is_a?(Hash)
    value = InstanceType.new(value)
  end
  @instance_type = value
end

#interfaceDiskInterface

Returns the value of the interface attribute.

Returns:



36703
36704
36705
# File 'lib/ovirtsdk4/types.rb', line 36703

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:



36712
36713
36714
# File 'lib/ovirtsdk4/types.rb', line 36712

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)


36721
36722
36723
# File 'lib/ovirtsdk4/types.rb', line 36721

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)


36730
36731
36732
# File 'lib/ovirtsdk4/types.rb', line 36730

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:



36739
36740
36741
# File 'lib/ovirtsdk4/types.rb', line 36739

def lun_storage
  @lun_storage
end

#lun_storage=(value) ⇒ Object

Sets the value of the lun_storage attribute.

The value parameter can be an instance of HostStorage or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36752
36753
36754
36755
36756
36757
# File 'lib/ovirtsdk4/types.rb', line 36752

def lun_storage=(value)
  if value.is_a?(Hash)
    value = HostStorage.new(value)
  end
  @lun_storage = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


36764
36765
36766
# File 'lib/ovirtsdk4/types.rb', line 36764

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


36773
36774
36775
# File 'lib/ovirtsdk4/types.rb', line 36773

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:



36782
36783
36784
# File 'lib/ovirtsdk4/types.rb', line 36782

def openstack_volume_type
  @openstack_volume_type
end

#openstack_volume_type=(value) ⇒ Object

Sets the value of the openstack_volume_type attribute.

The value parameter can be an instance of OpenStackVolumeType or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36795
36796
36797
36798
36799
36800
# File 'lib/ovirtsdk4/types.rb', line 36795

def openstack_volume_type=(value)
  if value.is_a?(Hash)
    value = OpenStackVolumeType.new(value)
  end
  @openstack_volume_type = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



36807
36808
36809
# File 'lib/ovirtsdk4/types.rb', line 36807

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
# File 'lib/ovirtsdk4/types.rb', line 36816

def permissions=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Permission.new(value)
      end
    end
  end
  @permissions = list
end

#propagate_errorsBoolean

Returns the value of the propagate_errors attribute.

Returns:

  • (Boolean)


36833
36834
36835
# File 'lib/ovirtsdk4/types.rb', line 36833

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)


36842
36843
36844
# File 'lib/ovirtsdk4/types.rb', line 36842

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)


36851
36852
36853
# File 'lib/ovirtsdk4/types.rb', line 36851

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)


36860
36861
36862
# File 'lib/ovirtsdk4/types.rb', line 36860

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:



36869
36870
36871
# File 'lib/ovirtsdk4/types.rb', line 36869

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:



36878
36879
36880
# File 'lib/ovirtsdk4/types.rb', line 36878

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



36887
36888
36889
# File 'lib/ovirtsdk4/types.rb', line 36887

def quota
  @quota
end

#quota=(value) ⇒ Object

Sets the value of the quota attribute.

The value parameter can be an instance of Quota or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36900
36901
36902
36903
36904
36905
# File 'lib/ovirtsdk4/types.rb', line 36900

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

#read_onlyBoolean

Returns the value of the read_only attribute.

Returns:

  • (Boolean)


36912
36913
36914
# File 'lib/ovirtsdk4/types.rb', line 36912

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


36921
36922
36923
# File 'lib/ovirtsdk4/types.rb', line 36921

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:



36930
36931
36932
# File 'lib/ovirtsdk4/types.rb', line 36930

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:



36939
36940
36941
# File 'lib/ovirtsdk4/types.rb', line 36939

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)


36948
36949
36950
# File 'lib/ovirtsdk4/types.rb', line 36948

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)


36957
36958
36959
# File 'lib/ovirtsdk4/types.rb', line 36957

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:



36966
36967
36968
# File 'lib/ovirtsdk4/types.rb', line 36966

def snapshot
  @snapshot
end

#snapshot=(value) ⇒ Object

Sets the value of the snapshot attribute.

The value parameter can be an instance of Snapshot or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



36979
36980
36981
36982
36983
36984
# File 'lib/ovirtsdk4/types.rb', line 36979

def snapshot=(value)
  if value.is_a?(Hash)
    value = Snapshot.new(value)
  end
  @snapshot = value
end

#sparseBoolean

Returns the value of the sparse attribute.

Returns:

  • (Boolean)


36991
36992
36993
# File 'lib/ovirtsdk4/types.rb', line 36991

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)


37000
37001
37002
# File 'lib/ovirtsdk4/types.rb', line 37000

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



37009
37010
37011
# File 'lib/ovirtsdk4/types.rb', line 37009

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
# File 'lib/ovirtsdk4/types.rb', line 37018

def statistics=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Statistic.new(value)
      end
    end
  end
  @statistics = list
end

#statusDiskStatus

Returns the value of the status attribute.

Returns:



37035
37036
37037
# File 'lib/ovirtsdk4/types.rb', line 37035

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



37044
37045
37046
# File 'lib/ovirtsdk4/types.rb', line 37044

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



37053
37054
37055
# File 'lib/ovirtsdk4/types.rb', line 37053

def storage_domain
  @storage_domain
end

#storage_domain=(value) ⇒ Object

Sets the value of the storage_domain attribute.

The value parameter can be an instance of StorageDomain or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



37066
37067
37068
37069
37070
37071
# File 'lib/ovirtsdk4/types.rb', line 37066

def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end

#storage_domainsArray<StorageDomain>

Returns the value of the storage_domains attribute.

Returns:



37078
37079
37080
# File 'lib/ovirtsdk4/types.rb', line 37078

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:



37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
# File 'lib/ovirtsdk4/types.rb', line 37087

def storage_domains=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = StorageDomain.new(value)
      end
    end
  end
  @storage_domains = list
end

#storage_typeDiskStorageType

Returns the value of the storage_type attribute.

Returns:



37104
37105
37106
# File 'lib/ovirtsdk4/types.rb', line 37104

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:



37113
37114
37115
# File 'lib/ovirtsdk4/types.rb', line 37113

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:



37122
37123
37124
# File 'lib/ovirtsdk4/types.rb', line 37122

def template
  @template
end

#template=(value) ⇒ Object

Sets the value of the template attribute.

The value parameter can be an instance of Template or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



37135
37136
37137
37138
37139
37140
# File 'lib/ovirtsdk4/types.rb', line 37135

def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

#total_sizeInteger

Returns the value of the total_size attribute.

Returns:

  • (Integer)


37147
37148
37149
# File 'lib/ovirtsdk4/types.rb', line 37147

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)


37156
37157
37158
# File 'lib/ovirtsdk4/types.rb', line 37156

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)


37165
37166
37167
# File 'lib/ovirtsdk4/types.rb', line 37165

def uses_scsi_reservation
  @uses_scsi_reservation
end

#uses_scsi_reservation=(value) ⇒ Object

Sets the value of the uses_scsi_reservation attribute.

Parameters:

  • value (Boolean)


37174
37175
37176
# File 'lib/ovirtsdk4/types.rb', line 37174

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



37183
37184
37185
# File 'lib/ovirtsdk4/types.rb', line 37183

def vm
  @vm
end

#vm=(value) ⇒ Object

Sets the value of the vm attribute.

The value parameter can be an instance of Vm or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:

  • value (Vm, Hash)


37196
37197
37198
37199
37200
37201
# File 'lib/ovirtsdk4/types.rb', line 37196

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end

#vmsArray<Vm>

Returns the value of the vms attribute.

Returns:

  • (Array<Vm>)


37208
37209
37210
# File 'lib/ovirtsdk4/types.rb', line 37208

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)


37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
# File 'lib/ovirtsdk4/types.rb', line 37217

def vms=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Vm.new(value)
      end
    end
  end
  @vms = list
end

#wipe_after_deleteBoolean

Returns the value of the wipe_after_delete attribute.

Returns:

  • (Boolean)


37234
37235
37236
# File 'lib/ovirtsdk4/types.rb', line 37234

def wipe_after_delete
  @wipe_after_delete
end

#wipe_after_delete=(value) ⇒ Object

Sets the value of the wipe_after_delete attribute.

Parameters:

  • value (Boolean)


37243
37244
37245
# File 'lib/ovirtsdk4/types.rb', line 37243

def wipe_after_delete=(value)
  @wipe_after_delete = value
end