Reference documentation and code samples for the Google Cloud Api Hub V1 Client class ApiKeyConfig.
Config for authentication with API key.
Generated from protobuf message google.cloud.apihub.v1.AuthConfig.ApiKeyConfig
Namespace
Google \ Cloud \ ApiHub \ V1 \ AuthConfigMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The parameter name of the API key. E.g. If the API request is " https://example.com/act?api_key=
↳ api_key
Google\Cloud\ApiHub\V1\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
int
Required. The location of the API key. The default value is QUERY.
getName
Required. The parameter name of the API key.
E.g. If the API request is " https://example.com/act?api_key=
string
setName
Required. The parameter name of the API key.
E.g. If the API request is " https://example.com/act?api_key=
var
string
$this
getApiKey
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.
hasApiKey
clearApiKey
setApiKey
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.
$this
getHttpElementLocation
Required. The location of the API key.
The default value is QUERY.
setHttpElementLocation
Required. The location of the API key.
The default value is QUERY.
$this

