Class: OCI::IdentityDomains::Models::OAuthClientCertificate

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/models/o_auth_client_certificate.rb

Overview

OAuth Client Certificate schema

Constant Summary collapse

IDCS_PREVENTED_OPERATIONS_ENUM =
[
  IDCS_PREVENTED_OPERATIONS_REPLACE = 'replace'.freeze,
  IDCS_PREVENTED_OPERATIONS_UPDATE = 'update'.freeze,
  IDCS_PREVENTED_OPERATIONS_DELETE = 'delete'.freeze,
  IDCS_PREVENTED_OPERATIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OAuthClientCertificate

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
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
450
451
452
453
454
455
456
457
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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 403

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

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

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

  self.idcs_created_by = attributes[:'idcsCreatedBy'] if attributes[:'idcsCreatedBy']

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

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

  self.idcs_last_modified_by = attributes[:'idcsLastModifiedBy'] if attributes[:'idcsLastModifiedBy']

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

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

  self.idcs_prevented_operations = attributes[:'idcsPreventedOperations'] if attributes[:'idcsPreventedOperations']

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

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

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

  self.delete_in_progress = attributes[:'deleteInProgress'] unless attributes[:'deleteInProgress'].nil?

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

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

  self.idcs_last_upgraded_in_release = attributes[:'idcsLastUpgradedInRelease'] if attributes[:'idcsLastUpgradedInRelease']

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

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

  self.domain_ocid = attributes[:'domainOcid'] if attributes[:'domainOcid']

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

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

  self.compartment_ocid = attributes[:'compartmentOcid'] if attributes[:'compartmentOcid']

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

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

  self.tenancy_ocid = attributes[:'tenancyOcid'] if attributes[:'tenancyOcid']

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

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

  self.external_id = attributes[:'externalId'] if attributes[:'externalId']

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

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

  self.key_store_name = attributes[:'keyStoreName'] if attributes[:'keyStoreName']

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

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

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

  self.key_store_password = attributes[:'keyStorePassword'] if attributes[:'keyStorePassword']

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

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

  self.key_store_id = attributes[:'keyStoreId'] if attributes[:'keyStoreId']

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

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

  self.certificate_alias = attributes[:'certificateAlias'] if attributes[:'certificateAlias']

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

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

  self.sha1_thumbprint = attributes[:'sha1Thumbprint'] if attributes[:'sha1Thumbprint']

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

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

  self.sha256_thumbprint = attributes[:'sha256Thumbprint'] if attributes[:'sha256Thumbprint']

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

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

  self.cert_start_date = attributes[:'certStartDate'] if attributes[:'certStartDate']

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

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

  self.x509_base64_certificate = attributes[:'x509Base64Certificate'] if attributes[:'x509Base64Certificate']

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

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

  self.cert_end_date = attributes[:'certEndDate'] if attributes[:'certEndDate']

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

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

Instance Attribute Details

#cert_end_dateString

Certificate end date

SCIM++ Properties: - type: dateTime - multiValued: false - required: false - caseExact: true - mutability: readWrite - returned: default - uniqueness: none

Returns:

  • (String)


307
308
309
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 307

def cert_end_date
  @cert_end_date
end

#cert_start_dateString

Certificate start date

SCIM++ Properties: - type: dateTime - multiValued: false - required: false - caseExact: true - mutability: readWrite - returned: default - uniqueness: none

Returns:

  • (String)


281
282
283
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 281

def cert_start_date
  @cert_start_date
end

#certificate_aliasString

[Required] Certificate alias

SCIM++ Properties: - type: string - multiValued: false - required: true - caseExact: false - mutability: readWrite - returned: always - uniqueness: none - idcsSearchable: true

Returns:

  • (String)


242
243
244
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 242

def certificate_alias
  @certificate_alias
end

#compartment_ocidString

OCI Compartment Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


151
152
153
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 151

def compartment_ocid
  @compartment_ocid
end

#delete_in_progressBOOLEAN

A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none

Returns:

  • (BOOLEAN)


109
110
111
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 109

def delete_in_progress
  @delete_in_progress
end

#domain_ocidString

OCI Domain Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


137
138
139
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 137

def domain_ocid
  @domain_ocid
end

#external_idString

An identifier for the Resource as defined by the Service Consumer. The externalId may simplify identification of the Resource between Service Consumer and Service Provider by allowing the Consumer to refer to the Resource with its own identifier, obviating the need to store a local mapping between the local identifier of the Resource and the identifier used by the Service Provider. Each Resource MAY include a non-empty externalId value. The value of the externalId attribute is always issued by the Service Consumer and can never be specified by the Service Provider. The Service Provider MUST always interpret the externalId as scoped to the Service Consumer's tenant.

SCIM++ Properties: - type: string - multiValued: false - required: false - caseExact: false - mutability: readWrite - returned: default - uniqueness: none

Returns:

  • (String)


178
179
180
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 178

def external_id
  @external_id
end

#idString

Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: global

Returns:

  • (String)


31
32
33
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 31

def id
  @id
end

#idcs_created_byOCI::IdentityDomains::Models::IdcsCreatedBy



65
66
67
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 65

def idcs_created_by
  @idcs_created_by
end

#idcs_last_modified_byOCI::IdentityDomains::Models::IdcsLastModifiedBy



68
69
70
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 68

def idcs_last_modified_by
  @idcs_last_modified_by
end

#idcs_last_upgraded_in_releaseString

The release number when the resource was upgraded.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (String)


123
124
125
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 123

def idcs_last_upgraded_in_release
  @idcs_last_upgraded_in_release
end

#idcs_prevented_operationsArray<String>

Each value of this attribute specifies an operation that only an internal client may perform on this particular resource.

SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (Array<String>)


81
82
83
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 81

def idcs_prevented_operations
  @idcs_prevented_operations
end

#key_store_idString

Key store ID

SCIM++ Properties: - type: string - multiValued: false - required: false - caseExact: true - returned: never - uniqueness: none - idcsSearchable: true

Returns:

  • (String)


228
229
230
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 228

def key_store_id
  @key_store_id
end

#key_store_nameString

Key store name

SCIM++ Properties: - type: string - multiValued: false - required: false - caseExact: false - returned: always - uniqueness: none

Returns:

  • (String)


190
191
192
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 190

def key_store_name
  @key_store_name
end

#key_store_passwordString

Key store password

SCIM++ Properties: - type: string - multiValued: false - idcsSensitive: none - required: false - caseExact: true - returned: never - uniqueness: none

Returns:

  • (String)


215
216
217
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 215

def key_store_password
  @key_store_password
end

#mapString

Map

SCIM++ Properties: - type: string - multiValued: false - required: false - caseExact: false - returned: always - uniqueness: none

Returns:

  • (String)


202
203
204
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 202

def map
  @map
end

#metaOCI::IdentityDomains::Models::Meta



62
63
64
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 62

def meta
  @meta
end

#ocidString

Unique OCI identifier for the SCIM Resource.

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: global

Returns:

  • (String)


45
46
47
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 45

def ocid
  @ocid
end

#schemasArray<String>

[Required] REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \“enterprise\” extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (Array<String>)


59
60
61
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 59

def schemas
  @schemas
end

#sha1_thumbprintString

SHA-1 Thumbprint

SCIM++ Properties: - type: string - multiValued: false - idcsSearchable: true - required: false - caseExact: true - returned: default - uniqueness: none

Returns:

  • (String)


255
256
257
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 255

def sha1_thumbprint
  @sha1_thumbprint
end

#sha256_thumbprintString

SHA-256 Thumbprint

SCIM++ Properties: - type: string - multiValued: false - idcsSearchable: true - required: false - caseExact: true - returned: default - uniqueness: none

Returns:

  • (String)


268
269
270
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 268

def sha256_thumbprint
  @sha256_thumbprint
end

#tagsArray<OCI::IdentityDomains::Models::Tags>

A list of tags on this resource.

SCIM++ Properties: - idcsCompositeKey: [key, value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: request - type: complex - uniqueness: none



95
96
97
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 95

def tags
  @tags
end

#tenancy_ocidString

OCI Tenant Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


165
166
167
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 165

def tenancy_ocid
  @tenancy_ocid
end

#x509_base64_certificateString

[Required] Base 64Key data attribute

SCIM++ Properties: - caseExact: true - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (String)


294
295
296
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 294

def x509_base64_certificate
  @x509_base64_certificate
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 310

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'ocid': :'ocid',
    'schemas': :'schemas',
    'meta': :'meta',
    'idcs_created_by': :'idcsCreatedBy',
    'idcs_last_modified_by': :'idcsLastModifiedBy',
    'idcs_prevented_operations': :'idcsPreventedOperations',
    'tags': :'tags',
    'delete_in_progress': :'deleteInProgress',
    'idcs_last_upgraded_in_release': :'idcsLastUpgradedInRelease',
    'domain_ocid': :'domainOcid',
    'compartment_ocid': :'compartmentOcid',
    'tenancy_ocid': :'tenancyOcid',
    'external_id': :'externalId',
    'key_store_name': :'keyStoreName',
    'map': :'map',
    'key_store_password': :'keyStorePassword',
    'key_store_id': :'keyStoreId',
    'certificate_alias': :'certificateAlias',
    'sha1_thumbprint': :'sha1Thumbprint',
    'sha256_thumbprint': :'sha256Thumbprint',
    'cert_start_date': :'certStartDate',
    'x509_base64_certificate': :'x509Base64Certificate',
    'cert_end_date': :'certEndDate'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 342

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'ocid': :'String',
    'schemas': :'Array<String>',
    'meta': :'OCI::IdentityDomains::Models::Meta',
    'idcs_created_by': :'OCI::IdentityDomains::Models::IdcsCreatedBy',
    'idcs_last_modified_by': :'OCI::IdentityDomains::Models::IdcsLastModifiedBy',
    'idcs_prevented_operations': :'Array<String>',
    'tags': :'Array<OCI::IdentityDomains::Models::Tags>',
    'delete_in_progress': :'BOOLEAN',
    'idcs_last_upgraded_in_release': :'String',
    'domain_ocid': :'String',
    'compartment_ocid': :'String',
    'tenancy_ocid': :'String',
    'external_id': :'String',
    'key_store_name': :'String',
    'map': :'String',
    'key_store_password': :'String',
    'key_store_id': :'String',
    'certificate_alias': :'String',
    'sha1_thumbprint': :'String',
    'sha256_thumbprint': :'String',
    'cert_start_date': :'String',
    'x509_base64_certificate': :'String',
    'cert_end_date': :'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



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 557

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

  self.class == other.class &&
    id == other.id &&
    ocid == other.ocid &&
    schemas == other.schemas &&
    meta == other.meta &&
    idcs_created_by == other.idcs_created_by &&
    idcs_last_modified_by == other.idcs_last_modified_by &&
    idcs_prevented_operations == other.idcs_prevented_operations &&
    tags == other.tags &&
    delete_in_progress == other.delete_in_progress &&
    idcs_last_upgraded_in_release == other.idcs_last_upgraded_in_release &&
    domain_ocid == other.domain_ocid &&
    compartment_ocid == other.compartment_ocid &&
    tenancy_ocid == other.tenancy_ocid &&
    external_id == other.external_id &&
    key_store_name == other.key_store_name &&
    map == other.map &&
    key_store_password == other.key_store_password &&
    key_store_id == other.key_store_id &&
    certificate_alias == other.certificate_alias &&
    sha1_thumbprint == other.sha1_thumbprint &&
    sha256_thumbprint == other.sha256_thumbprint &&
    cert_start_date == other.cert_start_date &&
    x509_base64_certificate == other.x509_base64_certificate &&
    cert_end_date == other.cert_end_date
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



610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 610

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


590
591
592
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 590

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



599
600
601
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 599

def hash
  [id, ocid, schemas, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, key_store_name, map, key_store_password, key_store_id, certificate_alias, sha1_thumbprint, sha256_thumbprint, cert_start_date, x509_base64_certificate, cert_end_date].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



643
644
645
646
647
648
649
650
651
652
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 643

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



637
638
639
# File 'lib/oci/identity_domains/models/o_auth_client_certificate.rb', line 637

def to_s
  to_hash.to_s
end