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