Class: OvirtSDK4::DiskSnapshot

Inherits:
Disk 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 = {}) ⇒ DiskSnapshot

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

    The value of attribute disk.

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

  • :parent (DiskSnapshot, Hash)

    The value of attribute parent.

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



38762
38763
38764
38765
38766
# File 'lib/ovirtsdk4/types.rb', line 38762

def initialize(opts = {})
  super(opts)
  self.disk = opts[:disk]
  self.parent = opts[:parent]
end

Instance Method Details

#==(other) ⇒ Object

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



38771
38772
38773
38774
38775
# File 'lib/ovirtsdk4/types.rb', line 38771

def ==(other)
  super &&
  @disk == other.disk &&
  @parent == other.parent
end

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)


37742
37743
37744
# File 'lib/ovirtsdk4/types.rb', line 37742

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


37751
37752
37753
# File 'lib/ovirtsdk4/types.rb', line 37751

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)


37760
37761
37762
# File 'lib/ovirtsdk4/types.rb', line 37760

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)


37769
37770
37771
# File 'lib/ovirtsdk4/types.rb', line 37769

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)


37778
37779
37780
# File 'lib/ovirtsdk4/types.rb', line 37778

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)


37787
37788
37789
# File 'lib/ovirtsdk4/types.rb', line 37787

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:



37796
37797
37798
# File 'lib/ovirtsdk4/types.rb', line 37796

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:



37805
37806
37807
# File 'lib/ovirtsdk4/types.rb', line 37805

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:



37814
37815
37816
# File 'lib/ovirtsdk4/types.rb', line 37814

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:



37823
37824
37825
# File 'lib/ovirtsdk4/types.rb', line 37823

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)


37832
37833
37834
# File 'lib/ovirtsdk4/types.rb', line 37832

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)


37841
37842
37843
# File 'lib/ovirtsdk4/types.rb', line 37841

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


37850
37851
37852
# File 'lib/ovirtsdk4/types.rb', line 37850

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


37859
37860
37861
# File 'lib/ovirtsdk4/types.rb', line 37859

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:



37868
37869
37870
# File 'lib/ovirtsdk4/types.rb', line 37868

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:



37877
37878
37879
# File 'lib/ovirtsdk4/types.rb', line 37877

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


37886
37887
37888
# File 'lib/ovirtsdk4/types.rb', line 37886

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


37895
37896
37897
# File 'lib/ovirtsdk4/types.rb', line 37895

def description=(value)
  @description = value
end

#diskDisk

Returns the value of the disk attribute.

Returns:



37904
37905
37906
# File 'lib/ovirtsdk4/types.rb', line 37904

def disk
  @disk
end

#disk=(value) ⇒ Object

Sets the value of the disk attribute.

The value parameter can be an instance of OvirtSDK4::Disk 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 (Disk, Hash)


37917
37918
37919
37920
37921
37922
# File 'lib/ovirtsdk4/types.rb', line 37917

def disk=(value)
  if value.is_a?(Hash)
    value = Disk.new(value)
  end
  @disk = value
end

#disk_profileDiskProfile

Returns the value of the disk_profile attribute.

Returns:



37929
37930
37931
# File 'lib/ovirtsdk4/types.rb', line 37929

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:



37942
37943
37944
37945
37946
37947
# File 'lib/ovirtsdk4/types.rb', line 37942

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:



37954
37955
37956
# File 'lib/ovirtsdk4/types.rb', line 37954

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:



37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
# File 'lib/ovirtsdk4/types.rb', line 37963

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)


37980
37981
37982
# File 'lib/ovirtsdk4/types.rb', line 37980

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)


37989
37990
37991
# File 'lib/ovirtsdk4/types.rb', line 37989

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:



37998
37999
38000
# File 'lib/ovirtsdk4/types.rb', line 37998

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:



38007
38008
38009
# File 'lib/ovirtsdk4/types.rb', line 38007

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.



38780
38781
38782
38783
38784
# File 'lib/ovirtsdk4/types.rb', line 38780

def hash
  super +
  @disk.hash +
  @parent.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


38016
38017
38018
# File 'lib/ovirtsdk4/types.rb', line 38016

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


38025
38026
38027
# File 'lib/ovirtsdk4/types.rb', line 38025

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)


38034
38035
38036
# File 'lib/ovirtsdk4/types.rb', line 38034

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)


38043
38044
38045
# File 'lib/ovirtsdk4/types.rb', line 38043

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)


38052
38053
38054
# File 'lib/ovirtsdk4/types.rb', line 38052

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)


38061
38062
38063
# File 'lib/ovirtsdk4/types.rb', line 38061

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



38070
38071
38072
# File 'lib/ovirtsdk4/types.rb', line 38070

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:



38083
38084
38085
38086
38087
38088
# File 'lib/ovirtsdk4/types.rb', line 38083

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:



38095
38096
38097
# File 'lib/ovirtsdk4/types.rb', line 38095

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:



38104
38105
38106
# File 'lib/ovirtsdk4/types.rb', line 38104

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)


38113
38114
38115
# File 'lib/ovirtsdk4/types.rb', line 38113

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)


38122
38123
38124
# File 'lib/ovirtsdk4/types.rb', line 38122

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:



38131
38132
38133
# File 'lib/ovirtsdk4/types.rb', line 38131

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:



38144
38145
38146
38147
38148
38149
# File 'lib/ovirtsdk4/types.rb', line 38144

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)


38156
38157
38158
# File 'lib/ovirtsdk4/types.rb', line 38156

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


38165
38166
38167
# File 'lib/ovirtsdk4/types.rb', line 38165

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:



38174
38175
38176
# File 'lib/ovirtsdk4/types.rb', line 38174

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:



38187
38188
38189
38190
38191
38192
# File 'lib/ovirtsdk4/types.rb', line 38187

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

#parentDiskSnapshot

Returns the value of the parent attribute.

Returns:



38199
38200
38201
# File 'lib/ovirtsdk4/types.rb', line 38199

def parent
  @parent
end

#parent=(value) ⇒ Object

Sets the value of the parent attribute.

The value parameter can be an instance of OvirtSDK4::DiskSnapshot 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:



38212
38213
38214
38215
38216
38217
# File 'lib/ovirtsdk4/types.rb', line 38212

def parent=(value)
  if value.is_a?(Hash)
    value = DiskSnapshot.new(value)
  end
  @parent = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



38224
38225
38226
# File 'lib/ovirtsdk4/types.rb', line 38224

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



38233
38234
38235
38236
38237
38238
38239
38240
38241
38242
38243
# File 'lib/ovirtsdk4/types.rb', line 38233

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)


38250
38251
38252
# File 'lib/ovirtsdk4/types.rb', line 38250

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)


38259
38260
38261
# File 'lib/ovirtsdk4/types.rb', line 38259

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)


38268
38269
38270
# File 'lib/ovirtsdk4/types.rb', line 38268

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)


38277
38278
38279
# File 'lib/ovirtsdk4/types.rb', line 38277

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:



38286
38287
38288
# File 'lib/ovirtsdk4/types.rb', line 38286

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:



38295
38296
38297
# File 'lib/ovirtsdk4/types.rb', line 38295

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



38304
38305
38306
# File 'lib/ovirtsdk4/types.rb', line 38304

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:



38317
38318
38319
38320
38321
38322
# File 'lib/ovirtsdk4/types.rb', line 38317

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)


38329
38330
38331
# File 'lib/ovirtsdk4/types.rb', line 38329

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


38338
38339
38340
# File 'lib/ovirtsdk4/types.rb', line 38338

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:



38347
38348
38349
# File 'lib/ovirtsdk4/types.rb', line 38347

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:



38356
38357
38358
# File 'lib/ovirtsdk4/types.rb', line 38356

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)


38365
38366
38367
# File 'lib/ovirtsdk4/types.rb', line 38365

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)


38374
38375
38376
# File 'lib/ovirtsdk4/types.rb', line 38374

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:



38383
38384
38385
# File 'lib/ovirtsdk4/types.rb', line 38383

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:



38396
38397
38398
38399
38400
38401
# File 'lib/ovirtsdk4/types.rb', line 38396

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)


38408
38409
38410
# File 'lib/ovirtsdk4/types.rb', line 38408

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)


38417
38418
38419
# File 'lib/ovirtsdk4/types.rb', line 38417

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



38426
38427
38428
# File 'lib/ovirtsdk4/types.rb', line 38426

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



38435
38436
38437
38438
38439
38440
38441
38442
38443
38444
38445
# File 'lib/ovirtsdk4/types.rb', line 38435

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:



38452
38453
38454
# File 'lib/ovirtsdk4/types.rb', line 38452

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



38461
38462
38463
# File 'lib/ovirtsdk4/types.rb', line 38461

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



38470
38471
38472
# File 'lib/ovirtsdk4/types.rb', line 38470

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:



38483
38484
38485
38486
38487
38488
# File 'lib/ovirtsdk4/types.rb', line 38483

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:



38495
38496
38497
# File 'lib/ovirtsdk4/types.rb', line 38495

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:



38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
# File 'lib/ovirtsdk4/types.rb', line 38504

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:



38521
38522
38523
# File 'lib/ovirtsdk4/types.rb', line 38521

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:



38530
38531
38532
# File 'lib/ovirtsdk4/types.rb', line 38530

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:



38539
38540
38541
# File 'lib/ovirtsdk4/types.rb', line 38539

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:



38552
38553
38554
38555
38556
38557
# File 'lib/ovirtsdk4/types.rb', line 38552

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)


38564
38565
38566
# File 'lib/ovirtsdk4/types.rb', line 38564

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)


38573
38574
38575
# File 'lib/ovirtsdk4/types.rb', line 38573

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)


38582
38583
38584
# File 'lib/ovirtsdk4/types.rb', line 38582

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)


38591
38592
38593
# File 'lib/ovirtsdk4/types.rb', line 38591

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



38600
38601
38602
# File 'lib/ovirtsdk4/types.rb', line 38600

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)


38613
38614
38615
38616
38617
38618
# File 'lib/ovirtsdk4/types.rb', line 38613

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>)


38625
38626
38627
# File 'lib/ovirtsdk4/types.rb', line 38625

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)


38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
# File 'lib/ovirtsdk4/types.rb', line 38634

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)


38651
38652
38653
# File 'lib/ovirtsdk4/types.rb', line 38651

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)


38660
38661
38662
# File 'lib/ovirtsdk4/types.rb', line 38660

def wipe_after_delete=(value)
  @wipe_after_delete = value
end