# Class ApiKeyConfig (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.7

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

Config for authentication with API key.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name. |
| `api_key` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.Secret` Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret. |
| `http_element_location` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.AuthConfig.ApiKeyConfig.HttpElementLocation` Required. The location of the API key. The default value is QUERY. |

## Classes

### HttpElementLocation

    HttpElementLocation(value)

Enum of location an HTTP element can be.