Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Policy
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
A complete configuration set containing multiple grouped rules defining the behavior of reCAPTCHA for fraud detection and prevention.
Instance Attribute Summary collapse
-
#challenge_rule_groups ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeRuleGroup>
Optional.
-
#client_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ClientSettings
Configuration for clients to protect with reCAPTCHA.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Policy
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Policy
Returns a new instance of GoogleCloudRecaptchaenterpriseV1Policy.
1738 1739 1740 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#challenge_rule_groups ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeRuleGroup>
Optional. Rules to configure the behavior of reCAPTCHA for showing a challenge.
Rule groups are evaluated in order. Evaluation stops when the first matching
rule group is found.
Corresponds to the JSON property challengeRuleGroups
1725 1726 1727 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1725 def challenge_rule_groups @challenge_rule_groups end |
#client_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ClientSettings
Configuration for clients to protect with reCAPTCHA.
Corresponds to the JSON property clientSettings
1730 1731 1732 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1730 def client_settings @client_settings end |
#name ⇒ String
Identifier. Resource name for this policy. Format: "projects/project/keys/
key/policy" for a policy under a key.
Corresponds to the JSON property name
1736 1737 1738 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1736 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1743 1744 1745 1746 1747 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1743 def update!(**args) @challenge_rule_groups = args[:challenge_rule_groups] if args.key?(:challenge_rule_groups) @client_settings = args[:client_settings] if args.key?(:client_settings) @name = args[:name] if args.key?(:name) end |