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.
38762 38763 38764 38765 38766 |
# File 'lib/ovirtsdk4/types.rb', line 38762 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.
38771 38772 38773 38774 38775 |
# File 'lib/ovirtsdk4/types.rb', line 38771 def ==(other) super && @disk == other.disk && @parent == other.parent end |
#active ⇒ Boolean
Returns the value of the active
attribute.
37742 37743 37744 |
# File 'lib/ovirtsdk4/types.rb', line 37742 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
37751 37752 37753 |
# File 'lib/ovirtsdk4/types.rb', line 37751 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
37760 37761 37762 |
# File 'lib/ovirtsdk4/types.rb', line 37760 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
37769 37770 37771 |
# File 'lib/ovirtsdk4/types.rb', line 37769 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
37778 37779 37780 |
# File 'lib/ovirtsdk4/types.rb', line 37778 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
37787 37788 37789 |
# File 'lib/ovirtsdk4/types.rb', line 37787 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup
attribute.
37796 37797 37798 |
# File 'lib/ovirtsdk4/types.rb', line 37796 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
37805 37806 37807 |
# File 'lib/ovirtsdk4/types.rb', line 37805 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode
attribute.
37814 37815 37816 |
# File 'lib/ovirtsdk4/types.rb', line 37814 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode
attribute.
37823 37824 37825 |
# File 'lib/ovirtsdk4/types.rb', line 37823 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
37832 37833 37834 |
# File 'lib/ovirtsdk4/types.rb', line 37832 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
37841 37842 37843 |
# File 'lib/ovirtsdk4/types.rb', line 37841 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
37850 37851 37852 |
# File 'lib/ovirtsdk4/types.rb', line 37850 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37859 37860 37861 |
# File 'lib/ovirtsdk4/types.rb', line 37859 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
37868 37869 37870 |
# File 'lib/ovirtsdk4/types.rb', line 37868 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
37877 37878 37879 |
# File 'lib/ovirtsdk4/types.rb', line 37877 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
37886 37887 37888 |
# File 'lib/ovirtsdk4/types.rb', line 37886 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37895 37896 37897 |
# File 'lib/ovirtsdk4/types.rb', line 37895 def description=(value) @description = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
37904 37905 37906 |
# File 'lib/ovirtsdk4/types.rb', line 37904 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.
37917 37918 37919 37920 37921 37922 |
# File 'lib/ovirtsdk4/types.rb', line 37917 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.
37929 37930 37931 |
# File 'lib/ovirtsdk4/types.rb', line 37929 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.
37942 37943 37944 37945 37946 37947 |
# File 'lib/ovirtsdk4/types.rb', line 37942 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.
37954 37955 37956 |
# File 'lib/ovirtsdk4/types.rb', line 37954 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 |
# File 'lib/ovirtsdk4/types.rb', line 37963 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.
37980 37981 37982 |
# File 'lib/ovirtsdk4/types.rb', line 37980 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk
attribute.
37989 37990 37991 |
# File 'lib/ovirtsdk4/types.rb', line 37989 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
37998 37999 38000 |
# File 'lib/ovirtsdk4/types.rb', line 37998 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
38007 38008 38009 |
# File 'lib/ovirtsdk4/types.rb', line 38007 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
38780 38781 38782 38783 38784 |
# File 'lib/ovirtsdk4/types.rb', line 38780 def hash super + @disk.hash + @parent.hash end |
#id ⇒ String
Returns the value of the id
attribute.
38016 38017 38018 |
# File 'lib/ovirtsdk4/types.rb', line 38016 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
38025 38026 38027 |
# File 'lib/ovirtsdk4/types.rb', line 38025 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
38034 38035 38036 |
# File 'lib/ovirtsdk4/types.rb', line 38034 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
38043 38044 38045 |
# File 'lib/ovirtsdk4/types.rb', line 38043 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
38052 38053 38054 |
# File 'lib/ovirtsdk4/types.rb', line 38052 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
38061 38062 38063 |
# File 'lib/ovirtsdk4/types.rb', line 38061 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
38070 38071 38072 |
# File 'lib/ovirtsdk4/types.rb', line 38070 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.
38083 38084 38085 38086 38087 38088 |
# File 'lib/ovirtsdk4/types.rb', line 38083 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.
38095 38096 38097 |
# File 'lib/ovirtsdk4/types.rb', line 38095 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
38104 38105 38106 |
# File 'lib/ovirtsdk4/types.rb', line 38104 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
38113 38114 38115 |
# File 'lib/ovirtsdk4/types.rb', line 38113 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
38122 38123 38124 |
# File 'lib/ovirtsdk4/types.rb', line 38122 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
38131 38132 38133 |
# File 'lib/ovirtsdk4/types.rb', line 38131 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.
38144 38145 38146 38147 38148 38149 |
# File 'lib/ovirtsdk4/types.rb', line 38144 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.
38156 38157 38158 |
# File 'lib/ovirtsdk4/types.rb', line 38156 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
38165 38166 38167 |
# File 'lib/ovirtsdk4/types.rb', line 38165 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
38174 38175 38176 |
# File 'lib/ovirtsdk4/types.rb', line 38174 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.
38187 38188 38189 38190 38191 38192 |
# File 'lib/ovirtsdk4/types.rb', line 38187 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.
38199 38200 38201 |
# File 'lib/ovirtsdk4/types.rb', line 38199 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.
38212 38213 38214 38215 38216 38217 |
# File 'lib/ovirtsdk4/types.rb', line 38212 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.
38224 38225 38226 |
# File 'lib/ovirtsdk4/types.rb', line 38224 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
38233 38234 38235 38236 38237 38238 38239 38240 38241 38242 38243 |
# File 'lib/ovirtsdk4/types.rb', line 38233 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.
38250 38251 38252 |
# File 'lib/ovirtsdk4/types.rb', line 38250 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
38259 38260 38261 |
# File 'lib/ovirtsdk4/types.rb', line 38259 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
38268 38269 38270 |
# File 'lib/ovirtsdk4/types.rb', line 38268 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
38277 38278 38279 |
# File 'lib/ovirtsdk4/types.rb', line 38277 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
38286 38287 38288 |
# File 'lib/ovirtsdk4/types.rb', line 38286 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
38295 38296 38297 |
# File 'lib/ovirtsdk4/types.rb', line 38295 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
38304 38305 38306 |
# File 'lib/ovirtsdk4/types.rb', line 38304 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.
38317 38318 38319 38320 38321 38322 |
# File 'lib/ovirtsdk4/types.rb', line 38317 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.
38329 38330 38331 |
# File 'lib/ovirtsdk4/types.rb', line 38329 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
38338 38339 38340 |
# File 'lib/ovirtsdk4/types.rb', line 38338 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
38347 38348 38349 |
# File 'lib/ovirtsdk4/types.rb', line 38347 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
38356 38357 38358 |
# File 'lib/ovirtsdk4/types.rb', line 38356 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
38365 38366 38367 |
# File 'lib/ovirtsdk4/types.rb', line 38365 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
38374 38375 38376 |
# File 'lib/ovirtsdk4/types.rb', line 38374 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
38383 38384 38385 |
# File 'lib/ovirtsdk4/types.rb', line 38383 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.
38396 38397 38398 38399 38400 38401 |
# File 'lib/ovirtsdk4/types.rb', line 38396 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.
38408 38409 38410 |
# File 'lib/ovirtsdk4/types.rb', line 38408 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
38417 38418 38419 |
# File 'lib/ovirtsdk4/types.rb', line 38417 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
38426 38427 38428 |
# File 'lib/ovirtsdk4/types.rb', line 38426 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
38435 38436 38437 38438 38439 38440 38441 38442 38443 38444 38445 |
# File 'lib/ovirtsdk4/types.rb', line 38435 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.
38452 38453 38454 |
# File 'lib/ovirtsdk4/types.rb', line 38452 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
38461 38462 38463 |
# File 'lib/ovirtsdk4/types.rb', line 38461 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
38470 38471 38472 |
# File 'lib/ovirtsdk4/types.rb', line 38470 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.
38483 38484 38485 38486 38487 38488 |
# File 'lib/ovirtsdk4/types.rb', line 38483 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.
38495 38496 38497 |
# File 'lib/ovirtsdk4/types.rb', line 38495 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
38504 38505 38506 38507 38508 38509 38510 38511 38512 38513 38514 |
# File 'lib/ovirtsdk4/types.rb', line 38504 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.
38521 38522 38523 |
# File 'lib/ovirtsdk4/types.rb', line 38521 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
38530 38531 38532 |
# File 'lib/ovirtsdk4/types.rb', line 38530 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
38539 38540 38541 |
# File 'lib/ovirtsdk4/types.rb', line 38539 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.
38552 38553 38554 38555 38556 38557 |
# File 'lib/ovirtsdk4/types.rb', line 38552 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.
38564 38565 38566 |
# File 'lib/ovirtsdk4/types.rb', line 38564 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
38573 38574 38575 |
# File 'lib/ovirtsdk4/types.rb', line 38573 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
38582 38583 38584 |
# File 'lib/ovirtsdk4/types.rb', line 38582 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
38591 38592 38593 |
# File 'lib/ovirtsdk4/types.rb', line 38591 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
38600 38601 38602 |
# File 'lib/ovirtsdk4/types.rb', line 38600 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.
38613 38614 38615 38616 38617 38618 |
# File 'lib/ovirtsdk4/types.rb', line 38613 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.
38625 38626 38627 |
# File 'lib/ovirtsdk4/types.rb', line 38625 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 |
# File 'lib/ovirtsdk4/types.rb', line 38634 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.
38651 38652 38653 |
# File 'lib/ovirtsdk4/types.rb', line 38651 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
38660 38661 38662 |
# File 'lib/ovirtsdk4/types.rb', line 38660 def wipe_after_delete=(value) @wipe_after_delete = value end |