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. -
#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. -
#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.
34314 34315 34316 34317 34318 34319 34320 34321 34322 34323 34324 34325 34326 34327 34328 34329 34330 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 34341 34342 34343 34344 34345 34346 34347 |
# File 'lib/ovirtsdk4/types.rb', line 34314 def initialize(opts = {}) super(opts) self.active = opts[:active] self.actual_size = opts[:actual_size] self.alias_ = opts[:alias_] self.bootable = opts[:bootable] self.content_type = opts[:content_type] 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.
34352 34353 34354 34355 34356 34357 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 34373 34374 34375 34376 34377 34378 34379 34380 34381 34382 34383 34384 34385 |
# File 'lib/ovirtsdk4/types.rb', line 34352 def ==(other) super && @active == other.active && @actual_size == other.actual_size && @alias_ == other.alias_ && @bootable == other.bootable && @content_type == other.content_type && @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 && == 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.
33436 33437 33438 |
# File 'lib/ovirtsdk4/types.rb', line 33436 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
33445 33446 33447 |
# File 'lib/ovirtsdk4/types.rb', line 33445 def active=(value) @active = value end |
#actual_size ⇒ Integer
Returns the value of the actual_size attribute.
33454 33455 33456 |
# File 'lib/ovirtsdk4/types.rb', line 33454 def actual_size @actual_size end |
#actual_size=(value) ⇒ Object
Sets the value of the actual_size attribute.
33463 33464 33465 |
# File 'lib/ovirtsdk4/types.rb', line 33463 def actual_size=(value) @actual_size = value end |
#alias_ ⇒ String
Returns the value of the alias_ attribute.
33472 33473 33474 |
# File 'lib/ovirtsdk4/types.rb', line 33472 def alias_ @alias_ end |
#alias_=(value) ⇒ Object
Sets the value of the alias_ attribute.
33481 33482 33483 |
# File 'lib/ovirtsdk4/types.rb', line 33481 def alias_=(value) @alias_ = value end |
#bootable ⇒ Boolean
Returns the value of the bootable attribute.
33490 33491 33492 |
# File 'lib/ovirtsdk4/types.rb', line 33490 def bootable @bootable end |
#bootable=(value) ⇒ Object
Sets the value of the bootable attribute.
33499 33500 33501 |
# File 'lib/ovirtsdk4/types.rb', line 33499 def bootable=(value) @bootable = value end |
#comment ⇒ String
Returns the value of the comment attribute.
33508 33509 33510 |
# File 'lib/ovirtsdk4/types.rb', line 33508 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
33517 33518 33519 |
# File 'lib/ovirtsdk4/types.rb', line 33517 def comment=(value) @comment = value end |
#content_type ⇒ DiskContentType
Returns the value of the content_type attribute.
33526 33527 33528 |
# File 'lib/ovirtsdk4/types.rb', line 33526 def content_type @content_type end |
#content_type=(value) ⇒ Object
Sets the value of the content_type attribute.
33535 33536 33537 |
# File 'lib/ovirtsdk4/types.rb', line 33535 def content_type=(value) @content_type = value end |
#description ⇒ String
Returns the value of the description attribute.
33544 33545 33546 |
# File 'lib/ovirtsdk4/types.rb', line 33544 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
33553 33554 33555 |
# File 'lib/ovirtsdk4/types.rb', line 33553 def description=(value) @description = value end |
#disk_profile ⇒ DiskProfile
Returns the value of the disk_profile attribute.
33562 33563 33564 |
# File 'lib/ovirtsdk4/types.rb', line 33562 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.
33575 33576 33577 33578 33579 33580 |
# File 'lib/ovirtsdk4/types.rb', line 33575 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.
33587 33588 33589 |
# File 'lib/ovirtsdk4/types.rb', line 33587 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format attribute.
33596 33597 33598 |
# File 'lib/ovirtsdk4/types.rb', line 33596 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
34390 34391 34392 34393 34394 34395 34396 34397 34398 34399 34400 34401 34402 34403 34404 34405 34406 34407 34408 34409 34410 34411 34412 34413 34414 34415 34416 34417 34418 34419 34420 34421 34422 34423 |
# File 'lib/ovirtsdk4/types.rb', line 34390 def hash super + @active.hash + @actual_size.hash + @alias_.hash + @bootable.hash + @content_type.hash + @disk_profile.hash + @format.hash + @image_id.hash + @initial_size.hash + @interface.hash + @logical_name.hash + @lun_storage.hash + @openstack_volume_type.hash + .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.
33605 33606 33607 |
# File 'lib/ovirtsdk4/types.rb', line 33605 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
33614 33615 33616 |
# File 'lib/ovirtsdk4/types.rb', line 33614 def id=(value) @id = value end |
#image_id ⇒ String
Returns the value of the image_id attribute.
33623 33624 33625 |
# File 'lib/ovirtsdk4/types.rb', line 33623 def image_id @image_id end |
#image_id=(value) ⇒ Object
Sets the value of the image_id attribute.
33632 33633 33634 |
# File 'lib/ovirtsdk4/types.rb', line 33632 def image_id=(value) @image_id = value end |
#initial_size ⇒ Integer
Returns the value of the initial_size attribute.
33641 33642 33643 |
# File 'lib/ovirtsdk4/types.rb', line 33641 def initial_size @initial_size end |
#initial_size=(value) ⇒ Object
Sets the value of the initial_size attribute.
33650 33651 33652 |
# File 'lib/ovirtsdk4/types.rb', line 33650 def initial_size=(value) @initial_size = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
33659 33660 33661 |
# File 'lib/ovirtsdk4/types.rb', line 33659 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.
33672 33673 33674 33675 33676 33677 |
# File 'lib/ovirtsdk4/types.rb', line 33672 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.
33684 33685 33686 |
# File 'lib/ovirtsdk4/types.rb', line 33684 def interface @interface end |
#interface=(value) ⇒ Object
Sets the value of the interface attribute.
33693 33694 33695 |
# File 'lib/ovirtsdk4/types.rb', line 33693 def interface=(value) @interface = value end |
#logical_name ⇒ String
Returns the value of the logical_name attribute.
33702 33703 33704 |
# File 'lib/ovirtsdk4/types.rb', line 33702 def logical_name @logical_name end |
#logical_name=(value) ⇒ Object
Sets the value of the logical_name attribute.
33711 33712 33713 |
# File 'lib/ovirtsdk4/types.rb', line 33711 def logical_name=(value) @logical_name = value end |
#lun_storage ⇒ HostStorage
Returns the value of the lun_storage attribute.
33720 33721 33722 |
# File 'lib/ovirtsdk4/types.rb', line 33720 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.
33733 33734 33735 33736 33737 33738 |
# File 'lib/ovirtsdk4/types.rb', line 33733 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.
33745 33746 33747 |
# File 'lib/ovirtsdk4/types.rb', line 33745 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
33754 33755 33756 |
# File 'lib/ovirtsdk4/types.rb', line 33754 def name=(value) @name = value end |
#openstack_volume_type ⇒ OpenStackVolumeType
Returns the value of the openstack_volume_type attribute.
33763 33764 33765 |
# File 'lib/ovirtsdk4/types.rb', line 33763 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.
33776 33777 33778 33779 33780 33781 |
# File 'lib/ovirtsdk4/types.rb', line 33776 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.
33788 33789 33790 |
# File 'lib/ovirtsdk4/types.rb', line 33788 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 |
# File 'lib/ovirtsdk4/types.rb', line 33797 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 = list end |
#propagate_errors ⇒ Boolean
Returns the value of the propagate_errors attribute.
33814 33815 33816 |
# File 'lib/ovirtsdk4/types.rb', line 33814 def propagate_errors @propagate_errors end |
#propagate_errors=(value) ⇒ Object
Sets the value of the propagate_errors attribute.
33823 33824 33825 |
# File 'lib/ovirtsdk4/types.rb', line 33823 def propagate_errors=(value) @propagate_errors = value end |
#provisioned_size ⇒ Integer
Returns the value of the provisioned_size attribute.
33832 33833 33834 |
# File 'lib/ovirtsdk4/types.rb', line 33832 def provisioned_size @provisioned_size end |
#provisioned_size=(value) ⇒ Object
Sets the value of the provisioned_size attribute.
33841 33842 33843 |
# File 'lib/ovirtsdk4/types.rb', line 33841 def provisioned_size=(value) @provisioned_size = value end |
#qcow_version ⇒ QcowVersion
Returns the value of the qcow_version attribute.
33850 33851 33852 |
# File 'lib/ovirtsdk4/types.rb', line 33850 def qcow_version @qcow_version end |
#qcow_version=(value) ⇒ Object
Sets the value of the qcow_version attribute.
33859 33860 33861 |
# File 'lib/ovirtsdk4/types.rb', line 33859 def qcow_version=(value) @qcow_version = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
33868 33869 33870 |
# File 'lib/ovirtsdk4/types.rb', line 33868 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.
33881 33882 33883 33884 33885 33886 |
# File 'lib/ovirtsdk4/types.rb', line 33881 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.
33893 33894 33895 |
# File 'lib/ovirtsdk4/types.rb', line 33893 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only attribute.
33902 33903 33904 |
# File 'lib/ovirtsdk4/types.rb', line 33902 def read_only=(value) @read_only = value end |
#sgio ⇒ ScsiGenericIO
Returns the value of the sgio attribute.
33911 33912 33913 |
# File 'lib/ovirtsdk4/types.rb', line 33911 def sgio @sgio end |
#sgio=(value) ⇒ Object
Sets the value of the sgio attribute.
33920 33921 33922 |
# File 'lib/ovirtsdk4/types.rb', line 33920 def sgio=(value) @sgio = value end |
#shareable ⇒ Boolean
Returns the value of the shareable attribute.
33929 33930 33931 |
# File 'lib/ovirtsdk4/types.rb', line 33929 def shareable @shareable end |
#shareable=(value) ⇒ Object
Sets the value of the shareable attribute.
33938 33939 33940 |
# File 'lib/ovirtsdk4/types.rb', line 33938 def shareable=(value) @shareable = value end |
#snapshot ⇒ Snapshot
Returns the value of the snapshot attribute.
33947 33948 33949 |
# File 'lib/ovirtsdk4/types.rb', line 33947 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.
33960 33961 33962 33963 33964 33965 |
# File 'lib/ovirtsdk4/types.rb', line 33960 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.
33972 33973 33974 |
# File 'lib/ovirtsdk4/types.rb', line 33972 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
33981 33982 33983 |
# File 'lib/ovirtsdk4/types.rb', line 33981 def sparse=(value) @sparse = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
33990 33991 33992 |
# File 'lib/ovirtsdk4/types.rb', line 33990 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 |
# File 'lib/ovirtsdk4/types.rb', line 33999 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.
34016 34017 34018 |
# File 'lib/ovirtsdk4/types.rb', line 34016 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
34025 34026 34027 |
# File 'lib/ovirtsdk4/types.rb', line 34025 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
34034 34035 34036 |
# File 'lib/ovirtsdk4/types.rb', line 34034 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.
34047 34048 34049 34050 34051 34052 |
# File 'lib/ovirtsdk4/types.rb', line 34047 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.
34059 34060 34061 |
# File 'lib/ovirtsdk4/types.rb', line 34059 def storage_domains @storage_domains end |
#storage_domains=(list) ⇒ Object
Sets the value of the storage_domains attribute.
34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 |
# File 'lib/ovirtsdk4/types.rb', line 34068 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.
34085 34086 34087 |
# File 'lib/ovirtsdk4/types.rb', line 34085 def storage_type @storage_type end |
#storage_type=(value) ⇒ Object
Sets the value of the storage_type attribute.
34094 34095 34096 |
# File 'lib/ovirtsdk4/types.rb', line 34094 def storage_type=(value) @storage_type = value end |
#template ⇒ Template
Returns the value of the template attribute.
34103 34104 34105 |
# File 'lib/ovirtsdk4/types.rb', line 34103 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.
34116 34117 34118 34119 34120 34121 |
# File 'lib/ovirtsdk4/types.rb', line 34116 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.
34128 34129 34130 |
# File 'lib/ovirtsdk4/types.rb', line 34128 def total_size @total_size end |
#total_size=(value) ⇒ Object
Sets the value of the total_size attribute.
34137 34138 34139 |
# File 'lib/ovirtsdk4/types.rb', line 34137 def total_size=(value) @total_size = value end |
#uses_scsi_reservation ⇒ Boolean
Returns the value of the uses_scsi_reservation attribute.
34146 34147 34148 |
# File 'lib/ovirtsdk4/types.rb', line 34146 def uses_scsi_reservation @uses_scsi_reservation end |
#uses_scsi_reservation=(value) ⇒ Object
Sets the value of the uses_scsi_reservation attribute.
34155 34156 34157 |
# File 'lib/ovirtsdk4/types.rb', line 34155 def uses_scsi_reservation=(value) @uses_scsi_reservation = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
34164 34165 34166 |
# File 'lib/ovirtsdk4/types.rb', line 34164 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.
34177 34178 34179 34180 34181 34182 |
# File 'lib/ovirtsdk4/types.rb', line 34177 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.
34189 34190 34191 |
# File 'lib/ovirtsdk4/types.rb', line 34189 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
34198 34199 34200 34201 34202 34203 34204 34205 34206 34207 34208 |
# File 'lib/ovirtsdk4/types.rb', line 34198 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.
34215 34216 34217 |
# File 'lib/ovirtsdk4/types.rb', line 34215 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete attribute.
34224 34225 34226 |
# File 'lib/ovirtsdk4/types.rb', line 34224 def wipe_after_delete=(value) @wipe_after_delete = value end |