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. -
#content_type ⇒ DiskContentType
Returns the value of the
content_type
attribute. -
#content_type=(value) ⇒ Object
Sets the value of the
content_type
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.
36023 36024 36025 36026 |
# File 'lib/ovirtsdk4/types.rb', line 36023 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.
36031 36032 36033 36034 |
# File 'lib/ovirtsdk4/types.rb', line 36031 def ==(other) super && @disk == other.disk end |
#active ⇒ Boolean
Returns the value of the active
attribute.
35118 35119 35120 |
# File 'lib/ovirtsdk4/types.rb', line 35118 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
35127 35128 35129 |
# File 'lib/ovirtsdk4/types.rb', line 35127 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
35136 35137 35138 |
# File 'lib/ovirtsdk4/types.rb', line 35136 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
35145 35146 35147 |
# File 'lib/ovirtsdk4/types.rb', line 35145 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
35154 35155 35156 |
# File 'lib/ovirtsdk4/types.rb', line 35154 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
35163 35164 35165 |
# File 'lib/ovirtsdk4/types.rb', line 35163 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
35172 35173 35174 |
# File 'lib/ovirtsdk4/types.rb', line 35172 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
35181 35182 35183 |
# File 'lib/ovirtsdk4/types.rb', line 35181 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
35190 35191 35192 |
# File 'lib/ovirtsdk4/types.rb', line 35190 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
35199 35200 35201 |
# File 'lib/ovirtsdk4/types.rb', line 35199 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
35208 35209 35210 |
# File 'lib/ovirtsdk4/types.rb', line 35208 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
35217 35218 35219 |
# File 'lib/ovirtsdk4/types.rb', line 35217 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
35226 35227 35228 |
# File 'lib/ovirtsdk4/types.rb', line 35226 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
35235 35236 35237 |
# File 'lib/ovirtsdk4/types.rb', line 35235 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
35244 35245 35246 |
# File 'lib/ovirtsdk4/types.rb', line 35244 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.
35257 35258 35259 35260 35261 35262 |
# File 'lib/ovirtsdk4/types.rb', line 35257 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.
35269 35270 35271 |
# File 'lib/ovirtsdk4/types.rb', line 35269 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.
35282 35283 35284 35285 35286 35287 |
# File 'lib/ovirtsdk4/types.rb', line 35282 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.
35294 35295 35296 |
# File 'lib/ovirtsdk4/types.rb', line 35294 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
35303 35304 35305 |
# File 'lib/ovirtsdk4/types.rb', line 35303 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
36039 36040 36041 36042 |
# File 'lib/ovirtsdk4/types.rb', line 36039 def hash super + @disk.hash end |
#id ⇒ String
Returns the value of the id
attribute.
35312 35313 35314 |
# File 'lib/ovirtsdk4/types.rb', line 35312 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
35321 35322 35323 |
# File 'lib/ovirtsdk4/types.rb', line 35321 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
35330 35331 35332 |
# File 'lib/ovirtsdk4/types.rb', line 35330 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
35339 35340 35341 |
# File 'lib/ovirtsdk4/types.rb', line 35339 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
35348 35349 35350 |
# File 'lib/ovirtsdk4/types.rb', line 35348 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
35357 35358 35359 |
# File 'lib/ovirtsdk4/types.rb', line 35357 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
35366 35367 35368 |
# File 'lib/ovirtsdk4/types.rb', line 35366 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.
35379 35380 35381 35382 35383 35384 |
# File 'lib/ovirtsdk4/types.rb', line 35379 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.
35391 35392 35393 |
# File 'lib/ovirtsdk4/types.rb', line 35391 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
35400 35401 35402 |
# File 'lib/ovirtsdk4/types.rb', line 35400 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
35409 35410 35411 |
# File 'lib/ovirtsdk4/types.rb', line 35409 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
35418 35419 35420 |
# File 'lib/ovirtsdk4/types.rb', line 35418 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
35427 35428 35429 |
# File 'lib/ovirtsdk4/types.rb', line 35427 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.
35440 35441 35442 35443 35444 35445 |
# File 'lib/ovirtsdk4/types.rb', line 35440 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.
35452 35453 35454 |
# File 'lib/ovirtsdk4/types.rb', line 35452 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
35461 35462 35463 |
# File 'lib/ovirtsdk4/types.rb', line 35461 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
35470 35471 35472 |
# File 'lib/ovirtsdk4/types.rb', line 35470 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.
35483 35484 35485 35486 35487 35488 |
# File 'lib/ovirtsdk4/types.rb', line 35483 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.
35495 35496 35497 |
# File 'lib/ovirtsdk4/types.rb', line 35495 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
35504 35505 35506 35507 35508 35509 35510 35511 35512 35513 35514 |
# File 'lib/ovirtsdk4/types.rb', line 35504 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.
35521 35522 35523 |
# File 'lib/ovirtsdk4/types.rb', line 35521 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
35530 35531 35532 |
# File 'lib/ovirtsdk4/types.rb', line 35530 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
35539 35540 35541 |
# File 'lib/ovirtsdk4/types.rb', line 35539 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
35548 35549 35550 |
# File 'lib/ovirtsdk4/types.rb', line 35548 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
35557 35558 35559 |
# File 'lib/ovirtsdk4/types.rb', line 35557 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
35566 35567 35568 |
# File 'lib/ovirtsdk4/types.rb', line 35566 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
35575 35576 35577 |
# File 'lib/ovirtsdk4/types.rb', line 35575 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.
35588 35589 35590 35591 35592 35593 |
# File 'lib/ovirtsdk4/types.rb', line 35588 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.
35600 35601 35602 |
# File 'lib/ovirtsdk4/types.rb', line 35600 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
35609 35610 35611 |
# File 'lib/ovirtsdk4/types.rb', line 35609 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
35618 35619 35620 |
# File 'lib/ovirtsdk4/types.rb', line 35618 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
35627 35628 35629 |
# File 'lib/ovirtsdk4/types.rb', line 35627 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
35636 35637 35638 |
# File 'lib/ovirtsdk4/types.rb', line 35636 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
35645 35646 35647 |
# File 'lib/ovirtsdk4/types.rb', line 35645 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
35654 35655 35656 |
# File 'lib/ovirtsdk4/types.rb', line 35654 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.
35667 35668 35669 35670 35671 35672 |
# File 'lib/ovirtsdk4/types.rb', line 35667 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.
35679 35680 35681 |
# File 'lib/ovirtsdk4/types.rb', line 35679 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
35688 35689 35690 |
# File 'lib/ovirtsdk4/types.rb', line 35688 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
35697 35698 35699 |
# File 'lib/ovirtsdk4/types.rb', line 35697 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
35706 35707 35708 35709 35710 35711 35712 35713 35714 35715 35716 |
# File 'lib/ovirtsdk4/types.rb', line 35706 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.
35723 35724 35725 |
# File 'lib/ovirtsdk4/types.rb', line 35723 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
35732 35733 35734 |
# File 'lib/ovirtsdk4/types.rb', line 35732 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
35741 35742 35743 |
# File 'lib/ovirtsdk4/types.rb', line 35741 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.
35754 35755 35756 35757 35758 35759 |
# File 'lib/ovirtsdk4/types.rb', line 35754 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.
35766 35767 35768 |
# File 'lib/ovirtsdk4/types.rb', line 35766 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
35775 35776 35777 35778 35779 35780 35781 35782 35783 35784 35785 |
# File 'lib/ovirtsdk4/types.rb', line 35775 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.
35792 35793 35794 |
# File 'lib/ovirtsdk4/types.rb', line 35792 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
35801 35802 35803 |
# File 'lib/ovirtsdk4/types.rb', line 35801 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
35810 35811 35812 |
# File 'lib/ovirtsdk4/types.rb', line 35810 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.
35823 35824 35825 35826 35827 35828 |
# File 'lib/ovirtsdk4/types.rb', line 35823 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.
35835 35836 35837 |
# File 'lib/ovirtsdk4/types.rb', line 35835 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
35844 35845 35846 |
# File 'lib/ovirtsdk4/types.rb', line 35844 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
35853 35854 35855 |
# File 'lib/ovirtsdk4/types.rb', line 35853 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
35862 35863 35864 |
# File 'lib/ovirtsdk4/types.rb', line 35862 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
35871 35872 35873 |
# File 'lib/ovirtsdk4/types.rb', line 35871 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.
35884 35885 35886 35887 35888 35889 |
# File 'lib/ovirtsdk4/types.rb', line 35884 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.
35896 35897 35898 |
# File 'lib/ovirtsdk4/types.rb', line 35896 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
35905 35906 35907 35908 35909 35910 35911 35912 35913 35914 35915 |
# File 'lib/ovirtsdk4/types.rb', line 35905 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.
35922 35923 35924 |
# File 'lib/ovirtsdk4/types.rb', line 35922 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
35931 35932 35933 |
# File 'lib/ovirtsdk4/types.rb', line 35931 def wipe_after_delete=(value) @wipe_after_delete = value end |