Class: OvirtSDK4::DiskSnapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
activeattribute. -
#active=(value) ⇒ Object
Sets the value of the
activeattribute. -
#actual_size ⇒ Integer
Returns the value of the
actual_sizeattribute. -
#actual_size=(value) ⇒ Object
Sets the value of the
actual_sizeattribute. -
#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
bootableattribute. -
#bootable=(value) ⇒ Object
Sets the value of the
bootableattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#content_type ⇒ DiskContentType
Returns the value of the
content_typeattribute. -
#content_type=(value) ⇒ Object
Sets the value of the
content_typeattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk ⇒ Disk
Returns the value of the
diskattribute. -
#disk=(value) ⇒ Object
Sets the value of the
diskattribute. -
#disk_profile ⇒ DiskProfile
Returns the value of the
disk_profileattribute. -
#disk_profile=(value) ⇒ Object
Sets the value of the
disk_profileattribute. -
#format ⇒ DiskFormat
Returns the value of the
formatattribute. -
#format=(value) ⇒ Object
Sets the value of the
formatattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#image_id ⇒ String
Returns the value of the
image_idattribute. -
#image_id=(value) ⇒ Object
Sets the value of the
image_idattribute. -
#initial_size ⇒ Integer
Returns the value of the
initial_sizeattribute. -
#initial_size=(value) ⇒ Object
Sets the value of the
initial_sizeattribute. -
#initialize(opts = {}) ⇒ DiskSnapshot
constructor
Creates a new instance of the DiskSnapshot class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#interface ⇒ DiskInterface
Returns the value of the
interfaceattribute. -
#interface=(value) ⇒ Object
Sets the value of the
interfaceattribute. -
#logical_name ⇒ String
Returns the value of the
logical_nameattribute. -
#logical_name=(value) ⇒ Object
Sets the value of the
logical_nameattribute. -
#lun_storage ⇒ HostStorage
Returns the value of the
lun_storageattribute. -
#lun_storage=(value) ⇒ Object
Sets the value of the
lun_storageattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the
openstack_volume_typeattribute. -
#openstack_volume_type=(value) ⇒ Object
Sets the value of the
openstack_volume_typeattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#propagate_errors ⇒ Boolean
Returns the value of the
propagate_errorsattribute. -
#propagate_errors=(value) ⇒ Object
Sets the value of the
propagate_errorsattribute. -
#provisioned_size ⇒ Integer
Returns the value of the
provisioned_sizeattribute. -
#provisioned_size=(value) ⇒ Object
Sets the value of the
provisioned_sizeattribute. -
#qcow_version ⇒ QcowVersion
Returns the value of the
qcow_versionattribute. -
#qcow_version=(value) ⇒ Object
Sets the value of the
qcow_versionattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#read_only ⇒ Boolean
Returns the value of the
read_onlyattribute. -
#read_only=(value) ⇒ Object
Sets the value of the
read_onlyattribute. -
#sgio ⇒ ScsiGenericIO
Returns the value of the
sgioattribute. -
#sgio=(value) ⇒ Object
Sets the value of the
sgioattribute. -
#shareable ⇒ Boolean
Returns the value of the
shareableattribute. -
#shareable=(value) ⇒ Object
Sets the value of the
shareableattribute. -
#snapshot ⇒ Snapshot
Returns the value of the
snapshotattribute. -
#snapshot=(value) ⇒ Object
Sets the value of the
snapshotattribute. -
#sparse ⇒ Boolean
Returns the value of the
sparseattribute. -
#sparse=(value) ⇒ Object
Sets the value of the
sparseattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ DiskStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the
storage_domainsattribute. -
#storage_domains=(list) ⇒ Object
Sets the value of the
storage_domainsattribute. -
#storage_type ⇒ DiskStorageType
Returns the value of the
storage_typeattribute. -
#storage_type=(value) ⇒ Object
Sets the value of the
storage_typeattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#total_size ⇒ Integer
Returns the value of the
total_sizeattribute. -
#total_size=(value) ⇒ Object
Sets the value of the
total_sizeattribute. -
#uses_scsi_reservation ⇒ Boolean
Returns the value of the
uses_scsi_reservationattribute. -
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the
uses_scsi_reservationattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vmsattribute. -
#vms=(list) ⇒ Object
Sets the value of the
vmsattribute. -
#wipe_after_delete ⇒ Boolean
Returns the value of the
wipe_after_deleteattribute. -
#wipe_after_delete=(value) ⇒ Object
Sets the value of the
wipe_after_deleteattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ DiskSnapshot
Creates a new instance of the OvirtSDK4::DiskSnapshot class.
35901 35902 35903 35904 |
# File 'lib/ovirtsdk4/types.rb', line 35901 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.
35909 35910 35911 35912 |
# File 'lib/ovirtsdk4/types.rb', line 35909 def ==(other) super && @disk == other.disk end |
#active ⇒ Boolean
Returns the value of the active attribute.
34996 34997 34998 |
# File 'lib/ovirtsdk4/types.rb', line 34996 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
35005 35006 35007 |
# File 'lib/ovirtsdk4/types.rb', line 35005 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size attribute.
35014 35015 35016 |
# File 'lib/ovirtsdk4/types.rb', line 35014 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size attribute.
35023 35024 35025 |
# File 'lib/ovirtsdk4/types.rb', line 35023 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_ attribute.
35032 35033 35034 |
# File 'lib/ovirtsdk4/types.rb', line 35032 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_ attribute.
35041 35042 35043 |
# File 'lib/ovirtsdk4/types.rb', line 35041 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable attribute.
35050 35051 35052 |
# File 'lib/ovirtsdk4/types.rb', line 35050 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable attribute.
35059 35060 35061 |
# File 'lib/ovirtsdk4/types.rb', line 35059 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment attribute.
35068 35069 35070 |
# File 'lib/ovirtsdk4/types.rb', line 35068 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
35077 35078 35079 |
# File 'lib/ovirtsdk4/types.rb', line 35077 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type attribute.
35086 35087 35088 |
# File 'lib/ovirtsdk4/types.rb', line 35086 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
35095 35096 35097 |
# File 'lib/ovirtsdk4/types.rb', line 35095 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
35104 35105 35106 |
# File 'lib/ovirtsdk4/types.rb', line 35104 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
35113 35114 35115 |
# File 'lib/ovirtsdk4/types.rb', line 35113 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk attribute.
35122 35123 35124 |
# File 'lib/ovirtsdk4/types.rb', line 35122 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.
35135 35136 35137 35138 35139 35140 |
# File 'lib/ovirtsdk4/types.rb', line 35135 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.
35147 35148 35149 |
# File 'lib/ovirtsdk4/types.rb', line 35147 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.
35160 35161 35162 35163 35164 35165 |
# File 'lib/ovirtsdk4/types.rb', line 35160 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.
35172 35173 35174 |
# File 'lib/ovirtsdk4/types.rb', line 35172 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format attribute.
35181 35182 35183 |
# File 'lib/ovirtsdk4/types.rb', line 35181 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
35917 35918 35919 35920 |
# File 'lib/ovirtsdk4/types.rb', line 35917 def hash super + @disk.hash end |
#id ⇒ String
Returns the value of the id attribute.
35190 35191 35192 |
# File 'lib/ovirtsdk4/types.rb', line 35190 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
35199 35200 35201 |
# File 'lib/ovirtsdk4/types.rb', line 35199 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id attribute.
35208 35209 35210 |
# File 'lib/ovirtsdk4/types.rb', line 35208 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id attribute.
35217 35218 35219 |
# File 'lib/ovirtsdk4/types.rb', line 35217 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size attribute.
35226 35227 35228 |
# File 'lib/ovirtsdk4/types.rb', line 35226 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size attribute.
35235 35236 35237 |
# File 'lib/ovirtsdk4/types.rb', line 35235 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
35244 35245 35246 |
# File 'lib/ovirtsdk4/types.rb', line 35244 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.
35257 35258 35259 35260 35261 35262 |
# File 'lib/ovirtsdk4/types.rb', line 35257 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.
35269 35270 35271 |
# File 'lib/ovirtsdk4/types.rb', line 35269 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface attribute.
35278 35279 35280 |
# File 'lib/ovirtsdk4/types.rb', line 35278 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name attribute.
35287 35288 35289 |
# File 'lib/ovirtsdk4/types.rb', line 35287 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name attribute.
35296 35297 35298 |
# File 'lib/ovirtsdk4/types.rb', line 35296 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage attribute.
35305 35306 35307 |
# File 'lib/ovirtsdk4/types.rb', line 35305 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.
35318 35319 35320 35321 35322 35323 |
# File 'lib/ovirtsdk4/types.rb', line 35318 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.
35330 35331 35332 |
# File 'lib/ovirtsdk4/types.rb', line 35330 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
35339 35340 35341 |
# File 'lib/ovirtsdk4/types.rb', line 35339 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type attribute.
35348 35349 35350 |
# File 'lib/ovirtsdk4/types.rb', line 35348 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.
35361 35362 35363 35364 35365 35366 |
# File 'lib/ovirtsdk4/types.rb', line 35361 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.
35373 35374 35375 |
# File 'lib/ovirtsdk4/types.rb', line 35373 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 |
# File 'lib/ovirtsdk4/types.rb', line 35382 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.
35399 35400 35401 |
# File 'lib/ovirtsdk4/types.rb', line 35399 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors attribute.
35408 35409 35410 |
# File 'lib/ovirtsdk4/types.rb', line 35408 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size attribute.
35417 35418 35419 |
# File 'lib/ovirtsdk4/types.rb', line 35417 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size attribute.
35426 35427 35428 |
# File 'lib/ovirtsdk4/types.rb', line 35426 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version attribute.
35435 35436 35437 |
# File 'lib/ovirtsdk4/types.rb', line 35435 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version attribute.
35444 35445 35446 |
# File 'lib/ovirtsdk4/types.rb', line 35444 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
35453 35454 35455 |
# File 'lib/ovirtsdk4/types.rb', line 35453 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.
35466 35467 35468 35469 35470 35471 |
# File 'lib/ovirtsdk4/types.rb', line 35466 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.
35478 35479 35480 |
# File 'lib/ovirtsdk4/types.rb', line 35478 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only attribute.
35487 35488 35489 |
# File 'lib/ovirtsdk4/types.rb', line 35487 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio attribute.
35496 35497 35498 |
# File 'lib/ovirtsdk4/types.rb', line 35496 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio attribute.
35505 35506 35507 |
# File 'lib/ovirtsdk4/types.rb', line 35505 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable attribute.
35514 35515 35516 |
# File 'lib/ovirtsdk4/types.rb', line 35514 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable attribute.
35523 35524 35525 |
# File 'lib/ovirtsdk4/types.rb', line 35523 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot attribute.
35532 35533 35534 |
# File 'lib/ovirtsdk4/types.rb', line 35532 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.
35545 35546 35547 35548 35549 35550 |
# File 'lib/ovirtsdk4/types.rb', line 35545 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.
35557 35558 35559 |
# File 'lib/ovirtsdk4/types.rb', line 35557 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
35566 35567 35568 |
# File 'lib/ovirtsdk4/types.rb', line 35566 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
35575 35576 35577 |
# File 'lib/ovirtsdk4/types.rb', line 35575 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
35584 35585 35586 35587 35588 35589 35590 35591 35592 35593 35594 |
# File 'lib/ovirtsdk4/types.rb', line 35584 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.
35601 35602 35603 |
# File 'lib/ovirtsdk4/types.rb', line 35601 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
35610 35611 35612 |
# File 'lib/ovirtsdk4/types.rb', line 35610 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
35619 35620 35621 |
# File 'lib/ovirtsdk4/types.rb', line 35619 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.
35632 35633 35634 35635 35636 35637 |
# File 'lib/ovirtsdk4/types.rb', line 35632 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.
35644 35645 35646 |
# File 'lib/ovirtsdk4/types.rb', line 35644 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains attribute.
35653 35654 35655 35656 35657 35658 35659 35660 35661 35662 35663 |
# File 'lib/ovirtsdk4/types.rb', line 35653 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.
35670 35671 35672 |
# File 'lib/ovirtsdk4/types.rb', line 35670 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type attribute.
35679 35680 35681 |
# File 'lib/ovirtsdk4/types.rb', line 35679 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template attribute.
35688 35689 35690 |
# File 'lib/ovirtsdk4/types.rb', line 35688 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.
35701 35702 35703 35704 35705 35706 |
# File 'lib/ovirtsdk4/types.rb', line 35701 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.
35713 35714 35715 |
# File 'lib/ovirtsdk4/types.rb', line 35713 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size attribute.
35722 35723 35724 |
# File 'lib/ovirtsdk4/types.rb', line 35722 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation attribute.
35731 35732 35733 |
# File 'lib/ovirtsdk4/types.rb', line 35731 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation attribute.
35740 35741 35742 |
# File 'lib/ovirtsdk4/types.rb', line 35740 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
35749 35750 35751 |
# File 'lib/ovirtsdk4/types.rb', line 35749 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.
35762 35763 35764 35765 35766 35767 |
# File 'lib/ovirtsdk4/types.rb', line 35762 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.
35774 35775 35776 |
# File 'lib/ovirtsdk4/types.rb', line 35774 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
35783 35784 35785 35786 35787 35788 35789 35790 35791 35792 35793 |
# File 'lib/ovirtsdk4/types.rb', line 35783 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.
35800 35801 35802 |
# File 'lib/ovirtsdk4/types.rb', line 35800 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete attribute.
35809 35810 35811 |
# File 'lib/ovirtsdk4/types.rb', line 35809 def wipe_after_delete=(value) @wipe_after_delete = value end |