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. -
#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.
36546 36547 36548 36549 |
# File 'lib/ovirtsdk4/types.rb', line 36546 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.
36554 36555 36556 36557 |
# File 'lib/ovirtsdk4/types.rb', line 36554 def ==(other) super && @disk == other.disk end |
#active ⇒ Boolean
Returns the value of the active
attribute.
35621 35622 35623 |
# File 'lib/ovirtsdk4/types.rb', line 35621 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
35630 35631 35632 |
# File 'lib/ovirtsdk4/types.rb', line 35630 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
35639 35640 35641 |
# File 'lib/ovirtsdk4/types.rb', line 35639 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
35648 35649 35650 |
# File 'lib/ovirtsdk4/types.rb', line 35648 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
35657 35658 35659 |
# File 'lib/ovirtsdk4/types.rb', line 35657 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
35666 35667 35668 |
# File 'lib/ovirtsdk4/types.rb', line 35666 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup
attribute.
35675 35676 35677 |
# File 'lib/ovirtsdk4/types.rb', line 35675 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
35684 35685 35686 |
# File 'lib/ovirtsdk4/types.rb', line 35684 def backup=(value) @backup = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
35693 35694 35695 |
# File 'lib/ovirtsdk4/types.rb', line 35693 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
35702 35703 35704 |
# File 'lib/ovirtsdk4/types.rb', line 35702 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
35711 35712 35713 |
# File 'lib/ovirtsdk4/types.rb', line 35711 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
35720 35721 35722 |
# File 'lib/ovirtsdk4/types.rb', line 35720 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
35729 35730 35731 |
# File 'lib/ovirtsdk4/types.rb', line 35729 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
35738 35739 35740 |
# File 'lib/ovirtsdk4/types.rb', line 35738 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
35747 35748 35749 |
# File 'lib/ovirtsdk4/types.rb', line 35747 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
35756 35757 35758 |
# File 'lib/ovirtsdk4/types.rb', line 35756 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
35765 35766 35767 |
# File 'lib/ovirtsdk4/types.rb', line 35765 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.
35778 35779 35780 35781 35782 35783 |
# File 'lib/ovirtsdk4/types.rb', line 35778 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.
35790 35791 35792 |
# File 'lib/ovirtsdk4/types.rb', line 35790 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.
35803 35804 35805 35806 35807 35808 |
# File 'lib/ovirtsdk4/types.rb', line 35803 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.
35815 35816 35817 |
# File 'lib/ovirtsdk4/types.rb', line 35815 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
35824 35825 35826 |
# File 'lib/ovirtsdk4/types.rb', line 35824 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
36562 36563 36564 36565 |
# File 'lib/ovirtsdk4/types.rb', line 36562 def hash super + @disk.hash end |
#id ⇒ String
Returns the value of the id
attribute.
35833 35834 35835 |
# File 'lib/ovirtsdk4/types.rb', line 35833 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
35842 35843 35844 |
# File 'lib/ovirtsdk4/types.rb', line 35842 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
35851 35852 35853 |
# File 'lib/ovirtsdk4/types.rb', line 35851 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
35860 35861 35862 |
# File 'lib/ovirtsdk4/types.rb', line 35860 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
35869 35870 35871 |
# File 'lib/ovirtsdk4/types.rb', line 35869 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
35878 35879 35880 |
# File 'lib/ovirtsdk4/types.rb', line 35878 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
35887 35888 35889 |
# File 'lib/ovirtsdk4/types.rb', line 35887 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.
35900 35901 35902 35903 35904 35905 |
# File 'lib/ovirtsdk4/types.rb', line 35900 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.
35912 35913 35914 |
# File 'lib/ovirtsdk4/types.rb', line 35912 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
35921 35922 35923 |
# File 'lib/ovirtsdk4/types.rb', line 35921 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
35930 35931 35932 |
# File 'lib/ovirtsdk4/types.rb', line 35930 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
35939 35940 35941 |
# File 'lib/ovirtsdk4/types.rb', line 35939 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
35948 35949 35950 |
# File 'lib/ovirtsdk4/types.rb', line 35948 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.
35961 35962 35963 35964 35965 35966 |
# File 'lib/ovirtsdk4/types.rb', line 35961 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.
35973 35974 35975 |
# File 'lib/ovirtsdk4/types.rb', line 35973 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
35982 35983 35984 |
# File 'lib/ovirtsdk4/types.rb', line 35982 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
35991 35992 35993 |
# File 'lib/ovirtsdk4/types.rb', line 35991 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.
36004 36005 36006 36007 36008 36009 |
# File 'lib/ovirtsdk4/types.rb', line 36004 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.
36016 36017 36018 |
# File 'lib/ovirtsdk4/types.rb', line 36016 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
36025 36026 36027 36028 36029 36030 36031 36032 36033 36034 36035 |
# File 'lib/ovirtsdk4/types.rb', line 36025 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.
36042 36043 36044 |
# File 'lib/ovirtsdk4/types.rb', line 36042 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
36051 36052 36053 |
# File 'lib/ovirtsdk4/types.rb', line 36051 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
36060 36061 36062 |
# File 'lib/ovirtsdk4/types.rb', line 36060 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
36069 36070 36071 |
# File 'lib/ovirtsdk4/types.rb', line 36069 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
36078 36079 36080 |
# File 'lib/ovirtsdk4/types.rb', line 36078 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
36087 36088 36089 |
# File 'lib/ovirtsdk4/types.rb', line 36087 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
36096 36097 36098 |
# File 'lib/ovirtsdk4/types.rb', line 36096 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.
36109 36110 36111 36112 36113 36114 |
# File 'lib/ovirtsdk4/types.rb', line 36109 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.
36121 36122 36123 |
# File 'lib/ovirtsdk4/types.rb', line 36121 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
36130 36131 36132 |
# File 'lib/ovirtsdk4/types.rb', line 36130 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
36139 36140 36141 |
# File 'lib/ovirtsdk4/types.rb', line 36139 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
36148 36149 36150 |
# File 'lib/ovirtsdk4/types.rb', line 36148 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
36157 36158 36159 |
# File 'lib/ovirtsdk4/types.rb', line 36157 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
36166 36167 36168 |
# File 'lib/ovirtsdk4/types.rb', line 36166 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
36175 36176 36177 |
# File 'lib/ovirtsdk4/types.rb', line 36175 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.
36188 36189 36190 36191 36192 36193 |
# File 'lib/ovirtsdk4/types.rb', line 36188 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.
36200 36201 36202 |
# File 'lib/ovirtsdk4/types.rb', line 36200 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
36209 36210 36211 |
# File 'lib/ovirtsdk4/types.rb', line 36209 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
36218 36219 36220 |
# File 'lib/ovirtsdk4/types.rb', line 36218 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
36227 36228 36229 36230 36231 36232 36233 36234 36235 36236 36237 |
# File 'lib/ovirtsdk4/types.rb', line 36227 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.
36244 36245 36246 |
# File 'lib/ovirtsdk4/types.rb', line 36244 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
36253 36254 36255 |
# File 'lib/ovirtsdk4/types.rb', line 36253 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
36262 36263 36264 |
# File 'lib/ovirtsdk4/types.rb', line 36262 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.
36275 36276 36277 36278 36279 36280 |
# File 'lib/ovirtsdk4/types.rb', line 36275 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.
36287 36288 36289 |
# File 'lib/ovirtsdk4/types.rb', line 36287 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
36296 36297 36298 36299 36300 36301 36302 36303 36304 36305 36306 |
# File 'lib/ovirtsdk4/types.rb', line 36296 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.
36313 36314 36315 |
# File 'lib/ovirtsdk4/types.rb', line 36313 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
36322 36323 36324 |
# File 'lib/ovirtsdk4/types.rb', line 36322 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
36331 36332 36333 |
# File 'lib/ovirtsdk4/types.rb', line 36331 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.
36344 36345 36346 36347 36348 36349 |
# File 'lib/ovirtsdk4/types.rb', line 36344 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.
36356 36357 36358 |
# File 'lib/ovirtsdk4/types.rb', line 36356 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
36365 36366 36367 |
# File 'lib/ovirtsdk4/types.rb', line 36365 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
36374 36375 36376 |
# File 'lib/ovirtsdk4/types.rb', line 36374 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
36383 36384 36385 |
# File 'lib/ovirtsdk4/types.rb', line 36383 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
36392 36393 36394 |
# File 'lib/ovirtsdk4/types.rb', line 36392 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.
36405 36406 36407 36408 36409 36410 |
# File 'lib/ovirtsdk4/types.rb', line 36405 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.
36417 36418 36419 |
# File 'lib/ovirtsdk4/types.rb', line 36417 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
36426 36427 36428 36429 36430 36431 36432 36433 36434 36435 36436 |
# File 'lib/ovirtsdk4/types.rb', line 36426 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.
36443 36444 36445 |
# File 'lib/ovirtsdk4/types.rb', line 36443 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
36452 36453 36454 |
# File 'lib/ovirtsdk4/types.rb', line 36452 def wipe_after_delete=(value) @wipe_after_delete = value end |