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