Class: OCI::GoldenGate::Models::DeploymentBackupSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/golden_gate/models/deployment_backup_summary.rb

Overview

The summary of the Backup.

Constant Summary collapse

DEPLOYMENT_TYPE_ENUM =
[
  DEPLOYMENT_TYPE_OGG = 'OGG'.freeze,
  DEPLOYMENT_TYPE_DATABASE_ORACLE = 'DATABASE_ORACLE'.freeze,
  DEPLOYMENT_TYPE_BIGDATA = 'BIGDATA'.freeze,
  DEPLOYMENT_TYPE_DATABASE_MICROSOFT_SQLSERVER = 'DATABASE_MICROSOFT_SQLSERVER'.freeze,
  DEPLOYMENT_TYPE_DATABASE_MYSQL = 'DATABASE_MYSQL'.freeze,
  DEPLOYMENT_TYPE_DATABASE_POSTGRESQL = 'DATABASE_POSTGRESQL'.freeze,
  DEPLOYMENT_TYPE_DATABASE_DB2_ZOS = 'DATABASE_DB2ZOS'.freeze,
  DEPLOYMENT_TYPE_DATABASE_DB2_I = 'DATABASE_DB2I'.freeze,
  DEPLOYMENT_TYPE_GGSA = 'GGSA'.freeze,
  DEPLOYMENT_TYPE_DATA_TRANSFORMS = 'DATA_TRANSFORMS'.freeze,
  DEPLOYMENT_TYPE_VERIDATA_SERVER = 'VERIDATA_SERVER'.freeze,
  DEPLOYMENT_TYPE_VERIDATA_AGENT = 'VERIDATA_AGENT'.freeze,
  DEPLOYMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
BACKUP_SOURCE_TYPE_ENUM =
[
  BACKUP_SOURCE_TYPE_MANUAL = 'MANUAL'.freeze,
  BACKUP_SOURCE_TYPE_AUTOMATIC = 'AUTOMATIC'.freeze,
  BACKUP_SOURCE_TYPE_SCHEDULED = 'SCHEDULED'.freeze,
  BACKUP_SOURCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
BACKUP_TYPE_ENUM =
[
  BACKUP_TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
  BACKUP_TYPE_FULL = 'FULL'.freeze,
  BACKUP_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DeploymentBackupSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :id (String)

    The value to assign to the #id property

  • :deployment_id (String)

    The value to assign to the #deployment_id property

  • :deployment_type (String)

    The value to assign to the #deployment_type property

  • :compartment_id (String)

    The value to assign to the #compartment_id property

  • :display_name (String)

    The value to assign to the #display_name property

  • :is_automatic (BOOLEAN)

    The value to assign to the #is_automatic property

  • :backup_source_type (String)

    The value to assign to the #backup_source_type property

  • :lifecycle_state (String)

    The value to assign to the #lifecycle_state property

  • :lifecycle_details (String)

    The value to assign to the #lifecycle_details property

  • :time_of_backup (DateTime)

    The value to assign to the #time_of_backup property

  • :time_backup_finished (DateTime)

    The value to assign to the #time_backup_finished property

  • :size_in_bytes (Integer)

    The value to assign to the #size_in_bytes property

  • :backup_type (String)

    The value to assign to the #backup_type property

  • :ogg_version (String)

    The value to assign to the #ogg_version property

  • :namespace_name (String)

    The value to assign to the #namespace_name property

  • :bucket_name (String)

    The value to assign to the #bucket_name property

  • :object_name (String)

    The value to assign to the #object_name property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :time_updated (DateTime)

    The value to assign to the #time_updated property

  • :freeform_tags (Hash<String, String>)

    The value to assign to the #freeform_tags property

  • :defined_tags (Hash<String, Hash<String, Object>>)

    The value to assign to the #defined_tags property

  • :system_tags (Hash<String, Hash<String, Object>>)

    The value to assign to the #system_tags property

  • :is_metadata_only (BOOLEAN)

    The value to assign to the #is_metadata_only property

  • :locks (Array<OCI::GoldenGate::Models::ResourceLock>)

    The value to assign to the #locks property



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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 267

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.id = attributes[:'id'] if attributes[:'id']

  self.deployment_id = attributes[:'deploymentId'] if attributes[:'deploymentId']

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

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

  self.deployment_type = attributes[:'deploymentType'] if attributes[:'deploymentType']

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

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

  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

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

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

  self.display_name = attributes[:'displayName'] if attributes[:'displayName']

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

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

  self.is_automatic = attributes[:'isAutomatic'] unless attributes[:'isAutomatic'].nil?

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

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

  self.backup_source_type = attributes[:'backupSourceType'] if attributes[:'backupSourceType']

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

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

  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']

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

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

  self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']

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

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

  self.time_of_backup = attributes[:'timeOfBackup'] if attributes[:'timeOfBackup']

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

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

  self.time_backup_finished = attributes[:'timeBackupFinished'] if attributes[:'timeBackupFinished']

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

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

  self.size_in_bytes = attributes[:'sizeInBytes'] if attributes[:'sizeInBytes']

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

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

  self.backup_type = attributes[:'backupType'] if attributes[:'backupType']

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

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

  self.ogg_version = attributes[:'oggVersion'] if attributes[:'oggVersion']

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

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

  self.namespace_name = attributes[:'namespaceName'] if attributes[:'namespaceName']

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

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

  self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName']

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

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

  self.object_name = attributes[:'objectName'] if attributes[:'objectName']

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

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

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

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

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

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

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

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

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

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

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

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

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

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

  self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']

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

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

  self. = attributes[:'isMetadataOnly'] unless attributes[:'isMetadataOnly'].nil?
  self. = false if .nil? && !attributes.key?(:'isMetadataOnly') # rubocop:disable Style/StringLiterals

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

  self. = attributes[:'is_metadata_only'] unless attributes[:'is_metadata_only'].nil?
  self. = false if .nil? && !attributes.key?(:'isMetadataOnly') && !attributes.key?(:'is_metadata_only') # rubocop:disable Style/StringLiterals

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

Instance Attribute Details

#backup_source_typeString

Possible deployment backup source types.

Returns:

  • (String)


77
78
79
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 77

def backup_source_type
  @backup_source_type
end

#backup_typeString

Possible Deployment backup types.

Returns:

  • (String)


110
111
112
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 110

def backup_type
  @backup_type
end

#bucket_nameString

Name of the bucket where the object is to be uploaded in the object storage

Returns:

  • (String)


123
124
125
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 123

def bucket_name
  @bucket_name
end

#compartment_idString

[Required] The OCID of the compartment being referenced.

Returns:

  • (String)


62
63
64
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 62

def compartment_id
  @compartment_id
end

#defined_tagsHash<String, Hash<String, Object>>

Tags defined for this resource. Each key is predefined and scoped to a namespace.

Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


154
155
156
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 154

def defined_tags
  @defined_tags
end

#deployment_idString

[Required] The OCID of the deployment being referenced.

Returns:

  • (String)


50
51
52
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 50

def deployment_id
  @deployment_id
end

#deployment_typeString

[Required] The type of deployment, which can be any one of the Allowed values. NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. Its use is discouraged in favor of 'DATABASE_ORACLE'.

Returns:

  • (String)


57
58
59
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 57

def deployment_type
  @deployment_type
end

#display_nameString

An object's Display Name.

Returns:

  • (String)


67
68
69
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 67

def display_name
  @display_name
end

#freeform_tagsHash<String, String>

A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.

Example: {\"bar-key\": \"value\"}

Returns:

  • (Hash<String, String>)


147
148
149
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 147

def freeform_tags
  @freeform_tags
end

#idString

[Required] The OCID of the backup being referenced.

Returns:

  • (String)


45
46
47
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 45

def id
  @id
end

#is_automaticBOOLEAN

True if this object is automatically created

Returns:

  • (BOOLEAN)


72
73
74
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 72

def is_automatic
  @is_automatic
end

#is_metadata_onlyBOOLEAN

Parameter to allow users to create backup without trails

Returns:

  • (BOOLEAN)


167
168
169
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 167

def 
  @is_metadata_only
end

#lifecycle_detailsString

Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.

Returns:

  • (String)


88
89
90
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 88

def lifecycle_details
  @lifecycle_details
end

#lifecycle_stateString

[Required] Possible lifecycle states for a Deployment Backup.

Returns:

  • (String)


82
83
84
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 82

def lifecycle_state
  @lifecycle_state
end

#locksArray<OCI::GoldenGate::Models::ResourceLock>

Locks associated with this resource.



171
172
173
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 171

def locks
  @locks
end

#namespace_nameString

Name of namespace that serves as a container for all of your buckets

Returns:

  • (String)


119
120
121
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 119

def namespace_name
  @namespace_name
end

#object_nameString

Name of the object to be uploaded to object storage

Returns:

  • (String)


127
128
129
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 127

def object_name
  @object_name
end

#ogg_versionString

[Required] Version of OGG

Returns:

  • (String)


115
116
117
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 115

def ogg_version
  @ogg_version
end

#size_in_bytesInteger

The size of the backup stored in object storage (in bytes)

Returns:

  • (Integer)


105
106
107
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 105

def size_in_bytes
  @size_in_bytes
end

#system_tagsHash<String, Hash<String, Object>>

The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags.

Example: {orcl-cloud: {free-tier-retain: true}}

Returns:

  • (Hash<String, Hash<String, Object>>)


163
164
165
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 163

def system_tags
  @system_tags
end

#time_backup_finishedDateTime

The time of the resource backup finish. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


100
101
102
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 100

def time_backup_finished
  @time_backup_finished
end

#time_createdDateTime

The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


133
134
135
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 133

def time_created
  @time_created
end

#time_of_backupDateTime

The time of the resource backup. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


94
95
96
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 94

def time_of_backup
  @time_of_backup
end

#time_updatedDateTime

The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

Returns:

  • (DateTime)


139
140
141
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 139

def time_updated
  @time_updated
end

Class Method Details

.attribute_mapObject

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



174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 174

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'deployment_id': :'deploymentId',
    'deployment_type': :'deploymentType',
    'compartment_id': :'compartmentId',
    'display_name': :'displayName',
    'is_automatic': :'isAutomatic',
    'backup_source_type': :'backupSourceType',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_details': :'lifecycleDetails',
    'time_of_backup': :'timeOfBackup',
    'time_backup_finished': :'timeBackupFinished',
    'size_in_bytes': :'sizeInBytes',
    'backup_type': :'backupType',
    'ogg_version': :'oggVersion',
    'namespace_name': :'namespaceName',
    'bucket_name': :'bucketName',
    'object_name': :'objectName',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags',
    'is_metadata_only': :'isMetadataOnly',
    'locks': :'locks'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 206

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'deployment_id': :'String',
    'deployment_type': :'String',
    'compartment_id': :'String',
    'display_name': :'String',
    'is_automatic': :'BOOLEAN',
    'backup_source_type': :'String',
    'lifecycle_state': :'String',
    'lifecycle_details': :'String',
    'time_of_backup': :'DateTime',
    'time_backup_finished': :'DateTime',
    'size_in_bytes': :'Integer',
    'backup_type': :'String',
    'ogg_version': :'String',
    'namespace_name': :'String',
    'bucket_name': :'String',
    'object_name': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>',
    'is_metadata_only': :'BOOLEAN',
    'locks': :'Array<OCI::GoldenGate::Models::ResourceLock>'
    # 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



458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 458

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

  self.class == other.class &&
    id == other.id &&
    deployment_id == other.deployment_id &&
    deployment_type == other.deployment_type &&
    compartment_id == other.compartment_id &&
    display_name == other.display_name &&
    is_automatic == other.is_automatic &&
    backup_source_type == other.backup_source_type &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_details == other.lifecycle_details &&
    time_of_backup == other.time_of_backup &&
    time_backup_finished == other.time_backup_finished &&
    size_in_bytes == other.size_in_bytes &&
    backup_type == other.backup_type &&
    ogg_version == other.ogg_version &&
    namespace_name == other.namespace_name &&
    bucket_name == other.bucket_name &&
    object_name == other.object_name &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags &&
     == other. &&
    locks == other.locks
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



511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 511

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


491
492
493
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 491

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



500
501
502
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 500

def hash
  [id, deployment_id, deployment_type, compartment_id, display_name, is_automatic, backup_source_type, lifecycle_state, lifecycle_details, time_of_backup, time_backup_finished, size_in_bytes, backup_type, ogg_version, namespace_name, bucket_name, object_name, time_created, time_updated, freeform_tags, defined_tags, system_tags, , locks].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



544
545
546
547
548
549
550
551
552
553
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 544

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



538
539
540
# File 'lib/oci/golden_gate/models/deployment_backup_summary.rb', line 538

def to_s
  to_hash.to_s
end