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.
21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 |
# File 'lib/ovirtsdk4/types.rb', line 21584 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.
21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 |
# File 'lib/ovirtsdk4/types.rb', line 21620 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.
20820 20821 20822 |
# File 'lib/ovirtsdk4/types.rb', line 20820 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
20829 20830 20831 |
# File 'lib/ovirtsdk4/types.rb', line 20829 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
20838 20839 20840 |
# File 'lib/ovirtsdk4/types.rb', line 20838 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
20847 20848 20849 |
# File 'lib/ovirtsdk4/types.rb', line 20847 def backup=(value) @backup = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
20856 20857 20858 |
# File 'lib/ovirtsdk4/types.rb', line 20856 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20865 20866 20867 |
# File 'lib/ovirtsdk4/types.rb', line 20865 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
20874 20875 20876 |
# File 'lib/ovirtsdk4/types.rb', line 20874 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
20883 20884 20885 |
# File 'lib/ovirtsdk4/types.rb', line 20883 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
20892 20893 20894 |
# File 'lib/ovirtsdk4/types.rb', line 20892 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.
20901 20902 20903 |
# File 'lib/ovirtsdk4/types.rb', line 20901 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
20910 20911 20912 |
# File 'lib/ovirtsdk4/types.rb', line 20910 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.
20923 20924 20925 20926 20927 20928 |
# File 'lib/ovirtsdk4/types.rb', line 20923 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.
20935 20936 20937 |
# File 'lib/ovirtsdk4/types.rb', line 20935 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 |
# File 'lib/ovirtsdk4/types.rb', line 20944 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.
20961 20962 20963 |
# File 'lib/ovirtsdk4/types.rb', line 20961 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20970 20971 20972 |
# File 'lib/ovirtsdk4/types.rb', line 20970 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
20979 20980 20981 |
# File 'lib/ovirtsdk4/types.rb', line 20979 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
20988 20989 20990 |
# File 'lib/ovirtsdk4/types.rb', line 20988 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
20997 20998 20999 |
# File 'lib/ovirtsdk4/types.rb', line 20997 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 |
# File 'lib/ovirtsdk4/types.rb', line 21006 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.
21023 21024 21025 |
# File 'lib/ovirtsdk4/types.rb', line 21023 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 |
# File 'lib/ovirtsdk4/types.rb', line 21032 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.
21049 21050 21051 |
# File 'lib/ovirtsdk4/types.rb', line 21049 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 |
# File 'lib/ovirtsdk4/types.rb', line 21058 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.
21075 21076 21077 |
# File 'lib/ovirtsdk4/types.rb', line 21075 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21084 21085 21086 |
# File 'lib/ovirtsdk4/types.rb', line 21084 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21093 21094 21095 |
# File 'lib/ovirtsdk4/types.rb', line 21093 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 |
# File 'lib/ovirtsdk4/types.rb', line 21102 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.
21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 |
# File 'lib/ovirtsdk4/types.rb', line 21656 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.
21119 21120 21121 |
# File 'lib/ovirtsdk4/types.rb', line 21119 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.
21132 21133 21134 21135 21136 21137 |
# File 'lib/ovirtsdk4/types.rb', line 21132 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.
21144 21145 21146 |
# File 'lib/ovirtsdk4/types.rb', line 21144 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21153 21154 21155 |
# File 'lib/ovirtsdk4/types.rb', line 21153 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21162 21163 21164 |
# File 'lib/ovirtsdk4/types.rb', line 21162 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 |
# File 'lib/ovirtsdk4/types.rb', line 21171 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.
21188 21189 21190 |
# File 'lib/ovirtsdk4/types.rb', line 21188 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21197 21198 21199 |
# File 'lib/ovirtsdk4/types.rb', line 21197 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21206 21207 21208 |
# File 'lib/ovirtsdk4/types.rb', line 21206 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21215 21216 21217 |
# File 'lib/ovirtsdk4/types.rb', line 21215 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21224 21225 21226 |
# File 'lib/ovirtsdk4/types.rb', line 21224 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21233 21234 21235 |
# File 'lib/ovirtsdk4/types.rb', line 21233 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21242 21243 21244 |
# File 'lib/ovirtsdk4/types.rb', line 21242 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 |
# File 'lib/ovirtsdk4/types.rb', line 21251 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.
21268 21269 21270 |
# File 'lib/ovirtsdk4/types.rb', line 21268 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21277 21278 21279 |
# File 'lib/ovirtsdk4/types.rb', line 21277 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21286 21287 21288 |
# File 'lib/ovirtsdk4/types.rb', line 21286 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.
21299 21300 21301 21302 21303 21304 |
# File 'lib/ovirtsdk4/types.rb', line 21299 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.
21311 21312 21313 |
# File 'lib/ovirtsdk4/types.rb', line 21311 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 |
# File 'lib/ovirtsdk4/types.rb', line 21320 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.
21337 21338 21339 |
# File 'lib/ovirtsdk4/types.rb', line 21337 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21346 21347 21348 |
# File 'lib/ovirtsdk4/types.rb', line 21346 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21355 21356 21357 |
# File 'lib/ovirtsdk4/types.rb', line 21355 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21364 21365 21366 |
# File 'lib/ovirtsdk4/types.rb', line 21364 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21373 21374 21375 |
# File 'lib/ovirtsdk4/types.rb', line 21373 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.
21382 21383 21384 |
# File 'lib/ovirtsdk4/types.rb', line 21382 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21391 21392 21393 |
# File 'lib/ovirtsdk4/types.rb', line 21391 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 |
# File 'lib/ovirtsdk4/types.rb', line 21400 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.
21417 21418 21419 |
# File 'lib/ovirtsdk4/types.rb', line 21417 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21426 21427 21428 |
# File 'lib/ovirtsdk4/types.rb', line 21426 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
21435 21436 21437 |
# File 'lib/ovirtsdk4/types.rb', line 21435 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
21444 21445 21446 |
# File 'lib/ovirtsdk4/types.rb', line 21444 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
21453 21454 21455 |
# File 'lib/ovirtsdk4/types.rb', line 21453 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 |
# File 'lib/ovirtsdk4/types.rb', line 21462 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.
21479 21480 21481 |
# File 'lib/ovirtsdk4/types.rb', line 21479 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.
21488 21489 21490 |
# File 'lib/ovirtsdk4/types.rb', line 21488 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.
21497 21498 21499 |
# File 'lib/ovirtsdk4/types.rb', line 21497 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
21506 21507 21508 |
# File 'lib/ovirtsdk4/types.rb', line 21506 def wipe_after_delete=(value) @wipe_after_delete = value end |