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.
22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 |
# File 'lib/ovirtsdk4/types.rb', line 22186 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.
22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 |
# File 'lib/ovirtsdk4/types.rb', line 22223 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.
21402 21403 21404 |
# File 'lib/ovirtsdk4/types.rb', line 21402 def available @available end |
#available=(value) ⇒ Object
Sets the value of the available
attribute.
21411 21412 21413 |
# File 'lib/ovirtsdk4/types.rb', line 21411 def available=(value) @available = value end |
#backup ⇒ Boolean
Returns the value of the backup
attribute.
21420 21421 21422 |
# File 'lib/ovirtsdk4/types.rb', line 21420 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup
attribute.
21429 21430 21431 |
# File 'lib/ovirtsdk4/types.rb', line 21429 def backup=(value) @backup = value end |
#block_size ⇒ Integer
Returns the value of the block_size
attribute.
21438 21439 21440 |
# File 'lib/ovirtsdk4/types.rb', line 21438 def block_size @block_size end |
#block_size=(value) ⇒ Object
Sets the value of the block_size
attribute.
21447 21448 21449 |
# File 'lib/ovirtsdk4/types.rb', line 21447 def block_size=(value) @block_size = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21456 21457 21458 |
# File 'lib/ovirtsdk4/types.rb', line 21456 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21465 21466 21467 |
# File 'lib/ovirtsdk4/types.rb', line 21465 def comment=(value) @comment = value end |
#committed ⇒ Integer
Returns the value of the committed
attribute.
21474 21475 21476 |
# File 'lib/ovirtsdk4/types.rb', line 21474 def committed @committed end |
#committed=(value) ⇒ Object
Sets the value of the committed
attribute.
21483 21484 21485 |
# File 'lib/ovirtsdk4/types.rb', line 21483 def committed=(value) @committed = value end |
#critical_space_action_blocker ⇒ Integer
Returns the value of the critical_space_action_blocker
attribute.
21492 21493 21494 |
# File 'lib/ovirtsdk4/types.rb', line 21492 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.
21501 21502 21503 |
# File 'lib/ovirtsdk4/types.rb', line 21501 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
21510 21511 21512 |
# File 'lib/ovirtsdk4/types.rb', line 21510 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.
21523 21524 21525 21526 21527 21528 |
# File 'lib/ovirtsdk4/types.rb', line 21523 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.
21535 21536 21537 |
# File 'lib/ovirtsdk4/types.rb', line 21535 def data_centers @data_centers end |
#data_centers=(list) ⇒ Object
Sets the value of the data_centers
attribute.
21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 |
# File 'lib/ovirtsdk4/types.rb', line 21544 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.
21561 21562 21563 |
# File 'lib/ovirtsdk4/types.rb', line 21561 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21570 21571 21572 |
# File 'lib/ovirtsdk4/types.rb', line 21570 def description=(value) @description = value end |
#discard_after_delete ⇒ Boolean
Returns the value of the discard_after_delete
attribute.
21579 21580 21581 |
# File 'lib/ovirtsdk4/types.rb', line 21579 def discard_after_delete @discard_after_delete end |
#discard_after_delete=(value) ⇒ Object
Sets the value of the discard_after_delete
attribute.
21588 21589 21590 |
# File 'lib/ovirtsdk4/types.rb', line 21588 def discard_after_delete=(value) @discard_after_delete = value end |
#disk_profiles ⇒ Array<DiskProfile>
Returns the value of the disk_profiles
attribute.
21597 21598 21599 |
# File 'lib/ovirtsdk4/types.rb', line 21597 def disk_profiles @disk_profiles end |
#disk_profiles=(list) ⇒ Object
Sets the value of the disk_profiles
attribute.
21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 |
# File 'lib/ovirtsdk4/types.rb', line 21606 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.
21623 21624 21625 |
# File 'lib/ovirtsdk4/types.rb', line 21623 def disk_snapshots @disk_snapshots end |
#disk_snapshots=(list) ⇒ Object
Sets the value of the disk_snapshots
attribute.
21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 |
# File 'lib/ovirtsdk4/types.rb', line 21632 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.
21649 21650 21651 |
# File 'lib/ovirtsdk4/types.rb', line 21649 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 |
# File 'lib/ovirtsdk4/types.rb', line 21658 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.
21675 21676 21677 |
# File 'lib/ovirtsdk4/types.rb', line 21675 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
21684 21685 21686 |
# File 'lib/ovirtsdk4/types.rb', line 21684 def external_status=(value) @external_status = value end |
#files ⇒ Array<File>
Returns the value of the files
attribute.
21693 21694 21695 |
# File 'lib/ovirtsdk4/types.rb', line 21693 def files @files end |
#files=(list) ⇒ Object
Sets the value of the files
attribute.
21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 |
# File 'lib/ovirtsdk4/types.rb', line 21702 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.
22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 |
# File 'lib/ovirtsdk4/types.rb', line 22260 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.
21719 21720 21721 |
# File 'lib/ovirtsdk4/types.rb', line 21719 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.
21732 21733 21734 21735 21736 21737 |
# File 'lib/ovirtsdk4/types.rb', line 21732 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.
21744 21745 21746 |
# File 'lib/ovirtsdk4/types.rb', line 21744 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21753 21754 21755 |
# File 'lib/ovirtsdk4/types.rb', line 21753 def id=(value) @id = value end |
#images ⇒ Array<Image>
Returns the value of the images
attribute.
21762 21763 21764 |
# File 'lib/ovirtsdk4/types.rb', line 21762 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 |
# File 'lib/ovirtsdk4/types.rb', line 21771 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.
21788 21789 21790 |
# File 'lib/ovirtsdk4/types.rb', line 21788 def import @import end |
#import=(value) ⇒ Object
Sets the value of the import
attribute.
21797 21798 21799 |
# File 'lib/ovirtsdk4/types.rb', line 21797 def import=(value) @import = value end |
#master ⇒ Boolean
Returns the value of the master
attribute.
21806 21807 21808 |
# File 'lib/ovirtsdk4/types.rb', line 21806 def master @master end |
#master=(value) ⇒ Object
Sets the value of the master
attribute.
21815 21816 21817 |
# File 'lib/ovirtsdk4/types.rb', line 21815 def master=(value) @master = value end |
#name ⇒ String
Returns the value of the name
attribute.
21824 21825 21826 |
# File 'lib/ovirtsdk4/types.rb', line 21824 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21833 21834 21835 |
# File 'lib/ovirtsdk4/types.rb', line 21833 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
21842 21843 21844 |
# File 'lib/ovirtsdk4/types.rb', line 21842 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 |
# File 'lib/ovirtsdk4/types.rb', line 21851 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.
21868 21869 21870 |
# File 'lib/ovirtsdk4/types.rb', line 21868 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
21877 21878 21879 |
# File 'lib/ovirtsdk4/types.rb', line 21877 def status=(value) @status = value end |
#storage ⇒ HostStorage
Returns the value of the storage
attribute.
21886 21887 21888 |
# File 'lib/ovirtsdk4/types.rb', line 21886 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.
21899 21900 21901 21902 21903 21904 |
# File 'lib/ovirtsdk4/types.rb', line 21899 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.
21911 21912 21913 |
# File 'lib/ovirtsdk4/types.rb', line 21911 def storage_connections @storage_connections end |
#storage_connections=(list) ⇒ Object
Sets the value of the storage_connections
attribute.
21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 |
# File 'lib/ovirtsdk4/types.rb', line 21920 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.
21937 21938 21939 |
# File 'lib/ovirtsdk4/types.rb', line 21937 def storage_format @storage_format end |
#storage_format=(value) ⇒ Object
Sets the value of the storage_format
attribute.
21946 21947 21948 |
# File 'lib/ovirtsdk4/types.rb', line 21946 def storage_format=(value) @storage_format = value end |
#supports_discard ⇒ Boolean
Returns the value of the supports_discard
attribute.
21955 21956 21957 |
# File 'lib/ovirtsdk4/types.rb', line 21955 def supports_discard @supports_discard end |
#supports_discard=(value) ⇒ Object
Sets the value of the supports_discard
attribute.
21964 21965 21966 |
# File 'lib/ovirtsdk4/types.rb', line 21964 def supports_discard=(value) @supports_discard = value end |
#supports_discard_zeroes_data ⇒ Boolean
Returns the value of the supports_discard_zeroes_data
attribute.
21973 21974 21975 |
# File 'lib/ovirtsdk4/types.rb', line 21973 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.
21982 21983 21984 |
# File 'lib/ovirtsdk4/types.rb', line 21982 def supports_discard_zeroes_data=(value) @supports_discard_zeroes_data = value end |
#templates ⇒ Array<Template>
Returns the value of the templates
attribute.
21991 21992 21993 |
# File 'lib/ovirtsdk4/types.rb', line 21991 def templates @templates end |
#templates=(list) ⇒ Object
Sets the value of the templates
attribute.
22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 |
# File 'lib/ovirtsdk4/types.rb', line 22000 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.
22017 22018 22019 |
# File 'lib/ovirtsdk4/types.rb', line 22017 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
22026 22027 22028 |
# File 'lib/ovirtsdk4/types.rb', line 22026 def type=(value) @type = value end |
#used ⇒ Integer
Returns the value of the used
attribute.
22035 22036 22037 |
# File 'lib/ovirtsdk4/types.rb', line 22035 def used @used end |
#used=(value) ⇒ Object
Sets the value of the used
attribute.
22044 22045 22046 |
# File 'lib/ovirtsdk4/types.rb', line 22044 def used=(value) @used = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
22053 22054 22055 |
# File 'lib/ovirtsdk4/types.rb', line 22053 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 |
# File 'lib/ovirtsdk4/types.rb', line 22062 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.
22079 22080 22081 |
# File 'lib/ovirtsdk4/types.rb', line 22079 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.
22088 22089 22090 |
# File 'lib/ovirtsdk4/types.rb', line 22088 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.
22097 22098 22099 |
# File 'lib/ovirtsdk4/types.rb', line 22097 def wipe_after_delete @wipe_after_delete end |
#wipe_after_delete=(value) ⇒ Object
Sets the value of the wipe_after_delete
attribute.
22106 22107 22108 |
# File 'lib/ovirtsdk4/types.rb', line 22106 def wipe_after_delete=(value) @wipe_after_delete = value end |