Class: OvirtSDK4::Disk
- Inherits:
-
Device
- Object
- Struct
- Identified
- Device
- OvirtSDK4::Disk
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
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_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 = {}) ⇒ Disk
constructor
Creates a new instance of the Disk 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 = {}) ⇒ Disk
Creates a new instance of the OvirtSDK4::Disk class.
36193 36194 36195 36196 36197 36198 36199 36200 36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 36226 36227 36228 36229 36230 |
# File 'lib/ovirtsdk4/types.rb', line 36193 def initialize(opts = {}) super(opts) self.active = opts[:active] self.actual_size = opts[:actual_size] self.alias_ = opts[:alias_] self.backup = opts[:backup] self.backup_mode = opts[:backup_mode] self.bootable = opts[:bootable] self.content_type = opts[:content_type] self.disk_profile = opts[:disk_profile] self.disk_snapshots = opts[:disk_snapshots] self.external_disk = opts[:external_disk] self.format = opts[:format] self.image_id = opts[:image_id] self.initial_size = opts[:initial_size] self.interface = opts[:interface] self.logical_name = opts[:logical_name] self.lun_storage = opts[:lun_storage] self.openstack_volume_type = opts[:openstack_volume_type] self. = opts[:permissions] self.propagate_errors = opts[:propagate_errors] self.provisioned_size = opts[:provisioned_size] self.qcow_version = opts[:qcow_version] self.quota = opts[:quota] self.read_only = opts[:read_only] self.sgio = opts[:sgio] self.shareable = opts[:shareable] self.snapshot = opts[:snapshot] self.sparse = opts[:sparse] self.statistics = opts[:statistics] self.status = opts[:status] self.storage_domain = opts[:storage_domain] self.storage_domains = opts[:storage_domains] self.storage_type = opts[:storage_type] self.total_size = opts[:total_size] self.uses_scsi_reservation = opts[:uses_scsi_reservation] self.wipe_after_delete = opts[:wipe_after_delete] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
36235 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 36268 36269 36270 36271 36272 |
# File 'lib/ovirtsdk4/types.rb', line 36235 def ==(other) super && @active == other.active && @actual_size == other.actual_size && @alias_ == other.alias_ && @backup == other.backup && @backup_mode == other.backup_mode && @bootable == other.bootable && @content_type == other.content_type && @disk_profile == other.disk_profile && @disk_snapshots == other.disk_snapshots && @external_disk == other.external_disk && @format == other.format && @image_id == other.image_id && @initial_size == other.initial_size && @interface == other.interface && @logical_name == other.logical_name && @lun_storage == other.lun_storage && @openstack_volume_type == other.openstack_volume_type && @permissions == other. && @propagate_errors == other.propagate_errors && @provisioned_size == other.provisioned_size && @qcow_version == other.qcow_version && @quota == other.quota && @read_only == other.read_only && @sgio == other.sgio && @shareable == other.shareable && @snapshot == other.snapshot && @sparse == other.sparse && @statistics == other.statistics && @status == other.status && @storage_domain == other.storage_domain && @storage_domains == other.storage_domains && @storage_type == other.storage_type && @total_size == other.total_size && @uses_scsi_reservation == other.uses_scsi_reservation && @wipe_after_delete == other.wipe_after_delete end |
#active ⇒ Boolean
Returns the value of the active
attribute.
35227 35228 35229 |
# File 'lib/ovirtsdk4/types.rb', line 35227 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
35236 35237 35238 |
# File 'lib/ovirtsdk4/types.rb', line 35236 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
35245 35246 35247 |
# File 'lib/ovirtsdk4/types.rb', line 35245 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
35254 35255 35256 |
# File 'lib/ovirtsdk4/types.rb', line 35254 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
35263 35264 35265 |
# File 'lib/ovirtsdk4/types.rb', line 35263 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
35272 35273 35274 |
# File 'lib/ovirtsdk4/types.rb', line 35272 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup
attribute.
35281 35282 35283 |
# File 'lib/ovirtsdk4/types.rb', line 35281 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
35290 35291 35292 |
# File 'lib/ovirtsdk4/types.rb', line 35290 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode
attribute.
35299 35300 35301 |
# File 'lib/ovirtsdk4/types.rb', line 35299 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode
attribute.
35308 35309 35310 |
# File 'lib/ovirtsdk4/types.rb', line 35308 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
35317 35318 35319 |
# File 'lib/ovirtsdk4/types.rb', line 35317 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
35326 35327 35328 |
# File 'lib/ovirtsdk4/types.rb', line 35326 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
35335 35336 35337 |
# File 'lib/ovirtsdk4/types.rb', line 35335 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
35344 35345 35346 |
# File 'lib/ovirtsdk4/types.rb', line 35344 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
35353 35354 35355 |
# File 'lib/ovirtsdk4/types.rb', line 35353 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
35362 35363 35364 |
# File 'lib/ovirtsdk4/types.rb', line 35362 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
35371 35372 35373 |
# File 'lib/ovirtsdk4/types.rb', line 35371 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
35380 35381 35382 |
# File 'lib/ovirtsdk4/types.rb', line 35380 def description=(value) @description = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile
attribute.
35389 35390 35391 |
# File 'lib/ovirtsdk4/types.rb', line 35389 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.
35402 35403 35404 35405 35406 35407 |
# File 'lib/ovirtsdk4/types.rb', line 35402 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.
35414 35415 35416 |
# File 'lib/ovirtsdk4/types.rb', line 35414 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
35423 35424 35425 35426 35427 35428 35429 35430 35431 35432 35433 |
# File 'lib/ovirtsdk4/types.rb', line 35423 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.
35440 35441 35442 |
# File 'lib/ovirtsdk4/types.rb', line 35440 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk
attribute.
35449 35450 35451 |
# File 'lib/ovirtsdk4/types.rb', line 35449 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
35458 35459 35460 |
# File 'lib/ovirtsdk4/types.rb', line 35458 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
35467 35468 35469 |
# File 'lib/ovirtsdk4/types.rb', line 35467 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
36277 36278 36279 36280 36281 36282 36283 36284 36285 36286 36287 36288 36289 36290 36291 36292 36293 36294 36295 36296 36297 36298 36299 36300 36301 36302 36303 36304 36305 36306 36307 36308 36309 36310 36311 36312 36313 36314 |
# File 'lib/ovirtsdk4/types.rb', line 36277 def hash super + @active.hash + @actual_size.hash + @alias_.hash + @backup.hash + @backup_mode.hash + @bootable.hash + @content_type.hash + @disk_profile.hash + @disk_snapshots.hash + @external_disk.hash + @format.hash + @image_id.hash + @initial_size.hash + @interface.hash + @logical_name.hash + @lun_storage.hash + @openstack_volume_type.hash + @permissions.hash + @propagate_errors.hash + @provisioned_size.hash + @qcow_version.hash + @quota.hash + @read_only.hash + @sgio.hash + @shareable.hash + @snapshot.hash + @sparse.hash + @statistics.hash + @status.hash + @storage_domain.hash + @storage_domains.hash + @storage_type.hash + @total_size.hash + @uses_scsi_reservation.hash + @wipe_after_delete.hash end |
#id ⇒ String
Returns the value of the id
attribute.
35476 35477 35478 |
# File 'lib/ovirtsdk4/types.rb', line 35476 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
35485 35486 35487 |
# File 'lib/ovirtsdk4/types.rb', line 35485 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
35494 35495 35496 |
# File 'lib/ovirtsdk4/types.rb', line 35494 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
35503 35504 35505 |
# File 'lib/ovirtsdk4/types.rb', line 35503 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
35512 35513 35514 |
# File 'lib/ovirtsdk4/types.rb', line 35512 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
35521 35522 35523 |
# File 'lib/ovirtsdk4/types.rb', line 35521 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
35530 35531 35532 |
# File 'lib/ovirtsdk4/types.rb', line 35530 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.
35543 35544 35545 35546 35547 35548 |
# File 'lib/ovirtsdk4/types.rb', line 35543 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.
35555 35556 35557 |
# File 'lib/ovirtsdk4/types.rb', line 35555 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
35564 35565 35566 |
# File 'lib/ovirtsdk4/types.rb', line 35564 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
35573 35574 35575 |
# File 'lib/ovirtsdk4/types.rb', line 35573 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
35582 35583 35584 |
# File 'lib/ovirtsdk4/types.rb', line 35582 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
35591 35592 35593 |
# File 'lib/ovirtsdk4/types.rb', line 35591 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.
35604 35605 35606 35607 35608 35609 |
# File 'lib/ovirtsdk4/types.rb', line 35604 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.
35616 35617 35618 |
# File 'lib/ovirtsdk4/types.rb', line 35616 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
35625 35626 35627 |
# File 'lib/ovirtsdk4/types.rb', line 35625 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
35634 35635 35636 |
# File 'lib/ovirtsdk4/types.rb', line 35634 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.
35647 35648 35649 35650 35651 35652 |
# File 'lib/ovirtsdk4/types.rb', line 35647 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.
35659 35660 35661 |
# File 'lib/ovirtsdk4/types.rb', line 35659 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
35668 35669 35670 35671 35672 35673 35674 35675 35676 35677 35678 |
# File 'lib/ovirtsdk4/types.rb', line 35668 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.
35685 35686 35687 |
# File 'lib/ovirtsdk4/types.rb', line 35685 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
35694 35695 35696 |
# File 'lib/ovirtsdk4/types.rb', line 35694 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
35703 35704 35705 |
# File 'lib/ovirtsdk4/types.rb', line 35703 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
35712 35713 35714 |
# File 'lib/ovirtsdk4/types.rb', line 35712 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
35721 35722 35723 |
# File 'lib/ovirtsdk4/types.rb', line 35721 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
35730 35731 35732 |
# File 'lib/ovirtsdk4/types.rb', line 35730 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
35739 35740 35741 |
# File 'lib/ovirtsdk4/types.rb', line 35739 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.
35752 35753 35754 35755 35756 35757 |
# File 'lib/ovirtsdk4/types.rb', line 35752 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.
35764 35765 35766 |
# File 'lib/ovirtsdk4/types.rb', line 35764 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
35773 35774 35775 |
# File 'lib/ovirtsdk4/types.rb', line 35773 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
35782 35783 35784 |
# File 'lib/ovirtsdk4/types.rb', line 35782 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
35791 35792 35793 |
# File 'lib/ovirtsdk4/types.rb', line 35791 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
35800 35801 35802 |
# File 'lib/ovirtsdk4/types.rb', line 35800 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
35809 35810 35811 |
# File 'lib/ovirtsdk4/types.rb', line 35809 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
35818 35819 35820 |
# File 'lib/ovirtsdk4/types.rb', line 35818 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.
35831 35832 35833 35834 35835 35836 |
# File 'lib/ovirtsdk4/types.rb', line 35831 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.
35843 35844 35845 |
# File 'lib/ovirtsdk4/types.rb', line 35843 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
35852 35853 35854 |
# File 'lib/ovirtsdk4/types.rb', line 35852 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
35861 35862 35863 |
# File 'lib/ovirtsdk4/types.rb', line 35861 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
35870 35871 35872 35873 35874 35875 35876 35877 35878 35879 35880 |
# File 'lib/ovirtsdk4/types.rb', line 35870 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.
35887 35888 35889 |
# File 'lib/ovirtsdk4/types.rb', line 35887 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
35896 35897 35898 |
# File 'lib/ovirtsdk4/types.rb', line 35896 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
35905 35906 35907 |
# File 'lib/ovirtsdk4/types.rb', line 35905 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.
35918 35919 35920 35921 35922 35923 |
# File 'lib/ovirtsdk4/types.rb', line 35918 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.
35930 35931 35932 |
# File 'lib/ovirtsdk4/types.rb', line 35930 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
35939 35940 35941 35942 35943 35944 35945 35946 35947 35948 35949 |
# File 'lib/ovirtsdk4/types.rb', line 35939 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.
35956 35957 35958 |
# File 'lib/ovirtsdk4/types.rb', line 35956 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
35965 35966 35967 |
# File 'lib/ovirtsdk4/types.rb', line 35965 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
35974 35975 35976 |
# File 'lib/ovirtsdk4/types.rb', line 35974 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.
35987 35988 35989 35990 35991 35992 |
# File 'lib/ovirtsdk4/types.rb', line 35987 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.
35999 36000 36001 |
# File 'lib/ovirtsdk4/types.rb', line 35999 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
36008 36009 36010 |
# File 'lib/ovirtsdk4/types.rb', line 36008 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
36017 36018 36019 |
# File 'lib/ovirtsdk4/types.rb', line 36017 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
36026 36027 36028 |
# File 'lib/ovirtsdk4/types.rb', line 36026 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
36035 36036 36037 |
# File 'lib/ovirtsdk4/types.rb', line 36035 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.
36048 36049 36050 36051 36052 36053 |
# File 'lib/ovirtsdk4/types.rb', line 36048 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.
36060 36061 36062 |
# File 'lib/ovirtsdk4/types.rb', line 36060 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
36069 36070 36071 36072 36073 36074 36075 36076 36077 36078 36079 |
# File 'lib/ovirtsdk4/types.rb', line 36069 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.
36086 36087 36088 |
# File 'lib/ovirtsdk4/types.rb', line 36086 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
36095 36096 36097 |
# File 'lib/ovirtsdk4/types.rb', line 36095 def wipe_after_delete=(value) @wipe_after_delete = value end |