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.



39055
39056
39057
39058
39059
# File 'lib/ovirtsdk4/types.rb', line 39055

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.



39064
39065
39066
39067
39068
# File 'lib/ovirtsdk4/types.rb', line 39064

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

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)


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

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


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

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)


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

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)


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

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)


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

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)


38080
38081
38082
# File 'lib/ovirtsdk4/types.rb', line 38080

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:



38089
38090
38091
# File 'lib/ovirtsdk4/types.rb', line 38089

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:



38098
38099
38100
# File 'lib/ovirtsdk4/types.rb', line 38098

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:



38107
38108
38109
# File 'lib/ovirtsdk4/types.rb', line 38107

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:



38116
38117
38118
# File 'lib/ovirtsdk4/types.rb', line 38116

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)


38125
38126
38127
# File 'lib/ovirtsdk4/types.rb', line 38125

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)


38134
38135
38136
# File 'lib/ovirtsdk4/types.rb', line 38134

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


38143
38144
38145
# File 'lib/ovirtsdk4/types.rb', line 38143

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


38152
38153
38154
# File 'lib/ovirtsdk4/types.rb', line 38152

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:



38161
38162
38163
# File 'lib/ovirtsdk4/types.rb', line 38161

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:



38170
38171
38172
# File 'lib/ovirtsdk4/types.rb', line 38170

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


38179
38180
38181
# File 'lib/ovirtsdk4/types.rb', line 38179

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


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

def description=(value)
  @description = value
end

#diskDisk

Returns the value of the disk attribute.

Returns:



38197
38198
38199
# File 'lib/ovirtsdk4/types.rb', line 38197

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)


38210
38211
38212
38213
38214
38215
# File 'lib/ovirtsdk4/types.rb', line 38210

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:



38222
38223
38224
# File 'lib/ovirtsdk4/types.rb', line 38222

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:



38235
38236
38237
38238
38239
38240
# File 'lib/ovirtsdk4/types.rb', line 38235

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:



38247
38248
38249
# File 'lib/ovirtsdk4/types.rb', line 38247

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:



38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
# File 'lib/ovirtsdk4/types.rb', line 38256

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)


38273
38274
38275
# File 'lib/ovirtsdk4/types.rb', line 38273

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)


38282
38283
38284
# File 'lib/ovirtsdk4/types.rb', line 38282

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:



38291
38292
38293
# File 'lib/ovirtsdk4/types.rb', line 38291

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:



38300
38301
38302
# File 'lib/ovirtsdk4/types.rb', line 38300

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.



39073
39074
39075
39076
39077
# File 'lib/ovirtsdk4/types.rb', line 39073

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


38309
38310
38311
# File 'lib/ovirtsdk4/types.rb', line 38309

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


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

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)


38327
38328
38329
# File 'lib/ovirtsdk4/types.rb', line 38327

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)


38336
38337
38338
# File 'lib/ovirtsdk4/types.rb', line 38336

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)


38345
38346
38347
# File 'lib/ovirtsdk4/types.rb', line 38345

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)


38354
38355
38356
# File 'lib/ovirtsdk4/types.rb', line 38354

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



38363
38364
38365
# File 'lib/ovirtsdk4/types.rb', line 38363

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:



38376
38377
38378
38379
38380
38381
# File 'lib/ovirtsdk4/types.rb', line 38376

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:



38388
38389
38390
# File 'lib/ovirtsdk4/types.rb', line 38388

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:



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

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)


38406
38407
38408
# File 'lib/ovirtsdk4/types.rb', line 38406

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)


38415
38416
38417
# File 'lib/ovirtsdk4/types.rb', line 38415

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:



38424
38425
38426
# File 'lib/ovirtsdk4/types.rb', line 38424

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:



38437
38438
38439
38440
38441
38442
# File 'lib/ovirtsdk4/types.rb', line 38437

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)


38449
38450
38451
# File 'lib/ovirtsdk4/types.rb', line 38449

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


38458
38459
38460
# File 'lib/ovirtsdk4/types.rb', line 38458

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:



38467
38468
38469
# File 'lib/ovirtsdk4/types.rb', line 38467

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:



38480
38481
38482
38483
38484
38485
# File 'lib/ovirtsdk4/types.rb', line 38480

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:



38492
38493
38494
# File 'lib/ovirtsdk4/types.rb', line 38492

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:



38505
38506
38507
38508
38509
38510
# File 'lib/ovirtsdk4/types.rb', line 38505

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:



38517
38518
38519
# File 'lib/ovirtsdk4/types.rb', line 38517

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
# File 'lib/ovirtsdk4/types.rb', line 38526

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)


38543
38544
38545
# File 'lib/ovirtsdk4/types.rb', line 38543

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)


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

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)


38561
38562
38563
# File 'lib/ovirtsdk4/types.rb', line 38561

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)


38570
38571
38572
# File 'lib/ovirtsdk4/types.rb', line 38570

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:



38579
38580
38581
# File 'lib/ovirtsdk4/types.rb', line 38579

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:



38588
38589
38590
# File 'lib/ovirtsdk4/types.rb', line 38588

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



38597
38598
38599
# File 'lib/ovirtsdk4/types.rb', line 38597

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:



38610
38611
38612
38613
38614
38615
# File 'lib/ovirtsdk4/types.rb', line 38610

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)


38622
38623
38624
# File 'lib/ovirtsdk4/types.rb', line 38622

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


38631
38632
38633
# File 'lib/ovirtsdk4/types.rb', line 38631

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:



38640
38641
38642
# File 'lib/ovirtsdk4/types.rb', line 38640

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:



38649
38650
38651
# File 'lib/ovirtsdk4/types.rb', line 38649

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)


38658
38659
38660
# File 'lib/ovirtsdk4/types.rb', line 38658

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)


38667
38668
38669
# File 'lib/ovirtsdk4/types.rb', line 38667

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:



38676
38677
38678
# File 'lib/ovirtsdk4/types.rb', line 38676

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:



38689
38690
38691
38692
38693
38694
# File 'lib/ovirtsdk4/types.rb', line 38689

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)


38701
38702
38703
# File 'lib/ovirtsdk4/types.rb', line 38701

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)


38710
38711
38712
# File 'lib/ovirtsdk4/types.rb', line 38710

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



38719
38720
38721
# File 'lib/ovirtsdk4/types.rb', line 38719

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
# File 'lib/ovirtsdk4/types.rb', line 38728

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:



38745
38746
38747
# File 'lib/ovirtsdk4/types.rb', line 38745

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



38754
38755
38756
# File 'lib/ovirtsdk4/types.rb', line 38754

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



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

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:



38776
38777
38778
38779
38780
38781
# File 'lib/ovirtsdk4/types.rb', line 38776

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:



38788
38789
38790
# File 'lib/ovirtsdk4/types.rb', line 38788

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:



38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
# File 'lib/ovirtsdk4/types.rb', line 38797

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:



38814
38815
38816
# File 'lib/ovirtsdk4/types.rb', line 38814

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:



38823
38824
38825
# File 'lib/ovirtsdk4/types.rb', line 38823

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:



38832
38833
38834
# File 'lib/ovirtsdk4/types.rb', line 38832

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:



38845
38846
38847
38848
38849
38850
# File 'lib/ovirtsdk4/types.rb', line 38845

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)


38857
38858
38859
# File 'lib/ovirtsdk4/types.rb', line 38857

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)


38866
38867
38868
# File 'lib/ovirtsdk4/types.rb', line 38866

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)


38875
38876
38877
# File 'lib/ovirtsdk4/types.rb', line 38875

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)


38884
38885
38886
# File 'lib/ovirtsdk4/types.rb', line 38884

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



38893
38894
38895
# File 'lib/ovirtsdk4/types.rb', line 38893

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)


38906
38907
38908
38909
38910
38911
# File 'lib/ovirtsdk4/types.rb', line 38906

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


38918
38919
38920
# File 'lib/ovirtsdk4/types.rb', line 38918

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)


38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
# File 'lib/ovirtsdk4/types.rb', line 38927

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)


38944
38945
38946
# File 'lib/ovirtsdk4/types.rb', line 38944

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)


38953
38954
38955
# File 'lib/ovirtsdk4/types.rb', line 38953

def wipe_after_delete=(value)
  @wipe_after_delete = value
end