Class: OvirtSDK4::DiskSnapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
active
attribute. -
#active=(value) ⇒ Object
Sets the value of the
active
attribute. -
#actual_size ⇒ Integer
Returns the value of the
actual_size
attribute. -
#actual_size=(value) ⇒ Object
Sets the value of the
actual_size
attribute. -
#alias_ ⇒ String
Returns the value of the
alias_
attribute. -
#alias_=(value) ⇒ Object
Sets the value of the
alias_
attribute. -
#bootable ⇒ Boolean
Returns the value of the
bootable
attribute. -
#bootable=(value) ⇒ Object
Sets the value of the
bootable
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk ⇒ Disk
Returns the value of the
disk
attribute. -
#disk=(value) ⇒ Object
Sets the value of the
disk
attribute. -
#disk_profile ⇒ DiskProfile
Returns the value of the
disk_profile
attribute. -
#disk_profile=(value) ⇒ Object
Sets the value of the
disk_profile
attribute. -
#format ⇒ DiskFormat
Returns the value of the
format
attribute. -
#format=(value) ⇒ Object
Sets the value of the
format
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#image_id ⇒ String
Returns the value of the
image_id
attribute. -
#image_id=(value) ⇒ Object
Sets the value of the
image_id
attribute. -
#initial_size ⇒ Integer
Returns the value of the
initial_size
attribute. -
#initial_size=(value) ⇒ Object
Sets the value of the
initial_size
attribute. -
#initialize(opts = {}) ⇒ DiskSnapshot
constructor
Creates a new instance of the DiskSnapshot class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#interface ⇒ DiskInterface
Returns the value of the
interface
attribute. -
#interface=(value) ⇒ Object
Sets the value of the
interface
attribute. -
#logical_name ⇒ String
Returns the value of the
logical_name
attribute. -
#logical_name=(value) ⇒ Object
Sets the value of the
logical_name
attribute. -
#lun_storage ⇒ HostStorage
Returns the value of the
lun_storage
attribute. -
#lun_storage=(value) ⇒ Object
Sets the value of the
lun_storage
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the
openstack_volume_type
attribute. -
#openstack_volume_type=(value) ⇒ Object
Sets the value of the
openstack_volume_type
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#propagate_errors ⇒ Boolean
Returns the value of the
propagate_errors
attribute. -
#propagate_errors=(value) ⇒ Object
Sets the value of the
propagate_errors
attribute. -
#provisioned_size ⇒ Integer
Returns the value of the
provisioned_size
attribute. -
#provisioned_size=(value) ⇒ Object
Sets the value of the
provisioned_size
attribute. -
#qcow_version ⇒ QcowVersion
Returns the value of the
qcow_version
attribute. -
#qcow_version=(value) ⇒ Object
Sets the value of the
qcow_version
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#read_only ⇒ Boolean
Returns the value of the
read_only
attribute. -
#read_only=(value) ⇒ Object
Sets the value of the
read_only
attribute. -
#sgio ⇒ ScsiGenericIO
Returns the value of the
sgio
attribute. -
#sgio=(value) ⇒ Object
Sets the value of the
sgio
attribute. -
#shareable ⇒ Boolean
Returns the value of the
shareable
attribute. -
#shareable=(value) ⇒ Object
Sets the value of the
shareable
attribute. -
#snapshot ⇒ Snapshot
Returns the value of the
snapshot
attribute. -
#snapshot=(value) ⇒ Object
Sets the value of the
snapshot
attribute. -
#sparse ⇒ Boolean
Returns the value of the
sparse
attribute. -
#sparse=(value) ⇒ Object
Sets the value of the
sparse
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ DiskStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the
storage_domains
attribute. -
#storage_domains=(list) ⇒ Object
Sets the value of the
storage_domains
attribute. -
#storage_type ⇒ DiskStorageType
Returns the value of the
storage_type
attribute. -
#storage_type=(value) ⇒ Object
Sets the value of the
storage_type
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#total_size ⇒ Integer
Returns the value of the
total_size
attribute. -
#total_size=(value) ⇒ Object
Sets the value of the
total_size
attribute. -
#uses_scsi_reservation ⇒ Boolean
Returns the value of the
uses_scsi_reservation
attribute. -
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the
uses_scsi_reservation
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vms
attribute. -
#vms=(list) ⇒ Object
Sets the value of the
vms
attribute. -
#wipe_after_delete ⇒ Boolean
Returns the value of the
wipe_after_delete
attribute. -
#wipe_after_delete=(value) ⇒ Object
Sets the value of the
wipe_after_delete
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ DiskSnapshot
Creates a new instance of the OvirtSDK4::DiskSnapshot class.
35643 35644 35645 35646 |
# File 'lib/ovirtsdk4/types.rb', line 35643 def initialize(opts = {}) super(opts) self.disk = opts[:disk] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
35651 35652 35653 35654 |
# File 'lib/ovirtsdk4/types.rb', line 35651 def ==(other) super && @disk == other.disk end |
#active ⇒ Boolean
Returns the value of the active
attribute.
34758 34759 34760 |
# File 'lib/ovirtsdk4/types.rb', line 34758 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
34767 34768 34769 |
# File 'lib/ovirtsdk4/types.rb', line 34767 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
34776 34777 34778 |
# File 'lib/ovirtsdk4/types.rb', line 34776 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
34785 34786 34787 |
# File 'lib/ovirtsdk4/types.rb', line 34785 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
34794 34795 34796 |
# File 'lib/ovirtsdk4/types.rb', line 34794 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
34803 34804 34805 |
# File 'lib/ovirtsdk4/types.rb', line 34803 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
34812 34813 34814 |
# File 'lib/ovirtsdk4/types.rb', line 34812 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
34821 34822 34823 |
# File 'lib/ovirtsdk4/types.rb', line 34821 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
34830 34831 34832 |
# File 'lib/ovirtsdk4/types.rb', line 34830 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
34839 34840 34841 |
# File 'lib/ovirtsdk4/types.rb', line 34839 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
34848 34849 34850 |
# File 'lib/ovirtsdk4/types.rb', line 34848 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
34857 34858 34859 |
# File 'lib/ovirtsdk4/types.rb', line 34857 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
34866 34867 34868 |
# File 'lib/ovirtsdk4/types.rb', line 34866 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.
34879 34880 34881 34882 34883 34884 |
# File 'lib/ovirtsdk4/types.rb', line 34879 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile
attribute.
34891 34892 34893 |
# File 'lib/ovirtsdk4/types.rb', line 34891 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.
34904 34905 34906 34907 34908 34909 |
# File 'lib/ovirtsdk4/types.rb', line 34904 def disk_profile=(value) if value.is_a?(Hash) value = DiskProfile.new(value) end @disk_profile = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
34916 34917 34918 |
# File 'lib/ovirtsdk4/types.rb', line 34916 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
34925 34926 34927 |
# File 'lib/ovirtsdk4/types.rb', line 34925 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
35659 35660 35661 35662 |
# File 'lib/ovirtsdk4/types.rb', line 35659 def hash super + @disk.hash end |
#id ⇒ String
Returns the value of the id
attribute.
34934 34935 34936 |
# File 'lib/ovirtsdk4/types.rb', line 34934 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
34943 34944 34945 |
# File 'lib/ovirtsdk4/types.rb', line 34943 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
34952 34953 34954 |
# File 'lib/ovirtsdk4/types.rb', line 34952 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
34961 34962 34963 |
# File 'lib/ovirtsdk4/types.rb', line 34961 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
34970 34971 34972 |
# File 'lib/ovirtsdk4/types.rb', line 34970 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
34979 34980 34981 |
# File 'lib/ovirtsdk4/types.rb', line 34979 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
34988 34989 34990 |
# File 'lib/ovirtsdk4/types.rb', line 34988 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.
35001 35002 35003 35004 35005 35006 |
# File 'lib/ovirtsdk4/types.rb', line 35001 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#interface ⇒ DiskInterface
Returns the value of the interface
attribute.
35013 35014 35015 |
# File 'lib/ovirtsdk4/types.rb', line 35013 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
35022 35023 35024 |
# File 'lib/ovirtsdk4/types.rb', line 35022 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
35031 35032 35033 |
# File 'lib/ovirtsdk4/types.rb', line 35031 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
35040 35041 35042 |
# File 'lib/ovirtsdk4/types.rb', line 35040 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
35049 35050 35051 |
# File 'lib/ovirtsdk4/types.rb', line 35049 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.
35062 35063 35064 35065 35066 35067 |
# File 'lib/ovirtsdk4/types.rb', line 35062 def lun_storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @lun_storage = value end |
#name ⇒ String
Returns the value of the name
attribute.
35074 35075 35076 |
# File 'lib/ovirtsdk4/types.rb', line 35074 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
35083 35084 35085 |
# File 'lib/ovirtsdk4/types.rb', line 35083 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
35092 35093 35094 |
# File 'lib/ovirtsdk4/types.rb', line 35092 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.
35105 35106 35107 35108 35109 35110 |
# File 'lib/ovirtsdk4/types.rb', line 35105 def openstack_volume_type=(value) if value.is_a?(Hash) value = OpenStackVolumeType.new(value) end @openstack_volume_type = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
35117 35118 35119 |
# File 'lib/ovirtsdk4/types.rb', line 35117 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
35126 35127 35128 35129 35130 35131 35132 35133 35134 35135 35136 |
# File 'lib/ovirtsdk4/types.rb', line 35126 def (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 ⇒ Boolean
Returns the value of the propagate_errors
attribute.
35143 35144 35145 |
# File 'lib/ovirtsdk4/types.rb', line 35143 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
35152 35153 35154 |
# File 'lib/ovirtsdk4/types.rb', line 35152 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
35161 35162 35163 |
# File 'lib/ovirtsdk4/types.rb', line 35161 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
35170 35171 35172 |
# File 'lib/ovirtsdk4/types.rb', line 35170 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
35179 35180 35181 |
# File 'lib/ovirtsdk4/types.rb', line 35179 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
35188 35189 35190 |
# File 'lib/ovirtsdk4/types.rb', line 35188 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
35197 35198 35199 |
# File 'lib/ovirtsdk4/types.rb', line 35197 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.
35210 35211 35212 35213 35214 35215 |
# File 'lib/ovirtsdk4/types.rb', line 35210 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#read_only ⇒ Boolean
Returns the value of the read_only
attribute.
35222 35223 35224 |
# File 'lib/ovirtsdk4/types.rb', line 35222 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
35231 35232 35233 |
# File 'lib/ovirtsdk4/types.rb', line 35231 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
35240 35241 35242 |
# File 'lib/ovirtsdk4/types.rb', line 35240 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
35249 35250 35251 |
# File 'lib/ovirtsdk4/types.rb', line 35249 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
35258 35259 35260 |
# File 'lib/ovirtsdk4/types.rb', line 35258 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
35267 35268 35269 |
# File 'lib/ovirtsdk4/types.rb', line 35267 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
35276 35277 35278 |
# File 'lib/ovirtsdk4/types.rb', line 35276 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.
35289 35290 35291 35292 35293 35294 |
# File 'lib/ovirtsdk4/types.rb', line 35289 def snapshot=(value) if value.is_a?(Hash) value = Snapshot.new(value) end @snapshot = value end |
#sparse ⇒ Boolean
Returns the value of the sparse
attribute.
35301 35302 35303 |
# File 'lib/ovirtsdk4/types.rb', line 35301 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
35310 35311 35312 |
# File 'lib/ovirtsdk4/types.rb', line 35310 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
35319 35320 35321 |
# File 'lib/ovirtsdk4/types.rb', line 35319 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 35338 |
# File 'lib/ovirtsdk4/types.rb', line 35328 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 ⇒ DiskStatus
Returns the value of the status
attribute.
35345 35346 35347 |
# File 'lib/ovirtsdk4/types.rb', line 35345 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
35354 35355 35356 |
# File 'lib/ovirtsdk4/types.rb', line 35354 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
35363 35364 35365 |
# File 'lib/ovirtsdk4/types.rb', line 35363 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.
35376 35377 35378 35379 35380 35381 |
# File 'lib/ovirtsdk4/types.rb', line 35376 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the storage_domains
attribute.
35388 35389 35390 |
# File 'lib/ovirtsdk4/types.rb', line 35388 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
35397 35398 35399 35400 35401 35402 35403 35404 35405 35406 35407 |
# File 'lib/ovirtsdk4/types.rb', line 35397 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 ⇒ DiskStorageType
Returns the value of the storage_type
attribute.
35414 35415 35416 |
# File 'lib/ovirtsdk4/types.rb', line 35414 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
35423 35424 35425 |
# File 'lib/ovirtsdk4/types.rb', line 35423 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
35432 35433 35434 |
# File 'lib/ovirtsdk4/types.rb', line 35432 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.
35445 35446 35447 35448 35449 35450 |
# File 'lib/ovirtsdk4/types.rb', line 35445 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#total_size ⇒ Integer
Returns the value of the total_size
attribute.
35457 35458 35459 |
# File 'lib/ovirtsdk4/types.rb', line 35457 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
35466 35467 35468 |
# File 'lib/ovirtsdk4/types.rb', line 35466 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
35475 35476 35477 |
# File 'lib/ovirtsdk4/types.rb', line 35475 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
35484 35485 35486 |
# File 'lib/ovirtsdk4/types.rb', line 35484 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
35493 35494 35495 |
# File 'lib/ovirtsdk4/types.rb', line 35493 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.
35506 35507 35508 35509 35510 35511 |
# File 'lib/ovirtsdk4/types.rb', line 35506 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
35518 35519 35520 |
# File 'lib/ovirtsdk4/types.rb', line 35518 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
35527 35528 35529 35530 35531 35532 35533 35534 35535 35536 35537 |
# File 'lib/ovirtsdk4/types.rb', line 35527 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 ⇒ Boolean
Returns the value of the wipe_after_delete
attribute.
35544 35545 35546 |
# File 'lib/ovirtsdk4/types.rb', line 35544 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
35553 35554 35555 |
# File 'lib/ovirtsdk4/types.rb', line 35553 def wipe_after_delete=(value) @wipe_after_delete = value end |