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
trueifselfandotherhave the same attributes and values. -
#available ⇒ Integer
Returns the value of the
availableattribute. -
#available=(value) ⇒ Object
Sets the value of the
availableattribute. -
#backup ⇒ Boolean
Returns the value of the
backupattribute. -
#backup=(value) ⇒ Object
Sets the value of the
backupattribute. -
#block_size ⇒ Integer
Returns the value of the
block_sizeattribute. -
#block_size=(value) ⇒ Object
Sets the value of the
block_sizeattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#committed ⇒ Integer
Returns the value of the
committedattribute. -
#committed=(value) ⇒ Object
Sets the value of the
committedattribute. -
#critical_space_action_blocker ⇒ Integer
Returns the value of the
critical_space_action_blockerattribute. -
#critical_space_action_blocker=(value) ⇒ Object
Sets the value of the
critical_space_action_blockerattribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_centerattribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_centerattribute. -
#data_centers ⇒ Array<DataCenter>
Returns the value of the
data_centersattribute. -
#data_centers=(list) ⇒ Object
Sets the value of the
data_centersattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#discard_after_delete ⇒ Boolean
Returns the value of the
discard_after_deleteattribute. -
#discard_after_delete=(value) ⇒ Object
Sets the value of the
discard_after_deleteattribute. -
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the
disk_profilesattribute. -
#disk_profiles=(list) ⇒ Object
Sets the value of the
disk_profilesattribute. -
#disk_snapshots ⇒ Array<DiskSnapshot>
Returns the value of the
disk_snapshotsattribute. -
#disk_snapshots=(list) ⇒ Object
Sets the value of the
disk_snapshotsattribute. -
#disks ⇒ Array<Disk>
Returns the value of the
disksattribute. -
#disks=(list) ⇒ Object
Sets the value of the
disksattribute. -
#external_status ⇒ ExternalStatus
Returns the value of the
external_statusattribute. -
#external_status=(value) ⇒ Object
Sets the value of the
external_statusattribute. -
#files ⇒ Array<File>
Returns the value of the
filesattribute. -
#files=(list) ⇒ Object
Sets the value of the
filesattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#images ⇒ Array<Image>
Returns the value of the
imagesattribute. -
#images=(list) ⇒ Object
Sets the value of the
imagesattribute. -
#import ⇒ Boolean
Returns the value of the
importattribute. -
#import=(value) ⇒ Object
Sets the value of the
importattribute. -
#initialize(opts = {}) ⇒ StorageDomain
constructor
Creates a new instance of the StorageDomain class.
-
#master ⇒ Boolean
Returns the value of the
masterattribute. -
#master=(value) ⇒ Object
Sets the value of the
masterattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#status ⇒ StorageDomainStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#storage ⇒ HostStorage
Returns the value of the
storageattribute. -
#storage=(value) ⇒ Object
Sets the value of the
storageattribute. -
#storage_connections ⇒ Array<StorageConnection>
Returns the value of the
storage_connectionsattribute. -
#storage_connections=(list) ⇒ Object
Sets the value of the
storage_connectionsattribute. -
#storage_format ⇒ StorageFormat
Returns the value of the
storage_formatattribute. -
#storage_format=(value) ⇒ Object
Sets the value of the
storage_formatattribute. -
#supports_discard ⇒ Boolean
Returns the value of the
supports_discardattribute. -
#supports_discard=(value) ⇒ Object
Sets the value of the
supports_discardattribute. -
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the
supports_discard_zeroes_dataattribute. -
#supports_discard_zeroes_data=(value) ⇒ Object
Sets the value of the
supports_discard_zeroes_dataattribute. -
#templates ⇒ Array<Template>
Returns the value of the
templatesattribute. -
#templates=(list) ⇒ Object
Sets the value of the
templatesattribute. -
#type ⇒ StorageDomainType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#used ⇒ Integer
Returns the value of the
usedattribute. -
#used=(value) ⇒ Object
Sets the value of the
usedattribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vmsattribute. -
#vms=(list) ⇒ Object
Sets the value of the
vmsattribute. -
#warning_low_space_indicator ⇒ Integer
Returns the value of the
warning_low_space_indicatorattribute. -
#warning_low_space_indicator=(value) ⇒ Object
Sets the value of the
warning_low_space_indicatorattribute. -
#wipe_after_delete ⇒ Boolean
Returns the value of the
wipe_after_deleteattribute. -
#wipe_after_delete=(value) ⇒ Object
Sets the value of the
wipe_after_deleteattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ StorageDomain
Creates a new instance of the OvirtSDK4::StorageDomain class.
22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 |
# File 'lib/ovirtsdk4/types.rb', line 22929 def initialize(opts = {}) super(opts) self.available = opts[:available] self.backup = opts[:backup] self.block_size = opts[:block_size] 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.
22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 |
# File 'lib/ovirtsdk4/types.rb', line 22966 def ==(other) super && @available == other.available && @backup == other.backup && @block_size == other.block_size && @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.
22145 22146 22147 |
# File 'lib/ovirtsdk4/types.rb', line 22145 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available attribute.
22154 22155 22156 |
# File 'lib/ovirtsdk4/types.rb', line 22154 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup attribute.
22163 22164 22165 |
# File 'lib/ovirtsdk4/types.rb', line 22163 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup attribute.
22172 22173 22174 |
# File 'lib/ovirtsdk4/types.rb', line 22172 def backup=(value) @backup = value end |
#block_size ⇒ Integer
Returns the value of the block_size attribute.
22181 22182 22183 |
# File 'lib/ovirtsdk4/types.rb', line 22181 def block_size @block_size end |
#block_size=(value) ⇒ Object
Sets the value of the block_size attribute.
22190 22191 22192 |
# File 'lib/ovirtsdk4/types.rb', line 22190 def block_size=(value) @block_size = value end |
#comment ⇒ String
Returns the value of the comment attribute.
22199 22200 22201 |
# File 'lib/ovirtsdk4/types.rb', line 22199 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
22208 22209 22210 |
# File 'lib/ovirtsdk4/types.rb', line 22208 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed attribute.
22217 22218 22219 |
# File 'lib/ovirtsdk4/types.rb', line 22217 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed attribute.
22226 22227 22228 |
# File 'lib/ovirtsdk4/types.rb', line 22226 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker attribute.
22235 22236 22237 |
# File 'lib/ovirtsdk4/types.rb', line 22235 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.
22244 22245 22246 |
# File 'lib/ovirtsdk4/types.rb', line 22244 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center attribute.
22253 22254 22255 |
# File 'lib/ovirtsdk4/types.rb', line 22253 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.
22266 22267 22268 22269 22270 22271 |
# File 'lib/ovirtsdk4/types.rb', line 22266 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.
22278 22279 22280 |
# File 'lib/ovirtsdk4/types.rb', line 22278 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers attribute.
22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 |
# File 'lib/ovirtsdk4/types.rb', line 22287 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.
22304 22305 22306 |
# File 'lib/ovirtsdk4/types.rb', line 22304 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
22313 22314 22315 |
# File 'lib/ovirtsdk4/types.rb', line 22313 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete attribute.
22322 22323 22324 |
# File 'lib/ovirtsdk4/types.rb', line 22322 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete attribute.
22331 22332 22333 |
# File 'lib/ovirtsdk4/types.rb', line 22331 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles attribute.
22340 22341 22342 |
# File 'lib/ovirtsdk4/types.rb', line 22340 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles attribute.
22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 |
# File 'lib/ovirtsdk4/types.rb', line 22349 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.
22366 22367 22368 |
# File 'lib/ovirtsdk4/types.rb', line 22366 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots attribute.
22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 |
# File 'lib/ovirtsdk4/types.rb', line 22375 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.
22392 22393 22394 |
# File 'lib/ovirtsdk4/types.rb', line 22392 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks attribute.
22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 |
# File 'lib/ovirtsdk4/types.rb', line 22401 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.
22418 22419 22420 |
# File 'lib/ovirtsdk4/types.rb', line 22418 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status attribute.
22427 22428 22429 |
# File 'lib/ovirtsdk4/types.rb', line 22427 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files attribute.
22436 22437 22438 |
# File 'lib/ovirtsdk4/types.rb', line 22436 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files attribute.
22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 |
# File 'lib/ovirtsdk4/types.rb', line 22445 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.
23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 |
# File 'lib/ovirtsdk4/types.rb', line 23003 def hash super + @available.hash + @backup.hash + @block_size.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.
22462 22463 22464 |
# File 'lib/ovirtsdk4/types.rb', line 22462 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.
22475 22476 22477 22478 22479 22480 |
# File 'lib/ovirtsdk4/types.rb', line 22475 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.
22487 22488 22489 |
# File 'lib/ovirtsdk4/types.rb', line 22487 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
22496 22497 22498 |
# File 'lib/ovirtsdk4/types.rb', line 22496 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images attribute.
22505 22506 22507 |
# File 'lib/ovirtsdk4/types.rb', line 22505 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images attribute.
22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 |
# File 'lib/ovirtsdk4/types.rb', line 22514 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.
22531 22532 22533 |
# File 'lib/ovirtsdk4/types.rb', line 22531 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import attribute.
22540 22541 22542 |
# File 'lib/ovirtsdk4/types.rb', line 22540 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master attribute.
22549 22550 22551 |
# File 'lib/ovirtsdk4/types.rb', line 22549 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master attribute.
22558 22559 22560 |
# File 'lib/ovirtsdk4/types.rb', line 22558 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name attribute.
22567 22568 22569 |
# File 'lib/ovirtsdk4/types.rb', line 22567 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
22576 22577 22578 |
# File 'lib/ovirtsdk4/types.rb', line 22576 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
22585 22586 22587 |
# File 'lib/ovirtsdk4/types.rb', line 22585 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 |
# File 'lib/ovirtsdk4/types.rb', line 22594 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.
22611 22612 22613 |
# File 'lib/ovirtsdk4/types.rb', line 22611 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
22620 22621 22622 |
# File 'lib/ovirtsdk4/types.rb', line 22620 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage attribute.
22629 22630 22631 |
# File 'lib/ovirtsdk4/types.rb', line 22629 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.
22642 22643 22644 22645 22646 22647 |
# File 'lib/ovirtsdk4/types.rb', line 22642 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.
22654 22655 22656 |
# File 'lib/ovirtsdk4/types.rb', line 22654 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections attribute.
22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 |
# File 'lib/ovirtsdk4/types.rb', line 22663 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.
22680 22681 22682 |
# File 'lib/ovirtsdk4/types.rb', line 22680 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format attribute.
22689 22690 22691 |
# File 'lib/ovirtsdk4/types.rb', line 22689 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard attribute.
22698 22699 22700 |
# File 'lib/ovirtsdk4/types.rb', line 22698 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard attribute.
22707 22708 22709 |
# File 'lib/ovirtsdk4/types.rb', line 22707 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data attribute.
22716 22717 22718 |
# File 'lib/ovirtsdk4/types.rb', line 22716 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.
22725 22726 22727 |
# File 'lib/ovirtsdk4/types.rb', line 22725 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates attribute.
22734 22735 22736 |
# File 'lib/ovirtsdk4/types.rb', line 22734 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates attribute.
22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 |
# File 'lib/ovirtsdk4/types.rb', line 22743 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.
22760 22761 22762 |
# File 'lib/ovirtsdk4/types.rb', line 22760 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
22769 22770 22771 |
# File 'lib/ovirtsdk4/types.rb', line 22769 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used attribute.
22778 22779 22780 |
# File 'lib/ovirtsdk4/types.rb', line 22778 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used attribute.
22787 22788 22789 |
# File 'lib/ovirtsdk4/types.rb', line 22787 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms attribute.
22796 22797 22798 |
# File 'lib/ovirtsdk4/types.rb', line 22796 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 |
# File 'lib/ovirtsdk4/types.rb', line 22805 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.
22822 22823 22824 |
# File 'lib/ovirtsdk4/types.rb', line 22822 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.
22831 22832 22833 |
# File 'lib/ovirtsdk4/types.rb', line 22831 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.
22840 22841 22842 |
# File 'lib/ovirtsdk4/types.rb', line 22840 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete attribute.
22849 22850 22851 |
# File 'lib/ovirtsdk4/types.rb', line 22849 def wipe_after_delete=(value) @wipe_after_delete = value end |