Class: OCI::IdentityDomains::Models::ExtensionSocialIdentityProvider

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

Overview

Social Identity Provider Extension Schema

Constant Summary collapse

STATUS_ENUM =
[
  STATUS_CREATED = 'created'.freeze,
  STATUS_DELETED = 'deleted'.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 = {}) ⇒ ExtensionSocialIdentityProvider

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
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
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 477

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

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

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

  self.auto_redirect_enabled = attributes[:'autoRedirectEnabled'] unless attributes[:'autoRedirectEnabled'].nil?

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

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

  self.social_jit_provisioning_enabled = attributes[:'socialJitProvisioningEnabled'] unless attributes[:'socialJitProvisioningEnabled'].nil?

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

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

  self.jit_prov_group_static_list_enabled = attributes[:'jitProvGroupStaticListEnabled'] unless attributes[:'jitProvGroupStaticListEnabled'].nil?

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

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

  self.jit_prov_assigned_groups = attributes[:'jitProvAssignedGroups'] if attributes[:'jitProvAssignedGroups']

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

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

  self.registration_enabled = attributes[:'registrationEnabled'] unless attributes[:'registrationEnabled'].nil?

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

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

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

  self.authz_url = attributes[:'authzUrl'] if attributes[:'authzUrl']

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

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

  self.access_token_url = attributes[:'accessTokenUrl'] if attributes[:'accessTokenUrl']

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

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

  self.relay_idp_param_mappings = attributes[:'relayIdpParamMappings'] if attributes[:'relayIdpParamMappings']

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

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

  self.profile_url = attributes[:'profileUrl'] if attributes[:'profileUrl']

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

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

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

  self.admin_scope = attributes[:'adminScope'] if attributes[:'adminScope']

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

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

  self.consumer_key = attributes[:'consumerKey'] if attributes[:'consumerKey']

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

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

  self.consumer_secret = attributes[:'consumerSecret'] if attributes[:'consumerSecret']

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

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

  self.apple_dev_id = attributes[:'appleDevId'] if attributes[:'appleDevId']

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

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

  self.apple_key_id = attributes[:'appleKeyId'] if attributes[:'appleKeyId']

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

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

  self.service_provider_name = attributes[:'serviceProviderName'] if attributes[:'serviceProviderName']

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

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

  self.clock_skew_in_seconds = attributes[:'clockSkewInSeconds'] if attributes[:'clockSkewInSeconds']

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

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

  self.redirect_url = attributes[:'redirectUrl'] if attributes[:'redirectUrl']

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

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

  self.discovery_url = attributes[:'discoveryUrl'] if attributes[:'discoveryUrl']

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

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

  self.client_credential_in_payload = attributes[:'clientCredentialInPayload'] unless attributes[:'clientCredentialInPayload'].nil?

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

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

  self.id_attribute = attributes[:'idAttribute'] if attributes[:'idAttribute']

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

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

Instance Attribute Details

#access_token_urlString

Social IDP Access token URL

Added In: 20.1.3

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

Returns:

  • (String)


160
161
162
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 160

def access_token_url
  @access_token_url
end

#account_linking_enabledBOOLEAN

[Required] Whether account linking is enabled

Added In: 20.1.3

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

Returns:

  • (BOOLEAN)


32
33
34
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 32

def 
  @account_linking_enabled
end

#admin_scopeArray<String>

Admin scope to request

Added In: 20.1.3

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

Returns:

  • (Array<String>)


224
225
226
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 224

def admin_scope
  @admin_scope
end

#apple_dev_idString

Apple Developer ID

Added In: 2311180004

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

Returns:

  • (String)


273
274
275
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 273

def apple_dev_id
  @apple_dev_id
end

#apple_key_idString

Apple Private Key ID

Added In: 2311180004

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

Returns:

  • (String)


289
290
291
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 289

def apple_key_id
  @apple_key_id
end

#authz_urlString

Social IDP Authorization URL

Added In: 20.1.3

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

Returns:

  • (String)


144
145
146
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 144

def authz_url
  @authz_url
end

#auto_redirect_enabledBOOLEAN

Whether social auto redirect is enabled. The IDP policy should be configured with only one Social IDP, and without username/password selected.

Added In: 2310202314

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

Returns:

  • (BOOLEAN)


48
49
50
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 48

def auto_redirect_enabled
  @auto_redirect_enabled
end

#client_credential_in_payloadBOOLEAN

Whether the client credential is contained in payload

Added In: 20.1.3

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

Returns:

  • (BOOLEAN)


368
369
370
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 368

def client_credential_in_payload
  @client_credential_in_payload
end

#clock_skew_in_secondsInteger

Social IDP allowed clock skew time

Added In: 20.1.3

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

Returns:

  • (Integer)


320
321
322
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 320

def clock_skew_in_seconds
  @clock_skew_in_seconds
end

#consumer_keyString

[Required] Social IDP Client Application Client ID

Added In: 20.1.3

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

Returns:

  • (String)


240
241
242
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 240

def consumer_key
  @consumer_key
end

#consumer_secretString

[Required] Social IDP Client Application Client Secret

Added In: 20.1.3

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

Returns:

  • (String)


257
258
259
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 257

def consumer_secret
  @consumer_secret
end

#discovery_urlString

Discovery URL

Added In: 20.1.3

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

Returns:

  • (String)


352
353
354
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 352

def discovery_url
  @discovery_url
end

#id_attributeString

Id attribute used for account linking

Added In: 20.1.3

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

Returns:

  • (String)


384
385
386
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 384

def id_attribute
  @id_attribute
end

#jit_prov_assigned_groupsArray<OCI::IdentityDomains::Models::IdentityProviderJitProvAssignedGroups>

Lists the groups each social JIT-provisioned user is a member. Just-in-Time user-provisioning applies this static list when jitProvGroupStaticListEnabled:true.

Added In: 2310202314

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



96
97
98
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 96

def jit_prov_assigned_groups
  @jit_prov_assigned_groups
end

#jit_prov_group_static_list_enabledBOOLEAN

Set to true to indicate Social JIT User Provisioning Groups should be assigned from a static list

Added In: 2310202314

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

Returns:

  • (BOOLEAN)


80
81
82
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 80

def jit_prov_group_static_list_enabled
  @jit_prov_group_static_list_enabled
end

#profile_urlString

Social IDP User profile URL

Added In: 20.1.3

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

Returns:

  • (String)


192
193
194
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 192

def profile_url
  @profile_url
end

#redirect_urlString

redirect URL for social idp

Added In: 20.1.3

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

Returns:

  • (String)


336
337
338
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 336

def redirect_url
  @redirect_url
end

#registration_enabledBOOLEAN

[Required] Whether registration is enabled

Added In: 20.1.3

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

Returns:

  • (BOOLEAN)


112
113
114
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 112

def registration_enabled
  @registration_enabled
end

#relay_idp_param_mappingsArray<OCI::IdentityDomains::Models::IdentityProviderRelayIdpParamMappings>

Relay Param variable for Social IDP

Added In: 2305190132

SCIM++ Properties: - idcsCompositeKey: [relayParamKey] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: default - type: complex - uniqueness: none



176
177
178
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 176

def relay_idp_param_mappings
  @relay_idp_param_mappings
end

#scopeArray<String>

Scope to request

Added In: 20.1.3

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

Returns:

  • (Array<String>)


208
209
210
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 208

def scope
  @scope
end

#service_provider_nameString

[Required] Service Provider Name

Added In: 20.1.3

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

Returns:

  • (String)


305
306
307
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 305

def service_provider_name
  @service_provider_name
end

#social_jit_provisioning_enabledBOOLEAN

Whether Social JIT Provisioning is enabled

Added In: 2307282043

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

Returns:

  • (BOOLEAN)


64
65
66
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 64

def social_jit_provisioning_enabled
  @social_jit_provisioning_enabled
end

#statusString

Status

Added In: 20.1.3

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

Returns:

  • (String)


128
129
130
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 128

def status
  @status
end

Class Method Details

.attribute_mapObject

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



387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 387

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'account_linking_enabled': :'accountLinkingEnabled',
    'auto_redirect_enabled': :'autoRedirectEnabled',
    'social_jit_provisioning_enabled': :'socialJitProvisioningEnabled',
    'jit_prov_group_static_list_enabled': :'jitProvGroupStaticListEnabled',
    'jit_prov_assigned_groups': :'jitProvAssignedGroups',
    'registration_enabled': :'registrationEnabled',
    'status': :'status',
    'authz_url': :'authzUrl',
    'access_token_url': :'accessTokenUrl',
    'relay_idp_param_mappings': :'relayIdpParamMappings',
    'profile_url': :'profileUrl',
    'scope': :'scope',
    'admin_scope': :'adminScope',
    'consumer_key': :'consumerKey',
    'consumer_secret': :'consumerSecret',
    'apple_dev_id': :'appleDevId',
    'apple_key_id': :'appleKeyId',
    'service_provider_name': :'serviceProviderName',
    'clock_skew_in_seconds': :'clockSkewInSeconds',
    'redirect_url': :'redirectUrl',
    'discovery_url': :'discoveryUrl',
    'client_credential_in_payload': :'clientCredentialInPayload',
    'id_attribute': :'idAttribute'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'account_linking_enabled': :'BOOLEAN',
    'auto_redirect_enabled': :'BOOLEAN',
    'social_jit_provisioning_enabled': :'BOOLEAN',
    'jit_prov_group_static_list_enabled': :'BOOLEAN',
    'jit_prov_assigned_groups': :'Array<OCI::IdentityDomains::Models::IdentityProviderJitProvAssignedGroups>',
    'registration_enabled': :'BOOLEAN',
    'status': :'String',
    'authz_url': :'String',
    'access_token_url': :'String',
    'relay_idp_param_mappings': :'Array<OCI::IdentityDomains::Models::IdentityProviderRelayIdpParamMappings>',
    'profile_url': :'String',
    'scope': :'Array<String>',
    'admin_scope': :'Array<String>',
    'consumer_key': :'String',
    'consumer_secret': :'String',
    'apple_dev_id': :'String',
    'apple_key_id': :'String',
    'service_provider_name': :'String',
    'clock_skew_in_seconds': :'Integer',
    'redirect_url': :'String',
    'discovery_url': :'String',
    'client_credential_in_payload': :'BOOLEAN',
    'id_attribute': :'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



634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 634

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

  self.class == other.class &&
     == other. &&
    auto_redirect_enabled == other.auto_redirect_enabled &&
    social_jit_provisioning_enabled == other.social_jit_provisioning_enabled &&
    jit_prov_group_static_list_enabled == other.jit_prov_group_static_list_enabled &&
    jit_prov_assigned_groups == other.jit_prov_assigned_groups &&
    registration_enabled == other.registration_enabled &&
    status == other.status &&
    authz_url == other.authz_url &&
    access_token_url == other.access_token_url &&
    relay_idp_param_mappings == other.relay_idp_param_mappings &&
    profile_url == other.profile_url &&
    scope == other.scope &&
    admin_scope == other.admin_scope &&
    consumer_key == other.consumer_key &&
    consumer_secret == other.consumer_secret &&
    apple_dev_id == other.apple_dev_id &&
    apple_key_id == other.apple_key_id &&
    service_provider_name == other.service_provider_name &&
    clock_skew_in_seconds == other.clock_skew_in_seconds &&
    redirect_url == other.redirect_url &&
    discovery_url == other.discovery_url &&
    client_credential_in_payload == other.client_credential_in_payload &&
    id_attribute == other.id_attribute
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



686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 686

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


666
667
668
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 666

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



675
676
677
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 675

def hash
  [, auto_redirect_enabled, social_jit_provisioning_enabled, jit_prov_group_static_list_enabled, jit_prov_assigned_groups, registration_enabled, status, authz_url, access_token_url, relay_idp_param_mappings, profile_url, scope, admin_scope, consumer_key, consumer_secret, apple_dev_id, apple_key_id, service_provider_name, clock_skew_in_seconds, redirect_url, discovery_url, client_credential_in_payload, id_attribute].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



719
720
721
722
723
724
725
726
727
728
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 719

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



713
714
715
# File 'lib/oci/identity_domains/models/extension_social_identity_provider.rb', line 713

def to_s
  to_hash.to_s
end