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)
-
- (Boolean) active
Returns the value of the
active
attribute. -
- (Object) active=(value)
Sets the value of the
active
attribute. -
- (Integer) actual_size
Returns the value of the
actual_size
attribute. -
- (Object) actual_size=(value)
Sets the value of the
actual_size
attribute. -
- (String) alias_
Returns the value of the
alias_
attribute. -
- (Object) alias_=(value)
Sets the value of the
alias_
attribute. -
- (Boolean) bootable
Returns the value of the
bootable
attribute. -
- (Object) bootable=(value)
Sets the value of the
bootable
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (DiskProfile) disk_profile
Returns the value of the
disk_profile
attribute. -
- (Object) disk_profile=(value)
Sets the value of the
disk_profile
attribute. -
- (DiskFormat) format
Returns the value of the
format
attribute. -
- (Object) format=(value)
Sets the value of the
format
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (String) image_id
Returns the value of the
image_id
attribute. -
- (Object) image_id=(value)
Sets the value of the
image_id
attribute. -
- (Disk) initialize(opts = {})
constructor
Creates a new instance of the Disk class.
-
- (InstanceType) instance_type
Returns the value of the
instance_type
attribute. -
- (Object) instance_type=(value)
Sets the value of the
instance_type
attribute. -
- (DiskInterface) interface
Returns the value of the
interface
attribute. -
- (Object) interface=(value)
Sets the value of the
interface
attribute. -
- (String) logical_name
Returns the value of the
logical_name
attribute. -
- (Object) logical_name=(value)
Sets the value of the
logical_name
attribute. -
- (HostStorage) lun_storage
Returns the value of the
lun_storage
attribute. -
- (Object) lun_storage=(value)
Sets the value of the
lun_storage
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (OpenStackVolumeType) openstack_volume_type
Returns the value of the
openstack_volume_type
attribute. -
- (Object) openstack_volume_type=(value)
Sets the value of the
openstack_volume_type
attribute. -
- (Array<Permission>) permissions
Returns the value of the
permissions
attribute. -
- (Object) permissions=(list)
Sets the value of the
permissions
attribute. -
- (Boolean) propagate_errors
Returns the value of the
propagate_errors
attribute. -
- (Object) propagate_errors=(value)
Sets the value of the
propagate_errors
attribute. -
- (Integer) provisioned_size
Returns the value of the
provisioned_size
attribute. -
- (Object) provisioned_size=(value)
Sets the value of the
provisioned_size
attribute. -
- (Quota) quota
Returns the value of the
quota
attribute. -
- (Object) quota=(value)
Sets the value of the
quota
attribute. -
- (Boolean) read_only
Returns the value of the
read_only
attribute. -
- (Object) read_only=(value)
Sets the value of the
read_only
attribute. -
- (ScsiGenericIO) sgio
Returns the value of the
sgio
attribute. -
- (Object) sgio=(value)
Sets the value of the
sgio
attribute. -
- (Boolean) shareable
Returns the value of the
shareable
attribute. -
- (Object) shareable=(value)
Sets the value of the
shareable
attribute. -
- (Snapshot) snapshot
Returns the value of the
snapshot
attribute. -
- (Object) snapshot=(value)
Sets the value of the
snapshot
attribute. -
- (Boolean) sparse
Returns the value of the
sparse
attribute. -
- (Object) sparse=(value)
Sets the value of the
sparse
attribute. -
- (Array<Statistic>) statistics
Returns the value of the
statistics
attribute. -
- (Object) statistics=(list)
Sets the value of the
statistics
attribute. -
- (DiskStatus) status
Returns the value of the
status
attribute. -
- (Object) status=(value)
Sets the value of the
status
attribute. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domain
attribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domain
attribute. -
- (Array<StorageDomain>) storage_domains
Returns the value of the
storage_domains
attribute. -
- (Object) storage_domains=(list)
Sets the value of the
storage_domains
attribute. -
- (DiskStorageType) storage_type
Returns the value of the
storage_type
attribute. -
- (Object) storage_type=(value)
Sets the value of the
storage_type
attribute. -
- (Template) template
Returns the value of the
template
attribute. -
- (Object) template=(value)
Sets the value of the
template
attribute. -
- (Boolean) uses_scsi_reservation
Returns the value of the
uses_scsi_reservation
attribute. -
- (Object) uses_scsi_reservation=(value)
Sets the value of the
uses_scsi_reservation
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute. -
- (Array<Vm>) vms
Returns the value of the
vms
attribute. -
- (Object) vms=(list)
Sets the value of the
vms
attribute. -
- (Boolean) wipe_after_delete
Returns the value of the
wipe_after_delete
attribute. -
- (Object) wipe_after_delete=(value)
Sets the value of the
wipe_after_delete
attribute.
Methods included from Type
Constructor Details
- (Disk) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Disk class.
26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 |
# File 'lib/ovirtsdk4/types.rb', line 26543 def initialize(opts = {}) super(opts) self.active = opts[:active] self.actual_size = opts[:actual_size] self.alias_ = opts[:alias_] self.bootable = opts[:bootable] self.comment = opts[:comment] self.description = opts[:description] self.disk_profile = opts[:disk_profile] self.format = opts[:format] self.id = opts[:id] self.image_id = opts[:image_id] self.instance_type = opts[:instance_type] self.interface = opts[:interface] self.logical_name = opts[:logical_name] self.lun_storage = opts[:lun_storage] self.name = opts[:name] self.openstack_volume_type = opts[:openstack_volume_type] self. = opts[:permissions] self.propagate_errors = opts[:propagate_errors] self.provisioned_size = opts[:provisioned_size] 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.template = opts[:template] self.uses_scsi_reservation = opts[:uses_scsi_reservation] self.vm = opts[:vm] self.vms = opts[:vms] self.wipe_after_delete = opts[:wipe_after_delete] end |
Instance Method Details
- (Boolean) active
Returns the value of the active
attribute.
25749 25750 25751 |
# File 'lib/ovirtsdk4/types.rb', line 25749 def active return @active end |
- (Object) active=(value)
Sets the value of the active
attribute.
25758 25759 25760 |
# File 'lib/ovirtsdk4/types.rb', line 25758 def active=(value) @active = value end |
- (Integer) actual_size
Returns the value of the actual_size
attribute.
25767 25768 25769 |
# File 'lib/ovirtsdk4/types.rb', line 25767 def actual_size return @actual_size end |
- (Object) actual_size=(value)
Sets the value of the actual_size
attribute.
25776 25777 25778 |
# File 'lib/ovirtsdk4/types.rb', line 25776 def actual_size=(value) @actual_size = value end |
- (String) alias_
Returns the value of the alias_
attribute.
25785 25786 25787 |
# File 'lib/ovirtsdk4/types.rb', line 25785 def alias_ return @alias_ end |
- (Object) alias_=(value)
Sets the value of the alias_
attribute.
25794 25795 25796 |
# File 'lib/ovirtsdk4/types.rb', line 25794 def alias_=(value) @alias_ = value end |
- (Boolean) bootable
Returns the value of the bootable
attribute.
25803 25804 25805 |
# File 'lib/ovirtsdk4/types.rb', line 25803 def bootable return @bootable end |
- (Object) bootable=(value)
Sets the value of the bootable
attribute.
25812 25813 25814 |
# File 'lib/ovirtsdk4/types.rb', line 25812 def bootable=(value) @bootable = value end |
- (String) comment
Returns the value of the comment
attribute.
25821 25822 25823 |
# File 'lib/ovirtsdk4/types.rb', line 25821 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
25830 25831 25832 |
# File 'lib/ovirtsdk4/types.rb', line 25830 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
25839 25840 25841 |
# File 'lib/ovirtsdk4/types.rb', line 25839 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
25848 25849 25850 |
# File 'lib/ovirtsdk4/types.rb', line 25848 def description=(value) @description = value end |
- (DiskProfile) disk_profile
Returns the value of the disk_profile
attribute.
25857 25858 25859 |
# File 'lib/ovirtsdk4/types.rb', line 25857 def disk_profile return @disk_profile end |
- (Object) disk_profile=(value)
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.
25870 25871 25872 25873 25874 25875 |
# File 'lib/ovirtsdk4/types.rb', line 25870 def disk_profile=(value) if value.is_a?(Hash) value = DiskProfile.new(value) end @disk_profile = value end |
- (DiskFormat) format
Returns the value of the format
attribute.
25882 25883 25884 |
# File 'lib/ovirtsdk4/types.rb', line 25882 def format return @format end |
- (Object) format=(value)
Sets the value of the format
attribute.
25891 25892 25893 |
# File 'lib/ovirtsdk4/types.rb', line 25891 def format=(value) @format = value end |
- (String) id
Returns the value of the id
attribute.
25900 25901 25902 |
# File 'lib/ovirtsdk4/types.rb', line 25900 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
25909 25910 25911 |
# File 'lib/ovirtsdk4/types.rb', line 25909 def id=(value) @id = value end |
- (String) image_id
Returns the value of the image_id
attribute.
25918 25919 25920 |
# File 'lib/ovirtsdk4/types.rb', line 25918 def image_id return @image_id end |
- (Object) image_id=(value)
Sets the value of the image_id
attribute.
25927 25928 25929 |
# File 'lib/ovirtsdk4/types.rb', line 25927 def image_id=(value) @image_id = value end |
- (InstanceType) instance_type
Returns the value of the instance_type
attribute.
25936 25937 25938 |
# File 'lib/ovirtsdk4/types.rb', line 25936 def instance_type return @instance_type end |
- (Object) instance_type=(value)
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.
25949 25950 25951 25952 25953 25954 |
# File 'lib/ovirtsdk4/types.rb', line 25949 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
- (DiskInterface) interface
Returns the value of the interface
attribute.
25961 25962 25963 |
# File 'lib/ovirtsdk4/types.rb', line 25961 def interface return @interface end |
- (Object) interface=(value)
Sets the value of the interface
attribute.
25970 25971 25972 |
# File 'lib/ovirtsdk4/types.rb', line 25970 def interface=(value) @interface = value end |
- (String) logical_name
Returns the value of the logical_name
attribute.
25979 25980 25981 |
# File 'lib/ovirtsdk4/types.rb', line 25979 def logical_name return @logical_name end |
- (Object) logical_name=(value)
Sets the value of the logical_name
attribute.
25988 25989 25990 |
# File 'lib/ovirtsdk4/types.rb', line 25988 def logical_name=(value) @logical_name = value end |
- (HostStorage) lun_storage
Returns the value of the lun_storage
attribute.
25997 25998 25999 |
# File 'lib/ovirtsdk4/types.rb', line 25997 def lun_storage return @lun_storage end |
- (Object) lun_storage=(value)
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.
26010 26011 26012 26013 26014 26015 |
# File 'lib/ovirtsdk4/types.rb', line 26010 def lun_storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @lun_storage = value end |
- (String) name
Returns the value of the name
attribute.
26022 26023 26024 |
# File 'lib/ovirtsdk4/types.rb', line 26022 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
26031 26032 26033 |
# File 'lib/ovirtsdk4/types.rb', line 26031 def name=(value) @name = value end |
- (OpenStackVolumeType) openstack_volume_type
Returns the value of the openstack_volume_type
attribute.
26040 26041 26042 |
# File 'lib/ovirtsdk4/types.rb', line 26040 def openstack_volume_type return @openstack_volume_type end |
- (Object) openstack_volume_type=(value)
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.
26053 26054 26055 26056 26057 26058 |
# File 'lib/ovirtsdk4/types.rb', line 26053 def openstack_volume_type=(value) if value.is_a?(Hash) value = OpenStackVolumeType.new(value) end @openstack_volume_type = value end |
- (Array<Permission>) permissions
Returns the value of the permissions
attribute.
26065 26066 26067 |
# File 'lib/ovirtsdk4/types.rb', line 26065 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions
attribute.
26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 |
# File 'lib/ovirtsdk4/types.rb', line 26073 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 |
- (Boolean) propagate_errors
Returns the value of the propagate_errors
attribute.
26090 26091 26092 |
# File 'lib/ovirtsdk4/types.rb', line 26090 def propagate_errors return @propagate_errors end |
- (Object) propagate_errors=(value)
Sets the value of the propagate_errors
attribute.
26099 26100 26101 |
# File 'lib/ovirtsdk4/types.rb', line 26099 def propagate_errors=(value) @propagate_errors = value end |
- (Integer) provisioned_size
Returns the value of the provisioned_size
attribute.
26108 26109 26110 |
# File 'lib/ovirtsdk4/types.rb', line 26108 def provisioned_size return @provisioned_size end |
- (Object) provisioned_size=(value)
Sets the value of the provisioned_size
attribute.
26117 26118 26119 |
# File 'lib/ovirtsdk4/types.rb', line 26117 def provisioned_size=(value) @provisioned_size = value end |
- (Quota) quota
Returns the value of the quota
attribute.
26126 26127 26128 |
# File 'lib/ovirtsdk4/types.rb', line 26126 def quota return @quota end |
- (Object) quota=(value)
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.
26139 26140 26141 26142 26143 26144 |
# File 'lib/ovirtsdk4/types.rb', line 26139 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
- (Boolean) read_only
Returns the value of the read_only
attribute.
26151 26152 26153 |
# File 'lib/ovirtsdk4/types.rb', line 26151 def read_only return @read_only end |
- (Object) read_only=(value)
Sets the value of the read_only
attribute.
26160 26161 26162 |
# File 'lib/ovirtsdk4/types.rb', line 26160 def read_only=(value) @read_only = value end |
- (ScsiGenericIO) sgio
Returns the value of the sgio
attribute.
26169 26170 26171 |
# File 'lib/ovirtsdk4/types.rb', line 26169 def sgio return @sgio end |
- (Object) sgio=(value)
Sets the value of the sgio
attribute.
26178 26179 26180 |
# File 'lib/ovirtsdk4/types.rb', line 26178 def sgio=(value) @sgio = value end |
- (Boolean) shareable
Returns the value of the shareable
attribute.
26187 26188 26189 |
# File 'lib/ovirtsdk4/types.rb', line 26187 def shareable return @shareable end |
- (Object) shareable=(value)
Sets the value of the shareable
attribute.
26196 26197 26198 |
# File 'lib/ovirtsdk4/types.rb', line 26196 def shareable=(value) @shareable = value end |
- (Snapshot) snapshot
Returns the value of the snapshot
attribute.
26205 26206 26207 |
# File 'lib/ovirtsdk4/types.rb', line 26205 def snapshot return @snapshot end |
- (Object) snapshot=(value)
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.
26218 26219 26220 26221 26222 26223 |
# File 'lib/ovirtsdk4/types.rb', line 26218 def snapshot=(value) if value.is_a?(Hash) value = Snapshot.new(value) end @snapshot = value end |
- (Boolean) sparse
Returns the value of the sparse
attribute.
26230 26231 26232 |
# File 'lib/ovirtsdk4/types.rb', line 26230 def sparse return @sparse end |
- (Object) sparse=(value)
Sets the value of the sparse
attribute.
26239 26240 26241 |
# File 'lib/ovirtsdk4/types.rb', line 26239 def sparse=(value) @sparse = value end |
- (Array<Statistic>) statistics
Returns the value of the statistics
attribute.
26248 26249 26250 |
# File 'lib/ovirtsdk4/types.rb', line 26248 def statistics return @statistics end |
- (Object) statistics=(list)
Sets the value of the statistics
attribute.
26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 |
# File 'lib/ovirtsdk4/types.rb', line 26256 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 |
- (DiskStatus) status
Returns the value of the status
attribute.
26273 26274 26275 |
# File 'lib/ovirtsdk4/types.rb', line 26273 def status return @status end |
- (Object) status=(value)
Sets the value of the status
attribute.
26282 26283 26284 |
# File 'lib/ovirtsdk4/types.rb', line 26282 def status=(value) @status = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain
attribute.
26291 26292 26293 |
# File 'lib/ovirtsdk4/types.rb', line 26291 def storage_domain return @storage_domain end |
- (Object) storage_domain=(value)
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.
26304 26305 26306 26307 26308 26309 |
# File 'lib/ovirtsdk4/types.rb', line 26304 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
- (Array<StorageDomain>) storage_domains
Returns the value of the storage_domains
attribute.
26316 26317 26318 |
# File 'lib/ovirtsdk4/types.rb', line 26316 def storage_domains return @storage_domains end |
- (Object) storage_domains=(list)
Sets the value of the storage_domains
attribute.
26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 |
# File 'lib/ovirtsdk4/types.rb', line 26324 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 |
- (DiskStorageType) storage_type
Returns the value of the storage_type
attribute.
26341 26342 26343 |
# File 'lib/ovirtsdk4/types.rb', line 26341 def storage_type return @storage_type end |
- (Object) storage_type=(value)
Sets the value of the storage_type
attribute.
26350 26351 26352 |
# File 'lib/ovirtsdk4/types.rb', line 26350 def storage_type=(value) @storage_type = value end |
- (Template) template
Returns the value of the template
attribute.
26359 26360 26361 |
# File 'lib/ovirtsdk4/types.rb', line 26359 def template return @template end |
- (Object) template=(value)
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.
26372 26373 26374 26375 26376 26377 |
# File 'lib/ovirtsdk4/types.rb', line 26372 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
- (Boolean) uses_scsi_reservation
Returns the value of the uses_scsi_reservation
attribute.
26384 26385 26386 |
# File 'lib/ovirtsdk4/types.rb', line 26384 def uses_scsi_reservation return @uses_scsi_reservation end |
- (Object) uses_scsi_reservation=(value)
Sets the value of the uses_scsi_reservation
attribute.
26393 26394 26395 |
# File 'lib/ovirtsdk4/types.rb', line 26393 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
- (Vm) vm
Returns the value of the vm
attribute.
26402 26403 26404 |
# File 'lib/ovirtsdk4/types.rb', line 26402 def vm return @vm end |
- (Object) vm=(value)
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.
26415 26416 26417 26418 26419 26420 |
# File 'lib/ovirtsdk4/types.rb', line 26415 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
- (Array<Vm>) vms
Returns the value of the vms
attribute.
26427 26428 26429 |
# File 'lib/ovirtsdk4/types.rb', line 26427 def vms return @vms end |
- (Object) vms=(list)
Sets the value of the vms
attribute.
26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 |
# File 'lib/ovirtsdk4/types.rb', line 26435 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 |
- (Boolean) wipe_after_delete
Returns the value of the wipe_after_delete
attribute.
26452 26453 26454 |
# File 'lib/ovirtsdk4/types.rb', line 26452 def wipe_after_delete return @wipe_after_delete end |
- (Object) wipe_after_delete=(value)
Sets the value of the wipe_after_delete
attribute.
26461 26462 26463 |
# File 'lib/ovirtsdk4/types.rb', line 26461 def wipe_after_delete=(value) @wipe_after_delete = value end |