Class: OvirtSDK4::StorageDomain
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::StorageDomain
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Integer) available
Returns the value of the
available
attribute. -
- (Object) available=(value)
Sets the value of the
available
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Integer) committed
Returns the value of the
committed
attribute. -
- (Object) committed=(value)
Sets the value of the
committed
attribute. -
- (Integer) critical_space_action_blocker
Returns the value of the
critical_space_action_blocker
attribute. -
- (Object) critical_space_action_blocker=(value)
Sets the value of the
critical_space_action_blocker
attribute. -
- (DataCenter) data_center
Returns the value of the
data_center
attribute. -
- (Object) data_center=(value)
Sets the value of the
data_center
attribute. -
- (Array<DataCenter>) data_centers
Returns the value of the
data_centers
attribute. -
- (Object) data_centers=(list)
Sets the value of the
data_centers
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Array<DiskProfile>) disk_profiles
Returns the value of the
disk_profiles
attribute. -
- (Object) disk_profiles=(list)
Sets the value of the
disk_profiles
attribute. -
- (Array<DiskSnapshot>) disk_snapshots
Returns the value of the
disk_snapshots
attribute. -
- (Object) disk_snapshots=(list)
Sets the value of the
disk_snapshots
attribute. -
- (Array<Disk>) disks
Returns the value of the
disks
attribute. -
- (Object) disks=(list)
Sets the value of the
disks
attribute. -
- (ExternalStatus) external_status
Returns the value of the
external_status
attribute. -
- (Object) external_status=(value)
Sets the value of the
external_status
attribute. -
- (Array<File>) files
Returns the value of the
files
attribute. -
- (Object) files=(list)
Sets the value of the
files
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Array<Image>) images
Returns the value of the
images
attribute. -
- (Object) images=(list)
Sets the value of the
images
attribute. -
- (Boolean) import
Returns the value of the
import
attribute. -
- (Object) import=(value)
Sets the value of the
import
attribute. -
- (StorageDomain) initialize(opts = {})
constructor
Creates a new instance of the StorageDomain class.
-
- (Boolean) master
Returns the value of the
master
attribute. -
- (Object) master=(value)
Sets the value of the
master
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Permission>) permissions
Returns the value of the
permissions
attribute. -
- (Object) permissions=(list)
Sets the value of the
permissions
attribute. -
- (StorageDomainStatus) status
Returns the value of the
status
attribute. -
- (Object) status=(value)
Sets the value of the
status
attribute. -
- (HostStorage) storage
Returns the value of the
storage
attribute. -
- (Object) storage=(value)
Sets the value of the
storage
attribute. -
- (Array<StorageConnection>) storage_connections
Returns the value of the
storage_connections
attribute. -
- (Object) storage_connections=(list)
Sets the value of the
storage_connections
attribute. -
- (StorageFormat) storage_format
Returns the value of the
storage_format
attribute. -
- (Object) storage_format=(value)
Sets the value of the
storage_format
attribute. -
- (Array<Template>) templates
Returns the value of the
templates
attribute. -
- (Object) templates=(list)
Sets the value of the
templates
attribute. -
- (StorageDomainType) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute. -
- (Integer) used
Returns the value of the
used
attribute. -
- (Object) used=(value)
Sets the value of the
used
attribute. -
- (Array<Vm>) vms
Returns the value of the
vms
attribute. -
- (Object) vms=(list)
Sets the value of the
vms
attribute. -
- (Integer) warning_low_space_indicator
Returns the value of the
warning_low_space_indicator
attribute. -
- (Object) warning_low_space_indicator=(value)
Sets the value of the
warning_low_space_indicator
attribute. -
- (Boolean) wipe_after_delete
Returns the value of the
wipe_after_delete
attribute. -
- (Object) wipe_after_delete=(value)
Sets the value of the
wipe_after_delete
attribute.
Methods included from Type
Constructor Details
- (StorageDomain) initialize(opts = {})
Creates a new instance of the OvirtSDK4::StorageDomain class.
16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 |
# File 'lib/ovirtsdk4/types.rb', line 16561 def initialize(opts = {}) super(opts) self.available = opts[:available] self.comment = opts[:comment] 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.description = opts[:description] 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.id = opts[:id] self.images = opts[:images] self.import = opts[:import] self.master = opts[:master] self.name = opts[:name] self. = opts[:permissions] self.status = opts[:status] self.storage = opts[:storage] self.storage_connections = opts[:storage_connections] self.storage_format = opts[:storage_format] 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
- (Integer) available
Returns the value of the available
attribute.
15887 15888 15889 |
# File 'lib/ovirtsdk4/types.rb', line 15887 def available return @available end |
- (Object) available=(value)
Sets the value of the available
attribute.
15896 15897 15898 |
# File 'lib/ovirtsdk4/types.rb', line 15896 def available=(value) @available = value end |
- (String) comment
Returns the value of the comment
attribute.
15905 15906 15907 |
# File 'lib/ovirtsdk4/types.rb', line 15905 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
15914 15915 15916 |
# File 'lib/ovirtsdk4/types.rb', line 15914 def comment=(value) @comment = value end |
- (Integer) committed
Returns the value of the committed
attribute.
15923 15924 15925 |
# File 'lib/ovirtsdk4/types.rb', line 15923 def committed return @committed end |
- (Object) committed=(value)
Sets the value of the committed
attribute.
15932 15933 15934 |
# File 'lib/ovirtsdk4/types.rb', line 15932 def committed=(value) @committed = value end |
- (Integer) critical_space_action_blocker
Returns the value of the critical_space_action_blocker
attribute.
15941 15942 15943 |
# File 'lib/ovirtsdk4/types.rb', line 15941 def critical_space_action_blocker return @critical_space_action_blocker end |
- (Object) critical_space_action_blocker=(value)
Sets the value of the critical_space_action_blocker
attribute.
15950 15951 15952 |
# File 'lib/ovirtsdk4/types.rb', line 15950 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end |
- (DataCenter) data_center
Returns the value of the data_center
attribute.
15959 15960 15961 |
# File 'lib/ovirtsdk4/types.rb', line 15959 def data_center return @data_center end |
- (Object) data_center=(value)
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.
15972 15973 15974 15975 15976 15977 |
# File 'lib/ovirtsdk4/types.rb', line 15972 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
- (Array<DataCenter>) data_centers
Returns the value of the data_centers
attribute.
15984 15985 15986 |
# File 'lib/ovirtsdk4/types.rb', line 15984 def data_centers return @data_centers end |
- (Object) data_centers=(list)
Sets the value of the data_centers
attribute.
15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 |
# File 'lib/ovirtsdk4/types.rb', line 15992 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 |
- (String) description
Returns the value of the description
attribute.
16009 16010 16011 |
# File 'lib/ovirtsdk4/types.rb', line 16009 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
16018 16019 16020 |
# File 'lib/ovirtsdk4/types.rb', line 16018 def description=(value) @description = value end |
- (Array<DiskProfile>) disk_profiles
Returns the value of the disk_profiles
attribute.
16027 16028 16029 |
# File 'lib/ovirtsdk4/types.rb', line 16027 def disk_profiles return @disk_profiles end |
- (Object) disk_profiles=(list)
Sets the value of the disk_profiles
attribute.
16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 |
# File 'lib/ovirtsdk4/types.rb', line 16035 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 |
- (Array<DiskSnapshot>) disk_snapshots
Returns the value of the disk_snapshots
attribute.
16052 16053 16054 |
# File 'lib/ovirtsdk4/types.rb', line 16052 def disk_snapshots return @disk_snapshots end |
- (Object) disk_snapshots=(list)
Sets the value of the disk_snapshots
attribute.
16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 |
# File 'lib/ovirtsdk4/types.rb', line 16060 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 |
- (Array<Disk>) disks
Returns the value of the disks
attribute.
16077 16078 16079 |
# File 'lib/ovirtsdk4/types.rb', line 16077 def disks return @disks end |
- (Object) disks=(list)
Sets the value of the disks
attribute.
16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 |
# File 'lib/ovirtsdk4/types.rb', line 16085 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 |
- (ExternalStatus) external_status
Returns the value of the external_status
attribute.
16102 16103 16104 |
# File 'lib/ovirtsdk4/types.rb', line 16102 def external_status return @external_status end |
- (Object) external_status=(value)
Sets the value of the external_status
attribute.
16111 16112 16113 |
# File 'lib/ovirtsdk4/types.rb', line 16111 def external_status=(value) @external_status = value end |
- (Array<File>) files
Returns the value of the files
attribute.
16120 16121 16122 |
# File 'lib/ovirtsdk4/types.rb', line 16120 def files return @files end |
- (Object) files=(list)
Sets the value of the files
attribute.
16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 |
# File 'lib/ovirtsdk4/types.rb', line 16128 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 |
- (Host) host
Returns the value of the host
attribute.
16145 16146 16147 |
# File 'lib/ovirtsdk4/types.rb', line 16145 def host return @host end |
- (Object) host=(value)
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.
16158 16159 16160 16161 16162 16163 |
# File 'lib/ovirtsdk4/types.rb', line 16158 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
16170 16171 16172 |
# File 'lib/ovirtsdk4/types.rb', line 16170 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
16179 16180 16181 |
# File 'lib/ovirtsdk4/types.rb', line 16179 def id=(value) @id = value end |
- (Array<Image>) images
Returns the value of the images
attribute.
16188 16189 16190 |
# File 'lib/ovirtsdk4/types.rb', line 16188 def images return @images end |
- (Object) images=(list)
Sets the value of the images
attribute.
16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 |
# File 'lib/ovirtsdk4/types.rb', line 16196 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 |
- (Boolean) import
Returns the value of the import
attribute.
16213 16214 16215 |
# File 'lib/ovirtsdk4/types.rb', line 16213 def import return @import end |
- (Object) import=(value)
Sets the value of the import
attribute.
16222 16223 16224 |
# File 'lib/ovirtsdk4/types.rb', line 16222 def import=(value) @import = value end |
- (Boolean) master
Returns the value of the master
attribute.
16231 16232 16233 |
# File 'lib/ovirtsdk4/types.rb', line 16231 def master return @master end |
- (Object) master=(value)
Sets the value of the master
attribute.
16240 16241 16242 |
# File 'lib/ovirtsdk4/types.rb', line 16240 def master=(value) @master = value end |
- (String) name
Returns the value of the name
attribute.
16249 16250 16251 |
# File 'lib/ovirtsdk4/types.rb', line 16249 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
16258 16259 16260 |
# File 'lib/ovirtsdk4/types.rb', line 16258 def name=(value) @name = value end |
- (Array<Permission>) permissions
Returns the value of the permissions
attribute.
16267 16268 16269 |
# File 'lib/ovirtsdk4/types.rb', line 16267 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions
attribute.
16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 |
# File 'lib/ovirtsdk4/types.rb', line 16275 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 |
- (StorageDomainStatus) status
Returns the value of the status
attribute.
16292 16293 16294 |
# File 'lib/ovirtsdk4/types.rb', line 16292 def status return @status end |
- (Object) status=(value)
Sets the value of the status
attribute.
16301 16302 16303 |
# File 'lib/ovirtsdk4/types.rb', line 16301 def status=(value) @status = value end |
- (HostStorage) storage
Returns the value of the storage
attribute.
16310 16311 16312 |
# File 'lib/ovirtsdk4/types.rb', line 16310 def storage return @storage end |
- (Object) storage=(value)
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.
16323 16324 16325 16326 16327 16328 |
# File 'lib/ovirtsdk4/types.rb', line 16323 def storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @storage = value end |
- (Array<StorageConnection>) storage_connections
Returns the value of the storage_connections
attribute.
16335 16336 16337 |
# File 'lib/ovirtsdk4/types.rb', line 16335 def storage_connections return @storage_connections end |
- (Object) storage_connections=(list)
Sets the value of the storage_connections
attribute.
16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 |
# File 'lib/ovirtsdk4/types.rb', line 16343 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 |
- (StorageFormat) storage_format
Returns the value of the storage_format
attribute.
16360 16361 16362 |
# File 'lib/ovirtsdk4/types.rb', line 16360 def storage_format return @storage_format end |
- (Object) storage_format=(value)
Sets the value of the storage_format
attribute.
16369 16370 16371 |
# File 'lib/ovirtsdk4/types.rb', line 16369 def storage_format=(value) @storage_format = value end |
- (Array<Template>) templates
Returns the value of the templates
attribute.
16378 16379 16380 |
# File 'lib/ovirtsdk4/types.rb', line 16378 def templates return @templates end |
- (Object) templates=(list)
Sets the value of the templates
attribute.
16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 |
# File 'lib/ovirtsdk4/types.rb', line 16386 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 |
- (StorageDomainType) type
Returns the value of the type
attribute.
16403 16404 16405 |
# File 'lib/ovirtsdk4/types.rb', line 16403 def type return @type end |
- (Object) type=(value)
Sets the value of the type
attribute.
16412 16413 16414 |
# File 'lib/ovirtsdk4/types.rb', line 16412 def type=(value) @type = value end |
- (Integer) used
Returns the value of the used
attribute.
16421 16422 16423 |
# File 'lib/ovirtsdk4/types.rb', line 16421 def used return @used end |
- (Object) used=(value)
Sets the value of the used
attribute.
16430 16431 16432 |
# File 'lib/ovirtsdk4/types.rb', line 16430 def used=(value) @used = value end |
- (Array<Vm>) vms
Returns the value of the vms
attribute.
16439 16440 16441 |
# File 'lib/ovirtsdk4/types.rb', line 16439 def vms return @vms end |
- (Object) vms=(list)
Sets the value of the vms
attribute.
16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 |
# File 'lib/ovirtsdk4/types.rb', line 16447 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 |
- (Integer) warning_low_space_indicator
Returns the value of the warning_low_space_indicator
attribute.
16464 16465 16466 |
# File 'lib/ovirtsdk4/types.rb', line 16464 def warning_low_space_indicator return @warning_low_space_indicator end |
- (Object) warning_low_space_indicator=(value)
Sets the value of the warning_low_space_indicator
attribute.
16473 16474 16475 |
# File 'lib/ovirtsdk4/types.rb', line 16473 def warning_low_space_indicator=(value) @warning_low_space_indicator = value end |
- (Boolean) wipe_after_delete
Returns the value of the wipe_after_delete
attribute.
16482 16483 16484 |
# File 'lib/ovirtsdk4/types.rb', line 16482 def wipe_after_delete return @wipe_after_delete end |
- (Object) wipe_after_delete=(value)
Sets the value of the wipe_after_delete
attribute.
16491 16492 16493 |
# File 'lib/ovirtsdk4/types.rb', line 16491 def wipe_after_delete=(value) @wipe_after_delete = value end |