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.
21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 |
# File 'lib/ovirtsdk4/types.rb', line 21708 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.
21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 |
# File 'lib/ovirtsdk4/types.rb', line 21744 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.
20944 20945 20946 |
# File 'lib/ovirtsdk4/types.rb', line 20944 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
20953 20954 20955 |
# File 'lib/ovirtsdk4/types.rb', line 20953 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
20962 20963 20964 |
# File 'lib/ovirtsdk4/types.rb', line 20962 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
20971 20972 20973 |
# File 'lib/ovirtsdk4/types.rb', line 20971 def backup=(value) @backup = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
20980 20981 20982 |
# File 'lib/ovirtsdk4/types.rb', line 20980 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20989 20990 20991 |
# File 'lib/ovirtsdk4/types.rb', line 20989 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
20998 20999 21000 |
# File 'lib/ovirtsdk4/types.rb', line 20998 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21007 21008 21009 |
# File 'lib/ovirtsdk4/types.rb', line 21007 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21016 21017 21018 |
# File 'lib/ovirtsdk4/types.rb', line 21016 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.
21025 21026 21027 |
# File 'lib/ovirtsdk4/types.rb', line 21025 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21034 21035 21036 |
# File 'lib/ovirtsdk4/types.rb', line 21034 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.
21047 21048 21049 21050 21051 21052 |
# File 'lib/ovirtsdk4/types.rb', line 21047 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.
21059 21060 21061 |
# File 'lib/ovirtsdk4/types.rb', line 21059 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 |
# File 'lib/ovirtsdk4/types.rb', line 21068 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.
21085 21086 21087 |
# File 'lib/ovirtsdk4/types.rb', line 21085 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21094 21095 21096 |
# File 'lib/ovirtsdk4/types.rb', line 21094 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
21103 21104 21105 |
# File 'lib/ovirtsdk4/types.rb', line 21103 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
21112 21113 21114 |
# File 'lib/ovirtsdk4/types.rb', line 21112 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
21121 21122 21123 |
# File 'lib/ovirtsdk4/types.rb', line 21121 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 |
# File 'lib/ovirtsdk4/types.rb', line 21130 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.
21147 21148 21149 |
# File 'lib/ovirtsdk4/types.rb', line 21147 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 |
# File 'lib/ovirtsdk4/types.rb', line 21156 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.
21173 21174 21175 |
# File 'lib/ovirtsdk4/types.rb', line 21173 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 |
# File 'lib/ovirtsdk4/types.rb', line 21182 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.
21199 21200 21201 |
# File 'lib/ovirtsdk4/types.rb', line 21199 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21208 21209 21210 |
# File 'lib/ovirtsdk4/types.rb', line 21208 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21217 21218 21219 |
# File 'lib/ovirtsdk4/types.rb', line 21217 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 |
# File 'lib/ovirtsdk4/types.rb', line 21226 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.
21780 21781 21782 21783 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 |
# File 'lib/ovirtsdk4/types.rb', line 21780 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.
21243 21244 21245 |
# File 'lib/ovirtsdk4/types.rb', line 21243 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.
21256 21257 21258 21259 21260 21261 |
# File 'lib/ovirtsdk4/types.rb', line 21256 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.
21268 21269 21270 |
# File 'lib/ovirtsdk4/types.rb', line 21268 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21277 21278 21279 |
# File 'lib/ovirtsdk4/types.rb', line 21277 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21286 21287 21288 |
# File 'lib/ovirtsdk4/types.rb', line 21286 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 |
# File 'lib/ovirtsdk4/types.rb', line 21295 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.
21312 21313 21314 |
# File 'lib/ovirtsdk4/types.rb', line 21312 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21321 21322 21323 |
# File 'lib/ovirtsdk4/types.rb', line 21321 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21330 21331 21332 |
# File 'lib/ovirtsdk4/types.rb', line 21330 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21339 21340 21341 |
# File 'lib/ovirtsdk4/types.rb', line 21339 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21348 21349 21350 |
# File 'lib/ovirtsdk4/types.rb', line 21348 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21357 21358 21359 |
# File 'lib/ovirtsdk4/types.rb', line 21357 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21366 21367 21368 |
# File 'lib/ovirtsdk4/types.rb', line 21366 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 |
# File 'lib/ovirtsdk4/types.rb', line 21375 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.
21392 21393 21394 |
# File 'lib/ovirtsdk4/types.rb', line 21392 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21401 21402 21403 |
# File 'lib/ovirtsdk4/types.rb', line 21401 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21410 21411 21412 |
# File 'lib/ovirtsdk4/types.rb', line 21410 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.
21423 21424 21425 21426 21427 21428 |
# File 'lib/ovirtsdk4/types.rb', line 21423 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.
21435 21436 21437 |
# File 'lib/ovirtsdk4/types.rb', line 21435 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 |
# File 'lib/ovirtsdk4/types.rb', line 21444 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.
21461 21462 21463 |
# File 'lib/ovirtsdk4/types.rb', line 21461 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21470 21471 21472 |
# File 'lib/ovirtsdk4/types.rb', line 21470 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21479 21480 21481 |
# File 'lib/ovirtsdk4/types.rb', line 21479 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21488 21489 21490 |
# File 'lib/ovirtsdk4/types.rb', line 21488 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21497 21498 21499 |
# File 'lib/ovirtsdk4/types.rb', line 21497 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.
21506 21507 21508 |
# File 'lib/ovirtsdk4/types.rb', line 21506 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21515 21516 21517 |
# File 'lib/ovirtsdk4/types.rb', line 21515 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 |
# File 'lib/ovirtsdk4/types.rb', line 21524 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.
21541 21542 21543 |
# File 'lib/ovirtsdk4/types.rb', line 21541 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21550 21551 21552 |
# File 'lib/ovirtsdk4/types.rb', line 21550 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
21559 21560 21561 |
# File 'lib/ovirtsdk4/types.rb', line 21559 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
21568 21569 21570 |
# File 'lib/ovirtsdk4/types.rb', line 21568 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
21577 21578 21579 |
# File 'lib/ovirtsdk4/types.rb', line 21577 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 |
# File 'lib/ovirtsdk4/types.rb', line 21586 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.
21603 21604 21605 |
# File 'lib/ovirtsdk4/types.rb', line 21603 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.
21612 21613 21614 |
# File 'lib/ovirtsdk4/types.rb', line 21612 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.
21621 21622 21623 |
# File 'lib/ovirtsdk4/types.rb', line 21621 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
21630 21631 21632 |
# File 'lib/ovirtsdk4/types.rb', line 21630 def wipe_after_delete=(value) @wipe_after_delete = value end |