Class: OvirtSDK4::StorageDomain
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::StorageDomain
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#available ⇒ Integer
Returns the value of the
available
attribute. -
#available=(value) ⇒ Object
Sets the value of the
available
attribute. -
#backup ⇒ Boolean
Returns the value of the
backup
attribute. -
#backup=(value) ⇒ Object
Sets the value of the
backup
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#committed ⇒ Integer
Returns the value of the
committed
attribute. -
#committed=(value) ⇒ Object
Sets the value of the
committed
attribute. -
#critical_space_action_blocker ⇒ Integer
Returns the value of the
critical_space_action_blocker
attribute. -
#critical_space_action_blocker=(value) ⇒ Object
Sets the value of the
critical_space_action_blocker
attribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_center
attribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_center
attribute. -
#data_centers ⇒ Array<DataCenter>
Returns the value of the
data_centers
attribute. -
#data_centers=(list) ⇒ Object
Sets the value of the
data_centers
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#discard_after_delete ⇒ Boolean
Returns the value of the
discard_after_delete
attribute. -
#discard_after_delete=(value) ⇒ Object
Sets the value of the
discard_after_delete
attribute. -
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the
disk_profiles
attribute. -
#disk_profiles=(list) ⇒ Object
Sets the value of the
disk_profiles
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. -
#disks ⇒ Array<Disk>
Returns the value of the
disks
attribute. -
#disks=(list) ⇒ Object
Sets the value of the
disks
attribute. -
#external_status ⇒ ExternalStatus
Returns the value of the
external_status
attribute. -
#external_status=(value) ⇒ Object
Sets the value of the
external_status
attribute. -
#files ⇒ Array<File>
Returns the value of the
files
attribute. -
#files=(list) ⇒ Object
Sets the value of the
files
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#images ⇒ Array<Image>
Returns the value of the
images
attribute. -
#images=(list) ⇒ Object
Sets the value of the
images
attribute. -
#import ⇒ Boolean
Returns the value of the
import
attribute. -
#import=(value) ⇒ Object
Sets the value of the
import
attribute. -
#initialize(opts = {}) ⇒ StorageDomain
constructor
Creates a new instance of the StorageDomain class.
-
#master ⇒ Boolean
Returns the value of the
master
attribute. -
#master=(value) ⇒ Object
Sets the value of the
master
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#status ⇒ StorageDomainStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage ⇒ HostStorage
Returns the value of the
storage
attribute. -
#storage=(value) ⇒ Object
Sets the value of the
storage
attribute. -
#storage_connections ⇒ Array<StorageConnection>
Returns the value of the
storage_connections
attribute. -
#storage_connections=(list) ⇒ Object
Sets the value of the
storage_connections
attribute. -
#storage_format ⇒ StorageFormat
Returns the value of the
storage_format
attribute. -
#storage_format=(value) ⇒ Object
Sets the value of the
storage_format
attribute. -
#supports_discard ⇒ Boolean
Returns the value of the
supports_discard
attribute. -
#supports_discard=(value) ⇒ Object
Sets the value of the
supports_discard
attribute. -
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the
supports_discard_zeroes_data
attribute. -
#supports_discard_zeroes_data=(value) ⇒ Object
Sets the value of the
supports_discard_zeroes_data
attribute. -
#templates ⇒ Array<Template>
Returns the value of the
templates
attribute. -
#templates=(list) ⇒ Object
Sets the value of the
templates
attribute. -
#type ⇒ StorageDomainType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#used ⇒ Integer
Returns the value of the
used
attribute. -
#used=(value) ⇒ Object
Sets the value of the
used
attribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vms
attribute. -
#vms=(list) ⇒ Object
Sets the value of the
vms
attribute. -
#warning_low_space_indicator ⇒ Integer
Returns the value of the
warning_low_space_indicator
attribute. -
#warning_low_space_indicator=(value) ⇒ Object
Sets the value of the
warning_low_space_indicator
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 = {}) ⇒ StorageDomain
Creates a new instance of the OvirtSDK4::StorageDomain class.
21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 |
# File 'lib/ovirtsdk4/types.rb', line 21784 def initialize(opts = {}) super(opts) self.available = opts[:available] self.backup = opts[:backup] self.committed = opts[:committed] self.critical_space_action_blocker = opts[:critical_space_action_blocker] self.data_center = opts[:data_center] self.data_centers = opts[:data_centers] self.discard_after_delete = opts[:discard_after_delete] self.disk_profiles = opts[:disk_profiles] self.disk_snapshots = opts[:disk_snapshots] self.disks = opts[:disks] self.external_status = opts[:external_status] self.files = opts[:files] self.host = opts[:host] self.images = opts[:images] self.import = opts[:import] self.master = opts[:master] self. = opts[:permissions] self.status = opts[:status] self.storage = opts[:storage] self.storage_connections = opts[:storage_connections] self.storage_format = opts[:storage_format] self.supports_discard = opts[:supports_discard] self.supports_discard_zeroes_data = opts[:supports_discard_zeroes_data] self.templates = opts[:templates] self.type = opts[:type] self.used = opts[:used] self.vms = opts[:vms] self.warning_low_space_indicator = opts[:warning_low_space_indicator] 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.
21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 |
# File 'lib/ovirtsdk4/types.rb', line 21820 def ==(other) super && @available == other.available && @backup == other.backup && @committed == other.committed && @critical_space_action_blocker == other.critical_space_action_blocker && @data_center == other.data_center && @data_centers == other.data_centers && @discard_after_delete == other.discard_after_delete && @disk_profiles == other.disk_profiles && @disk_snapshots == other.disk_snapshots && @disks == other.disks && @external_status == other.external_status && @files == other.files && @host == other.host && @images == other.images && @import == other.import && @master == other.master && @permissions == other. && @status == other.status && @storage == other.storage && @storage_connections == other.storage_connections && @storage_format == other.storage_format && @supports_discard == other.supports_discard && @supports_discard_zeroes_data == other.supports_discard_zeroes_data && @templates == other.templates && @type == other.type && @used == other.used && @vms == other.vms && @warning_low_space_indicator == other.warning_low_space_indicator && @wipe_after_delete == other.wipe_after_delete end |
#available ⇒ Integer
Returns the value of the available
attribute.
21020 21021 21022 |
# File 'lib/ovirtsdk4/types.rb', line 21020 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
21029 21030 21031 |
# File 'lib/ovirtsdk4/types.rb', line 21029 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
21038 21039 21040 |
# File 'lib/ovirtsdk4/types.rb', line 21038 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
21047 21048 21049 |
# File 'lib/ovirtsdk4/types.rb', line 21047 def backup=(value) @backup = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21056 21057 21058 |
# File 'lib/ovirtsdk4/types.rb', line 21056 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21065 21066 21067 |
# File 'lib/ovirtsdk4/types.rb', line 21065 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
21074 21075 21076 |
# File 'lib/ovirtsdk4/types.rb', line 21074 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21083 21084 21085 |
# File 'lib/ovirtsdk4/types.rb', line 21083 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21092 21093 21094 |
# File 'lib/ovirtsdk4/types.rb', line 21092 def critical_space_action_blocker @critical_space_action_blocker end |
#critical_space_action_blocker=(value) ⇒ Object
Sets the value of the critical_space_action_blocker
attribute.
21101 21102 21103 |
# File 'lib/ovirtsdk4/types.rb', line 21101 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21110 21111 21112 |
# File 'lib/ovirtsdk4/types.rb', line 21110 def data_center @data_center end |
#data_center=(value) ⇒ Object
Sets the value of the data_center
attribute.
The value
parameter can be an instance of DataCenter 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.
21123 21124 21125 21126 21127 21128 |
# File 'lib/ovirtsdk4/types.rb', line 21123 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
#data_centers ⇒ Array<DataCenter>
Returns the value of the data_centers
attribute.
21135 21136 21137 |
# File 'lib/ovirtsdk4/types.rb', line 21135 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 |
# File 'lib/ovirtsdk4/types.rb', line 21144 def data_centers=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DataCenter.new(value) end end end @data_centers = list end |
#description ⇒ String
Returns the value of the description
attribute.
21161 21162 21163 |
# File 'lib/ovirtsdk4/types.rb', line 21161 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21170 21171 21172 |
# File 'lib/ovirtsdk4/types.rb', line 21170 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
21179 21180 21181 |
# File 'lib/ovirtsdk4/types.rb', line 21179 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
21188 21189 21190 |
# File 'lib/ovirtsdk4/types.rb', line 21188 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
21197 21198 21199 |
# File 'lib/ovirtsdk4/types.rb', line 21197 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 |
# File 'lib/ovirtsdk4/types.rb', line 21206 def disk_profiles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskProfile.new(value) end end end @disk_profiles = list end |
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the disk_snapshots
attribute.
21223 21224 21225 |
# File 'lib/ovirtsdk4/types.rb', line 21223 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 |
# File 'lib/ovirtsdk4/types.rb', line 21232 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 |
#disks ⇒ Array<Disk>
Returns the value of the disks
attribute.
21249 21250 21251 |
# File 'lib/ovirtsdk4/types.rb', line 21249 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 |
# File 'lib/ovirtsdk4/types.rb', line 21258 def disks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Disk.new(value) end end end @disks = list end |
#external_status ⇒ ExternalStatus
Returns the value of the external_status
attribute.
21275 21276 21277 |
# File 'lib/ovirtsdk4/types.rb', line 21275 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21284 21285 21286 |
# File 'lib/ovirtsdk4/types.rb', line 21284 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21293 21294 21295 |
# File 'lib/ovirtsdk4/types.rb', line 21293 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 |
# File 'lib/ovirtsdk4/types.rb', line 21302 def files=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = File.new(value) end end end @files = list end |
#hash ⇒ Object
Generates a hash value for this object.
21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 |
# File 'lib/ovirtsdk4/types.rb', line 21856 def hash super + @available.hash + @backup.hash + @committed.hash + @critical_space_action_blocker.hash + @data_center.hash + @data_centers.hash + @discard_after_delete.hash + @disk_profiles.hash + @disk_snapshots.hash + @disks.hash + @external_status.hash + @files.hash + @host.hash + @images.hash + @import.hash + @master.hash + @permissions.hash + @status.hash + @storage.hash + @storage_connections.hash + @storage_format.hash + @supports_discard.hash + @supports_discard_zeroes_data.hash + @templates.hash + @type.hash + @used.hash + @vms.hash + @warning_low_space_indicator.hash + @wipe_after_delete.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
21319 21320 21321 |
# File 'lib/ovirtsdk4/types.rb', line 21319 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of Host 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.
21332 21333 21334 21335 21336 21337 |
# File 'lib/ovirtsdk4/types.rb', line 21332 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id
attribute.
21344 21345 21346 |
# File 'lib/ovirtsdk4/types.rb', line 21344 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21353 21354 21355 |
# File 'lib/ovirtsdk4/types.rb', line 21353 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21362 21363 21364 |
# File 'lib/ovirtsdk4/types.rb', line 21362 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 |
# File 'lib/ovirtsdk4/types.rb', line 21371 def images=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Image.new(value) end end end @images = list end |
#import ⇒ Boolean
Returns the value of the import
attribute.
21388 21389 21390 |
# File 'lib/ovirtsdk4/types.rb', line 21388 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21397 21398 21399 |
# File 'lib/ovirtsdk4/types.rb', line 21397 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21406 21407 21408 |
# File 'lib/ovirtsdk4/types.rb', line 21406 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21415 21416 21417 |
# File 'lib/ovirtsdk4/types.rb', line 21415 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21424 21425 21426 |
# File 'lib/ovirtsdk4/types.rb', line 21424 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21433 21434 21435 |
# File 'lib/ovirtsdk4/types.rb', line 21433 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21442 21443 21444 |
# File 'lib/ovirtsdk4/types.rb', line 21442 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 |
# File 'lib/ovirtsdk4/types.rb', line 21451 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 |
#status ⇒ StorageDomainStatus
Returns the value of the status
attribute.
21468 21469 21470 |
# File 'lib/ovirtsdk4/types.rb', line 21468 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21477 21478 21479 |
# File 'lib/ovirtsdk4/types.rb', line 21477 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21486 21487 21488 |
# File 'lib/ovirtsdk4/types.rb', line 21486 def storage @storage end |
#storage=(value) ⇒ Object
Sets the value of the 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.
21499 21500 21501 21502 21503 21504 |
# File 'lib/ovirtsdk4/types.rb', line 21499 def storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @storage = value end |
#storage_connections ⇒ Array<StorageConnection>
Returns the value of the storage_connections
attribute.
21511 21512 21513 |
# File 'lib/ovirtsdk4/types.rb', line 21511 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 |
# File 'lib/ovirtsdk4/types.rb', line 21520 def storage_connections=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = StorageConnection.new(value) end end end @storage_connections = list end |
#storage_format ⇒ StorageFormat
Returns the value of the storage_format
attribute.
21537 21538 21539 |
# File 'lib/ovirtsdk4/types.rb', line 21537 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21546 21547 21548 |
# File 'lib/ovirtsdk4/types.rb', line 21546 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21555 21556 21557 |
# File 'lib/ovirtsdk4/types.rb', line 21555 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21564 21565 21566 |
# File 'lib/ovirtsdk4/types.rb', line 21564 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21573 21574 21575 |
# File 'lib/ovirtsdk4/types.rb', line 21573 def supports_discard_zeroes_data @supports_discard_zeroes_data end |
#supports_discard_zeroes_data=(value) ⇒ Object
Sets the value of the supports_discard_zeroes_data
attribute.
21582 21583 21584 |
# File 'lib/ovirtsdk4/types.rb', line 21582 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21591 21592 21593 |
# File 'lib/ovirtsdk4/types.rb', line 21591 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 |
# File 'lib/ovirtsdk4/types.rb', line 21600 def templates=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Template.new(value) end end end @templates = list end |
#type ⇒ StorageDomainType
Returns the value of the type
attribute.
21617 21618 21619 |
# File 'lib/ovirtsdk4/types.rb', line 21617 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21626 21627 21628 |
# File 'lib/ovirtsdk4/types.rb', line 21626 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
21635 21636 21637 |
# File 'lib/ovirtsdk4/types.rb', line 21635 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
21644 21645 21646 |
# File 'lib/ovirtsdk4/types.rb', line 21644 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
21653 21654 21655 |
# File 'lib/ovirtsdk4/types.rb', line 21653 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 |
# File 'lib/ovirtsdk4/types.rb', line 21662 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 |
#warning_low_space_indicator ⇒ Integer
Returns the value of the warning_low_space_indicator
attribute.
21679 21680 21681 |
# File 'lib/ovirtsdk4/types.rb', line 21679 def warning_low_space_indicator @warning_low_space_indicator end |
#warning_low_space_indicator=(value) ⇒ Object
Sets the value of the warning_low_space_indicator
attribute.
21688 21689 21690 |
# File 'lib/ovirtsdk4/types.rb', line 21688 def warning_low_space_indicator=(value) @warning_low_space_indicator = value end |
#wipe_after_delete ⇒ Boolean
Returns the value of the wipe_after_delete
attribute.
21697 21698 21699 |
# File 'lib/ovirtsdk4/types.rb', line 21697 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
21706 21707 21708 |
# File 'lib/ovirtsdk4/types.rb', line 21706 def wipe_after_delete=(value) @wipe_after_delete = value end |