Class: OCI::Opsi::Models::AwrHubSource

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/opsi/models/awr_hub_source.rb

Overview

Awr hub source object

Constant Summary collapse

TYPE_ENUM =
[
  TYPE_ADW_S = 'ADW_S'.freeze,
  TYPE_ATP_S = 'ATP_S'.freeze,
  TYPE_ADW_D = 'ADW_D'.freeze,
  TYPE_ATP_D = 'ATP_D'.freeze,
  TYPE_EXTERNAL_PDB = 'EXTERNAL_PDB'.freeze,
  TYPE_EXTERNAL_NONCDB = 'EXTERNAL_NONCDB'.freeze,
  TYPE_COMANAGED_VM_CDB = 'COMANAGED_VM_CDB'.freeze,
  TYPE_COMANAGED_VM_PDB = 'COMANAGED_VM_PDB'.freeze,
  TYPE_COMANAGED_VM_NONCDB = 'COMANAGED_VM_NONCDB'.freeze,
  TYPE_COMANAGED_BM_CDB = 'COMANAGED_BM_CDB'.freeze,
  TYPE_COMANAGED_BM_PDB = 'COMANAGED_BM_PDB'.freeze,
  TYPE_COMANAGED_BM_NONCDB = 'COMANAGED_BM_NONCDB'.freeze,
  TYPE_COMANAGED_EXACS_CDB = 'COMANAGED_EXACS_CDB'.freeze,
  TYPE_COMANAGED_EXACS_PDB = 'COMANAGED_EXACS_PDB'.freeze,
  TYPE_COMANAGED_EXACS_NONCDB = 'COMANAGED_EXACS_NONCDB'.freeze,
  TYPE_LH_S = 'LH_S'.freeze,
  TYPE_APEX_S = 'APEX_S'.freeze,
  TYPE_AJD_S = 'AJD_S'.freeze,
  TYPE_AVD_S = 'AVD_S'.freeze,
  TYPE_LH_D = 'LH_D'.freeze,
  TYPE_APEX_D = 'APEX_D'.freeze,
  TYPE_AJD_D = 'AJD_D'.freeze,
  TYPE_AVD_D = 'AVD_D'.freeze,
  TYPE_UNDEFINED = 'UNDEFINED'.freeze,
  TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
STATUS_ENUM =
[
  STATUS_ACCEPTING = 'ACCEPTING'.freeze,
  STATUS_NOT_ACCEPTING = 'NOT_ACCEPTING'.freeze,
  STATUS_NOT_REGISTERED = 'NOT_REGISTERED'.freeze,
  STATUS_TERMINATED = 'TERMINATED'.freeze,
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AwrHubSource

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :name (String)

    The value to assign to the #name property

  • :awr_hub_id (String)

    The value to assign to the #awr_hub_id property

  • :compartment_id (String)

    The value to assign to the #compartment_id property

  • :type (String)

    The value to assign to the #type property

  • :id (String)

    The value to assign to the #id property

  • :awr_hub_opsi_source_id (String)

    The value to assign to the #awr_hub_opsi_source_id property

  • :source_mail_box_url (String)

    The value to assign to the #source_mail_box_url property

  • :associated_resource_id (String)

    The value to assign to the #associated_resource_id property

  • :associated_opsi_id (String)

    The value to assign to the #associated_opsi_id 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_registered_with_awr_hub (BOOLEAN)

    The value to assign to the #is_registered_with_awr_hub property

  • :awr_source_database_id (String)

    The value to assign to the #awr_source_database_id property

  • :min_snapshot_identifier (Float)

    The value to assign to the #min_snapshot_identifier property

  • :max_snapshot_identifier (Float)

    The value to assign to the #max_snapshot_identifier property

  • :time_first_snapshot_generated (DateTime)

    The value to assign to the #time_first_snapshot_generated property

  • :time_last_snapshot_generated (DateTime)

    The value to assign to the #time_last_snapshot_generated property

  • :hours_since_last_import (Float)

    The value to assign to the #hours_since_last_import property

  • :lifecycle_state (String)

    The value to assign to the #lifecycle_state property

  • :status (String)

    The value to assign to the #status property



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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 247

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

  self.awr_hub_id = attributes[:'awrHubId'] if attributes[:'awrHubId']

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

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

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

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

  self.awr_hub_opsi_source_id = attributes[:'awrHubOpsiSourceId'] if attributes[:'awrHubOpsiSourceId']

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

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

  self.source_mail_box_url = attributes[:'sourceMailBoxUrl'] if attributes[:'sourceMailBoxUrl']

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

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

  self.associated_resource_id = attributes[:'associatedResourceId'] if attributes[:'associatedResourceId']

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

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

  self.associated_opsi_id = attributes[:'associatedOpsiId'] if attributes[:'associatedOpsiId']

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

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

  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.is_registered_with_awr_hub = attributes[:'isRegisteredWithAwrHub'] unless attributes[:'isRegisteredWithAwrHub'].nil?

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

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

  self.awr_source_database_id = attributes[:'awrSourceDatabaseId'] if attributes[:'awrSourceDatabaseId']

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

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

  self.min_snapshot_identifier = attributes[:'minSnapshotIdentifier'] if attributes[:'minSnapshotIdentifier']

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

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

  self.max_snapshot_identifier = attributes[:'maxSnapshotIdentifier'] if attributes[:'maxSnapshotIdentifier']

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

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

  self.time_first_snapshot_generated = attributes[:'timeFirstSnapshotGenerated'] if attributes[:'timeFirstSnapshotGenerated']

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

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

  self.time_last_snapshot_generated = attributes[:'timeLastSnapshotGenerated'] if attributes[:'timeLastSnapshotGenerated']

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

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

  self.hours_since_last_import = attributes[:'hoursSinceLastImport'] if attributes[:'hoursSinceLastImport']

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

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

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

Instance Attribute Details

#associated_opsi_idString

The OCID of the database id.

Returns:

  • (String)


92
93
94
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 92

def associated_opsi_id
  @associated_opsi_id
end

#associated_resource_idString

The OCID of the database id.

Returns:

  • (String)


88
89
90
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 88

def associated_resource_id
  @associated_resource_id
end

#awr_hub_idString

[Required] AWR Hub OCID

Returns:

  • (String)


64
65
66
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 64

def awr_hub_id
  @awr_hub_id
end

#awr_hub_opsi_source_idString

[Required] The shorted string of the Awr Hub source database identifier.

Returns:

  • (String)


80
81
82
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 80

def awr_hub_opsi_source_id
  @awr_hub_opsi_source_id
end

#awr_source_database_idString

DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.

Returns:

  • (String)


126
127
128
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 126

def awr_source_database_id
  @awr_source_database_id
end

#compartment_idString

[Required] The OCID of the compartment.

Returns:

  • (String)


68
69
70
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 68

def compartment_id
  @compartment_id
end

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

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}

Returns:

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


112
113
114
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 112

def defined_tags
  @defined_tags
end

#freeform_tagsHash<String, String>

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


106
107
108
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 106

def freeform_tags
  @freeform_tags
end

#hours_since_last_importFloat

Number of hours since last AWR snapshots import happened from the Source database.

Returns:

  • (Float)


146
147
148
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 146

def hours_since_last_import
  @hours_since_last_import
end

#idString

[Required] The OCID of the Awr Hub source database.

Returns:

  • (String)


76
77
78
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 76

def id
  @id
end

#is_registered_with_awr_hubBOOLEAN

This is true if the source databse is registered with a Awr Hub, otherwise false

Returns:

  • (BOOLEAN)


122
123
124
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 122

def is_registered_with_awr_hub
  @is_registered_with_awr_hub
end

#lifecycle_stateString

[Required] the current state of the source database

Returns:

  • (String)


150
151
152
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 150

def lifecycle_state
  @lifecycle_state
end

#max_snapshot_identifierFloat

The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.

Returns:

  • (Float)


134
135
136
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 134

def max_snapshot_identifier
  @max_snapshot_identifier
end

#min_snapshot_identifierFloat

The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.

Returns:

  • (Float)


130
131
132
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 130

def min_snapshot_identifier
  @min_snapshot_identifier
end

#nameString

[Required] The name of the Awr Hub source database.

Returns:

  • (String)


60
61
62
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 60

def name
  @name
end

#source_mail_box_urlString

[Required] Opsi Mailbox URL based on the Awr Hub and Awr Hub source.

Returns:

  • (String)


84
85
86
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 84

def source_mail_box_url
  @source_mail_box_url
end

#statusString

[Required] Indicates the status of a source database in Operations Insights

Returns:

  • (String)


154
155
156
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 154

def status
  @status
end

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

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}

Returns:

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


118
119
120
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 118

def system_tags
  @system_tags
end

#time_createdDateTime

[Required] The time at which the resource was first created. An RFC3339 formatted datetime string

Returns:

  • (DateTime)


96
97
98
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 96

def time_created
  @time_created
end

#time_first_snapshot_generatedDateTime

The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string

Returns:

  • (DateTime)


138
139
140
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 138

def time_first_snapshot_generated
  @time_first_snapshot_generated
end

#time_last_snapshot_generatedDateTime

The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string

Returns:

  • (DateTime)


142
143
144
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 142

def time_last_snapshot_generated
  @time_last_snapshot_generated
end

#time_updatedDateTime

The time at which the resource was last updated. An RFC3339 formatted datetime string

Returns:

  • (DateTime)


100
101
102
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 100

def time_updated
  @time_updated
end

#typeString

[Required] source type of the database

Returns:

  • (String)


72
73
74
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 72

def type
  @type
end

Class Method Details

.attribute_mapObject

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



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 157

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'name': :'name',
    'awr_hub_id': :'awrHubId',
    'compartment_id': :'compartmentId',
    'type': :'type',
    'id': :'id',
    'awr_hub_opsi_source_id': :'awrHubOpsiSourceId',
    'source_mail_box_url': :'sourceMailBoxUrl',
    'associated_resource_id': :'associatedResourceId',
    'associated_opsi_id': :'associatedOpsiId',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags',
    'is_registered_with_awr_hub': :'isRegisteredWithAwrHub',
    'awr_source_database_id': :'awrSourceDatabaseId',
    'min_snapshot_identifier': :'minSnapshotIdentifier',
    'max_snapshot_identifier': :'maxSnapshotIdentifier',
    'time_first_snapshot_generated': :'timeFirstSnapshotGenerated',
    'time_last_snapshot_generated': :'timeLastSnapshotGenerated',
    'hours_since_last_import': :'hoursSinceLastImport',
    'lifecycle_state': :'lifecycleState',
    'status': :'status'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 188

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'name': :'String',
    'awr_hub_id': :'String',
    'compartment_id': :'String',
    'type': :'String',
    'id': :'String',
    'awr_hub_opsi_source_id': :'String',
    'source_mail_box_url': :'String',
    'associated_resource_id': :'String',
    'associated_opsi_id': :'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_registered_with_awr_hub': :'BOOLEAN',
    'awr_source_database_id': :'String',
    'min_snapshot_identifier': :'Float',
    'max_snapshot_identifier': :'Float',
    'time_first_snapshot_generated': :'DateTime',
    'time_last_snapshot_generated': :'DateTime',
    'hours_since_last_import': :'Float',
    'lifecycle_state': :'String',
    'status': :'String'
    # 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



422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 422

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

  self.class == other.class &&
    name == other.name &&
    awr_hub_id == other.awr_hub_id &&
    compartment_id == other.compartment_id &&
    type == other.type &&
    id == other.id &&
    awr_hub_opsi_source_id == other.awr_hub_opsi_source_id &&
    source_mail_box_url == other.source_mail_box_url &&
    associated_resource_id == other.associated_resource_id &&
    associated_opsi_id == other.associated_opsi_id &&
    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 &&
    is_registered_with_awr_hub == other.is_registered_with_awr_hub &&
    awr_source_database_id == other.awr_source_database_id &&
    min_snapshot_identifier == other.min_snapshot_identifier &&
    max_snapshot_identifier == other.max_snapshot_identifier &&
    time_first_snapshot_generated == other.time_first_snapshot_generated &&
    time_last_snapshot_generated == other.time_last_snapshot_generated &&
    hours_since_last_import == other.hours_since_last_import &&
    lifecycle_state == other.lifecycle_state &&
    status == other.status
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



474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 474

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


454
455
456
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 454

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



463
464
465
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 463

def hash
  [name, awr_hub_id, compartment_id, type, id, awr_hub_opsi_source_id, source_mail_box_url, associated_resource_id, associated_opsi_id, time_created, time_updated, freeform_tags, defined_tags, system_tags, is_registered_with_awr_hub, awr_source_database_id, min_snapshot_identifier, max_snapshot_identifier, time_first_snapshot_generated, time_last_snapshot_generated, hours_since_last_import, lifecycle_state, status].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



507
508
509
510
511
512
513
514
515
516
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 507

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



501
502
503
# File 'lib/oci/opsi/models/awr_hub_source.rb', line 501

def to_s
  to_hash.to_s
end