# Class ChallengeSettings (1.32.0)

1.32.0 (latest) 1.29.0 1.28.2 1.27.0 1.26.1 1.25.0 1.24.1 1.23.0 1.22.0 1.21.2 1.20.0 1.19.1 1.18.1 1.17.1 1.16.1 1.15.0 1.14.0 1.13.0 1.12.1 1.11.1 1.10.0 1.9.0 1.8.3 1.7.1 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.2 1.0.0 0.4.2 0.3.3 0.2.1 0.1.0

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

Settings for POLICY_BASED_CHALLENGE keys to control when a challenge
is triggered.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `default_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.WebKeySettings.ActionSettings` Required. Defines when a challenge is triggered (unless the default threshold is overridden for the given action, see `action_settings`). |
| `action_settings` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.WebKeySettings.ActionSettings]` Optional. The action to score threshold map. The action name should be the same as the action name passed in the `data-action` attribute (see https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive. There is a maximum of 100 action settings. An action name has a maximum length of 100. |

## Classes

### ActionSettingsEntry

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

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |