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. -
#block_size ⇒ Integer
Returns the value of the
block_size
attribute. -
#block_size=(value) ⇒ Object
Sets the value of the
block_size
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.
22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 |
# File 'lib/ovirtsdk4/types.rb', line 22659 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.
22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 |
# File 'lib/ovirtsdk4/types.rb', line 22696 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.
21875 21876 21877 |
# File 'lib/ovirtsdk4/types.rb', line 21875 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
21884 21885 21886 |
# File 'lib/ovirtsdk4/types.rb', line 21884 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
21893 21894 21895 |
# File 'lib/ovirtsdk4/types.rb', line 21893 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
21902 21903 21904 |
# File 'lib/ovirtsdk4/types.rb', line 21902 def backup=(value) @backup = value end |
#block_size ⇒ Integer
Returns the value of the block_size
attribute.
21911 21912 21913 |
# File 'lib/ovirtsdk4/types.rb', line 21911 def block_size @block_size end |
#block_size=(value) ⇒ Object
Sets the value of the block_size
attribute.
21920 21921 21922 |
# File 'lib/ovirtsdk4/types.rb', line 21920 def block_size=(value) @block_size = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21929 21930 21931 |
# File 'lib/ovirtsdk4/types.rb', line 21929 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21938 21939 21940 |
# File 'lib/ovirtsdk4/types.rb', line 21938 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
21947 21948 21949 |
# File 'lib/ovirtsdk4/types.rb', line 21947 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21956 21957 21958 |
# File 'lib/ovirtsdk4/types.rb', line 21956 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21965 21966 21967 |
# File 'lib/ovirtsdk4/types.rb', line 21965 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.
21974 21975 21976 |
# File 'lib/ovirtsdk4/types.rb', line 21974 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21983 21984 21985 |
# File 'lib/ovirtsdk4/types.rb', line 21983 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.
21996 21997 21998 21999 22000 22001 |
# File 'lib/ovirtsdk4/types.rb', line 21996 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.
22008 22009 22010 |
# File 'lib/ovirtsdk4/types.rb', line 22008 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 |
# File 'lib/ovirtsdk4/types.rb', line 22017 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.
22034 22035 22036 |
# File 'lib/ovirtsdk4/types.rb', line 22034 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
22043 22044 22045 |
# File 'lib/ovirtsdk4/types.rb', line 22043 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
22052 22053 22054 |
# File 'lib/ovirtsdk4/types.rb', line 22052 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
22061 22062 22063 |
# File 'lib/ovirtsdk4/types.rb', line 22061 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
22070 22071 22072 |
# File 'lib/ovirtsdk4/types.rb', line 22070 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 |
# File 'lib/ovirtsdk4/types.rb', line 22079 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.
22096 22097 22098 |
# File 'lib/ovirtsdk4/types.rb', line 22096 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 |
# File 'lib/ovirtsdk4/types.rb', line 22105 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.
22122 22123 22124 |
# File 'lib/ovirtsdk4/types.rb', line 22122 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 |
# File 'lib/ovirtsdk4/types.rb', line 22131 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.
22148 22149 22150 |
# File 'lib/ovirtsdk4/types.rb', line 22148 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
22157 22158 22159 |
# File 'lib/ovirtsdk4/types.rb', line 22157 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
22166 22167 22168 |
# File 'lib/ovirtsdk4/types.rb', line 22166 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 |
# File 'lib/ovirtsdk4/types.rb', line 22175 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.
22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 |
# File 'lib/ovirtsdk4/types.rb', line 22733 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.
22192 22193 22194 |
# File 'lib/ovirtsdk4/types.rb', line 22192 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.
22205 22206 22207 22208 22209 22210 |
# File 'lib/ovirtsdk4/types.rb', line 22205 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.
22217 22218 22219 |
# File 'lib/ovirtsdk4/types.rb', line 22217 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
22226 22227 22228 |
# File 'lib/ovirtsdk4/types.rb', line 22226 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
22235 22236 22237 |
# File 'lib/ovirtsdk4/types.rb', line 22235 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 |
# File 'lib/ovirtsdk4/types.rb', line 22244 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.
22261 22262 22263 |
# File 'lib/ovirtsdk4/types.rb', line 22261 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
22270 22271 22272 |
# File 'lib/ovirtsdk4/types.rb', line 22270 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
22279 22280 22281 |
# File 'lib/ovirtsdk4/types.rb', line 22279 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
22288 22289 22290 |
# File 'lib/ovirtsdk4/types.rb', line 22288 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
22297 22298 22299 |
# File 'lib/ovirtsdk4/types.rb', line 22297 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22306 22307 22308 |
# File 'lib/ovirtsdk4/types.rb', line 22306 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
22315 22316 22317 |
# File 'lib/ovirtsdk4/types.rb', line 22315 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 |
# File 'lib/ovirtsdk4/types.rb', line 22324 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.
22341 22342 22343 |
# File 'lib/ovirtsdk4/types.rb', line 22341 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
22350 22351 22352 |
# File 'lib/ovirtsdk4/types.rb', line 22350 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
22359 22360 22361 |
# File 'lib/ovirtsdk4/types.rb', line 22359 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.
22372 22373 22374 22375 22376 22377 |
# File 'lib/ovirtsdk4/types.rb', line 22372 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.
22384 22385 22386 |
# File 'lib/ovirtsdk4/types.rb', line 22384 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 |
# File 'lib/ovirtsdk4/types.rb', line 22393 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.
22410 22411 22412 |
# File 'lib/ovirtsdk4/types.rb', line 22410 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
22419 22420 22421 |
# File 'lib/ovirtsdk4/types.rb', line 22419 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
22428 22429 22430 |
# File 'lib/ovirtsdk4/types.rb', line 22428 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
22437 22438 22439 |
# File 'lib/ovirtsdk4/types.rb', line 22437 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
22446 22447 22448 |
# File 'lib/ovirtsdk4/types.rb', line 22446 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.
22455 22456 22457 |
# File 'lib/ovirtsdk4/types.rb', line 22455 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
22464 22465 22466 |
# File 'lib/ovirtsdk4/types.rb', line 22464 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 |
# File 'lib/ovirtsdk4/types.rb', line 22473 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.
22490 22491 22492 |
# File 'lib/ovirtsdk4/types.rb', line 22490 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
22499 22500 22501 |
# File 'lib/ovirtsdk4/types.rb', line 22499 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
22508 22509 22510 |
# File 'lib/ovirtsdk4/types.rb', line 22508 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
22517 22518 22519 |
# File 'lib/ovirtsdk4/types.rb', line 22517 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
22526 22527 22528 |
# File 'lib/ovirtsdk4/types.rb', line 22526 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 |
# File 'lib/ovirtsdk4/types.rb', line 22535 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.
22552 22553 22554 |
# File 'lib/ovirtsdk4/types.rb', line 22552 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.
22561 22562 22563 |
# File 'lib/ovirtsdk4/types.rb', line 22561 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.
22570 22571 22572 |
# File 'lib/ovirtsdk4/types.rb', line 22570 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
22579 22580 22581 |
# File 'lib/ovirtsdk4/types.rb', line 22579 def wipe_after_delete=(value) @wipe_after_delete = value end |