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. -
#backup ⇒ DiskBackup
Returns the value of the
backupattribute. -
#backup=(value) ⇒ Object
Sets the value of the
backupattribute. -
#backup_mode ⇒ DiskBackupMode
Returns the value of the
backup_modeattribute. -
#backup_mode=(value) ⇒ Object
Sets the value of the
backup_modeattribute. -
#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. -
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the
disk_snapshotsattribute. -
#disk_snapshots=(list) ⇒ Object
Sets the value of the
disk_snapshotsattribute. -
#external_disk ⇒ String
Returns the value of the
external_diskattribute. -
#external_disk=(value) ⇒ Object
Sets the value of the
external_diskattribute. -
#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. -
#parent ⇒ DiskSnapshot
Returns the value of the
parentattribute. -
#parent=(value) ⇒ Object
Sets the value of the
parentattribute. -
#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.
39055 39056 39057 39058 39059 |
# File 'lib/ovirtsdk4/types.rb', line 39055 def initialize(opts = {}) super(opts) self.disk = opts[:disk] self.parent = opts[:parent] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
39064 39065 39066 39067 39068 |
# File 'lib/ovirtsdk4/types.rb', line 39064 def ==(other) super && @disk == other.disk && @parent == other.parent end |
#active ⇒ Boolean
Returns the value of the active attribute.
38035 38036 38037 |
# File 'lib/ovirtsdk4/types.rb', line 38035 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
38044 38045 38046 |
# File 'lib/ovirtsdk4/types.rb', line 38044 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size attribute.
38053 38054 38055 |
# File 'lib/ovirtsdk4/types.rb', line 38053 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size attribute.
38062 38063 38064 |
# File 'lib/ovirtsdk4/types.rb', line 38062 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_ attribute.
38071 38072 38073 |
# File 'lib/ovirtsdk4/types.rb', line 38071 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_ attribute.
38080 38081 38082 |
# File 'lib/ovirtsdk4/types.rb', line 38080 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup attribute.
38089 38090 38091 |
# File 'lib/ovirtsdk4/types.rb', line 38089 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup attribute.
38098 38099 38100 |
# File 'lib/ovirtsdk4/types.rb', line 38098 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode attribute.
38107 38108 38109 |
# File 'lib/ovirtsdk4/types.rb', line 38107 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode attribute.
38116 38117 38118 |
# File 'lib/ovirtsdk4/types.rb', line 38116 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable attribute.
38125 38126 38127 |
# File 'lib/ovirtsdk4/types.rb', line 38125 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable attribute.
38134 38135 38136 |
# File 'lib/ovirtsdk4/types.rb', line 38134 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment attribute.
38143 38144 38145 |
# File 'lib/ovirtsdk4/types.rb', line 38143 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
38152 38153 38154 |
# File 'lib/ovirtsdk4/types.rb', line 38152 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type attribute.
38161 38162 38163 |
# File 'lib/ovirtsdk4/types.rb', line 38161 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
38170 38171 38172 |
# File 'lib/ovirtsdk4/types.rb', line 38170 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
38179 38180 38181 |
# File 'lib/ovirtsdk4/types.rb', line 38179 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
38188 38189 38190 |
# File 'lib/ovirtsdk4/types.rb', line 38188 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk attribute.
38197 38198 38199 |
# File 'lib/ovirtsdk4/types.rb', line 38197 def disk @disk end |
#disk=(value) ⇒ Object
Sets the value of the disk attribute.
The value parameter can be an instance of OvirtSDK4::Disk or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38210 38211 38212 38213 38214 38215 |
# File 'lib/ovirtsdk4/types.rb', line 38210 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile attribute.
38222 38223 38224 |
# File 'lib/ovirtsdk4/types.rb', line 38222 def disk_profile @disk_profile end |
#disk_profile=(value) ⇒ Object
Sets the value of the disk_profile attribute.
The value parameter can be an instance of OvirtSDK4::DiskProfile or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38235 38236 38237 38238 38239 38240 |
# File 'lib/ovirtsdk4/types.rb', line 38235 def disk_profile=(value) if value.is_a?(Hash) value = DiskProfile.new(value) end @disk_profile = value end |
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the disk_snapshots attribute.
38247 38248 38249 |
# File 'lib/ovirtsdk4/types.rb', line 38247 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots attribute.
38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 |
# File 'lib/ovirtsdk4/types.rb', line 38256 def disk_snapshots=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskSnapshot.new(value) end end end @disk_snapshots = list end |
#external_disk ⇒ String
Returns the value of the external_disk attribute.
38273 38274 38275 |
# File 'lib/ovirtsdk4/types.rb', line 38273 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk attribute.
38282 38283 38284 |
# File 'lib/ovirtsdk4/types.rb', line 38282 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format attribute.
38291 38292 38293 |
# File 'lib/ovirtsdk4/types.rb', line 38291 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format attribute.
38300 38301 38302 |
# File 'lib/ovirtsdk4/types.rb', line 38300 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
39073 39074 39075 39076 39077 |
# File 'lib/ovirtsdk4/types.rb', line 39073 def hash super + @disk.hash + @parent.hash end |
#id ⇒ String
Returns the value of the id attribute.
38309 38310 38311 |
# File 'lib/ovirtsdk4/types.rb', line 38309 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
38318 38319 38320 |
# File 'lib/ovirtsdk4/types.rb', line 38318 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id attribute.
38327 38328 38329 |
# File 'lib/ovirtsdk4/types.rb', line 38327 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id attribute.
38336 38337 38338 |
# File 'lib/ovirtsdk4/types.rb', line 38336 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size attribute.
38345 38346 38347 |
# File 'lib/ovirtsdk4/types.rb', line 38345 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size attribute.
38354 38355 38356 |
# File 'lib/ovirtsdk4/types.rb', line 38354 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
38363 38364 38365 |
# File 'lib/ovirtsdk4/types.rb', line 38363 def instance_type @instance_type end |
#instance_type=(value) ⇒ Object
Sets the value of the instance_type attribute.
The value parameter can be an instance of InstanceType or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38376 38377 38378 38379 38380 38381 |
# File 'lib/ovirtsdk4/types.rb', line 38376 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#interface ⇒ DiskInterface
Returns the value of the interface attribute.
38388 38389 38390 |
# File 'lib/ovirtsdk4/types.rb', line 38388 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface attribute.
38397 38398 38399 |
# File 'lib/ovirtsdk4/types.rb', line 38397 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name attribute.
38406 38407 38408 |
# File 'lib/ovirtsdk4/types.rb', line 38406 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name attribute.
38415 38416 38417 |
# File 'lib/ovirtsdk4/types.rb', line 38415 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage attribute.
38424 38425 38426 |
# File 'lib/ovirtsdk4/types.rb', line 38424 def lun_storage @lun_storage end |
#lun_storage=(value) ⇒ Object
Sets the value of the lun_storage attribute.
The value parameter can be an instance of HostStorage or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38437 38438 38439 38440 38441 38442 |
# File 'lib/ovirtsdk4/types.rb', line 38437 def lun_storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @lun_storage = value end |
#name ⇒ String
Returns the value of the name attribute.
38449 38450 38451 |
# File 'lib/ovirtsdk4/types.rb', line 38449 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
38458 38459 38460 |
# File 'lib/ovirtsdk4/types.rb', line 38458 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type attribute.
38467 38468 38469 |
# File 'lib/ovirtsdk4/types.rb', line 38467 def openstack_volume_type @openstack_volume_type end |
#openstack_volume_type=(value) ⇒ Object
Sets the value of the openstack_volume_type attribute.
The value parameter can be an instance of OpenStackVolumeType or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38480 38481 38482 38483 38484 38485 |
# File 'lib/ovirtsdk4/types.rb', line 38480 def openstack_volume_type=(value) if value.is_a?(Hash) value = OpenStackVolumeType.new(value) end @openstack_volume_type = value end |
#parent ⇒ DiskSnapshot
Returns the value of the parent attribute.
38492 38493 38494 |
# File 'lib/ovirtsdk4/types.rb', line 38492 def parent @parent end |
#parent=(value) ⇒ Object
Sets the value of the parent attribute.
The value parameter can be an instance of OvirtSDK4::DiskSnapshot or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38505 38506 38507 38508 38509 38510 |
# File 'lib/ovirtsdk4/types.rb', line 38505 def parent=(value) if value.is_a?(Hash) value = DiskSnapshot.new(value) end @parent = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
38517 38518 38519 |
# File 'lib/ovirtsdk4/types.rb', line 38517 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
38526 38527 38528 38529 38530 38531 38532 38533 38534 38535 38536 |
# File 'lib/ovirtsdk4/types.rb', line 38526 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.
38543 38544 38545 |
# File 'lib/ovirtsdk4/types.rb', line 38543 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors attribute.
38552 38553 38554 |
# File 'lib/ovirtsdk4/types.rb', line 38552 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size attribute.
38561 38562 38563 |
# File 'lib/ovirtsdk4/types.rb', line 38561 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size attribute.
38570 38571 38572 |
# File 'lib/ovirtsdk4/types.rb', line 38570 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version attribute.
38579 38580 38581 |
# File 'lib/ovirtsdk4/types.rb', line 38579 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version attribute.
38588 38589 38590 |
# File 'lib/ovirtsdk4/types.rb', line 38588 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
38597 38598 38599 |
# File 'lib/ovirtsdk4/types.rb', line 38597 def quota @quota end |
#quota=(value) ⇒ Object
Sets the value of the quota attribute.
The value parameter can be an instance of Quota or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38610 38611 38612 38613 38614 38615 |
# File 'lib/ovirtsdk4/types.rb', line 38610 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#read_only ⇒ Boolean
Returns the value of the read_only attribute.
38622 38623 38624 |
# File 'lib/ovirtsdk4/types.rb', line 38622 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only attribute.
38631 38632 38633 |
# File 'lib/ovirtsdk4/types.rb', line 38631 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio attribute.
38640 38641 38642 |
# File 'lib/ovirtsdk4/types.rb', line 38640 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio attribute.
38649 38650 38651 |
# File 'lib/ovirtsdk4/types.rb', line 38649 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable attribute.
38658 38659 38660 |
# File 'lib/ovirtsdk4/types.rb', line 38658 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable attribute.
38667 38668 38669 |
# File 'lib/ovirtsdk4/types.rb', line 38667 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot attribute.
38676 38677 38678 |
# File 'lib/ovirtsdk4/types.rb', line 38676 def snapshot @snapshot end |
#snapshot=(value) ⇒ Object
Sets the value of the snapshot attribute.
The value parameter can be an instance of Snapshot or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38689 38690 38691 38692 38693 38694 |
# File 'lib/ovirtsdk4/types.rb', line 38689 def snapshot=(value) if value.is_a?(Hash) value = Snapshot.new(value) end @snapshot = value end |
#sparse ⇒ Boolean
Returns the value of the sparse attribute.
38701 38702 38703 |
# File 'lib/ovirtsdk4/types.rb', line 38701 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
38710 38711 38712 |
# File 'lib/ovirtsdk4/types.rb', line 38710 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
38719 38720 38721 |
# File 'lib/ovirtsdk4/types.rb', line 38719 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
38728 38729 38730 38731 38732 38733 38734 38735 38736 38737 38738 |
# File 'lib/ovirtsdk4/types.rb', line 38728 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |
#status ⇒ DiskStatus
Returns the value of the status attribute.
38745 38746 38747 |
# File 'lib/ovirtsdk4/types.rb', line 38745 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
38754 38755 38756 |
# File 'lib/ovirtsdk4/types.rb', line 38754 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
38763 38764 38765 |
# File 'lib/ovirtsdk4/types.rb', line 38763 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain attribute.
The value parameter can be an instance of StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38776 38777 38778 38779 38780 38781 |
# File 'lib/ovirtsdk4/types.rb', line 38776 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the storage_domains attribute.
38788 38789 38790 |
# File 'lib/ovirtsdk4/types.rb', line 38788 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains attribute.
38797 38798 38799 38800 38801 38802 38803 38804 38805 38806 38807 |
# File 'lib/ovirtsdk4/types.rb', line 38797 def storage_domains=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = StorageDomain.new(value) end end end @storage_domains = list end |
#storage_type ⇒ DiskStorageType
Returns the value of the storage_type attribute.
38814 38815 38816 |
# File 'lib/ovirtsdk4/types.rb', line 38814 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type attribute.
38823 38824 38825 |
# File 'lib/ovirtsdk4/types.rb', line 38823 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template attribute.
38832 38833 38834 |
# File 'lib/ovirtsdk4/types.rb', line 38832 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template attribute.
The value parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38845 38846 38847 38848 38849 38850 |
# File 'lib/ovirtsdk4/types.rb', line 38845 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#total_size ⇒ Integer
Returns the value of the total_size attribute.
38857 38858 38859 |
# File 'lib/ovirtsdk4/types.rb', line 38857 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size attribute.
38866 38867 38868 |
# File 'lib/ovirtsdk4/types.rb', line 38866 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation attribute.
38875 38876 38877 |
# File 'lib/ovirtsdk4/types.rb', line 38875 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation attribute.
38884 38885 38886 |
# File 'lib/ovirtsdk4/types.rb', line 38884 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
38893 38894 38895 |
# File 'lib/ovirtsdk4/types.rb', line 38893 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
The value parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
38906 38907 38908 38909 38910 38911 |
# File 'lib/ovirtsdk4/types.rb', line 38906 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms attribute.
38918 38919 38920 |
# File 'lib/ovirtsdk4/types.rb', line 38918 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
38927 38928 38929 38930 38931 38932 38933 38934 38935 38936 38937 |
# File 'lib/ovirtsdk4/types.rb', line 38927 def vms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Vm.new(value) end end end @vms = list end |
#wipe_after_delete ⇒ Boolean
Returns the value of the wipe_after_delete attribute.
38944 38945 38946 |
# File 'lib/ovirtsdk4/types.rb', line 38944 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete attribute.
38953 38954 38955 |
# File 'lib/ovirtsdk4/types.rb', line 38953 def wipe_after_delete=(value) @wipe_after_delete = value end |