# Class ApiKeyConfig (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Configurations for authentication with API key.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `key_name` | `str` Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key= |
| `api_key_secret_version` | `str` Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant `roles/secretmanager.secretAccessor` role to the CES service agent `service-`. |
| `request_location` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ApiKeyConfig.RequestLocation` Required. Key location in the request. |

## Classes

### RequestLocation

    RequestLocation(value)

The location of the API key in the request.