class OvirtSDK4::DiskSnapshot

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {DiskSnapshot} class.

@param opts [Hash] 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.

@option opts [Boolean] :active The value of attribute `active`.

@option opts [Integer] :actual_size The value of attribute `actual_size`.

@option opts [String] :alias_ The value of attribute `alias_`.

@option opts [DiskBackup] :backup The value of attribute `backup`.

@option opts [DiskBackupMode] :backup_mode The value of attribute `backup_mode`.

@option opts [Boolean] :bootable The value of attribute `bootable`.

@option opts [String] :comment The value of attribute `comment`.

@option opts [DiskContentType] :content_type The value of attribute `content_type`.

@option opts [String] :description The value of attribute `description`.

@option opts [Disk, Hash] :disk The value of attribute `disk`.

@option opts [DiskProfile, Hash] :disk_profile The value of attribute `disk_profile`.

@option opts [Array<DiskSnapshot>, Array<Hash>] :disk_snapshots The values of attribute `disk_snapshots`.

@option opts [String] :external_disk The value of attribute `external_disk`.

@option opts [DiskFormat] :format The value of attribute `format`.

@option opts [String] :id The value of attribute `id`.

@option opts [String] :image_id The value of attribute `image_id`.

@option opts [Integer] :initial_size The value of attribute `initial_size`.

@option opts [InstanceType, Hash] :instance_type The value of attribute `instance_type`.

@option opts [DiskInterface] :interface The value of attribute `interface`.

@option opts [String] :logical_name The value of attribute `logical_name`.

@option opts [HostStorage, Hash] :lun_storage The value of attribute `lun_storage`.

@option opts [String] :name The value of attribute `name`.

@option opts [OpenStackVolumeType, Hash] :openstack_volume_type The value of attribute `openstack_volume_type`.

@option opts [DiskSnapshot, Hash] :parent The value of attribute `parent`.

@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.

@option opts [Boolean] :propagate_errors The value of attribute `propagate_errors`.

@option opts [Integer] :provisioned_size The value of attribute `provisioned_size`.

@option opts [QcowVersion] :qcow_version The value of attribute `qcow_version`.

@option opts [Quota, Hash] :quota The value of attribute `quota`.

@option opts [Boolean] :read_only The value of attribute `read_only`.

@option opts [ScsiGenericIO] :sgio The value of attribute `sgio`.

@option opts [Boolean] :shareable The value of attribute `shareable`.

@option opts [Snapshot, Hash] :snapshot The value of attribute `snapshot`.

@option opts [Boolean] :sparse The value of attribute `sparse`.

@option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute `statistics`.

@option opts [DiskStatus] :status The value of attribute `status`.

@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.

@option opts [Array<StorageDomain>, Array<Hash>] :storage_domains The values of attribute `storage_domains`.

@option opts [DiskStorageType] :storage_type The value of attribute `storage_type`.

@option opts [Template, Hash] :template The value of attribute `template`.

@option opts [Integer] :total_size The value of attribute `total_size`.

@option opts [Boolean] :uses_scsi_reservation The value of attribute `uses_scsi_reservation`.

@option opts [Vm, Hash] :vm The value of attribute `vm`.

@option opts [Array<Vm>, Array<Hash>] :vms The values of attribute `vms`.

@option opts [Boolean] :wipe_after_delete The value of attribute `wipe_after_delete`.

Calls superclass method OvirtSDK4::Disk::new
# File lib/ovirtsdk4/types.rb, line 37907
def initialize(opts = {})
  super(opts)
  self.disk = opts[:disk]
  self.parent = opts[:parent]
end

Public Instance Methods

==(other) click to toggle source

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

Calls superclass method OvirtSDK4::Disk#==
# File lib/ovirtsdk4/types.rb, line 37916
def ==(other)
  super &&
  @disk == other.disk &&
  @parent == other.parent
end
active() click to toggle source

Returns the value of the `active` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 36887
def active
  @active
end
active=(value) click to toggle source

Sets the value of the `active` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 36896
def active=(value)
  @active = value
end
actual_size() click to toggle source

Returns the value of the `actual_size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 36905
def actual_size
  @actual_size
end
actual_size=(value) click to toggle source

Sets the value of the `actual_size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 36914
def actual_size=(value)
  @actual_size = value
end
alias_() click to toggle source

Returns the value of the `alias_` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 36923
def alias_
  @alias_
end
alias_=(value) click to toggle source

Sets the value of the `alias_` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 36932
def alias_=(value)
  @alias_ = value
end
backup() click to toggle source

Returns the value of the `backup` attribute.

@return [DiskBackup]

# File lib/ovirtsdk4/types.rb, line 36941
def backup
  @backup
end
backup=(value) click to toggle source

Sets the value of the `backup` attribute.

@param value [DiskBackup]

# File lib/ovirtsdk4/types.rb, line 36950
def backup=(value)
  @backup = value
end
backup_mode() click to toggle source

Returns the value of the `backup_mode` attribute.

@return [DiskBackupMode]

# File lib/ovirtsdk4/types.rb, line 36959
def backup_mode
  @backup_mode
end
backup_mode=(value) click to toggle source

Sets the value of the `backup_mode` attribute.

@param value [DiskBackupMode]

# File lib/ovirtsdk4/types.rb, line 36968
def backup_mode=(value)
  @backup_mode = value
end
bootable() click to toggle source

Returns the value of the `bootable` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 36977
def bootable
  @bootable
end
bootable=(value) click to toggle source

Sets the value of the `bootable` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 36986
def bootable=(value)
  @bootable = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 36995
def comment
  @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37004
def comment=(value)
  @comment = value
end
content_type() click to toggle source

Returns the value of the `content_type` attribute.

@return [DiskContentType]

# File lib/ovirtsdk4/types.rb, line 37013
def content_type
  @content_type
end
content_type=(value) click to toggle source

Sets the value of the `content_type` attribute.

@param value [DiskContentType]

# File lib/ovirtsdk4/types.rb, line 37022
def content_type=(value)
  @content_type = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37031
def description
  @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37040
def description=(value)
  @description = value
end
disk() click to toggle source

Returns the value of the `disk` attribute.

@return [Disk]

# File lib/ovirtsdk4/types.rb, line 37049
def disk
  @disk
end
disk=(value) click to toggle source

Sets the value of the `disk` attribute.

@param value [Disk, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 37062
def disk=(value)
  if value.is_a?(Hash)
    value = Disk.new(value)
  end
  @disk = value
end
disk_profile() click to toggle source

Returns the value of the `disk_profile` attribute.

@return [DiskProfile]

# File lib/ovirtsdk4/types.rb, line 37074
def disk_profile
  @disk_profile
end
disk_profile=(value) click to toggle source

Sets the value of the `disk_profile` attribute.

@param value [DiskProfile, Hash]

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.

# 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_snapshots() click to toggle source

Returns the value of the `disk_snapshots` attribute.

@return [Array<DiskSnapshot>]

# File lib/ovirtsdk4/types.rb, line 37099
def disk_snapshots
  @disk_snapshots
end
disk_snapshots=(list) click to toggle source

Sets the value of the `disk_snapshots` attribute.

@param list [Array<DiskSnapshot>]

# 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_disk() click to toggle source

Returns the value of the `external_disk` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37125
def external_disk
  @external_disk
end
external_disk=(value) click to toggle source

Sets the value of the `external_disk` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37134
def external_disk=(value)
  @external_disk = value
end
format() click to toggle source

Returns the value of the `format` attribute.

@return [DiskFormat]

# File lib/ovirtsdk4/types.rb, line 37143
def format
  @format
end
format=(value) click to toggle source

Sets the value of the `format` attribute.

@param value [DiskFormat]

# File lib/ovirtsdk4/types.rb, line 37152
def format=(value)
  @format = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Disk#hash
# File lib/ovirtsdk4/types.rb, line 37925
def hash
  super +
  @disk.hash +
  @parent.hash
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37161
def id
  @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37170
def id=(value)
  @id = value
end
image_id() click to toggle source

Returns the value of the `image_id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37179
def image_id
  @image_id
end
image_id=(value) click to toggle source

Sets the value of the `image_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37188
def image_id=(value)
  @image_id = value
end
initial_size() click to toggle source

Returns the value of the `initial_size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 37197
def initial_size
  @initial_size
end
initial_size=(value) click to toggle source

Sets the value of the `initial_size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 37206
def initial_size=(value)
  @initial_size = value
end
instance_type() click to toggle source

Returns the value of the `instance_type` attribute.

@return [InstanceType]

# File lib/ovirtsdk4/types.rb, line 37215
def instance_type
  @instance_type
end
instance_type=(value) click to toggle source

Sets the value of the `instance_type` attribute.

@param value [InstanceType, Hash]

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

# 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
interface() click to toggle source

Returns the value of the `interface` attribute.

@return [DiskInterface]

# File lib/ovirtsdk4/types.rb, line 37240
def interface
  @interface
end
interface=(value) click to toggle source

Sets the value of the `interface` attribute.

@param value [DiskInterface]

# File lib/ovirtsdk4/types.rb, line 37249
def interface=(value)
  @interface = value
end
logical_name() click to toggle source

Returns the value of the `logical_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37258
def logical_name
  @logical_name
end
logical_name=(value) click to toggle source

Sets the value of the `logical_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37267
def logical_name=(value)
  @logical_name = value
end
lun_storage() click to toggle source

Returns the value of the `lun_storage` attribute.

@return [HostStorage]

# File lib/ovirtsdk4/types.rb, line 37276
def lun_storage
  @lun_storage
end
lun_storage=(value) click to toggle source

Sets the value of the `lun_storage` attribute.

@param value [HostStorage, Hash]

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

# 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
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 37301
def name
  @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 37310
def name=(value)
  @name = value
end
openstack_volume_type() click to toggle source

Returns the value of the `openstack_volume_type` attribute.

@return [OpenStackVolumeType]

# File lib/ovirtsdk4/types.rb, line 37319
def openstack_volume_type
  @openstack_volume_type
end
openstack_volume_type=(value) click to toggle source

Sets the value of the `openstack_volume_type` attribute.

@param value [OpenStackVolumeType, Hash]

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

# 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
parent() click to toggle source

Returns the value of the `parent` attribute.

@return [DiskSnapshot]

# File lib/ovirtsdk4/types.rb, line 37344
def parent
  @parent
end
parent=(value) click to toggle source

Sets the value of the `parent` attribute.

@param value [DiskSnapshot, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 37357
def parent=(value)
  if value.is_a?(Hash)
    value = DiskSnapshot.new(value)
  end
  @parent = value
end
permissions() click to toggle source

Returns the value of the `permissions` attribute.

@return [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 37369
def permissions
  @permissions
end
permissions=(list) click to toggle source

Sets the value of the `permissions` attribute.

@param list [Array<Permission>]

# 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_errors() click to toggle source

Returns the value of the `propagate_errors` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37395
def propagate_errors
  @propagate_errors
end
propagate_errors=(value) click to toggle source

Sets the value of the `propagate_errors` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37404
def propagate_errors=(value)
  @propagate_errors = value
end
provisioned_size() click to toggle source

Returns the value of the `provisioned_size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 37413
def provisioned_size
  @provisioned_size
end
provisioned_size=(value) click to toggle source

Sets the value of the `provisioned_size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 37422
def provisioned_size=(value)
  @provisioned_size = value
end
qcow_version() click to toggle source

Returns the value of the `qcow_version` attribute.

@return [QcowVersion]

# File lib/ovirtsdk4/types.rb, line 37431
def qcow_version
  @qcow_version
end
qcow_version=(value) click to toggle source

Sets the value of the `qcow_version` attribute.

@param value [QcowVersion]

# File lib/ovirtsdk4/types.rb, line 37440
def qcow_version=(value)
  @qcow_version = value
end
quota() click to toggle source

Returns the value of the `quota` attribute.

@return [Quota]

# File lib/ovirtsdk4/types.rb, line 37449
def quota
  @quota
end
quota=(value) click to toggle source

Sets the value of the `quota` attribute.

@param value [Quota, Hash]

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

# File lib/ovirtsdk4/types.rb, line 37462
def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end
read_only() click to toggle source

Returns the value of the `read_only` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37474
def read_only
  @read_only
end
read_only=(value) click to toggle source

Sets the value of the `read_only` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37483
def read_only=(value)
  @read_only = value
end
sgio() click to toggle source

Returns the value of the `sgio` attribute.

@return [ScsiGenericIO]

# File lib/ovirtsdk4/types.rb, line 37492
def sgio
  @sgio
end
sgio=(value) click to toggle source

Sets the value of the `sgio` attribute.

@param value [ScsiGenericIO]

# File lib/ovirtsdk4/types.rb, line 37501
def sgio=(value)
  @sgio = value
end
shareable() click to toggle source

Returns the value of the `shareable` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37510
def shareable
  @shareable
end
shareable=(value) click to toggle source

Sets the value of the `shareable` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37519
def shareable=(value)
  @shareable = value
end
snapshot() click to toggle source

Returns the value of the `snapshot` attribute.

@return [Snapshot]

# File lib/ovirtsdk4/types.rb, line 37528
def snapshot
  @snapshot
end
snapshot=(value) click to toggle source

Sets the value of the `snapshot` attribute.

@param value [Snapshot, Hash]

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

# File lib/ovirtsdk4/types.rb, line 37541
def snapshot=(value)
  if value.is_a?(Hash)
    value = Snapshot.new(value)
  end
  @snapshot = value
end
sparse() click to toggle source

Returns the value of the `sparse` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37553
def sparse
  @sparse
end
sparse=(value) click to toggle source

Sets the value of the `sparse` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37562
def sparse=(value)
  @sparse = value
end
statistics() click to toggle source

Returns the value of the `statistics` attribute.

@return [Array<Statistic>]

# File lib/ovirtsdk4/types.rb, line 37571
def statistics
  @statistics
end
statistics=(list) click to toggle source

Sets the value of the `statistics` attribute.

@param list [Array<Statistic>]

# 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
status() click to toggle source

Returns the value of the `status` attribute.

@return [DiskStatus]

# File lib/ovirtsdk4/types.rb, line 37597
def status
  @status
end
status=(value) click to toggle source

Sets the value of the `status` attribute.

@param value [DiskStatus]

# File lib/ovirtsdk4/types.rb, line 37606
def status=(value)
  @status = value
end
storage_domain() click to toggle source

Returns the value of the `storage_domain` attribute.

@return [StorageDomain]

# File lib/ovirtsdk4/types.rb, line 37615
def storage_domain
  @storage_domain
end
storage_domain=(value) click to toggle source

Sets the value of the `storage_domain` attribute.

@param value [StorageDomain, Hash]

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

# 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_domains() click to toggle source

Returns the value of the `storage_domains` attribute.

@return [Array<StorageDomain>]

# File lib/ovirtsdk4/types.rb, line 37640
def storage_domains
  @storage_domains
end
storage_domains=(list) click to toggle source

Sets the value of the `storage_domains` attribute.

@param list [Array<StorageDomain>]

# 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_type() click to toggle source

Returns the value of the `storage_type` attribute.

@return [DiskStorageType]

# File lib/ovirtsdk4/types.rb, line 37666
def storage_type
  @storage_type
end
storage_type=(value) click to toggle source

Sets the value of the `storage_type` attribute.

@param value [DiskStorageType]

# File lib/ovirtsdk4/types.rb, line 37675
def storage_type=(value)
  @storage_type = value
end
template() click to toggle source

Returns the value of the `template` attribute.

@return [Template]

# File lib/ovirtsdk4/types.rb, line 37684
def template
  @template
end
template=(value) click to toggle source

Sets the value of the `template` attribute.

@param value [Template, Hash]

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

# File lib/ovirtsdk4/types.rb, line 37697
def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end
total_size() click to toggle source

Returns the value of the `total_size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 37709
def total_size
  @total_size
end
total_size=(value) click to toggle source

Sets the value of the `total_size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 37718
def total_size=(value)
  @total_size = value
end
uses_scsi_reservation() click to toggle source

Returns the value of the `uses_scsi_reservation` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37727
def uses_scsi_reservation
  @uses_scsi_reservation
end
uses_scsi_reservation=(value) click to toggle source

Sets the value of the `uses_scsi_reservation` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37736
def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end
vm() click to toggle source

Returns the value of the `vm` attribute.

@return [Vm]

# File lib/ovirtsdk4/types.rb, line 37745
def vm
  @vm
end
vm=(value) click to toggle source

Sets the value of the `vm` attribute.

@param value [Vm, Hash]

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

# File lib/ovirtsdk4/types.rb, line 37758
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end
vms() click to toggle source

Returns the value of the `vms` attribute.

@return [Array<Vm>]

# File lib/ovirtsdk4/types.rb, line 37770
def vms
  @vms
end
vms=(list) click to toggle source

Sets the value of the `vms` attribute.

@param list [Array<Vm>]

# 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_delete() click to toggle source

Returns the value of the `wipe_after_delete` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 37796
def wipe_after_delete
  @wipe_after_delete
end
wipe_after_delete=(value) click to toggle source

Sets the value of the `wipe_after_delete` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 37805
def wipe_after_delete=(value)
  @wipe_after_delete = value
end