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.
35841 35842 35843 35844 |
# File 'lib/ovirtsdk4/types.rb', line 35841 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.
35849 35850 35851 35852 |
# File 'lib/ovirtsdk4/types.rb', line 35849 def ==(other) super && @disk == other.disk end |
#active ⇒ Boolean
Returns the value of the active
attribute.
34936 34937 34938 |
# File 'lib/ovirtsdk4/types.rb', line 34936 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
34945 34946 34947 |
# File 'lib/ovirtsdk4/types.rb', line 34945 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
34954 34955 34956 |
# File 'lib/ovirtsdk4/types.rb', line 34954 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
34963 34964 34965 |
# File 'lib/ovirtsdk4/types.rb', line 34963 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
34972 34973 34974 |
# File 'lib/ovirtsdk4/types.rb', line 34972 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
34981 34982 34983 |
# File 'lib/ovirtsdk4/types.rb', line 34981 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
34990 34991 34992 |
# File 'lib/ovirtsdk4/types.rb', line 34990 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
34999 35000 35001 |
# File 'lib/ovirtsdk4/types.rb', line 34999 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
35008 35009 35010 |
# File 'lib/ovirtsdk4/types.rb', line 35008 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
35017 35018 35019 |
# File 'lib/ovirtsdk4/types.rb', line 35017 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
35026 35027 35028 |
# File 'lib/ovirtsdk4/types.rb', line 35026 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
35035 35036 35037 |
# File 'lib/ovirtsdk4/types.rb', line 35035 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
35044 35045 35046 |
# File 'lib/ovirtsdk4/types.rb', line 35044 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
35053 35054 35055 |
# File 'lib/ovirtsdk4/types.rb', line 35053 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
35062 35063 35064 |
# File 'lib/ovirtsdk4/types.rb', line 35062 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.
35075 35076 35077 35078 35079 35080 |
# File 'lib/ovirtsdk4/types.rb', line 35075 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.
35087 35088 35089 |
# File 'lib/ovirtsdk4/types.rb', line 35087 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.
35100 35101 35102 35103 35104 35105 |
# File 'lib/ovirtsdk4/types.rb', line 35100 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.
35112 35113 35114 |
# File 'lib/ovirtsdk4/types.rb', line 35112 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
35121 35122 35123 |
# File 'lib/ovirtsdk4/types.rb', line 35121 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
35857 35858 35859 35860 |
# File 'lib/ovirtsdk4/types.rb', line 35857 def hash super + @disk.hash end |
#id ⇒ String
Returns the value of the id
attribute.
35130 35131 35132 |
# File 'lib/ovirtsdk4/types.rb', line 35130 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
35139 35140 35141 |
# File 'lib/ovirtsdk4/types.rb', line 35139 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
35148 35149 35150 |
# File 'lib/ovirtsdk4/types.rb', line 35148 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
35157 35158 35159 |
# File 'lib/ovirtsdk4/types.rb', line 35157 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
35166 35167 35168 |
# File 'lib/ovirtsdk4/types.rb', line 35166 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
35175 35176 35177 |
# File 'lib/ovirtsdk4/types.rb', line 35175 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
35184 35185 35186 |
# File 'lib/ovirtsdk4/types.rb', line 35184 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.
35197 35198 35199 35200 35201 35202 |
# File 'lib/ovirtsdk4/types.rb', line 35197 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.
35209 35210 35211 |
# File 'lib/ovirtsdk4/types.rb', line 35209 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
35218 35219 35220 |
# File 'lib/ovirtsdk4/types.rb', line 35218 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
35227 35228 35229 |
# File 'lib/ovirtsdk4/types.rb', line 35227 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
35236 35237 35238 |
# File 'lib/ovirtsdk4/types.rb', line 35236 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
35245 35246 35247 |
# File 'lib/ovirtsdk4/types.rb', line 35245 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.
35258 35259 35260 35261 35262 35263 |
# File 'lib/ovirtsdk4/types.rb', line 35258 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.
35270 35271 35272 |
# File 'lib/ovirtsdk4/types.rb', line 35270 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
35279 35280 35281 |
# File 'lib/ovirtsdk4/types.rb', line 35279 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
35288 35289 35290 |
# File 'lib/ovirtsdk4/types.rb', line 35288 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.
35301 35302 35303 35304 35305 35306 |
# File 'lib/ovirtsdk4/types.rb', line 35301 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.
35313 35314 35315 |
# File 'lib/ovirtsdk4/types.rb', line 35313 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 |
# File 'lib/ovirtsdk4/types.rb', line 35322 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.
35339 35340 35341 |
# File 'lib/ovirtsdk4/types.rb', line 35339 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
35348 35349 35350 |
# File 'lib/ovirtsdk4/types.rb', line 35348 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
35357 35358 35359 |
# File 'lib/ovirtsdk4/types.rb', line 35357 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
35366 35367 35368 |
# File 'lib/ovirtsdk4/types.rb', line 35366 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
35375 35376 35377 |
# File 'lib/ovirtsdk4/types.rb', line 35375 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
35384 35385 35386 |
# File 'lib/ovirtsdk4/types.rb', line 35384 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
35393 35394 35395 |
# File 'lib/ovirtsdk4/types.rb', line 35393 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.
35406 35407 35408 35409 35410 35411 |
# File 'lib/ovirtsdk4/types.rb', line 35406 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.
35418 35419 35420 |
# File 'lib/ovirtsdk4/types.rb', line 35418 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
35427 35428 35429 |
# File 'lib/ovirtsdk4/types.rb', line 35427 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
35436 35437 35438 |
# File 'lib/ovirtsdk4/types.rb', line 35436 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
35445 35446 35447 |
# File 'lib/ovirtsdk4/types.rb', line 35445 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
35454 35455 35456 |
# File 'lib/ovirtsdk4/types.rb', line 35454 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
35463 35464 35465 |
# File 'lib/ovirtsdk4/types.rb', line 35463 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
35472 35473 35474 |
# File 'lib/ovirtsdk4/types.rb', line 35472 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.
35485 35486 35487 35488 35489 35490 |
# File 'lib/ovirtsdk4/types.rb', line 35485 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.
35497 35498 35499 |
# File 'lib/ovirtsdk4/types.rb', line 35497 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
35506 35507 35508 |
# File 'lib/ovirtsdk4/types.rb', line 35506 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
35515 35516 35517 |
# File 'lib/ovirtsdk4/types.rb', line 35515 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
35524 35525 35526 35527 35528 35529 35530 35531 35532 35533 35534 |
# File 'lib/ovirtsdk4/types.rb', line 35524 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.
35541 35542 35543 |
# File 'lib/ovirtsdk4/types.rb', line 35541 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
35550 35551 35552 |
# File 'lib/ovirtsdk4/types.rb', line 35550 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
35559 35560 35561 |
# File 'lib/ovirtsdk4/types.rb', line 35559 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.
35572 35573 35574 35575 35576 35577 |
# File 'lib/ovirtsdk4/types.rb', line 35572 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.
35584 35585 35586 |
# File 'lib/ovirtsdk4/types.rb', line 35584 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
35593 35594 35595 35596 35597 35598 35599 35600 35601 35602 35603 |
# File 'lib/ovirtsdk4/types.rb', line 35593 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.
35610 35611 35612 |
# File 'lib/ovirtsdk4/types.rb', line 35610 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
35619 35620 35621 |
# File 'lib/ovirtsdk4/types.rb', line 35619 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
35628 35629 35630 |
# File 'lib/ovirtsdk4/types.rb', line 35628 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.
35641 35642 35643 35644 35645 35646 |
# File 'lib/ovirtsdk4/types.rb', line 35641 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.
35653 35654 35655 |
# File 'lib/ovirtsdk4/types.rb', line 35653 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
35662 35663 35664 |
# File 'lib/ovirtsdk4/types.rb', line 35662 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
35671 35672 35673 |
# File 'lib/ovirtsdk4/types.rb', line 35671 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
35680 35681 35682 |
# File 'lib/ovirtsdk4/types.rb', line 35680 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
35689 35690 35691 |
# File 'lib/ovirtsdk4/types.rb', line 35689 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.
35702 35703 35704 35705 35706 35707 |
# File 'lib/ovirtsdk4/types.rb', line 35702 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.
35714 35715 35716 |
# File 'lib/ovirtsdk4/types.rb', line 35714 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
35723 35724 35725 35726 35727 35728 35729 35730 35731 35732 35733 |
# File 'lib/ovirtsdk4/types.rb', line 35723 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.
35740 35741 35742 |
# File 'lib/ovirtsdk4/types.rb', line 35740 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
35749 35750 35751 |
# File 'lib/ovirtsdk4/types.rb', line 35749 def wipe_after_delete=(value) @wipe_after_delete = value end |