Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState

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

Enforcement states for reCAPTCHA protection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState

Returns a new instance of GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState.



2492
2493
2494
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2492

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

Instance Attribute Details

#enforcement_stateString

The reCAPTCHA enforcement state for the provider. Corresponds to the JSON property enforcementState

Returns:

  • (String)


2485
2486
2487
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2485

def enforcement_state
  @enforcement_state
end

#providerString

The provider that has reCAPTCHA protection. Corresponds to the JSON property provider

Returns:

  • (String)


2490
2491
2492
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2490

def provider
  @provider
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2497
2498
2499
2500
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2497

def update!(**args)
  @enforcement_state = args[:enforcement_state] if args.key?(:enforcement_state)
  @provider = args[:provider] if args.key?(:provider)
end