Class: OvirtSDK4::StorageDomain

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (StorageDomain) initialize(opts = {})

Creates a new instance of the OvirtSDK4::StorageDomain class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :available (Integer)

    The value of attribute available.

  • :comment (String)

    The value of attribute comment.

  • :committed (Integer)

    The value of attribute committed.

  • :critical_space_action_blocker (Integer)

    The value of attribute critical_space_action_blocker.

  • :data_center (DataCenter, Hash)

    The value of attribute data_center.

  • :data_centers (Array<DataCenter>, Array<Hash>)

    The values of attribute data_centers.

  • :description (String)

    The value of attribute description.

  • :disk_profiles (Array<DiskProfile>, Array<Hash>)

    The values of attribute disk_profiles.

  • :disk_snapshots (Array<DiskSnapshot>, Array<Hash>)

    The values of attribute disk_snapshots.

  • :disks (Array<Disk>, Array<Hash>)

    The values of attribute disks.

  • :external_status (ExternalStatus)

    The value of attribute external_status.

  • :files (Array<File>, Array<Hash>)

    The values of attribute files.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :images (Array<Image>, Array<Hash>)

    The values of attribute images.

  • :import (Boolean)

    The value of attribute import.

  • :master (Boolean)

    The value of attribute master.

  • :name (String)

    The value of attribute name.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :status (StorageDomainStatus)

    The value of attribute status.

  • :storage (HostStorage, Hash)

    The value of attribute storage.

  • :storage_connections (Array<StorageConnection>, Array<Hash>)

    The values of attribute storage_connections.

  • :storage_format (StorageFormat)

    The value of attribute storage_format.

  • :templates (Array<Template>, Array<Hash>)

    The values of attribute templates.

  • :type (StorageDomainType)

    The value of attribute type.

  • :used (Integer)

    The value of attribute used.

  • :vms (Array<Vm>, Array<Hash>)

    The values of attribute vms.

  • :warning_low_space_indicator (Integer)

    The value of attribute warning_low_space_indicator.

  • :wipe_after_delete (Boolean)

    The value of attribute wipe_after_delete.



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.permissions = 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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • list (Array<Disk>)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • list (Array<File>)


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.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



16267
16268
16269
# File 'lib/ovirtsdk4/types.rb', line 16267

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
# File 'lib/ovirtsdk4/types.rb', line 16275

def permissions=(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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Array<Vm>)


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.

Parameters:

  • list (Array<Vm>)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


16491
16492
16493
# File 'lib/ovirtsdk4/types.rb', line 16491

def wipe_after_delete=(value)
  @wipe_after_delete = value
end