Class: Google::Apis::IdentitytoolkitV3::IdpConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/identitytoolkit_v3/classes.rb,
generated/google/apis/identitytoolkit_v3/representations.rb,
generated/google/apis/identitytoolkit_v3/representations.rb

Overview

Template for a single idp configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IdpConfig

Returns a new instance of IdpConfig



1299
1300
1301
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1299

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_idString

OAuth2 client ID. Corresponds to the JSON property clientId

Returns:

  • (String)


1271
1272
1273
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1271

def client_id
  @client_id
end

#enabledBoolean Also known as: enabled?

Whether this IDP is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1276
1277
1278
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1276

def enabled
  @enabled
end

#experiment_percentFixnum

Percent of users who will be prompted/redirected federated login for this IDP. Corresponds to the JSON property experimentPercent

Returns:

  • (Fixnum)


1282
1283
1284
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1282

def experiment_percent
  @experiment_percent
end

#providerString

OAuth2 provider. Corresponds to the JSON property provider

Returns:

  • (String)


1287
1288
1289
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1287

def provider
  @provider
end

#secretString

OAuth2 client secret. Corresponds to the JSON property secret

Returns:

  • (String)


1292
1293
1294
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1292

def secret
  @secret
end

#whitelisted_audiencesArray<String>

Whitelisted client IDs for audience check. Corresponds to the JSON property whitelistedAudiences

Returns:

  • (Array<String>)


1297
1298
1299
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1297

def whitelisted_audiences
  @whitelisted_audiences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1304
1305
1306
1307
1308
1309
1310
1311
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1304

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @enabled = args[:enabled] if args.key?(:enabled)
  @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
  @provider = args[:provider] if args.key?(:provider)
  @secret = args[:secret] if args.key?(:secret)
  @whitelisted_audiences = args[:whitelisted_audiences] if args.key?(:whitelisted_audiences)
end