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.
21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 |
# File 'lib/ovirtsdk4/types.rb', line 21906 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.
21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 |
# File 'lib/ovirtsdk4/types.rb', line 21943 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.
21122 21123 21124 |
# File 'lib/ovirtsdk4/types.rb', line 21122 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
21131 21132 21133 |
# File 'lib/ovirtsdk4/types.rb', line 21131 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
21140 21141 21142 |
# File 'lib/ovirtsdk4/types.rb', line 21140 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
21149 21150 21151 |
# File 'lib/ovirtsdk4/types.rb', line 21149 def backup=(value) @backup = value end |
#block_size ⇒ Integer
Returns the value of the block_size
attribute.
21158 21159 21160 |
# File 'lib/ovirtsdk4/types.rb', line 21158 def block_size @block_size end |
#block_size=(value) ⇒ Object
Sets the value of the block_size
attribute.
21167 21168 21169 |
# File 'lib/ovirtsdk4/types.rb', line 21167 def block_size=(value) @block_size = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21176 21177 21178 |
# File 'lib/ovirtsdk4/types.rb', line 21176 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21185 21186 21187 |
# File 'lib/ovirtsdk4/types.rb', line 21185 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
21194 21195 21196 |
# File 'lib/ovirtsdk4/types.rb', line 21194 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21203 21204 21205 |
# File 'lib/ovirtsdk4/types.rb', line 21203 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21212 21213 21214 |
# File 'lib/ovirtsdk4/types.rb', line 21212 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.
21221 21222 21223 |
# File 'lib/ovirtsdk4/types.rb', line 21221 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21230 21231 21232 |
# File 'lib/ovirtsdk4/types.rb', line 21230 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.
21243 21244 21245 21246 21247 21248 |
# File 'lib/ovirtsdk4/types.rb', line 21243 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.
21255 21256 21257 |
# File 'lib/ovirtsdk4/types.rb', line 21255 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 |
# File 'lib/ovirtsdk4/types.rb', line 21264 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.
21281 21282 21283 |
# File 'lib/ovirtsdk4/types.rb', line 21281 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21290 21291 21292 |
# File 'lib/ovirtsdk4/types.rb', line 21290 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
21299 21300 21301 |
# File 'lib/ovirtsdk4/types.rb', line 21299 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
21308 21309 21310 |
# File 'lib/ovirtsdk4/types.rb', line 21308 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
21317 21318 21319 |
# File 'lib/ovirtsdk4/types.rb', line 21317 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 |
# File 'lib/ovirtsdk4/types.rb', line 21326 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.
21343 21344 21345 |
# File 'lib/ovirtsdk4/types.rb', line 21343 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 |
# File 'lib/ovirtsdk4/types.rb', line 21352 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.
21369 21370 21371 |
# File 'lib/ovirtsdk4/types.rb', line 21369 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 |
# File 'lib/ovirtsdk4/types.rb', line 21378 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.
21395 21396 21397 |
# File 'lib/ovirtsdk4/types.rb', line 21395 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21404 21405 21406 |
# File 'lib/ovirtsdk4/types.rb', line 21404 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21413 21414 21415 |
# File 'lib/ovirtsdk4/types.rb', line 21413 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 |
# File 'lib/ovirtsdk4/types.rb', line 21422 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.
21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 |
# File 'lib/ovirtsdk4/types.rb', line 21980 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.
21439 21440 21441 |
# File 'lib/ovirtsdk4/types.rb', line 21439 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.
21452 21453 21454 21455 21456 21457 |
# File 'lib/ovirtsdk4/types.rb', line 21452 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.
21464 21465 21466 |
# File 'lib/ovirtsdk4/types.rb', line 21464 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21473 21474 21475 |
# File 'lib/ovirtsdk4/types.rb', line 21473 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21482 21483 21484 |
# File 'lib/ovirtsdk4/types.rb', line 21482 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 |
# File 'lib/ovirtsdk4/types.rb', line 21491 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.
21508 21509 21510 |
# File 'lib/ovirtsdk4/types.rb', line 21508 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21517 21518 21519 |
# File 'lib/ovirtsdk4/types.rb', line 21517 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21526 21527 21528 |
# File 'lib/ovirtsdk4/types.rb', line 21526 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21535 21536 21537 |
# File 'lib/ovirtsdk4/types.rb', line 21535 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21544 21545 21546 |
# File 'lib/ovirtsdk4/types.rb', line 21544 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21553 21554 21555 |
# File 'lib/ovirtsdk4/types.rb', line 21553 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21562 21563 21564 |
# File 'lib/ovirtsdk4/types.rb', line 21562 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 |
# File 'lib/ovirtsdk4/types.rb', line 21571 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.
21588 21589 21590 |
# File 'lib/ovirtsdk4/types.rb', line 21588 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21597 21598 21599 |
# File 'lib/ovirtsdk4/types.rb', line 21597 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21606 21607 21608 |
# File 'lib/ovirtsdk4/types.rb', line 21606 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.
21619 21620 21621 21622 21623 21624 |
# File 'lib/ovirtsdk4/types.rb', line 21619 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.
21631 21632 21633 |
# File 'lib/ovirtsdk4/types.rb', line 21631 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 |
# File 'lib/ovirtsdk4/types.rb', line 21640 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.
21657 21658 21659 |
# File 'lib/ovirtsdk4/types.rb', line 21657 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21666 21667 21668 |
# File 'lib/ovirtsdk4/types.rb', line 21666 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21675 21676 21677 |
# File 'lib/ovirtsdk4/types.rb', line 21675 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21684 21685 21686 |
# File 'lib/ovirtsdk4/types.rb', line 21684 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21693 21694 21695 |
# File 'lib/ovirtsdk4/types.rb', line 21693 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.
21702 21703 21704 |
# File 'lib/ovirtsdk4/types.rb', line 21702 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21711 21712 21713 |
# File 'lib/ovirtsdk4/types.rb', line 21711 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 |
# File 'lib/ovirtsdk4/types.rb', line 21720 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.
21737 21738 21739 |
# File 'lib/ovirtsdk4/types.rb', line 21737 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21746 21747 21748 |
# File 'lib/ovirtsdk4/types.rb', line 21746 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
21755 21756 21757 |
# File 'lib/ovirtsdk4/types.rb', line 21755 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
21764 21765 21766 |
# File 'lib/ovirtsdk4/types.rb', line 21764 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
21773 21774 21775 |
# File 'lib/ovirtsdk4/types.rb', line 21773 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 |
# File 'lib/ovirtsdk4/types.rb', line 21782 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.
21799 21800 21801 |
# File 'lib/ovirtsdk4/types.rb', line 21799 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.
21808 21809 21810 |
# File 'lib/ovirtsdk4/types.rb', line 21808 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.
21817 21818 21819 |
# File 'lib/ovirtsdk4/types.rb', line 21817 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
21826 21827 21828 |
# File 'lib/ovirtsdk4/types.rb', line 21826 def wipe_after_delete=(value) @wipe_after_delete = value end |