Reference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule.
A rule to configure the behavior of reCAPTCHA for conditionally presenting a challenge.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#challenge
def challenge() -> ::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::ChallengeOutcome-
(::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::ChallengeOutcome) — Present a challenge to the user.
Note: The following fields are mutually exclusive:
challenge,no_challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.
#challenge=
def challenge=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::ChallengeOutcome-
value (::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::ChallengeOutcome) — Present a challenge to the user.
Note: The following fields are mutually exclusive:
challenge,no_challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::ChallengeOutcome) — Present a challenge to the user.
Note: The following fields are mutually exclusive:
challenge,no_challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.
#condition
def condition() -> ::String-
(::String) —
Optional. A CEL condition that must be met for this rule to apply. If unspecified, the rule applies unconditionally. The following fields can be referenced in the condition:
scoreuser_ip_addressuser_asnuser_agentverified_bots.nameverified_bots.bot_type
Examples:
score < 0.5user_ip_address == "123.45.67.89"user_agent.contains("Chrome")score < 0.5 && user_ip_address == "123.45.67.89"
#condition=
def condition=(value) -> ::String-
value (::String) —
Optional. A CEL condition that must be met for this rule to apply. If unspecified, the rule applies unconditionally. The following fields can be referenced in the condition:
scoreuser_ip_addressuser_asnuser_agentverified_bots.nameverified_bots.bot_type
Examples:
score < 0.5user_ip_address == "123.45.67.89"user_agent.contains("Chrome")score < 0.5 && user_ip_address == "123.45.67.89"
-
(::String) —
Optional. A CEL condition that must be met for this rule to apply. If unspecified, the rule applies unconditionally. The following fields can be referenced in the condition:
scoreuser_ip_addressuser_asnuser_agentverified_bots.nameverified_bots.bot_type
Examples:
score < 0.5user_ip_address == "123.45.67.89"user_agent.contains("Chrome")score < 0.5 && user_ip_address == "123.45.67.89"
#no_challenge
def no_challenge() -> ::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::NoChallengeOutcome-
(::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::NoChallengeOutcome) — Do not present a challenge to the user.
Note: The following fields are mutually exclusive:
no_challenge,challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.
#no_challenge=
def no_challenge=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::NoChallengeOutcome-
value (::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::NoChallengeOutcome) — Do not present a challenge to the user.
Note: The following fields are mutually exclusive:
no_challenge,challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::RecaptchaEnterprise::V1::ChallengeRule::NoChallengeOutcome) — Do not present a challenge to the user.
Note: The following fields are mutually exclusive:
no_challenge,challenge. If a field in that set is populated, all other fields in the set will automatically be cleared.