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
trueifselfandotherhave the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
activeattribute. -
#active=(value) ⇒ Object
Sets the value of the
activeattribute. -
#actual_size ⇒ Integer
Returns the value of the
actual_sizeattribute. -
#actual_size=(value) ⇒ Object
Sets the value of the
actual_sizeattribute. -
#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
backupattribute. -
#backup=(value) ⇒ Object
Sets the value of the
backupattribute. -
#backup_mode ⇒ DiskBackupMode
Returns the value of the
backup_modeattribute. -
#backup_mode=(value) ⇒ Object
Sets the value of the
backup_modeattribute. -
#bootable ⇒ Boolean
Returns the value of the
bootableattribute. -
#bootable=(value) ⇒ Object
Sets the value of the
bootableattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#content_type ⇒ DiskContentType
Returns the value of the
content_typeattribute. -
#content_type=(value) ⇒ Object
Sets the value of the
content_typeattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk_profile ⇒ DiskProfile
Returns the value of the
disk_profileattribute. -
#disk_profile=(value) ⇒ Object
Sets the value of the
disk_profileattribute. -
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the
disk_snapshotsattribute. -
#disk_snapshots=(list) ⇒ Object
Sets the value of the
disk_snapshotsattribute. -
#external_disk ⇒ String
Returns the value of the
external_diskattribute. -
#external_disk=(value) ⇒ Object
Sets the value of the
external_diskattribute. -
#format ⇒ DiskFormat
Returns the value of the
formatattribute. -
#format=(value) ⇒ Object
Sets the value of the
formatattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#image_id ⇒ String
Returns the value of the
image_idattribute. -
#image_id=(value) ⇒ Object
Sets the value of the
image_idattribute. -
#initial_size ⇒ Integer
Returns the value of the
initial_sizeattribute. -
#initial_size=(value) ⇒ Object
Sets the value of the
initial_sizeattribute. -
#initialize(opts = {}) ⇒ Disk
constructor
Creates a new instance of the Disk class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#interface ⇒ DiskInterface
Returns the value of the
interfaceattribute. -
#interface=(value) ⇒ Object
Sets the value of the
interfaceattribute. -
#logical_name ⇒ String
Returns the value of the
logical_nameattribute. -
#logical_name=(value) ⇒ Object
Sets the value of the
logical_nameattribute. -
#lun_storage ⇒ HostStorage
Returns the value of the
lun_storageattribute. -
#lun_storage=(value) ⇒ Object
Sets the value of the
lun_storageattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the
openstack_volume_typeattribute. -
#openstack_volume_type=(value) ⇒ Object
Sets the value of the
openstack_volume_typeattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#propagate_errors ⇒ Boolean
Returns the value of the
propagate_errorsattribute. -
#propagate_errors=(value) ⇒ Object
Sets the value of the
propagate_errorsattribute. -
#provisioned_size ⇒ Integer
Returns the value of the
provisioned_sizeattribute. -
#provisioned_size=(value) ⇒ Object
Sets the value of the
provisioned_sizeattribute. -
#qcow_version ⇒ QcowVersion
Returns the value of the
qcow_versionattribute. -
#qcow_version=(value) ⇒ Object
Sets the value of the
qcow_versionattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#read_only ⇒ Boolean
Returns the value of the
read_onlyattribute. -
#read_only=(value) ⇒ Object
Sets the value of the
read_onlyattribute. -
#sgio ⇒ ScsiGenericIO
Returns the value of the
sgioattribute. -
#sgio=(value) ⇒ Object
Sets the value of the
sgioattribute. -
#shareable ⇒ Boolean
Returns the value of the
shareableattribute. -
#shareable=(value) ⇒ Object
Sets the value of the
shareableattribute. -
#snapshot ⇒ Snapshot
Returns the value of the
snapshotattribute. -
#snapshot=(value) ⇒ Object
Sets the value of the
snapshotattribute. -
#sparse ⇒ Boolean
Returns the value of the
sparseattribute. -
#sparse=(value) ⇒ Object
Sets the value of the
sparseattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ DiskStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_domains ⇒ Array<StorageDomain>
Returns the value of the
storage_domainsattribute. -
#storage_domains=(list) ⇒ Object
Sets the value of the
storage_domainsattribute. -
#storage_type ⇒ DiskStorageType
Returns the value of the
storage_typeattribute. -
#storage_type=(value) ⇒ Object
Sets the value of the
storage_typeattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#total_size ⇒ Integer
Returns the value of the
total_sizeattribute. -
#total_size=(value) ⇒ Object
Sets the value of the
total_sizeattribute. -
#uses_scsi_reservation ⇒ Boolean
Returns the value of the
uses_scsi_reservationattribute. -
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the
uses_scsi_reservationattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vmsattribute. -
#vms=(list) ⇒ Object
Sets the value of the
vmsattribute. -
#wipe_after_delete ⇒ Boolean
Returns the value of the
wipe_after_deleteattribute. -
#wipe_after_delete=(value) ⇒ Object
Sets the value of the
wipe_after_deleteattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Disk
Creates a new instance of the OvirtSDK4::Disk class.
37341 37342 37343 37344 37345 37346 37347 37348 37349 37350 37351 37352 37353 37354 37355 37356 37357 37358 37359 37360 37361 37362 37363 37364 37365 37366 37367 37368 37369 37370 37371 37372 37373 37374 37375 37376 37377 37378 |
# File 'lib/ovirtsdk4/types.rb', line 37341 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.
37383 37384 37385 37386 37387 37388 37389 37390 37391 37392 37393 37394 37395 37396 37397 37398 37399 37400 37401 37402 37403 37404 37405 37406 37407 37408 37409 37410 37411 37412 37413 37414 37415 37416 37417 37418 37419 37420 |
# File 'lib/ovirtsdk4/types.rb', line 37383 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.
36375 36376 36377 |
# File 'lib/ovirtsdk4/types.rb', line 36375 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
36384 36385 36386 |
# File 'lib/ovirtsdk4/types.rb', line 36384 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size attribute.
36393 36394 36395 |
# File 'lib/ovirtsdk4/types.rb', line 36393 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size attribute.
36402 36403 36404 |
# File 'lib/ovirtsdk4/types.rb', line 36402 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_ attribute.
36411 36412 36413 |
# File 'lib/ovirtsdk4/types.rb', line 36411 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_ attribute.
36420 36421 36422 |
# File 'lib/ovirtsdk4/types.rb', line 36420 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup attribute.
36429 36430 36431 |
# File 'lib/ovirtsdk4/types.rb', line 36429 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup attribute.
36438 36439 36440 |
# File 'lib/ovirtsdk4/types.rb', line 36438 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode attribute.
36447 36448 36449 |
# File 'lib/ovirtsdk4/types.rb', line 36447 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode attribute.
36456 36457 36458 |
# File 'lib/ovirtsdk4/types.rb', line 36456 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable attribute.
36465 36466 36467 |
# File 'lib/ovirtsdk4/types.rb', line 36465 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable attribute.
36474 36475 36476 |
# File 'lib/ovirtsdk4/types.rb', line 36474 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment attribute.
36483 36484 36485 |
# File 'lib/ovirtsdk4/types.rb', line 36483 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
36492 36493 36494 |
# File 'lib/ovirtsdk4/types.rb', line 36492 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type attribute.
36501 36502 36503 |
# File 'lib/ovirtsdk4/types.rb', line 36501 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
36510 36511 36512 |
# File 'lib/ovirtsdk4/types.rb', line 36510 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
36519 36520 36521 |
# File 'lib/ovirtsdk4/types.rb', line 36519 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
36528 36529 36530 |
# File 'lib/ovirtsdk4/types.rb', line 36528 def description=(value) @description = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile attribute.
36537 36538 36539 |
# File 'lib/ovirtsdk4/types.rb', line 36537 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.
36550 36551 36552 36553 36554 36555 |
# File 'lib/ovirtsdk4/types.rb', line 36550 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.
36562 36563 36564 |
# File 'lib/ovirtsdk4/types.rb', line 36562 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots attribute.
36571 36572 36573 36574 36575 36576 36577 36578 36579 36580 36581 |
# File 'lib/ovirtsdk4/types.rb', line 36571 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.
36588 36589 36590 |
# File 'lib/ovirtsdk4/types.rb', line 36588 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk attribute.
36597 36598 36599 |
# File 'lib/ovirtsdk4/types.rb', line 36597 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format attribute.
36606 36607 36608 |
# File 'lib/ovirtsdk4/types.rb', line 36606 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format attribute.
36615 36616 36617 |
# File 'lib/ovirtsdk4/types.rb', line 36615 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
37425 37426 37427 37428 37429 37430 37431 37432 37433 37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 37444 37445 37446 37447 37448 37449 37450 37451 37452 37453 37454 37455 37456 37457 37458 37459 37460 37461 37462 |
# File 'lib/ovirtsdk4/types.rb', line 37425 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.
36624 36625 36626 |
# File 'lib/ovirtsdk4/types.rb', line 36624 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
36633 36634 36635 |
# File 'lib/ovirtsdk4/types.rb', line 36633 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id attribute.
36642 36643 36644 |
# File 'lib/ovirtsdk4/types.rb', line 36642 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id attribute.
36651 36652 36653 |
# File 'lib/ovirtsdk4/types.rb', line 36651 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size attribute.
36660 36661 36662 |
# File 'lib/ovirtsdk4/types.rb', line 36660 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size attribute.
36669 36670 36671 |
# File 'lib/ovirtsdk4/types.rb', line 36669 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
36678 36679 36680 |
# File 'lib/ovirtsdk4/types.rb', line 36678 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.
36691 36692 36693 36694 36695 36696 |
# File 'lib/ovirtsdk4/types.rb', line 36691 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.
36703 36704 36705 |
# File 'lib/ovirtsdk4/types.rb', line 36703 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface attribute.
36712 36713 36714 |
# File 'lib/ovirtsdk4/types.rb', line 36712 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name attribute.
36721 36722 36723 |
# File 'lib/ovirtsdk4/types.rb', line 36721 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name attribute.
36730 36731 36732 |
# File 'lib/ovirtsdk4/types.rb', line 36730 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage attribute.
36739 36740 36741 |
# File 'lib/ovirtsdk4/types.rb', line 36739 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.
36752 36753 36754 36755 36756 36757 |
# File 'lib/ovirtsdk4/types.rb', line 36752 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.
36764 36765 36766 |
# File 'lib/ovirtsdk4/types.rb', line 36764 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
36773 36774 36775 |
# File 'lib/ovirtsdk4/types.rb', line 36773 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type attribute.
36782 36783 36784 |
# File 'lib/ovirtsdk4/types.rb', line 36782 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.
36795 36796 36797 36798 36799 36800 |
# File 'lib/ovirtsdk4/types.rb', line 36795 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.
36807 36808 36809 |
# File 'lib/ovirtsdk4/types.rb', line 36807 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
36816 36817 36818 36819 36820 36821 36822 36823 36824 36825 36826 |
# File 'lib/ovirtsdk4/types.rb', line 36816 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.
36833 36834 36835 |
# File 'lib/ovirtsdk4/types.rb', line 36833 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors attribute.
36842 36843 36844 |
# File 'lib/ovirtsdk4/types.rb', line 36842 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size attribute.
36851 36852 36853 |
# File 'lib/ovirtsdk4/types.rb', line 36851 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size attribute.
36860 36861 36862 |
# File 'lib/ovirtsdk4/types.rb', line 36860 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version attribute.
36869 36870 36871 |
# File 'lib/ovirtsdk4/types.rb', line 36869 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version attribute.
36878 36879 36880 |
# File 'lib/ovirtsdk4/types.rb', line 36878 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
36887 36888 36889 |
# File 'lib/ovirtsdk4/types.rb', line 36887 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.
36900 36901 36902 36903 36904 36905 |
# File 'lib/ovirtsdk4/types.rb', line 36900 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.
36912 36913 36914 |
# File 'lib/ovirtsdk4/types.rb', line 36912 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only attribute.
36921 36922 36923 |
# File 'lib/ovirtsdk4/types.rb', line 36921 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio attribute.
36930 36931 36932 |
# File 'lib/ovirtsdk4/types.rb', line 36930 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio attribute.
36939 36940 36941 |
# File 'lib/ovirtsdk4/types.rb', line 36939 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable attribute.
36948 36949 36950 |
# File 'lib/ovirtsdk4/types.rb', line 36948 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable attribute.
36957 36958 36959 |
# File 'lib/ovirtsdk4/types.rb', line 36957 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot attribute.
36966 36967 36968 |
# File 'lib/ovirtsdk4/types.rb', line 36966 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.
36979 36980 36981 36982 36983 36984 |
# File 'lib/ovirtsdk4/types.rb', line 36979 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.
36991 36992 36993 |
# File 'lib/ovirtsdk4/types.rb', line 36991 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
37000 37001 37002 |
# File 'lib/ovirtsdk4/types.rb', line 37000 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
37009 37010 37011 |
# File 'lib/ovirtsdk4/types.rb', line 37009 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
37018 37019 37020 37021 37022 37023 37024 37025 37026 37027 37028 |
# File 'lib/ovirtsdk4/types.rb', line 37018 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.
37035 37036 37037 |
# File 'lib/ovirtsdk4/types.rb', line 37035 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
37044 37045 37046 |
# File 'lib/ovirtsdk4/types.rb', line 37044 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
37053 37054 37055 |
# File 'lib/ovirtsdk4/types.rb', line 37053 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.
37066 37067 37068 37069 37070 37071 |
# File 'lib/ovirtsdk4/types.rb', line 37066 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.
37078 37079 37080 |
# File 'lib/ovirtsdk4/types.rb', line 37078 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains attribute.
37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 |
# File 'lib/ovirtsdk4/types.rb', line 37087 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.
37104 37105 37106 |
# File 'lib/ovirtsdk4/types.rb', line 37104 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type attribute.
37113 37114 37115 |
# File 'lib/ovirtsdk4/types.rb', line 37113 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template attribute.
37122 37123 37124 |
# File 'lib/ovirtsdk4/types.rb', line 37122 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.
37135 37136 37137 37138 37139 37140 |
# File 'lib/ovirtsdk4/types.rb', line 37135 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.
37147 37148 37149 |
# File 'lib/ovirtsdk4/types.rb', line 37147 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size attribute.
37156 37157 37158 |
# File 'lib/ovirtsdk4/types.rb', line 37156 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation attribute.
37165 37166 37167 |
# File 'lib/ovirtsdk4/types.rb', line 37165 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation attribute.
37174 37175 37176 |
# File 'lib/ovirtsdk4/types.rb', line 37174 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
37183 37184 37185 |
# File 'lib/ovirtsdk4/types.rb', line 37183 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.
37196 37197 37198 37199 37200 37201 |
# File 'lib/ovirtsdk4/types.rb', line 37196 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.
37208 37209 37210 |
# File 'lib/ovirtsdk4/types.rb', line 37208 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 |
# File 'lib/ovirtsdk4/types.rb', line 37217 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.
37234 37235 37236 |
# File 'lib/ovirtsdk4/types.rb', line 37234 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete attribute.
37243 37244 37245 |
# File 'lib/ovirtsdk4/types.rb', line 37243 def wipe_after_delete=(value) @wipe_after_delete = value end |