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. -
#backup ⇒ DiskBackup
Returns the value of the
backup
attribute. -
#backup=(value) ⇒ Object
Sets the value of the
backup
attribute. -
#backup_mode ⇒ DiskBackupMode
Returns the value of the
backup_mode
attribute. -
#backup_mode=(value) ⇒ Object
Sets the value of the
backup_mode
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. -
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the
disk_snapshots
attribute. -
#disk_snapshots=(list) ⇒ Object
Sets the value of the
disk_snapshots
attribute. -
#external_disk ⇒ String
Returns the value of the
external_disk
attribute. -
#external_disk=(value) ⇒ Object
Sets the value of the
external_disk
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. -
#parent ⇒ DiskSnapshot
Returns the value of the
parent
attribute. -
#parent=(value) ⇒ Object
Sets the value of the
parent
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.
37907 37908 37909 37910 37911 |
# File 'lib/ovirtsdk4/types.rb', line 37907 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.
37916 37917 37918 37919 37920 |
# File 'lib/ovirtsdk4/types.rb', line 37916 def ==(other) super && @disk == other.disk && @parent == other.parent end |
#active ⇒ Boolean
Returns the value of the active
attribute.
36887 36888 36889 |
# File 'lib/ovirtsdk4/types.rb', line 36887 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
36896 36897 36898 |
# File 'lib/ovirtsdk4/types.rb', line 36896 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
36905 36906 36907 |
# File 'lib/ovirtsdk4/types.rb', line 36905 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
36914 36915 36916 |
# File 'lib/ovirtsdk4/types.rb', line 36914 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
36923 36924 36925 |
# File 'lib/ovirtsdk4/types.rb', line 36923 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
36932 36933 36934 |
# File 'lib/ovirtsdk4/types.rb', line 36932 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup
attribute.
36941 36942 36943 |
# File 'lib/ovirtsdk4/types.rb', line 36941 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
36950 36951 36952 |
# File 'lib/ovirtsdk4/types.rb', line 36950 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode
attribute.
36959 36960 36961 |
# File 'lib/ovirtsdk4/types.rb', line 36959 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode
attribute.
36968 36969 36970 |
# File 'lib/ovirtsdk4/types.rb', line 36968 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
36977 36978 36979 |
# File 'lib/ovirtsdk4/types.rb', line 36977 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
36986 36987 36988 |
# File 'lib/ovirtsdk4/types.rb', line 36986 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
36995 36996 36997 |
# File 'lib/ovirtsdk4/types.rb', line 36995 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37004 37005 37006 |
# File 'lib/ovirtsdk4/types.rb', line 37004 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
37013 37014 37015 |
# File 'lib/ovirtsdk4/types.rb', line 37013 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
37022 37023 37024 |
# File 'lib/ovirtsdk4/types.rb', line 37022 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
37031 37032 37033 |
# File 'lib/ovirtsdk4/types.rb', line 37031 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37040 37041 37042 |
# File 'lib/ovirtsdk4/types.rb', line 37040 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
37049 37050 37051 |
# File 'lib/ovirtsdk4/types.rb', line 37049 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.
37062 37063 37064 37065 37066 37067 |
# File 'lib/ovirtsdk4/types.rb', line 37062 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile
attribute.
37074 37075 37076 |
# File 'lib/ovirtsdk4/types.rb', line 37074 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.
37087 37088 37089 37090 37091 37092 |
# File 'lib/ovirtsdk4/types.rb', line 37087 def disk_profile=(value) if value.is_a?(Hash) value = DiskProfile.new(value) end @disk_profile = value end |
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the disk_snapshots
attribute.
37099 37100 37101 |
# File 'lib/ovirtsdk4/types.rb', line 37099 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 |
# File 'lib/ovirtsdk4/types.rb', line 37108 def disk_snapshots=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskSnapshot.new(value) end end end @disk_snapshots = list end |
#external_disk ⇒ String
Returns the value of the external_disk
attribute.
37125 37126 37127 |
# File 'lib/ovirtsdk4/types.rb', line 37125 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk
attribute.
37134 37135 37136 |
# File 'lib/ovirtsdk4/types.rb', line 37134 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
37143 37144 37145 |
# File 'lib/ovirtsdk4/types.rb', line 37143 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
37152 37153 37154 |
# File 'lib/ovirtsdk4/types.rb', line 37152 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
37925 37926 37927 37928 37929 |
# File 'lib/ovirtsdk4/types.rb', line 37925 def hash super + @disk.hash + @parent.hash end |
#id ⇒ String
Returns the value of the id
attribute.
37161 37162 37163 |
# File 'lib/ovirtsdk4/types.rb', line 37161 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37170 37171 37172 |
# File 'lib/ovirtsdk4/types.rb', line 37170 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
37179 37180 37181 |
# File 'lib/ovirtsdk4/types.rb', line 37179 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
37188 37189 37190 |
# File 'lib/ovirtsdk4/types.rb', line 37188 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
37197 37198 37199 |
# File 'lib/ovirtsdk4/types.rb', line 37197 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
37206 37207 37208 |
# File 'lib/ovirtsdk4/types.rb', line 37206 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
37215 37216 37217 |
# File 'lib/ovirtsdk4/types.rb', line 37215 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.
37228 37229 37230 37231 37232 37233 |
# File 'lib/ovirtsdk4/types.rb', line 37228 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#interface ⇒ DiskInterface
Returns the value of the interface
attribute.
37240 37241 37242 |
# File 'lib/ovirtsdk4/types.rb', line 37240 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
37249 37250 37251 |
# File 'lib/ovirtsdk4/types.rb', line 37249 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
37258 37259 37260 |
# File 'lib/ovirtsdk4/types.rb', line 37258 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
37267 37268 37269 |
# File 'lib/ovirtsdk4/types.rb', line 37267 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
37276 37277 37278 |
# File 'lib/ovirtsdk4/types.rb', line 37276 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.
37289 37290 37291 37292 37293 37294 |
# File 'lib/ovirtsdk4/types.rb', line 37289 def lun_storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @lun_storage = value end |
#name ⇒ String
Returns the value of the name
attribute.
37301 37302 37303 |
# File 'lib/ovirtsdk4/types.rb', line 37301 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37310 37311 37312 |
# File 'lib/ovirtsdk4/types.rb', line 37310 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
37319 37320 37321 |
# File 'lib/ovirtsdk4/types.rb', line 37319 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.
37332 37333 37334 37335 37336 37337 |
# File 'lib/ovirtsdk4/types.rb', line 37332 def openstack_volume_type=(value) if value.is_a?(Hash) value = OpenStackVolumeType.new(value) end @openstack_volume_type = value end |
#parent ⇒ DiskSnapshot
Returns the value of the parent
attribute.
37344 37345 37346 |
# File 'lib/ovirtsdk4/types.rb', line 37344 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.
37357 37358 37359 37360 37361 37362 |
# File 'lib/ovirtsdk4/types.rb', line 37357 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.
37369 37370 37371 |
# File 'lib/ovirtsdk4/types.rb', line 37369 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
37378 37379 37380 37381 37382 37383 37384 37385 37386 37387 37388 |
# File 'lib/ovirtsdk4/types.rb', line 37378 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.
37395 37396 37397 |
# File 'lib/ovirtsdk4/types.rb', line 37395 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
37404 37405 37406 |
# File 'lib/ovirtsdk4/types.rb', line 37404 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
37413 37414 37415 |
# File 'lib/ovirtsdk4/types.rb', line 37413 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
37422 37423 37424 |
# File 'lib/ovirtsdk4/types.rb', line 37422 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
37431 37432 37433 |
# File 'lib/ovirtsdk4/types.rb', line 37431 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
37440 37441 37442 |
# File 'lib/ovirtsdk4/types.rb', line 37440 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
37449 37450 37451 |
# File 'lib/ovirtsdk4/types.rb', line 37449 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.
37462 37463 37464 37465 37466 37467 |
# File 'lib/ovirtsdk4/types.rb', line 37462 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#read_only ⇒ Boolean
Returns the value of the read_only
attribute.
37474 37475 37476 |
# File 'lib/ovirtsdk4/types.rb', line 37474 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
37483 37484 37485 |
# File 'lib/ovirtsdk4/types.rb', line 37483 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
37492 37493 37494 |
# File 'lib/ovirtsdk4/types.rb', line 37492 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
37501 37502 37503 |
# File 'lib/ovirtsdk4/types.rb', line 37501 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
37510 37511 37512 |
# File 'lib/ovirtsdk4/types.rb', line 37510 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
37519 37520 37521 |
# File 'lib/ovirtsdk4/types.rb', line 37519 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
37528 37529 37530 |
# File 'lib/ovirtsdk4/types.rb', line 37528 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.
37541 37542 37543 37544 37545 37546 |
# File 'lib/ovirtsdk4/types.rb', line 37541 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.
37553 37554 37555 |
# File 'lib/ovirtsdk4/types.rb', line 37553 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
37562 37563 37564 |
# File 'lib/ovirtsdk4/types.rb', line 37562 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
37571 37572 37573 |
# File 'lib/ovirtsdk4/types.rb', line 37571 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 |
# File 'lib/ovirtsdk4/types.rb', line 37580 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |
#status ⇒ DiskStatus
Returns the value of the status
attribute.
37597 37598 37599 |
# File 'lib/ovirtsdk4/types.rb', line 37597 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
37606 37607 37608 |
# File 'lib/ovirtsdk4/types.rb', line 37606 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
37615 37616 37617 |
# File 'lib/ovirtsdk4/types.rb', line 37615 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.
37628 37629 37630 37631 37632 37633 |
# File 'lib/ovirtsdk4/types.rb', line 37628 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the storage_domains
attribute.
37640 37641 37642 |
# File 'lib/ovirtsdk4/types.rb', line 37640 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
37649 37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 |
# File 'lib/ovirtsdk4/types.rb', line 37649 def storage_domains=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = StorageDomain.new(value) end end end @storage_domains = list end |
#storage_type ⇒ DiskStorageType
Returns the value of the storage_type
attribute.
37666 37667 37668 |
# File 'lib/ovirtsdk4/types.rb', line 37666 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
37675 37676 37677 |
# File 'lib/ovirtsdk4/types.rb', line 37675 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
37684 37685 37686 |
# File 'lib/ovirtsdk4/types.rb', line 37684 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.
37697 37698 37699 37700 37701 37702 |
# File 'lib/ovirtsdk4/types.rb', line 37697 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#total_size ⇒ Integer
Returns the value of the total_size
attribute.
37709 37710 37711 |
# File 'lib/ovirtsdk4/types.rb', line 37709 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
37718 37719 37720 |
# File 'lib/ovirtsdk4/types.rb', line 37718 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
37727 37728 37729 |
# File 'lib/ovirtsdk4/types.rb', line 37727 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
37736 37737 37738 |
# File 'lib/ovirtsdk4/types.rb', line 37736 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
37745 37746 37747 |
# File 'lib/ovirtsdk4/types.rb', line 37745 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.
37758 37759 37760 37761 37762 37763 |
# File 'lib/ovirtsdk4/types.rb', line 37758 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.
37770 37771 37772 |
# File 'lib/ovirtsdk4/types.rb', line 37770 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 |
# File 'lib/ovirtsdk4/types.rb', line 37779 def vms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Vm.new(value) end end end @vms = list end |
#wipe_after_delete ⇒ Boolean
Returns the value of the wipe_after_delete
attribute.
37796 37797 37798 |
# File 'lib/ovirtsdk4/types.rb', line 37796 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
37805 37806 37807 |
# File 'lib/ovirtsdk4/types.rb', line 37805 def wipe_after_delete=(value) @wipe_after_delete = value end |