# Class Key (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

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

A key used to identify and configure applications (web and/or
mobile) that use reCAPTCHA Enterprise.

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** |
| `name` | `str` Identifier. The resource name for the Key in the format `projects/{project}/keys/{key}`. |
| `display_name` | `str` Required. Human-readable display name of this key. Modifiable by user. |
| `web_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.WebKeySettings` Settings for keys that can be used by websites. This field is a member of `oneof`_ `platform_settings`. |
| `android_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.AndroidKeySettings` Settings for keys that can be used by Android apps. This field is a member of `oneof`_ `platform_settings`. |
| `ios_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.IOSKeySettings` Settings for keys that can be used by iOS apps. This field is a member of `oneof`_ `platform_settings`. |
| `express_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.ExpressKeySettings` Settings for keys that can be used by reCAPTCHA Express. This field is a member of `oneof`_ `platform_settings`. |
| `labels` | `MutableMapping[str, str]` Optional. See \[Creating and managing labels\] (https://cloud.google.com/recaptcha/docs/labels). |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp corresponding to the creation of this key. |
| `testing_options` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.TestingOptions` Optional. Options for user acceptance testing. |
| `waf_settings` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.WafSettings` Optional. Settings for Web Application Firewall (WAF). |

## Classes

### LabelsEntry

    LabelsEntry(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. |