NAME
Google::Cloud::Ces::V1::Auth - Compiled Protocol Buffers messages for google/cloud/ces/v1/auth.proto
SYNOPSIS
use Google::Cloud::Ces::V1::Auth;
my $msg = Google::Cloud::Ces::V1::Auth::ApiKeyConfig->new({
key_name => $key_name,
api_key_secret_version => $api_key_secret_version,
request_location => $request_location,
});
# Read or update a field
my $val = $msg->key_name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::Auth::ApiKeyConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/auth.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Ces::V1::Auth::ApiKeyConfig
Configurations for authentication with API key.
Inherits from Protobuf::Message.
Accessors
$msg->key_name()/$msg->key_name($value)Type:
StringRequired. 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>", "X-Api-Key" would be the parameter name.
$msg->api_key_secret_version()/$msg->api_key_secret_version($value)Type:
StringRequired. 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-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
$msg->request_location()/$msg->request_location($value)Type:
Enum(Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation)Required. Key location in the request.
Enum: ApiKeyConfig::RequestLocation
REQUEST_LOCATION_UNSPECIFIED=>0HEADER=>1QUERY_STRING=>2
Google::Cloud::Ces::V1::Auth::OAuthConfig
Configurations for authentication with OAuth.
Inherits from Protobuf::Message.
Accessors
$msg->oauth_grant_type()/$msg->oauth_grant_type($value)Type:
Enum(Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType)Required. OAuth grant types.
$msg->client_id()/$msg->client_id($value)Type:
StringRequired. The client ID from the OAuth provider.
$msg->client_secret_version()/$msg->client_secret_version($value)Type:
StringRequired. The name of the SecretManager secret version resource storing the client secret. Format: `projects/{project}/secrets/{secret}/versions/{version}`
Note: You should grant `roles/secretmanager.secretAccessor` role to the CES service agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
$msg->token_endpoint()/$msg->token_endpoint($value)Type:
StringRequired. The token endpoint in the OAuth provider to exchange for an access token.
$msg->scopes()/$msg->scopes($value)Type:
StringOptional. The OAuth scopes to grant.
Enum: OAuthConfig::OauthGrantType
OAUTH_GRANT_TYPE_UNSPECIFIED=>0CLIENT_CREDENTIAL=>1
Google::Cloud::Ces::V1::Auth::ServiceAgentIdTokenAuthConfig
Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
Inherits from Protobuf::Message.
Google::Cloud::Ces::V1::Auth::ServiceAccountAuthConfig
Configurations for authentication using a custom service account.
Inherits from Protobuf::Message.
Accessors
$msg->service_account()/$msg->service_account($value)Type:
StringRequired. The email address of the service account used for authentication. CES uses this service account to exchange an access token and the access token is then sent in the `Authorization` header of the request.
The service account must have the `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
$msg->scopes()/$msg->scopes($value)Type:
StringOptional. The OAuth scopes to grant. If not specified, the default scope `https://www.googleapis.com/auth/cloud-platform` is used.
Google::Cloud::Ces::V1::Auth::BearerTokenConfig
Configurations for authentication with a bearer token.
Inherits from Protobuf::Message.
Accessors
$msg->token()/$msg->token($value)Type:
StringRequired. The bearer token. Must be in the format `$context.variables.<name_of_variable>`.
Google::Cloud::Ces::V1::Auth::EndUserAuthConfig
End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format `$context.variables.<name_of_variable>`.
Inherits from Protobuf::Message.
Accessors
$msg->oauth2_auth_code_config()/$msg->oauth2_auth_code_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::EndUserAuthConfig::Oauth2AuthCodeConfig)Oauth 2.0 Authorization Code authentication.
$msg->oauth2_jwt_bearer_config()/$msg->oauth2_jwt_bearer_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::EndUserAuthConfig::Oauth2JwtBearerConfig)JWT Profile Oauth 2.0 Authorization Grant authentication.
Google::Cloud::Ces::V1::Auth::ApiAuthentication
Authentication information required for API calls.
Inherits from Protobuf::Message.
Accessors
$msg->api_key_config()/$msg->api_key_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::ApiKeyConfig)Optional. Config for API key auth.
$msg->oauth_config()/$msg->oauth_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::OAuthConfig)Optional. Config for OAuth.
$msg->service_agent_id_token_auth_config()/$msg->service_agent_id_token_auth_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::ServiceAgentIdTokenAuthConfig)Optional. Config for ID token auth generated from CES service agent.
$msg->service_account_auth_config()/$msg->service_account_auth_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::ServiceAccountAuthConfig)Optional. Config for service account authentication.
$msg->bearer_token_config()/$msg->bearer_token_config($value)Type:
Message(Google::Cloud::Ces::V1::Auth::BearerTokenConfig)Optional. Config for bearer token auth.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::Auth::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.