Class: OvirtSDK4::Disk

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

Direct Known Subclasses

DiskSnapshot

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Disk

Creates a new instance of the OvirtSDK4::Disk 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):

  • :active (Boolean)

    The value of attribute active.

  • :actual_size (Integer)

    The value of attribute actual_size.

  • :alias_ (String)

    The value of attribute alias_.

  • :backup (DiskBackup)

    The value of attribute backup.

  • :backup_mode (DiskBackupMode)

    The value of attribute backup_mode.

  • :bootable (Boolean)

    The value of attribute bootable.

  • :comment (String)

    The value of attribute comment.

  • :content_type (DiskContentType)

    The value of attribute content_type.

  • :description (String)

    The value of attribute description.

  • :disk_profile (DiskProfile, Hash)

    The value of attribute disk_profile.

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

    The values of attribute disk_snapshots.

  • :external_disk (String)

    The value of attribute external_disk.

  • :format (DiskFormat)

    The value of attribute format.

  • :id (String)

    The value of attribute id.

  • :image_id (String)

    The value of attribute image_id.

  • :initial_size (Integer)

    The value of attribute initial_size.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :interface (DiskInterface)

    The value of attribute interface.

  • :logical_name (String)

    The value of attribute logical_name.

  • :lun_storage (HostStorage, Hash)

    The value of attribute lun_storage.

  • :name (String)

    The value of attribute name.

  • :openstack_volume_type (OpenStackVolumeType, Hash)

    The value of attribute openstack_volume_type.

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

    The values of attribute permissions.

  • :propagate_errors (Boolean)

    The value of attribute propagate_errors.

  • :provisioned_size (Integer)

    The value of attribute provisioned_size.

  • :qcow_version (QcowVersion)

    The value of attribute qcow_version.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :read_only (Boolean)

    The value of attribute read_only.

  • :sgio (ScsiGenericIO)

    The value of attribute sgio.

  • :shareable (Boolean)

    The value of attribute shareable.

  • :snapshot (Snapshot, Hash)

    The value of attribute snapshot.

  • :sparse (Boolean)

    The value of attribute sparse.

  • :statistics (Array<Statistic>, Array<Hash>)

    The values of attribute statistics.

  • :status (DiskStatus)

    The value of attribute status.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_domains (Array<StorageDomain>, Array<Hash>)

    The values of attribute storage_domains.

  • :storage_type (DiskStorageType)

    The value of attribute storage_type.

  • :template (Template, Hash)

    The value of attribute template.

  • :total_size (Integer)

    The value of attribute total_size.

  • :uses_scsi_reservation (Boolean)

    The value of attribute uses_scsi_reservation.

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute vms.

  • :wipe_after_delete (Boolean)

    The value of attribute wipe_after_delete.


36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
# File 'lib/ovirtsdk4/types.rb', line 36193

def initialize(opts = {})
  super(opts)
  self.active = opts[:active]
  self.actual_size = opts[:actual_size]
  self.alias_ = opts[:alias_]
  self.backup = opts[:backup]
  self.backup_mode = opts[:backup_mode]
  self.bootable = opts[:bootable]
  self.content_type = opts[:content_type]
  self.disk_profile = opts[:disk_profile]
  self.disk_snapshots = opts[:disk_snapshots]
  self.external_disk = opts[:external_disk]
  self.format = opts[:format]
  self.image_id = opts[:image_id]
  self.initial_size = opts[:initial_size]
  self.interface = opts[:interface]
  self.logical_name = opts[:logical_name]
  self.lun_storage = opts[:lun_storage]
  self.openstack_volume_type = opts[:openstack_volume_type]
  self.permissions = opts[:permissions]
  self.propagate_errors = opts[:propagate_errors]
  self.provisioned_size = opts[:provisioned_size]
  self.qcow_version = opts[:qcow_version]
  self.quota = opts[:quota]
  self.read_only = opts[:read_only]
  self.sgio = opts[:sgio]
  self.shareable = opts[:shareable]
  self.snapshot = opts[:snapshot]
  self.sparse = opts[:sparse]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.storage_domain = opts[:storage_domain]
  self.storage_domains = opts[:storage_domains]
  self.storage_type = opts[:storage_type]
  self.total_size = opts[:total_size]
  self.uses_scsi_reservation = opts[:uses_scsi_reservation]
  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.


36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
# File 'lib/ovirtsdk4/types.rb', line 36235

def ==(other)
  super &&
  @active == other.active &&
  @actual_size == other.actual_size &&
  @alias_ == other.alias_ &&
  @backup == other.backup &&
  @backup_mode == other.backup_mode &&
  @bootable == other.bootable &&
  @content_type == other.content_type &&
  @disk_profile == other.disk_profile &&
  @disk_snapshots == other.disk_snapshots &&
  @external_disk == other.external_disk &&
  @format == other.format &&
  @image_id == other.image_id &&
  @initial_size == other.initial_size &&
  @interface == other.interface &&
  @logical_name == other.logical_name &&
  @lun_storage == other.lun_storage &&
  @openstack_volume_type == other.openstack_volume_type &&
  @permissions == other.permissions &&
  @propagate_errors == other.propagate_errors &&
  @provisioned_size == other.provisioned_size &&
  @qcow_version == other.qcow_version &&
  @quota == other.quota &&
  @read_only == other.read_only &&
  @sgio == other.sgio &&
  @shareable == other.shareable &&
  @snapshot == other.snapshot &&
  @sparse == other.sparse &&
  @statistics == other.statistics &&
  @status == other.status &&
  @storage_domain == other.storage_domain &&
  @storage_domains == other.storage_domains &&
  @storage_type == other.storage_type &&
  @total_size == other.total_size &&
  @uses_scsi_reservation == other.uses_scsi_reservation &&
  @wipe_after_delete == other.wipe_after_delete
end

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)

35227
35228
35229
# File 'lib/ovirtsdk4/types.rb', line 35227

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)

35236
35237
35238
# File 'lib/ovirtsdk4/types.rb', line 35236

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)

35245
35246
35247
# File 'lib/ovirtsdk4/types.rb', line 35245

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)

35254
35255
35256
# File 'lib/ovirtsdk4/types.rb', line 35254

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)

35263
35264
35265
# File 'lib/ovirtsdk4/types.rb', line 35263

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)

35272
35273
35274
# File 'lib/ovirtsdk4/types.rb', line 35272

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:


35281
35282
35283
# File 'lib/ovirtsdk4/types.rb', line 35281

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:


35290
35291
35292
# File 'lib/ovirtsdk4/types.rb', line 35290

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:


35299
35300
35301
# File 'lib/ovirtsdk4/types.rb', line 35299

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:


35308
35309
35310
# File 'lib/ovirtsdk4/types.rb', line 35308

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)

35317
35318
35319
# File 'lib/ovirtsdk4/types.rb', line 35317

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)

35326
35327
35328
# File 'lib/ovirtsdk4/types.rb', line 35326

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

35335
35336
35337
# File 'lib/ovirtsdk4/types.rb', line 35335

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

35344
35345
35346
# File 'lib/ovirtsdk4/types.rb', line 35344

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:


35353
35354
35355
# File 'lib/ovirtsdk4/types.rb', line 35353

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:


35362
35363
35364
# File 'lib/ovirtsdk4/types.rb', line 35362

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

35371
35372
35373
# File 'lib/ovirtsdk4/types.rb', line 35371

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

35380
35381
35382
# File 'lib/ovirtsdk4/types.rb', line 35380

def description=(value)
  @description = value
end

#disk_profileDiskProfile

Returns the value of the disk_profile attribute.

Returns:


35389
35390
35391
# File 'lib/ovirtsdk4/types.rb', line 35389

def disk_profile
  @disk_profile
end

#disk_profile=(value) ⇒ Object

Sets the value of the disk_profile attribute.

The value parameter can be an instance of OvirtSDK4::DiskProfile 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:


35402
35403
35404
35405
35406
35407
# File 'lib/ovirtsdk4/types.rb', line 35402

def disk_profile=(value)
  if value.is_a?(Hash)
    value = DiskProfile.new(value)
  end
  @disk_profile = value
end

#disk_snapshotsArray<DiskSnapshot>

Returns the value of the disk_snapshots attribute.

Returns:


35414
35415
35416
# File 'lib/ovirtsdk4/types.rb', line 35414

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:


35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
# File 'lib/ovirtsdk4/types.rb', line 35423

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

#external_diskString

Returns the value of the external_disk attribute.

Returns:

  • (String)

35440
35441
35442
# File 'lib/ovirtsdk4/types.rb', line 35440

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)

35449
35450
35451
# File 'lib/ovirtsdk4/types.rb', line 35449

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:


35458
35459
35460
# File 'lib/ovirtsdk4/types.rb', line 35458

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:


35467
35468
35469
# File 'lib/ovirtsdk4/types.rb', line 35467

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.


36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
# File 'lib/ovirtsdk4/types.rb', line 36277

def hash
  super +
  @active.hash +
  @actual_size.hash +
  @alias_.hash +
  @backup.hash +
  @backup_mode.hash +
  @bootable.hash +
  @content_type.hash +
  @disk_profile.hash +
  @disk_snapshots.hash +
  @external_disk.hash +
  @format.hash +
  @image_id.hash +
  @initial_size.hash +
  @interface.hash +
  @logical_name.hash +
  @lun_storage.hash +
  @openstack_volume_type.hash +
  @permissions.hash +
  @propagate_errors.hash +
  @provisioned_size.hash +
  @qcow_version.hash +
  @quota.hash +
  @read_only.hash +
  @sgio.hash +
  @shareable.hash +
  @snapshot.hash +
  @sparse.hash +
  @statistics.hash +
  @status.hash +
  @storage_domain.hash +
  @storage_domains.hash +
  @storage_type.hash +
  @total_size.hash +
  @uses_scsi_reservation.hash +
  @wipe_after_delete.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

35476
35477
35478
# File 'lib/ovirtsdk4/types.rb', line 35476

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

35485
35486
35487
# File 'lib/ovirtsdk4/types.rb', line 35485

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)

35494
35495
35496
# File 'lib/ovirtsdk4/types.rb', line 35494

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)

35503
35504
35505
# File 'lib/ovirtsdk4/types.rb', line 35503

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)

35512
35513
35514
# File 'lib/ovirtsdk4/types.rb', line 35512

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)

35521
35522
35523
# File 'lib/ovirtsdk4/types.rb', line 35521

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:


35530
35531
35532
# File 'lib/ovirtsdk4/types.rb', line 35530

def instance_type
  @instance_type
end

#instance_type=(value) ⇒ Object

Sets the value of the instance_type attribute.

The value parameter can be an instance of InstanceType 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:


35543
35544
35545
35546
35547
35548
# File 'lib/ovirtsdk4/types.rb', line 35543

def instance_type=(value)
  if value.is_a?(Hash)
    value = InstanceType.new(value)
  end
  @instance_type = value
end

#interfaceDiskInterface

Returns the value of the interface attribute.

Returns:


35555
35556
35557
# File 'lib/ovirtsdk4/types.rb', line 35555

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:


35564
35565
35566
# File 'lib/ovirtsdk4/types.rb', line 35564

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)

35573
35574
35575
# File 'lib/ovirtsdk4/types.rb', line 35573

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)

35582
35583
35584
# File 'lib/ovirtsdk4/types.rb', line 35582

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:


35591
35592
35593
# File 'lib/ovirtsdk4/types.rb', line 35591

def lun_storage
  @lun_storage
end

#lun_storage=(value) ⇒ Object

Sets the value of the lun_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:


35604
35605
35606
35607
35608
35609
# File 'lib/ovirtsdk4/types.rb', line 35604

def lun_storage=(value)
  if value.is_a?(Hash)
    value = HostStorage.new(value)
  end
  @lun_storage = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

35616
35617
35618
# File 'lib/ovirtsdk4/types.rb', line 35616

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

35625
35626
35627
# File 'lib/ovirtsdk4/types.rb', line 35625

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:


35634
35635
35636
# File 'lib/ovirtsdk4/types.rb', line 35634

def openstack_volume_type
  @openstack_volume_type
end

#openstack_volume_type=(value) ⇒ Object

Sets the value of the openstack_volume_type attribute.

The value parameter can be an instance of OpenStackVolumeType 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:


35647
35648
35649
35650
35651
35652
# File 'lib/ovirtsdk4/types.rb', line 35647

def openstack_volume_type=(value)
  if value.is_a?(Hash)
    value = OpenStackVolumeType.new(value)
  end
  @openstack_volume_type = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:


35659
35660
35661
# File 'lib/ovirtsdk4/types.rb', line 35659

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
# File 'lib/ovirtsdk4/types.rb', line 35668

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

#propagate_errorsBoolean

Returns the value of the propagate_errors attribute.

Returns:

  • (Boolean)

35685
35686
35687
# File 'lib/ovirtsdk4/types.rb', line 35685

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)

35694
35695
35696
# File 'lib/ovirtsdk4/types.rb', line 35694

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)

35703
35704
35705
# File 'lib/ovirtsdk4/types.rb', line 35703

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)

35712
35713
35714
# File 'lib/ovirtsdk4/types.rb', line 35712

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:


35721
35722
35723
# File 'lib/ovirtsdk4/types.rb', line 35721

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:


35730
35731
35732
# File 'lib/ovirtsdk4/types.rb', line 35730

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:


35739
35740
35741
# File 'lib/ovirtsdk4/types.rb', line 35739

def quota
  @quota
end

#quota=(value) ⇒ Object

Sets the value of the quota attribute.

The value parameter can be an instance of Quota 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:


35752
35753
35754
35755
35756
35757
# File 'lib/ovirtsdk4/types.rb', line 35752

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

#read_onlyBoolean

Returns the value of the read_only attribute.

Returns:

  • (Boolean)

35764
35765
35766
# File 'lib/ovirtsdk4/types.rb', line 35764

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)

35773
35774
35775
# File 'lib/ovirtsdk4/types.rb', line 35773

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:


35782
35783
35784
# File 'lib/ovirtsdk4/types.rb', line 35782

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:


35791
35792
35793
# File 'lib/ovirtsdk4/types.rb', line 35791

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)

35800
35801
35802
# File 'lib/ovirtsdk4/types.rb', line 35800

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)

35809
35810
35811
# File 'lib/ovirtsdk4/types.rb', line 35809

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:


35818
35819
35820
# File 'lib/ovirtsdk4/types.rb', line 35818

def snapshot
  @snapshot
end

#snapshot=(value) ⇒ Object

Sets the value of the snapshot attribute.

The value parameter can be an instance of Snapshot 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:


35831
35832
35833
35834
35835
35836
# File 'lib/ovirtsdk4/types.rb', line 35831

def snapshot=(value)
  if value.is_a?(Hash)
    value = Snapshot.new(value)
  end
  @snapshot = value
end

#sparseBoolean

Returns the value of the sparse attribute.

Returns:

  • (Boolean)

35843
35844
35845
# File 'lib/ovirtsdk4/types.rb', line 35843

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)

35852
35853
35854
# File 'lib/ovirtsdk4/types.rb', line 35852

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:


35861
35862
35863
# File 'lib/ovirtsdk4/types.rb', line 35861

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:


35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
# File 'lib/ovirtsdk4/types.rb', line 35870

def statistics=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Statistic.new(value)
      end
    end
  end
  @statistics = list
end

#statusDiskStatus

Returns the value of the status attribute.

Returns:


35887
35888
35889
# File 'lib/ovirtsdk4/types.rb', line 35887

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


35896
35897
35898
# File 'lib/ovirtsdk4/types.rb', line 35896

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


35905
35906
35907
# File 'lib/ovirtsdk4/types.rb', line 35905

def storage_domain
  @storage_domain
end

#storage_domain=(value) ⇒ Object

Sets the value of the storage_domain attribute.

The value parameter can be an instance of StorageDomain 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:


35918
35919
35920
35921
35922
35923
# File 'lib/ovirtsdk4/types.rb', line 35918

def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end

#storage_domainsArray<StorageDomain>

Returns the value of the storage_domains attribute.

Returns:


35930
35931
35932
# File 'lib/ovirtsdk4/types.rb', line 35930

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:


35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
# File 'lib/ovirtsdk4/types.rb', line 35939

def storage_domains=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = StorageDomain.new(value)
      end
    end
  end
  @storage_domains = list
end

#storage_typeDiskStorageType

Returns the value of the storage_type attribute.

Returns:


35956
35957
35958
# File 'lib/ovirtsdk4/types.rb', line 35956

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:


35965
35966
35967
# File 'lib/ovirtsdk4/types.rb', line 35965

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:


35974
35975
35976
# File 'lib/ovirtsdk4/types.rb', line 35974

def template
  @template
end

#template=(value) ⇒ Object

Sets the value of the template attribute.

The value parameter can be an instance of Template 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:


35987
35988
35989
35990
35991
35992
# File 'lib/ovirtsdk4/types.rb', line 35987

def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

#total_sizeInteger

Returns the value of the total_size attribute.

Returns:

  • (Integer)

35999
36000
36001
# File 'lib/ovirtsdk4/types.rb', line 35999

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)

36008
36009
36010
# File 'lib/ovirtsdk4/types.rb', line 36008

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)

36017
36018
36019
# File 'lib/ovirtsdk4/types.rb', line 36017

def uses_scsi_reservation
  @uses_scsi_reservation
end

#uses_scsi_reservation=(value) ⇒ Object

Sets the value of the uses_scsi_reservation attribute.

Parameters:

  • value (Boolean)

36026
36027
36028
# File 'lib/ovirtsdk4/types.rb', line 36026

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:


36035
36036
36037
# File 'lib/ovirtsdk4/types.rb', line 36035

def vm
  @vm
end

#vm=(value) ⇒ Object

Sets the value of the vm attribute.

The value parameter can be an instance of Vm 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 (Vm, Hash)

36048
36049
36050
36051
36052
36053
# File 'lib/ovirtsdk4/types.rb', line 36048

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end

#vmsArray<Vm>

Returns the value of the vms attribute.

Returns:

  • (Array<Vm>)

36060
36061
36062
# File 'lib/ovirtsdk4/types.rb', line 36060

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)

36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
# File 'lib/ovirtsdk4/types.rb', line 36069

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

#wipe_after_deleteBoolean

Returns the value of the wipe_after_delete attribute.

Returns:

  • (Boolean)

36086
36087
36088
# File 'lib/ovirtsdk4/types.rb', line 36086

def wipe_after_delete
  @wipe_after_delete
end

#wipe_after_delete=(value) ⇒ Object

Sets the value of the wipe_after_delete attribute.

Parameters:

  • value (Boolean)

36095
36096
36097
# File 'lib/ovirtsdk4/types.rb', line 36095

def wipe_after_delete=(value)
  @wipe_after_delete = value
end