Class ChallengeRule (1.33.0)

ChallengeRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A rule to configure the behavior of reCAPTCHA for conditionally presenting a challenge.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
condition str
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: - score - user_ip_address - user_asn - user_agent - verified_bots.name - verified_bots.bot_type Examples: - score <> - user_ip_address == "123.45.67.89" - user_agent.contains("Chrome") - score < 0.5="" &&="" user_ip_address="=">
no_challenge google.cloud.recaptchaenterprise_v1.types.ChallengeRule.NoChallengeOutcome
Do not present a challenge to the user. This field is a member of oneof_ outcome.
challenge google.cloud.recaptchaenterprise_v1.types.ChallengeRule.ChallengeOutcome
Present a challenge to the user. This field is a member of oneof_ outcome.

Classes

ChallengeOutcome

ChallengeOutcome(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An outcome that indicates that a challenge of a specified difficulty should be presented to the user.

NoChallengeOutcome

NoChallengeOutcome(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An outcome that indicates that no challenge should be presented to the user.