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. -
#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. -
#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. -
#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.
34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 34101 34102 34103 34104 34105 34106 34107 34108 34109 34110 34111 |
# File 'lib/ovirtsdk4/types.rb', line 34079 def initialize(opts = {}) super(opts) self.active = opts[:active] self.actual_size = opts[:actual_size] self.alias_ = opts[:alias_] self.bootable = opts[:bootable] self.disk_profile = opts[:disk_profile] 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.
34116 34117 34118 34119 34120 34121 34122 34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 |
# File 'lib/ovirtsdk4/types.rb', line 34116 def ==(other) super && @active == other.active && @actual_size == other.actual_size && @alias_ == other.alias_ && @bootable == other.bootable && @disk_profile == other.disk_profile && @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.
33221 33222 33223 |
# File 'lib/ovirtsdk4/types.rb', line 33221 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
33230 33231 33232 |
# File 'lib/ovirtsdk4/types.rb', line 33230 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size
attribute.
33239 33240 33241 |
# File 'lib/ovirtsdk4/types.rb', line 33239 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size
attribute.
33248 33249 33250 |
# File 'lib/ovirtsdk4/types.rb', line 33248 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_
attribute.
33257 33258 33259 |
# File 'lib/ovirtsdk4/types.rb', line 33257 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_
attribute.
33266 33267 33268 |
# File 'lib/ovirtsdk4/types.rb', line 33266 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable
attribute.
33275 33276 33277 |
# File 'lib/ovirtsdk4/types.rb', line 33275 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable
attribute.
33284 33285 33286 |
# File 'lib/ovirtsdk4/types.rb', line 33284 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
33293 33294 33295 |
# File 'lib/ovirtsdk4/types.rb', line 33293 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
33302 33303 33304 |
# File 'lib/ovirtsdk4/types.rb', line 33302 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
33311 33312 33313 |
# File 'lib/ovirtsdk4/types.rb', line 33311 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
33320 33321 33322 |
# File 'lib/ovirtsdk4/types.rb', line 33320 def description=(value) @description = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile
attribute.
33329 33330 33331 |
# File 'lib/ovirtsdk4/types.rb', line 33329 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.
33342 33343 33344 33345 33346 33347 |
# File 'lib/ovirtsdk4/types.rb', line 33342 def disk_profile=(value) if value.is_a?(Hash) value = DiskProfile.new(value) end @disk_profile = value end |
#format ⇒ DiskFormat
Returns the value of the format
attribute.
33354 33355 33356 |
# File 'lib/ovirtsdk4/types.rb', line 33354 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
33363 33364 33365 |
# File 'lib/ovirtsdk4/types.rb', line 33363 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 |
# File 'lib/ovirtsdk4/types.rb', line 34153 def hash super + @active.hash + @actual_size.hash + @alias_.hash + @bootable.hash + @disk_profile.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.
33372 33373 33374 |
# File 'lib/ovirtsdk4/types.rb', line 33372 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
33381 33382 33383 |
# File 'lib/ovirtsdk4/types.rb', line 33381 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id
attribute.
33390 33391 33392 |
# File 'lib/ovirtsdk4/types.rb', line 33390 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id
attribute.
33399 33400 33401 |
# File 'lib/ovirtsdk4/types.rb', line 33399 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size
attribute.
33408 33409 33410 |
# File 'lib/ovirtsdk4/types.rb', line 33408 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size
attribute.
33417 33418 33419 |
# File 'lib/ovirtsdk4/types.rb', line 33417 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
33426 33427 33428 |
# File 'lib/ovirtsdk4/types.rb', line 33426 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.
33439 33440 33441 33442 33443 33444 |
# File 'lib/ovirtsdk4/types.rb', line 33439 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.
33451 33452 33453 |
# File 'lib/ovirtsdk4/types.rb', line 33451 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface
attribute.
33460 33461 33462 |
# File 'lib/ovirtsdk4/types.rb', line 33460 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name
attribute.
33469 33470 33471 |
# File 'lib/ovirtsdk4/types.rb', line 33469 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name
attribute.
33478 33479 33480 |
# File 'lib/ovirtsdk4/types.rb', line 33478 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage
attribute.
33487 33488 33489 |
# File 'lib/ovirtsdk4/types.rb', line 33487 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.
33500 33501 33502 33503 33504 33505 |
# File 'lib/ovirtsdk4/types.rb', line 33500 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.
33512 33513 33514 |
# File 'lib/ovirtsdk4/types.rb', line 33512 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
33521 33522 33523 |
# File 'lib/ovirtsdk4/types.rb', line 33521 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type
attribute.
33530 33531 33532 |
# File 'lib/ovirtsdk4/types.rb', line 33530 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.
33543 33544 33545 33546 33547 33548 |
# File 'lib/ovirtsdk4/types.rb', line 33543 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.
33555 33556 33557 |
# File 'lib/ovirtsdk4/types.rb', line 33555 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 |
# File 'lib/ovirtsdk4/types.rb', line 33564 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.
33581 33582 33583 |
# File 'lib/ovirtsdk4/types.rb', line 33581 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors
attribute.
33590 33591 33592 |
# File 'lib/ovirtsdk4/types.rb', line 33590 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size
attribute.
33599 33600 33601 |
# File 'lib/ovirtsdk4/types.rb', line 33599 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size
attribute.
33608 33609 33610 |
# File 'lib/ovirtsdk4/types.rb', line 33608 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version
attribute.
33617 33618 33619 |
# File 'lib/ovirtsdk4/types.rb', line 33617 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version
attribute.
33626 33627 33628 |
# File 'lib/ovirtsdk4/types.rb', line 33626 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
33635 33636 33637 |
# File 'lib/ovirtsdk4/types.rb', line 33635 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.
33648 33649 33650 33651 33652 33653 |
# File 'lib/ovirtsdk4/types.rb', line 33648 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.
33660 33661 33662 |
# File 'lib/ovirtsdk4/types.rb', line 33660 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
33669 33670 33671 |
# File 'lib/ovirtsdk4/types.rb', line 33669 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio
attribute.
33678 33679 33680 |
# File 'lib/ovirtsdk4/types.rb', line 33678 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio
attribute.
33687 33688 33689 |
# File 'lib/ovirtsdk4/types.rb', line 33687 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable
attribute.
33696 33697 33698 |
# File 'lib/ovirtsdk4/types.rb', line 33696 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable
attribute.
33705 33706 33707 |
# File 'lib/ovirtsdk4/types.rb', line 33705 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot
attribute.
33714 33715 33716 |
# File 'lib/ovirtsdk4/types.rb', line 33714 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.
33727 33728 33729 33730 33731 33732 |
# File 'lib/ovirtsdk4/types.rb', line 33727 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.
33739 33740 33741 |
# File 'lib/ovirtsdk4/types.rb', line 33739 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
33748 33749 33750 |
# File 'lib/ovirtsdk4/types.rb', line 33748 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
33757 33758 33759 |
# File 'lib/ovirtsdk4/types.rb', line 33757 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 |
# File 'lib/ovirtsdk4/types.rb', line 33766 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.
33783 33784 33785 |
# File 'lib/ovirtsdk4/types.rb', line 33783 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
33792 33793 33794 |
# File 'lib/ovirtsdk4/types.rb', line 33792 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
33801 33802 33803 |
# File 'lib/ovirtsdk4/types.rb', line 33801 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.
33814 33815 33816 33817 33818 33819 |
# File 'lib/ovirtsdk4/types.rb', line 33814 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.
33826 33827 33828 |
# File 'lib/ovirtsdk4/types.rb', line 33826 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains
attribute.
33835 33836 33837 33838 33839 33840 33841 33842 33843 33844 33845 |
# File 'lib/ovirtsdk4/types.rb', line 33835 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.
33852 33853 33854 |
# File 'lib/ovirtsdk4/types.rb', line 33852 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type
attribute.
33861 33862 33863 |
# File 'lib/ovirtsdk4/types.rb', line 33861 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template
attribute.
33870 33871 33872 |
# File 'lib/ovirtsdk4/types.rb', line 33870 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.
33883 33884 33885 33886 33887 33888 |
# File 'lib/ovirtsdk4/types.rb', line 33883 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.
33895 33896 33897 |
# File 'lib/ovirtsdk4/types.rb', line 33895 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size
attribute.
33904 33905 33906 |
# File 'lib/ovirtsdk4/types.rb', line 33904 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation
attribute.
33913 33914 33915 |
# File 'lib/ovirtsdk4/types.rb', line 33913 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation
attribute.
33922 33923 33924 |
# File 'lib/ovirtsdk4/types.rb', line 33922 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
33931 33932 33933 |
# File 'lib/ovirtsdk4/types.rb', line 33931 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.
33944 33945 33946 33947 33948 33949 |
# File 'lib/ovirtsdk4/types.rb', line 33944 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.
33956 33957 33958 |
# File 'lib/ovirtsdk4/types.rb', line 33956 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
33965 33966 33967 33968 33969 33970 33971 33972 33973 33974 33975 |
# File 'lib/ovirtsdk4/types.rb', line 33965 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.
33982 33983 33984 |
# File 'lib/ovirtsdk4/types.rb', line 33982 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
33991 33992 33993 |
# File 'lib/ovirtsdk4/types.rb', line 33991 def wipe_after_delete=(value) @wipe_after_delete = value end |