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.
37048 37049 37050 37051 37052 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 37063 37064 37065 37066 37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 |
# File 'lib/ovirtsdk4/types.rb', line 37048 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.
37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 37123 37124 37125 37126 37127 |
# File 'lib/ovirtsdk4/types.rb', line 37090 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.
36082 36083 36084 |
# File 'lib/ovirtsdk4/types.rb', line 36082 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
36091 36092 36093 |
# File 'lib/ovirtsdk4/types.rb', line 36091 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
36100 36101 36102 |
# File 'lib/ovirtsdk4/types.rb', line 36100 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
36109 36110 36111 |
# File 'lib/ovirtsdk4/types.rb', line 36109 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
36118 36119 36120 |
# File 'lib/ovirtsdk4/types.rb', line 36118 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
36127 36128 36129 |
# File 'lib/ovirtsdk4/types.rb', line 36127 def alias_=(value) @alias_ = value end |
#backup ⇒ DiskBackup
Returns the value of the backup
attribute.
36136 36137 36138 |
# File 'lib/ovirtsdk4/types.rb', line 36136 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
36145 36146 36147 |
# File 'lib/ovirtsdk4/types.rb', line 36145 def backup=(value) @backup = value end |
#backup_mode ⇒ DiskBackupMode
Returns the value of the backup_mode
attribute.
36154 36155 36156 |
# File 'lib/ovirtsdk4/types.rb', line 36154 def backup_mode @backup_mode end |
#backup_mode=(value) ⇒ Object
Sets the value of the backup_mode
attribute.
36163 36164 36165 |
# File 'lib/ovirtsdk4/types.rb', line 36163 def backup_mode=(value) @backup_mode = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
36172 36173 36174 |
# File 'lib/ovirtsdk4/types.rb', line 36172 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
36181 36182 36183 |
# File 'lib/ovirtsdk4/types.rb', line 36181 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
36190 36191 36192 |
# File 'lib/ovirtsdk4/types.rb', line 36190 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
36199 36200 36201 |
# File 'lib/ovirtsdk4/types.rb', line 36199 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type
attribute.
36208 36209 36210 |
# File 'lib/ovirtsdk4/types.rb', line 36208 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type
attribute.
36217 36218 36219 |
# File 'lib/ovirtsdk4/types.rb', line 36217 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description
attribute.
36226 36227 36228 |
# File 'lib/ovirtsdk4/types.rb', line 36226 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36235 36236 36237 |
# File 'lib/ovirtsdk4/types.rb', line 36235 def description=(value) @description = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile
attribute.
36244 36245 36246 |
# File 'lib/ovirtsdk4/types.rb', line 36244 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.
36257 36258 36259 36260 36261 36262 |
# File 'lib/ovirtsdk4/types.rb', line 36257 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.
36269 36270 36271 |
# File 'lib/ovirtsdk4/types.rb', line 36269 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
36278 36279 36280 36281 36282 36283 36284 36285 36286 36287 36288 |
# File 'lib/ovirtsdk4/types.rb', line 36278 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.
36295 36296 36297 |
# File 'lib/ovirtsdk4/types.rb', line 36295 def external_disk @external_disk end |
#external_disk=(value) ⇒ Object
Sets the value of the external_disk
attribute.
36304 36305 36306 |
# File 'lib/ovirtsdk4/types.rb', line 36304 def external_disk=(value) @external_disk = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
36313 36314 36315 |
# File 'lib/ovirtsdk4/types.rb', line 36313 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
36322 36323 36324 |
# File 'lib/ovirtsdk4/types.rb', line 36322 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
37132 37133 37134 37135 37136 37137 37138 37139 37140 37141 37142 37143 37144 37145 37146 37147 37148 37149 37150 37151 37152 37153 37154 37155 37156 37157 37158 37159 37160 37161 37162 37163 37164 37165 37166 37167 37168 37169 |
# File 'lib/ovirtsdk4/types.rb', line 37132 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.
36331 36332 36333 |
# File 'lib/ovirtsdk4/types.rb', line 36331 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
36340 36341 36342 |
# File 'lib/ovirtsdk4/types.rb', line 36340 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
36349 36350 36351 |
# File 'lib/ovirtsdk4/types.rb', line 36349 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
36358 36359 36360 |
# File 'lib/ovirtsdk4/types.rb', line 36358 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
36367 36368 36369 |
# File 'lib/ovirtsdk4/types.rb', line 36367 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
36376 36377 36378 |
# File 'lib/ovirtsdk4/types.rb', line 36376 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
36385 36386 36387 |
# File 'lib/ovirtsdk4/types.rb', line 36385 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.
36398 36399 36400 36401 36402 36403 |
# File 'lib/ovirtsdk4/types.rb', line 36398 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.
36410 36411 36412 |
# File 'lib/ovirtsdk4/types.rb', line 36410 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
36419 36420 36421 |
# File 'lib/ovirtsdk4/types.rb', line 36419 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
36428 36429 36430 |
# File 'lib/ovirtsdk4/types.rb', line 36428 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
36437 36438 36439 |
# File 'lib/ovirtsdk4/types.rb', line 36437 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
36446 36447 36448 |
# File 'lib/ovirtsdk4/types.rb', line 36446 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.
36459 36460 36461 36462 36463 36464 |
# File 'lib/ovirtsdk4/types.rb', line 36459 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.
36471 36472 36473 |
# File 'lib/ovirtsdk4/types.rb', line 36471 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
36480 36481 36482 |
# File 'lib/ovirtsdk4/types.rb', line 36480 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
36489 36490 36491 |
# File 'lib/ovirtsdk4/types.rb', line 36489 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.
36502 36503 36504 36505 36506 36507 |
# File 'lib/ovirtsdk4/types.rb', line 36502 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.
36514 36515 36516 |
# File 'lib/ovirtsdk4/types.rb', line 36514 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
36523 36524 36525 36526 36527 36528 36529 36530 36531 36532 36533 |
# File 'lib/ovirtsdk4/types.rb', line 36523 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.
36540 36541 36542 |
# File 'lib/ovirtsdk4/types.rb', line 36540 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
36549 36550 36551 |
# File 'lib/ovirtsdk4/types.rb', line 36549 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
36558 36559 36560 |
# File 'lib/ovirtsdk4/types.rb', line 36558 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
36567 36568 36569 |
# File 'lib/ovirtsdk4/types.rb', line 36567 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
36576 36577 36578 |
# File 'lib/ovirtsdk4/types.rb', line 36576 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
36585 36586 36587 |
# File 'lib/ovirtsdk4/types.rb', line 36585 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
36594 36595 36596 |
# File 'lib/ovirtsdk4/types.rb', line 36594 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.
36607 36608 36609 36610 36611 36612 |
# File 'lib/ovirtsdk4/types.rb', line 36607 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.
36619 36620 36621 |
# File 'lib/ovirtsdk4/types.rb', line 36619 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
36628 36629 36630 |
# File 'lib/ovirtsdk4/types.rb', line 36628 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
36637 36638 36639 |
# File 'lib/ovirtsdk4/types.rb', line 36637 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
36646 36647 36648 |
# File 'lib/ovirtsdk4/types.rb', line 36646 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
36655 36656 36657 |
# File 'lib/ovirtsdk4/types.rb', line 36655 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
36664 36665 36666 |
# File 'lib/ovirtsdk4/types.rb', line 36664 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
36673 36674 36675 |
# File 'lib/ovirtsdk4/types.rb', line 36673 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.
36686 36687 36688 36689 36690 36691 |
# File 'lib/ovirtsdk4/types.rb', line 36686 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.
36698 36699 36700 |
# File 'lib/ovirtsdk4/types.rb', line 36698 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
36707 36708 36709 |
# File 'lib/ovirtsdk4/types.rb', line 36707 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
36716 36717 36718 |
# File 'lib/ovirtsdk4/types.rb', line 36716 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
36725 36726 36727 36728 36729 36730 36731 36732 36733 36734 36735 |
# File 'lib/ovirtsdk4/types.rb', line 36725 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.
36742 36743 36744 |
# File 'lib/ovirtsdk4/types.rb', line 36742 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
36751 36752 36753 |
# File 'lib/ovirtsdk4/types.rb', line 36751 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
36760 36761 36762 |
# File 'lib/ovirtsdk4/types.rb', line 36760 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.
36773 36774 36775 36776 36777 36778 |
# File 'lib/ovirtsdk4/types.rb', line 36773 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.
36785 36786 36787 |
# File 'lib/ovirtsdk4/types.rb', line 36785 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
36794 36795 36796 36797 36798 36799 36800 36801 36802 36803 36804 |
# File 'lib/ovirtsdk4/types.rb', line 36794 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.
36811 36812 36813 |
# File 'lib/ovirtsdk4/types.rb', line 36811 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
36820 36821 36822 |
# File 'lib/ovirtsdk4/types.rb', line 36820 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
36829 36830 36831 |
# File 'lib/ovirtsdk4/types.rb', line 36829 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.
36842 36843 36844 36845 36846 36847 |
# File 'lib/ovirtsdk4/types.rb', line 36842 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.
36854 36855 36856 |
# File 'lib/ovirtsdk4/types.rb', line 36854 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
36863 36864 36865 |
# File 'lib/ovirtsdk4/types.rb', line 36863 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
36872 36873 36874 |
# File 'lib/ovirtsdk4/types.rb', line 36872 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
36881 36882 36883 |
# File 'lib/ovirtsdk4/types.rb', line 36881 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
36890 36891 36892 |
# File 'lib/ovirtsdk4/types.rb', line 36890 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.
36903 36904 36905 36906 36907 36908 |
# File 'lib/ovirtsdk4/types.rb', line 36903 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.
36915 36916 36917 |
# File 'lib/ovirtsdk4/types.rb', line 36915 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
36924 36925 36926 36927 36928 36929 36930 36931 36932 36933 36934 |
# File 'lib/ovirtsdk4/types.rb', line 36924 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.
36941 36942 36943 |
# File 'lib/ovirtsdk4/types.rb', line 36941 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
36950 36951 36952 |
# File 'lib/ovirtsdk4/types.rb', line 36950 def wipe_after_delete=(value) @wipe_after_delete = value end |