Class: OCI::CloudBridge::Models::OlvmStorageDomainProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb

Overview

OLVM Storage Domain properties.

Constant Summary collapse

EXTERNAL_STATUS_ENUM =
[
  EXTERNAL_STATUS_ERROR = 'ERROR'.freeze,
  EXTERNAL_STATUS_FAILURE = 'FAILURE'.freeze,
  EXTERNAL_STATUS_INFO = 'INFO'.freeze,
  EXTERNAL_STATUS_OK = 'OK'.freeze,
  EXTERNAL_STATUS_WARNING = 'WARNING'.freeze
].freeze
STORAGE_DOMAIN_STATUS_ENUM =
[
  STORAGE_DOMAIN_STATUS_ACTIVATING = 'ACTIVATING'.freeze,
  STORAGE_DOMAIN_STATUS_ACTIVE = 'ACTIVE'.freeze,
  STORAGE_DOMAIN_STATUS_DETACHING = 'DETACHING'.freeze,
  STORAGE_DOMAIN_STATUS_INACTIVE = 'INACTIVE'.freeze,
  STORAGE_DOMAIN_STATUS_LOCKED = 'LOCKED'.freeze,
  STORAGE_DOMAIN_STATUS_MAINTENANCE = 'MAINTENANCE'.freeze,
  STORAGE_DOMAIN_STATUS_MIXED = 'MIXED'.freeze,
  STORAGE_DOMAIN_STATUS_PREPARING_FOR_MAINTENANCE = 'PREPARING_FOR_MAINTENANCE'.freeze,
  STORAGE_DOMAIN_STATUS_UNATTACHED = 'UNATTACHED'.freeze,
  STORAGE_DOMAIN_STATUS_UNKNOWN = 'UNKNOWN'.freeze
].freeze
STORAGE_FORMAT_ENUM =
[
  STORAGE_FORMAT_V1 = 'V1'.freeze,
  STORAGE_FORMAT_V2 = 'V2'.freeze,
  STORAGE_FORMAT_V3 = 'V3'.freeze,
  STORAGE_FORMAT_V4 = 'V4'.freeze,
  STORAGE_FORMAT_V5 = 'V5'.freeze
].freeze
STORAGE_DOMAIN_TYPE_ENUM =
[
  STORAGE_DOMAIN_TYPE_DATA = 'DATA'.freeze,
  STORAGE_DOMAIN_TYPE_EXPORT = 'EXPORT'.freeze,
  STORAGE_DOMAIN_TYPE_IMAGE = 'IMAGE'.freeze,
  STORAGE_DOMAIN_TYPE_ISO = 'ISO'.freeze,
  STORAGE_DOMAIN_TYPE_MANAGED_BLOCK_STORAGE = 'MANAGED_BLOCK_STORAGE'.freeze,
  STORAGE_DOMAIN_TYPE_VOLUME = 'VOLUME'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OlvmStorageDomainProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 224

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.storage_domain_name = attributes[:'storageDomainName'] if attributes[:'storageDomainName']

  raise 'You cannot provide both :storageDomainName and :storage_domain_name' if attributes.key?(:'storageDomainName') && attributes.key?(:'storage_domain_name')

  self.storage_domain_name = attributes[:'storage_domain_name'] if attributes[:'storage_domain_name']

  self.storage_domain_description = attributes[:'storageDomainDescription'] if attributes[:'storageDomainDescription']

  raise 'You cannot provide both :storageDomainDescription and :storage_domain_description' if attributes.key?(:'storageDomainDescription') && attributes.key?(:'storage_domain_description')

  self.storage_domain_description = attributes[:'storage_domain_description'] if attributes[:'storage_domain_description']

  self.comment = attributes[:'comment'] if attributes[:'comment']

  self.available_space_in_bytes = attributes[:'availableSpaceInBytes'] if attributes[:'availableSpaceInBytes']

  raise 'You cannot provide both :availableSpaceInBytes and :available_space_in_bytes' if attributes.key?(:'availableSpaceInBytes') && attributes.key?(:'available_space_in_bytes')

  self.available_space_in_bytes = attributes[:'available_space_in_bytes'] if attributes[:'available_space_in_bytes']

  self.used_space_in_bytes = attributes[:'usedSpaceInBytes'] if attributes[:'usedSpaceInBytes']

  raise 'You cannot provide both :usedSpaceInBytes and :used_space_in_bytes' if attributes.key?(:'usedSpaceInBytes') && attributes.key?(:'used_space_in_bytes')

  self.used_space_in_bytes = attributes[:'used_space_in_bytes'] if attributes[:'used_space_in_bytes']

  self.committed_space_in_bytes = attributes[:'committedSpaceInBytes'] if attributes[:'committedSpaceInBytes']

  raise 'You cannot provide both :committedSpaceInBytes and :committed_space_in_bytes' if attributes.key?(:'committedSpaceInBytes') && attributes.key?(:'committed_space_in_bytes')

  self.committed_space_in_bytes = attributes[:'committed_space_in_bytes'] if attributes[:'committed_space_in_bytes']

  self.block_size_in_bytes = attributes[:'blockSizeInBytes'] if attributes[:'blockSizeInBytes']

  raise 'You cannot provide both :blockSizeInBytes and :block_size_in_bytes' if attributes.key?(:'blockSizeInBytes') && attributes.key?(:'block_size_in_bytes')

  self.block_size_in_bytes = attributes[:'block_size_in_bytes'] if attributes[:'block_size_in_bytes']

  self.is_backup = attributes[:'isBackup'] unless attributes[:'isBackup'].nil?

  raise 'You cannot provide both :isBackup and :is_backup' if attributes.key?(:'isBackup') && attributes.key?(:'is_backup')

  self.is_backup = attributes[:'is_backup'] unless attributes[:'is_backup'].nil?

  self.is_primary = attributes[:'isPrimary'] unless attributes[:'isPrimary'].nil?

  raise 'You cannot provide both :isPrimary and :is_primary' if attributes.key?(:'isPrimary') && attributes.key?(:'is_primary')

  self.is_primary = attributes[:'is_primary'] unless attributes[:'is_primary'].nil?

  self.is_import = attributes[:'isImport'] unless attributes[:'isImport'].nil?

  raise 'You cannot provide both :isImport and :is_import' if attributes.key?(:'isImport') && attributes.key?(:'is_import')

  self.is_import = attributes[:'is_import'] unless attributes[:'is_import'].nil?

  self.is_discard_after_delete = attributes[:'isDiscardAfterDelete'] unless attributes[:'isDiscardAfterDelete'].nil?

  raise 'You cannot provide both :isDiscardAfterDelete and :is_discard_after_delete' if attributes.key?(:'isDiscardAfterDelete') && attributes.key?(:'is_discard_after_delete')

  self.is_discard_after_delete = attributes[:'is_discard_after_delete'] unless attributes[:'is_discard_after_delete'].nil?

  self.is_support_discard = attributes[:'isSupportDiscard'] unless attributes[:'isSupportDiscard'].nil?

  raise 'You cannot provide both :isSupportDiscard and :is_support_discard' if attributes.key?(:'isSupportDiscard') && attributes.key?(:'is_support_discard')

  self.is_support_discard = attributes[:'is_support_discard'] unless attributes[:'is_support_discard'].nil?

  self.is_support_discard_zeroes_data = attributes[:'isSupportDiscardZeroesData'] unless attributes[:'isSupportDiscardZeroesData'].nil?

  raise 'You cannot provide both :isSupportDiscardZeroesData and :is_support_discard_zeroes_data' if attributes.key?(:'isSupportDiscardZeroesData') && attributes.key?(:'is_support_discard_zeroes_data')

  self.is_support_discard_zeroes_data = attributes[:'is_support_discard_zeroes_data'] unless attributes[:'is_support_discard_zeroes_data'].nil?

  self.is_wipe_after_delete = attributes[:'isWipeAfterDelete'] unless attributes[:'isWipeAfterDelete'].nil?

  raise 'You cannot provide both :isWipeAfterDelete and :is_wipe_after_delete' if attributes.key?(:'isWipeAfterDelete') && attributes.key?(:'is_wipe_after_delete')

  self.is_wipe_after_delete = attributes[:'is_wipe_after_delete'] unless attributes[:'is_wipe_after_delete'].nil?

  self.critical_space_action_blocker_in_gbs = attributes[:'criticalSpaceActionBlockerInGBs'] if attributes[:'criticalSpaceActionBlockerInGBs']

  raise 'You cannot provide both :criticalSpaceActionBlockerInGBs and :critical_space_action_blocker_in_gbs' if attributes.key?(:'criticalSpaceActionBlockerInGBs') && attributes.key?(:'critical_space_action_blocker_in_gbs')

  self.critical_space_action_blocker_in_gbs = attributes[:'critical_space_action_blocker_in_gbs'] if attributes[:'critical_space_action_blocker_in_gbs']

  self.warning_low_space_indicator_in_percentage = attributes[:'warningLowSpaceIndicatorInPercentage'] if attributes[:'warningLowSpaceIndicatorInPercentage']

  raise 'You cannot provide both :warningLowSpaceIndicatorInPercentage and :warning_low_space_indicator_in_percentage' if attributes.key?(:'warningLowSpaceIndicatorInPercentage') && attributes.key?(:'warning_low_space_indicator_in_percentage')

  self.warning_low_space_indicator_in_percentage = attributes[:'warning_low_space_indicator_in_percentage'] if attributes[:'warning_low_space_indicator_in_percentage']

  self.external_status = attributes[:'externalStatus'] if attributes[:'externalStatus']

  raise 'You cannot provide both :externalStatus and :external_status' if attributes.key?(:'externalStatus') && attributes.key?(:'external_status')

  self.external_status = attributes[:'external_status'] if attributes[:'external_status']

  self.storage_domain_status = attributes[:'storageDomainStatus'] if attributes[:'storageDomainStatus']

  raise 'You cannot provide both :storageDomainStatus and :storage_domain_status' if attributes.key?(:'storageDomainStatus') && attributes.key?(:'storage_domain_status')

  self.storage_domain_status = attributes[:'storage_domain_status'] if attributes[:'storage_domain_status']

  self.storage = attributes[:'storage'] if attributes[:'storage']

  self.storage_format = attributes[:'storageFormat'] if attributes[:'storageFormat']

  raise 'You cannot provide both :storageFormat and :storage_format' if attributes.key?(:'storageFormat') && attributes.key?(:'storage_format')

  self.storage_format = attributes[:'storage_format'] if attributes[:'storage_format']

  self.storage_domain_type = attributes[:'storageDomainType'] if attributes[:'storageDomainType']

  raise 'You cannot provide both :storageDomainType and :storage_domain_type' if attributes.key?(:'storageDomainType') && attributes.key?(:'storage_domain_type')

  self.storage_domain_type = attributes[:'storage_domain_type'] if attributes[:'storage_domain_type']

  self.data_centers = attributes[:'dataCenters'] if attributes[:'dataCenters']

  raise 'You cannot provide both :dataCenters and :data_centers' if attributes.key?(:'dataCenters') && attributes.key?(:'data_centers')

  self.data_centers = attributes[:'data_centers'] if attributes[:'data_centers']
end

Instance Attribute Details

#available_space_in_bytesInteger

Space available in bytes.

Returns:

  • (Integer)


63
64
65
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 63

def available_space_in_bytes
  @available_space_in_bytes
end

#block_size_in_bytesInteger

Block size in bytes.

Returns:

  • (Integer)


75
76
77
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 75

def block_size_in_bytes
  @block_size_in_bytes
end

#commentString

Free text containing comments about this object.

Returns:

  • (String)


59
60
61
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 59

def comment
  @comment
end

#committed_space_in_bytesInteger

Space committed in bytes.

Returns:

  • (Integer)


71
72
73
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 71

def committed_space_in_bytes
  @committed_space_in_bytes
end

#critical_space_action_blocker_in_gbsInteger

Ensure storage domain always has at least this amount of unoccupied space in GBs.

Returns:

  • (Integer)


107
108
109
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 107

def critical_space_action_blocker_in_gbs
  @critical_space_action_blocker_in_gbs
end

#data_centersArray<OCI::CloudBridge::Models::OlvmDataCenter>

List of data centers where storage domain belongs



134
135
136
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 134

def data_centers
  @data_centers
end

#external_statusString

Status of storage domain.

Returns:

  • (String)


115
116
117
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 115

def external_status
  @external_status
end

#is_backupBOOLEAN

Whether a data storage domain is used as backup domain or not.

Returns:

  • (BOOLEAN)


79
80
81
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 79

def is_backup
  @is_backup
end

#is_discard_after_deleteBOOLEAN

Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted.

Returns:

  • (BOOLEAN)


91
92
93
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 91

def is_discard_after_delete
  @is_discard_after_delete
end

#is_importBOOLEAN

Whether this storage domain is imported.

Returns:

  • (BOOLEAN)


87
88
89
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 87

def is_import
  @is_import
end

#is_primaryBOOLEAN

Indicates if this is the primary (master) storage domain of a data center.

Returns:

  • (BOOLEAN)


83
84
85
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 83

def is_primary
  @is_primary
end

#is_support_discardBOOLEAN

Indicates whether a block storage domain supports discard operations

Returns:

  • (BOOLEAN)


95
96
97
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 95

def is_support_discard
  @is_support_discard
end

#is_support_discard_zeroes_dataBOOLEAN

Indicates whether a block storage domain supports the property that discard zeroes the data.

Returns:

  • (BOOLEAN)


99
100
101
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 99

def is_support_discard_zeroes_data
  @is_support_discard_zeroes_data
end

#is_wipe_after_deleteBOOLEAN

Serves as the default value of wipe_after_delete for disks on this storage domain.

Returns:

  • (BOOLEAN)


103
104
105
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 103

def is_wipe_after_delete
  @is_wipe_after_delete
end

#storageOCI::CloudBridge::Models::Storage



122
123
124
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 122

def storage
  @storage
end

#storage_domain_descriptionString

A human-readable description in plain text.

Returns:

  • (String)


55
56
57
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 55

def storage_domain_description
  @storage_domain_description
end

#storage_domain_nameString

[Required] A human-readable name in plain text.

Returns:

  • (String)


51
52
53
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 51

def storage_domain_name
  @storage_domain_name
end

#storage_domain_statusString

Status of storage domain.

Returns:

  • (String)


119
120
121
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 119

def storage_domain_status
  @storage_domain_status
end

#storage_domain_typeString

Indicates the kind of data managed by a storage domain.

Returns:

  • (String)


130
131
132
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 130

def storage_domain_type
  @storage_domain_type
end

#storage_formatString

Type which represents a format of storage domain.

Returns:

  • (String)


126
127
128
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 126

def storage_format
  @storage_format
end

#used_space_in_bytesInteger

Space used in bytes.

Returns:

  • (Integer)


67
68
69
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 67

def used_space_in_bytes
  @used_space_in_bytes
end

#warning_low_space_indicator_in_percentageInteger

If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged.

Returns:

  • (Integer)


111
112
113
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 111

def warning_low_space_indicator_in_percentage
  @warning_low_space_indicator_in_percentage
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 137

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'storage_domain_name': :'storageDomainName',
    'storage_domain_description': :'storageDomainDescription',
    'comment': :'comment',
    'available_space_in_bytes': :'availableSpaceInBytes',
    'used_space_in_bytes': :'usedSpaceInBytes',
    'committed_space_in_bytes': :'committedSpaceInBytes',
    'block_size_in_bytes': :'blockSizeInBytes',
    'is_backup': :'isBackup',
    'is_primary': :'isPrimary',
    'is_import': :'isImport',
    'is_discard_after_delete': :'isDiscardAfterDelete',
    'is_support_discard': :'isSupportDiscard',
    'is_support_discard_zeroes_data': :'isSupportDiscardZeroesData',
    'is_wipe_after_delete': :'isWipeAfterDelete',
    'critical_space_action_blocker_in_gbs': :'criticalSpaceActionBlockerInGBs',
    'warning_low_space_indicator_in_percentage': :'warningLowSpaceIndicatorInPercentage',
    'external_status': :'externalStatus',
    'storage_domain_status': :'storageDomainStatus',
    'storage': :'storage',
    'storage_format': :'storageFormat',
    'storage_domain_type': :'storageDomainType',
    'data_centers': :'dataCenters'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 167

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'storage_domain_name': :'String',
    'storage_domain_description': :'String',
    'comment': :'String',
    'available_space_in_bytes': :'Integer',
    'used_space_in_bytes': :'Integer',
    'committed_space_in_bytes': :'Integer',
    'block_size_in_bytes': :'Integer',
    'is_backup': :'BOOLEAN',
    'is_primary': :'BOOLEAN',
    'is_import': :'BOOLEAN',
    'is_discard_after_delete': :'BOOLEAN',
    'is_support_discard': :'BOOLEAN',
    'is_support_discard_zeroes_data': :'BOOLEAN',
    'is_wipe_after_delete': :'BOOLEAN',
    'critical_space_action_blocker_in_gbs': :'Integer',
    'warning_low_space_indicator_in_percentage': :'Integer',
    'external_status': :'String',
    'storage_domain_status': :'String',
    'storage': :'OCI::CloudBridge::Models::Storage',
    'storage_format': :'String',
    'storage_domain_type': :'String',
    'data_centers': :'Array<OCI::CloudBridge::Models::OlvmDataCenter>'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 394

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    storage_domain_name == other.storage_domain_name &&
    storage_domain_description == other.storage_domain_description &&
    comment == other.comment &&
    available_space_in_bytes == other.available_space_in_bytes &&
    used_space_in_bytes == other.used_space_in_bytes &&
    committed_space_in_bytes == other.committed_space_in_bytes &&
    block_size_in_bytes == other.block_size_in_bytes &&
    is_backup == other.is_backup &&
    is_primary == other.is_primary &&
    is_import == other.is_import &&
    is_discard_after_delete == other.is_discard_after_delete &&
    is_support_discard == other.is_support_discard &&
    is_support_discard_zeroes_data == other.is_support_discard_zeroes_data &&
    is_wipe_after_delete == other.is_wipe_after_delete &&
    critical_space_action_blocker_in_gbs == other.critical_space_action_blocker_in_gbs &&
    warning_low_space_indicator_in_percentage == other.warning_low_space_indicator_in_percentage &&
    external_status == other.external_status &&
    storage_domain_status == other.storage_domain_status &&
    storage == other.storage &&
    storage_format == other.storage_format &&
    storage_domain_type == other.storage_domain_type &&
    data_centers == other.data_centers
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 445

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


425
426
427
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 425

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



434
435
436
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 434

def hash
  [storage_domain_name, storage_domain_description, comment, available_space_in_bytes, used_space_in_bytes, committed_space_in_bytes, block_size_in_bytes, is_backup, is_primary, is_import, is_discard_after_delete, is_support_discard, is_support_discard_zeroes_data, is_wipe_after_delete, critical_space_action_blocker_in_gbs, warning_low_space_indicator_in_percentage, external_status, storage_domain_status, storage, storage_format, storage_domain_type, data_centers].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



478
479
480
481
482
483
484
485
486
487
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 478

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



472
473
474
# File 'lib/oci/cloud_bridge/models/olvm_storage_domain_properties.rb', line 472

def to_s
  to_hash.to_s
end