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.



37907
37908
37909
37910
37911
# File 'lib/ovirtsdk4/types.rb', line 37907

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.



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

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

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)


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

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


36896
36897
36898
# File 'lib/ovirtsdk4/types.rb', line 36896

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)


36905
36906
36907
# File 'lib/ovirtsdk4/types.rb', line 36905

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)


36914
36915
36916
# File 'lib/ovirtsdk4/types.rb', line 36914

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)


36923
36924
36925
# File 'lib/ovirtsdk4/types.rb', line 36923

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)


36932
36933
36934
# File 'lib/ovirtsdk4/types.rb', line 36932

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:



36941
36942
36943
# File 'lib/ovirtsdk4/types.rb', line 36941

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:



36950
36951
36952
# File 'lib/ovirtsdk4/types.rb', line 36950

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:



36959
36960
36961
# File 'lib/ovirtsdk4/types.rb', line 36959

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:



36968
36969
36970
# File 'lib/ovirtsdk4/types.rb', line 36968

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)


36977
36978
36979
# File 'lib/ovirtsdk4/types.rb', line 36977

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)


36986
36987
36988
# File 'lib/ovirtsdk4/types.rb', line 36986

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


36995
36996
36997
# File 'lib/ovirtsdk4/types.rb', line 36995

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


37004
37005
37006
# File 'lib/ovirtsdk4/types.rb', line 37004

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:



37013
37014
37015
# File 'lib/ovirtsdk4/types.rb', line 37013

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:



37022
37023
37024
# File 'lib/ovirtsdk4/types.rb', line 37022

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


37031
37032
37033
# File 'lib/ovirtsdk4/types.rb', line 37031

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


37040
37041
37042
# File 'lib/ovirtsdk4/types.rb', line 37040

def description=(value)
  @description = value
end

#diskDisk

Returns the value of the disk attribute.

Returns:



37049
37050
37051
# File 'lib/ovirtsdk4/types.rb', line 37049

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)


37062
37063
37064
37065
37066
37067
# File 'lib/ovirtsdk4/types.rb', line 37062

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:



37074
37075
37076
# File 'lib/ovirtsdk4/types.rb', line 37074

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:



37087
37088
37089
37090
37091
37092
# File 'lib/ovirtsdk4/types.rb', line 37087

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:



37099
37100
37101
# File 'lib/ovirtsdk4/types.rb', line 37099

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:



37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
# File 'lib/ovirtsdk4/types.rb', line 37108

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)


37125
37126
37127
# File 'lib/ovirtsdk4/types.rb', line 37125

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)


37134
37135
37136
# File 'lib/ovirtsdk4/types.rb', line 37134

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:



37143
37144
37145
# File 'lib/ovirtsdk4/types.rb', line 37143

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:



37152
37153
37154
# File 'lib/ovirtsdk4/types.rb', line 37152

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.



37925
37926
37927
37928
37929
# File 'lib/ovirtsdk4/types.rb', line 37925

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


37161
37162
37163
# File 'lib/ovirtsdk4/types.rb', line 37161

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


37170
37171
37172
# File 'lib/ovirtsdk4/types.rb', line 37170

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)


37179
37180
37181
# File 'lib/ovirtsdk4/types.rb', line 37179

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)


37188
37189
37190
# File 'lib/ovirtsdk4/types.rb', line 37188

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)


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

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)


37206
37207
37208
# File 'lib/ovirtsdk4/types.rb', line 37206

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



37215
37216
37217
# File 'lib/ovirtsdk4/types.rb', line 37215

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:



37228
37229
37230
37231
37232
37233
# File 'lib/ovirtsdk4/types.rb', line 37228

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:



37240
37241
37242
# File 'lib/ovirtsdk4/types.rb', line 37240

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:



37249
37250
37251
# File 'lib/ovirtsdk4/types.rb', line 37249

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)


37258
37259
37260
# File 'lib/ovirtsdk4/types.rb', line 37258

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)


37267
37268
37269
# File 'lib/ovirtsdk4/types.rb', line 37267

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:



37276
37277
37278
# File 'lib/ovirtsdk4/types.rb', line 37276

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:



37289
37290
37291
37292
37293
37294
# File 'lib/ovirtsdk4/types.rb', line 37289

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)


37301
37302
37303
# File 'lib/ovirtsdk4/types.rb', line 37301

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


37310
37311
37312
# File 'lib/ovirtsdk4/types.rb', line 37310

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:



37319
37320
37321
# File 'lib/ovirtsdk4/types.rb', line 37319

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:



37332
37333
37334
37335
37336
37337
# File 'lib/ovirtsdk4/types.rb', line 37332

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:



37344
37345
37346
# File 'lib/ovirtsdk4/types.rb', line 37344

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:



37357
37358
37359
37360
37361
37362
# File 'lib/ovirtsdk4/types.rb', line 37357

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:



37369
37370
37371
# File 'lib/ovirtsdk4/types.rb', line 37369

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
# File 'lib/ovirtsdk4/types.rb', line 37378

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)


37395
37396
37397
# File 'lib/ovirtsdk4/types.rb', line 37395

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)


37404
37405
37406
# File 'lib/ovirtsdk4/types.rb', line 37404

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)


37413
37414
37415
# File 'lib/ovirtsdk4/types.rb', line 37413

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)


37422
37423
37424
# File 'lib/ovirtsdk4/types.rb', line 37422

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:



37431
37432
37433
# File 'lib/ovirtsdk4/types.rb', line 37431

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:



37440
37441
37442
# File 'lib/ovirtsdk4/types.rb', line 37440

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



37449
37450
37451
# File 'lib/ovirtsdk4/types.rb', line 37449

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:



37462
37463
37464
37465
37466
37467
# File 'lib/ovirtsdk4/types.rb', line 37462

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)


37474
37475
37476
# File 'lib/ovirtsdk4/types.rb', line 37474

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


37483
37484
37485
# File 'lib/ovirtsdk4/types.rb', line 37483

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:



37492
37493
37494
# File 'lib/ovirtsdk4/types.rb', line 37492

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:



37501
37502
37503
# File 'lib/ovirtsdk4/types.rb', line 37501

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)


37510
37511
37512
# File 'lib/ovirtsdk4/types.rb', line 37510

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)


37519
37520
37521
# File 'lib/ovirtsdk4/types.rb', line 37519

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:



37528
37529
37530
# File 'lib/ovirtsdk4/types.rb', line 37528

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:



37541
37542
37543
37544
37545
37546
# File 'lib/ovirtsdk4/types.rb', line 37541

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)


37553
37554
37555
# File 'lib/ovirtsdk4/types.rb', line 37553

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)


37562
37563
37564
# File 'lib/ovirtsdk4/types.rb', line 37562

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



37571
37572
37573
# File 'lib/ovirtsdk4/types.rb', line 37571

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
# File 'lib/ovirtsdk4/types.rb', line 37580

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:



37597
37598
37599
# File 'lib/ovirtsdk4/types.rb', line 37597

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



37606
37607
37608
# File 'lib/ovirtsdk4/types.rb', line 37606

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



37615
37616
37617
# File 'lib/ovirtsdk4/types.rb', line 37615

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:



37628
37629
37630
37631
37632
37633
# File 'lib/ovirtsdk4/types.rb', line 37628

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:



37640
37641
37642
# File 'lib/ovirtsdk4/types.rb', line 37640

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:



37649
37650
37651
37652
37653
37654
37655
37656
37657
37658
37659
# File 'lib/ovirtsdk4/types.rb', line 37649

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:



37666
37667
37668
# File 'lib/ovirtsdk4/types.rb', line 37666

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:



37675
37676
37677
# File 'lib/ovirtsdk4/types.rb', line 37675

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:



37684
37685
37686
# File 'lib/ovirtsdk4/types.rb', line 37684

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:



37697
37698
37699
37700
37701
37702
# File 'lib/ovirtsdk4/types.rb', line 37697

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)


37709
37710
37711
# File 'lib/ovirtsdk4/types.rb', line 37709

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)


37718
37719
37720
# File 'lib/ovirtsdk4/types.rb', line 37718

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)


37727
37728
37729
# File 'lib/ovirtsdk4/types.rb', line 37727

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)


37736
37737
37738
# File 'lib/ovirtsdk4/types.rb', line 37736

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



37745
37746
37747
# File 'lib/ovirtsdk4/types.rb', line 37745

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)


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

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


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

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)


37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
# File 'lib/ovirtsdk4/types.rb', line 37779

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)


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

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)


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

def wipe_after_delete=(value)
  @wipe_after_delete = value
end