Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig

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

Overview

The reCAPTCHA Enterprise integration config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.



1428
1429
1430
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1428

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

Instance Attribute Details

#email_password_enforcement_stateString

The reCAPTCHA config for email/password provider, containing the enforcement status. The email/password provider contains all related user flows protected by reCAPTCHA. Corresponds to the JSON property emailPasswordEnforcementState

Returns:

  • (String)


1408
1409
1410
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1408

def email_password_enforcement_state
  @email_password_enforcement_state
end

#managed_rulesArray<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule>

The managed rules for authentication action based on reCAPTCHA scores. The rules are shared across providers for a given tenant project. Corresponds to the JSON property managedRules



1414
1415
1416
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1414

def managed_rules
  @managed_rules
end

#recaptcha_keysArray<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey>

The reCAPTCHA keys. Corresponds to the JSON property recaptchaKeys



1419
1420
1421
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1419

def recaptcha_keys
  @recaptcha_keys
end

#use_account_defenderBoolean Also known as: use_account_defender?

Whether to use the account defender for reCAPTCHA assessment. Defaults to false. Corresponds to the JSON property useAccountDefender

Returns:

  • (Boolean)


1425
1426
1427
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1425

def 
  @use_account_defender
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1433
1434
1435
1436
1437
1438
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1433

def update!(**args)
  @email_password_enforcement_state = args[:email_password_enforcement_state] if args.key?(:email_password_enforcement_state)
  @managed_rules = args[:managed_rules] if args.key?(:managed_rules)
  @recaptcha_keys = args[:recaptcha_keys] if args.key?(:recaptcha_keys)
  @use_account_defender = args[:use_account_defender] if args.key?(:use_account_defender)
end