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.
21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 |
# File 'lib/ovirtsdk4/types.rb', line 21754 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.
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 21816 21817 21818 21819 21820 21821 |
# File 'lib/ovirtsdk4/types.rb', line 21790 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.
20990 20991 20992 |
# File 'lib/ovirtsdk4/types.rb', line 20990 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
20999 21000 21001 |
# File 'lib/ovirtsdk4/types.rb', line 20999 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
21008 21009 21010 |
# File 'lib/ovirtsdk4/types.rb', line 21008 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
21017 21018 21019 |
# File 'lib/ovirtsdk4/types.rb', line 21017 def backup=(value) @backup = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21026 21027 21028 |
# File 'lib/ovirtsdk4/types.rb', line 21026 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21035 21036 21037 |
# File 'lib/ovirtsdk4/types.rb', line 21035 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
21044 21045 21046 |
# File 'lib/ovirtsdk4/types.rb', line 21044 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21053 21054 21055 |
# File 'lib/ovirtsdk4/types.rb', line 21053 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21062 21063 21064 |
# File 'lib/ovirtsdk4/types.rb', line 21062 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.
21071 21072 21073 |
# File 'lib/ovirtsdk4/types.rb', line 21071 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21080 21081 21082 |
# File 'lib/ovirtsdk4/types.rb', line 21080 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.
21093 21094 21095 21096 21097 21098 |
# File 'lib/ovirtsdk4/types.rb', line 21093 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.
21105 21106 21107 |
# File 'lib/ovirtsdk4/types.rb', line 21105 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 |
# File 'lib/ovirtsdk4/types.rb', line 21114 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.
21131 21132 21133 |
# File 'lib/ovirtsdk4/types.rb', line 21131 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21140 21141 21142 |
# File 'lib/ovirtsdk4/types.rb', line 21140 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
21149 21150 21151 |
# File 'lib/ovirtsdk4/types.rb', line 21149 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
21158 21159 21160 |
# File 'lib/ovirtsdk4/types.rb', line 21158 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
21167 21168 21169 |
# File 'lib/ovirtsdk4/types.rb', line 21167 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 |
# File 'lib/ovirtsdk4/types.rb', line 21176 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.
21193 21194 21195 |
# File 'lib/ovirtsdk4/types.rb', line 21193 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 |
# File 'lib/ovirtsdk4/types.rb', line 21202 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.
21219 21220 21221 |
# File 'lib/ovirtsdk4/types.rb', line 21219 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 |
# File 'lib/ovirtsdk4/types.rb', line 21228 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.
21245 21246 21247 |
# File 'lib/ovirtsdk4/types.rb', line 21245 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21254 21255 21256 |
# File 'lib/ovirtsdk4/types.rb', line 21254 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21263 21264 21265 |
# File 'lib/ovirtsdk4/types.rb', line 21263 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 |
# File 'lib/ovirtsdk4/types.rb', line 21272 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.
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 21852 21853 21854 21855 21856 21857 |
# File 'lib/ovirtsdk4/types.rb', line 21826 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.
21289 21290 21291 |
# File 'lib/ovirtsdk4/types.rb', line 21289 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.
21302 21303 21304 21305 21306 21307 |
# File 'lib/ovirtsdk4/types.rb', line 21302 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.
21314 21315 21316 |
# File 'lib/ovirtsdk4/types.rb', line 21314 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21323 21324 21325 |
# File 'lib/ovirtsdk4/types.rb', line 21323 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21332 21333 21334 |
# File 'lib/ovirtsdk4/types.rb', line 21332 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 |
# File 'lib/ovirtsdk4/types.rb', line 21341 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.
21358 21359 21360 |
# File 'lib/ovirtsdk4/types.rb', line 21358 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21367 21368 21369 |
# File 'lib/ovirtsdk4/types.rb', line 21367 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21376 21377 21378 |
# File 'lib/ovirtsdk4/types.rb', line 21376 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21385 21386 21387 |
# File 'lib/ovirtsdk4/types.rb', line 21385 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21394 21395 21396 |
# File 'lib/ovirtsdk4/types.rb', line 21394 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21403 21404 21405 |
# File 'lib/ovirtsdk4/types.rb', line 21403 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21412 21413 21414 |
# File 'lib/ovirtsdk4/types.rb', line 21412 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 |
# File 'lib/ovirtsdk4/types.rb', line 21421 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.
21438 21439 21440 |
# File 'lib/ovirtsdk4/types.rb', line 21438 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21447 21448 21449 |
# File 'lib/ovirtsdk4/types.rb', line 21447 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21456 21457 21458 |
# File 'lib/ovirtsdk4/types.rb', line 21456 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.
21469 21470 21471 21472 21473 21474 |
# File 'lib/ovirtsdk4/types.rb', line 21469 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.
21481 21482 21483 |
# File 'lib/ovirtsdk4/types.rb', line 21481 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 |
# File 'lib/ovirtsdk4/types.rb', line 21490 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.
21507 21508 21509 |
# File 'lib/ovirtsdk4/types.rb', line 21507 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21516 21517 21518 |
# File 'lib/ovirtsdk4/types.rb', line 21516 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21525 21526 21527 |
# File 'lib/ovirtsdk4/types.rb', line 21525 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21534 21535 21536 |
# File 'lib/ovirtsdk4/types.rb', line 21534 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21543 21544 21545 |
# File 'lib/ovirtsdk4/types.rb', line 21543 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.
21552 21553 21554 |
# File 'lib/ovirtsdk4/types.rb', line 21552 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21561 21562 21563 |
# File 'lib/ovirtsdk4/types.rb', line 21561 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 |
# File 'lib/ovirtsdk4/types.rb', line 21570 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.
21587 21588 21589 |
# File 'lib/ovirtsdk4/types.rb', line 21587 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21596 21597 21598 |
# File 'lib/ovirtsdk4/types.rb', line 21596 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
21605 21606 21607 |
# File 'lib/ovirtsdk4/types.rb', line 21605 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
21614 21615 21616 |
# File 'lib/ovirtsdk4/types.rb', line 21614 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
21623 21624 21625 |
# File 'lib/ovirtsdk4/types.rb', line 21623 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 |
# File 'lib/ovirtsdk4/types.rb', line 21632 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.
21649 21650 21651 |
# File 'lib/ovirtsdk4/types.rb', line 21649 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.
21658 21659 21660 |
# File 'lib/ovirtsdk4/types.rb', line 21658 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.
21667 21668 21669 |
# File 'lib/ovirtsdk4/types.rb', line 21667 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
21676 21677 21678 |
# File 'lib/ovirtsdk4/types.rb', line 21676 def wipe_after_delete=(value) @wipe_after_delete = value end |