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.



37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
# File 'lib/ovirtsdk4/types.rb', line 37048

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.



37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
# File 'lib/ovirtsdk4/types.rb', line 37090

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)


36082
36083
36084
# File 'lib/ovirtsdk4/types.rb', line 36082

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


36091
36092
36093
# File 'lib/ovirtsdk4/types.rb', line 36091

def active=(value)
  @active = value
end

#actual_sizeInteger

Returns the value of the actual_size attribute.

Returns:

  • (Integer)


36100
36101
36102
# File 'lib/ovirtsdk4/types.rb', line 36100

def actual_size
  @actual_size
end

#actual_size=(value) ⇒ Object

Sets the value of the actual_size attribute.

Parameters:

  • value (Integer)


36109
36110
36111
# File 'lib/ovirtsdk4/types.rb', line 36109

def actual_size=(value)
  @actual_size = value
end

#alias_String

Returns the value of the alias_ attribute.

Returns:

  • (String)


36118
36119
36120
# File 'lib/ovirtsdk4/types.rb', line 36118

def alias_
  @alias_
end

#alias_=(value) ⇒ Object

Sets the value of the alias_ attribute.

Parameters:

  • value (String)


36127
36128
36129
# File 'lib/ovirtsdk4/types.rb', line 36127

def alias_=(value)
  @alias_ = value
end

#backupDiskBackup

Returns the value of the backup attribute.

Returns:



36136
36137
36138
# File 'lib/ovirtsdk4/types.rb', line 36136

def backup
  @backup
end

#backup=(value) ⇒ Object

Sets the value of the backup attribute.

Parameters:



36145
36146
36147
# File 'lib/ovirtsdk4/types.rb', line 36145

def backup=(value)
  @backup = value
end

#backup_modeDiskBackupMode

Returns the value of the backup_mode attribute.

Returns:



36154
36155
36156
# File 'lib/ovirtsdk4/types.rb', line 36154

def backup_mode
  @backup_mode
end

#backup_mode=(value) ⇒ Object

Sets the value of the backup_mode attribute.

Parameters:



36163
36164
36165
# File 'lib/ovirtsdk4/types.rb', line 36163

def backup_mode=(value)
  @backup_mode = value
end

#bootableBoolean

Returns the value of the bootable attribute.

Returns:

  • (Boolean)


36172
36173
36174
# File 'lib/ovirtsdk4/types.rb', line 36172

def bootable
  @bootable
end

#bootable=(value) ⇒ Object

Sets the value of the bootable attribute.

Parameters:

  • value (Boolean)


36181
36182
36183
# File 'lib/ovirtsdk4/types.rb', line 36181

def bootable=(value)
  @bootable = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


36190
36191
36192
# File 'lib/ovirtsdk4/types.rb', line 36190

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


36199
36200
36201
# File 'lib/ovirtsdk4/types.rb', line 36199

def comment=(value)
  @comment = value
end

#content_typeDiskContentType

Returns the value of the content_type attribute.

Returns:



36208
36209
36210
# File 'lib/ovirtsdk4/types.rb', line 36208

def content_type
  @content_type
end

#content_type=(value) ⇒ Object

Sets the value of the content_type attribute.

Parameters:



36217
36218
36219
# File 'lib/ovirtsdk4/types.rb', line 36217

def content_type=(value)
  @content_type = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


36226
36227
36228
# File 'lib/ovirtsdk4/types.rb', line 36226

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


36235
36236
36237
# File 'lib/ovirtsdk4/types.rb', line 36235

def description=(value)
  @description = value
end

#disk_profileDiskProfile

Returns the value of the disk_profile attribute.

Returns:



36244
36245
36246
# File 'lib/ovirtsdk4/types.rb', line 36244

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:



36257
36258
36259
36260
36261
36262
# File 'lib/ovirtsdk4/types.rb', line 36257

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:



36269
36270
36271
# File 'lib/ovirtsdk4/types.rb', line 36269

def disk_snapshots
  @disk_snapshots
end

#disk_snapshots=(list) ⇒ Object

Sets the value of the disk_snapshots attribute.

Parameters:



36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
# File 'lib/ovirtsdk4/types.rb', line 36278

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)


36295
36296
36297
# File 'lib/ovirtsdk4/types.rb', line 36295

def external_disk
  @external_disk
end

#external_disk=(value) ⇒ Object

Sets the value of the external_disk attribute.

Parameters:

  • value (String)


36304
36305
36306
# File 'lib/ovirtsdk4/types.rb', line 36304

def external_disk=(value)
  @external_disk = value
end

#formatDiskFormat

Returns the value of the format attribute.

Returns:



36313
36314
36315
# File 'lib/ovirtsdk4/types.rb', line 36313

def format
  @format
end

#format=(value) ⇒ Object

Sets the value of the format attribute.

Parameters:



36322
36323
36324
# File 'lib/ovirtsdk4/types.rb', line 36322

def format=(value)
  @format = value
end

#hashObject

Generates a hash value for this object.



37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
# File 'lib/ovirtsdk4/types.rb', line 37132

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)


36331
36332
36333
# File 'lib/ovirtsdk4/types.rb', line 36331

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


36340
36341
36342
# File 'lib/ovirtsdk4/types.rb', line 36340

def id=(value)
  @id = value
end

#image_idString

Returns the value of the image_id attribute.

Returns:

  • (String)


36349
36350
36351
# File 'lib/ovirtsdk4/types.rb', line 36349

def image_id
  @image_id
end

#image_id=(value) ⇒ Object

Sets the value of the image_id attribute.

Parameters:

  • value (String)


36358
36359
36360
# File 'lib/ovirtsdk4/types.rb', line 36358

def image_id=(value)
  @image_id = value
end

#initial_sizeInteger

Returns the value of the initial_size attribute.

Returns:

  • (Integer)


36367
36368
36369
# File 'lib/ovirtsdk4/types.rb', line 36367

def initial_size
  @initial_size
end

#initial_size=(value) ⇒ Object

Sets the value of the initial_size attribute.

Parameters:

  • value (Integer)


36376
36377
36378
# File 'lib/ovirtsdk4/types.rb', line 36376

def initial_size=(value)
  @initial_size = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



36385
36386
36387
# File 'lib/ovirtsdk4/types.rb', line 36385

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:



36398
36399
36400
36401
36402
36403
# File 'lib/ovirtsdk4/types.rb', line 36398

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:



36410
36411
36412
# File 'lib/ovirtsdk4/types.rb', line 36410

def interface
  @interface
end

#interface=(value) ⇒ Object

Sets the value of the interface attribute.

Parameters:



36419
36420
36421
# File 'lib/ovirtsdk4/types.rb', line 36419

def interface=(value)
  @interface = value
end

#logical_nameString

Returns the value of the logical_name attribute.

Returns:

  • (String)


36428
36429
36430
# File 'lib/ovirtsdk4/types.rb', line 36428

def logical_name
  @logical_name
end

#logical_name=(value) ⇒ Object

Sets the value of the logical_name attribute.

Parameters:

  • value (String)


36437
36438
36439
# File 'lib/ovirtsdk4/types.rb', line 36437

def logical_name=(value)
  @logical_name = value
end

#lun_storageHostStorage

Returns the value of the lun_storage attribute.

Returns:



36446
36447
36448
# File 'lib/ovirtsdk4/types.rb', line 36446

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:



36459
36460
36461
36462
36463
36464
# File 'lib/ovirtsdk4/types.rb', line 36459

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)


36471
36472
36473
# File 'lib/ovirtsdk4/types.rb', line 36471

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


36480
36481
36482
# File 'lib/ovirtsdk4/types.rb', line 36480

def name=(value)
  @name = value
end

#openstack_volume_typeOpenStackVolumeType

Returns the value of the openstack_volume_type attribute.

Returns:



36489
36490
36491
# File 'lib/ovirtsdk4/types.rb', line 36489

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:



36502
36503
36504
36505
36506
36507
# File 'lib/ovirtsdk4/types.rb', line 36502

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:



36514
36515
36516
# File 'lib/ovirtsdk4/types.rb', line 36514

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
# File 'lib/ovirtsdk4/types.rb', line 36523

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)


36540
36541
36542
# File 'lib/ovirtsdk4/types.rb', line 36540

def propagate_errors
  @propagate_errors
end

#propagate_errors=(value) ⇒ Object

Sets the value of the propagate_errors attribute.

Parameters:

  • value (Boolean)


36549
36550
36551
# File 'lib/ovirtsdk4/types.rb', line 36549

def propagate_errors=(value)
  @propagate_errors = value
end

#provisioned_sizeInteger

Returns the value of the provisioned_size attribute.

Returns:

  • (Integer)


36558
36559
36560
# File 'lib/ovirtsdk4/types.rb', line 36558

def provisioned_size
  @provisioned_size
end

#provisioned_size=(value) ⇒ Object

Sets the value of the provisioned_size attribute.

Parameters:

  • value (Integer)


36567
36568
36569
# File 'lib/ovirtsdk4/types.rb', line 36567

def provisioned_size=(value)
  @provisioned_size = value
end

#qcow_versionQcowVersion

Returns the value of the qcow_version attribute.

Returns:



36576
36577
36578
# File 'lib/ovirtsdk4/types.rb', line 36576

def qcow_version
  @qcow_version
end

#qcow_version=(value) ⇒ Object

Sets the value of the qcow_version attribute.

Parameters:



36585
36586
36587
# File 'lib/ovirtsdk4/types.rb', line 36585

def qcow_version=(value)
  @qcow_version = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



36594
36595
36596
# File 'lib/ovirtsdk4/types.rb', line 36594

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:



36607
36608
36609
36610
36611
36612
# File 'lib/ovirtsdk4/types.rb', line 36607

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)


36619
36620
36621
# File 'lib/ovirtsdk4/types.rb', line 36619

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


36628
36629
36630
# File 'lib/ovirtsdk4/types.rb', line 36628

def read_only=(value)
  @read_only = value
end

#sgioScsiGenericIO

Returns the value of the sgio attribute.

Returns:



36637
36638
36639
# File 'lib/ovirtsdk4/types.rb', line 36637

def sgio
  @sgio
end

#sgio=(value) ⇒ Object

Sets the value of the sgio attribute.

Parameters:



36646
36647
36648
# File 'lib/ovirtsdk4/types.rb', line 36646

def sgio=(value)
  @sgio = value
end

#shareableBoolean

Returns the value of the shareable attribute.

Returns:

  • (Boolean)


36655
36656
36657
# File 'lib/ovirtsdk4/types.rb', line 36655

def shareable
  @shareable
end

#shareable=(value) ⇒ Object

Sets the value of the shareable attribute.

Parameters:

  • value (Boolean)


36664
36665
36666
# File 'lib/ovirtsdk4/types.rb', line 36664

def shareable=(value)
  @shareable = value
end

#snapshotSnapshot

Returns the value of the snapshot attribute.

Returns:



36673
36674
36675
# File 'lib/ovirtsdk4/types.rb', line 36673

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:



36686
36687
36688
36689
36690
36691
# File 'lib/ovirtsdk4/types.rb', line 36686

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)


36698
36699
36700
# File 'lib/ovirtsdk4/types.rb', line 36698

def sparse
  @sparse
end

#sparse=(value) ⇒ Object

Sets the value of the sparse attribute.

Parameters:

  • value (Boolean)


36707
36708
36709
# File 'lib/ovirtsdk4/types.rb', line 36707

def sparse=(value)
  @sparse = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



36716
36717
36718
# File 'lib/ovirtsdk4/types.rb', line 36716

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
# File 'lib/ovirtsdk4/types.rb', line 36725

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:



36742
36743
36744
# File 'lib/ovirtsdk4/types.rb', line 36742

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



36751
36752
36753
# File 'lib/ovirtsdk4/types.rb', line 36751

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



36760
36761
36762
# File 'lib/ovirtsdk4/types.rb', line 36760

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:



36773
36774
36775
36776
36777
36778
# File 'lib/ovirtsdk4/types.rb', line 36773

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:



36785
36786
36787
# File 'lib/ovirtsdk4/types.rb', line 36785

def storage_domains
  @storage_domains
end

#storage_domains=(list) ⇒ Object

Sets the value of the storage_domains attribute.

Parameters:



36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
# File 'lib/ovirtsdk4/types.rb', line 36794

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:



36811
36812
36813
# File 'lib/ovirtsdk4/types.rb', line 36811

def storage_type
  @storage_type
end

#storage_type=(value) ⇒ Object

Sets the value of the storage_type attribute.

Parameters:



36820
36821
36822
# File 'lib/ovirtsdk4/types.rb', line 36820

def storage_type=(value)
  @storage_type = value
end

#templateTemplate

Returns the value of the template attribute.

Returns:



36829
36830
36831
# File 'lib/ovirtsdk4/types.rb', line 36829

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:



36842
36843
36844
36845
36846
36847
# File 'lib/ovirtsdk4/types.rb', line 36842

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)


36854
36855
36856
# File 'lib/ovirtsdk4/types.rb', line 36854

def total_size
  @total_size
end

#total_size=(value) ⇒ Object

Sets the value of the total_size attribute.

Parameters:

  • value (Integer)


36863
36864
36865
# File 'lib/ovirtsdk4/types.rb', line 36863

def total_size=(value)
  @total_size = value
end

#uses_scsi_reservationBoolean

Returns the value of the uses_scsi_reservation attribute.

Returns:

  • (Boolean)


36872
36873
36874
# File 'lib/ovirtsdk4/types.rb', line 36872

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)


36881
36882
36883
# File 'lib/ovirtsdk4/types.rb', line 36881

def uses_scsi_reservation=(value)
  @uses_scsi_reservation = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



36890
36891
36892
# File 'lib/ovirtsdk4/types.rb', line 36890

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)


36903
36904
36905
36906
36907
36908
# File 'lib/ovirtsdk4/types.rb', line 36903

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>)


36915
36916
36917
# File 'lib/ovirtsdk4/types.rb', line 36915

def vms
  @vms
end

#vms=(list) ⇒ Object

Sets the value of the vms attribute.

Parameters:

  • list (Array<Vm>)


36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
# File 'lib/ovirtsdk4/types.rb', line 36924

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)


36941
36942
36943
# File 'lib/ovirtsdk4/types.rb', line 36941

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)


36950
36951
36952
# File 'lib/ovirtsdk4/types.rb', line 36950

def wipe_after_delete=(value)
  @wipe_after_delete = value
end