NAME

Google::Cloud::Ces::V1beta::Auth - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/auth.proto

SYNOPSIS

use Google::Cloud::Ces::V1beta::Auth;

my $msg = Google::Cloud::Ces::V1beta::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::V1beta::Auth::ApiKeyConfig->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/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::V1beta::Auth::ApiKeyConfig

Configurations for authentication with API key.

Inherits from Protobuf::Message.

Accessors

  • $msg->key_name() / $msg->key_name($value)

    Type: String

    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>", "X-Api-Key" would be the parameter name.

  • $msg->api_key_secret_version() / $msg->api_key_secret_version($value)

    Type: String

    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-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.

  • $msg->request_location() / $msg->request_location($value)

    Type: Enum (Google::Cloud::Ces::V1beta::ApiKeyConfig::RequestLocation)

    Required. Key location in the request.

Enum: ApiKeyConfig::RequestLocation

  • REQUEST_LOCATION_UNSPECIFIED => 0

  • HEADER => 1

  • QUERY_STRING => 2

Google::Cloud::Ces::V1beta::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::V1beta::OAuthConfig::OauthGrantType)

    Required. OAuth grant types.

  • $msg->client_id() / $msg->client_id($value)

    Type: String

    Required. The client ID from the OAuth provider.

  • $msg->client_secret_version() / $msg->client_secret_version($value)

    Type: String

    Required. 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: String

    Required. The token endpoint in the OAuth provider to exchange for an access token.

  • $msg->scopes() / $msg->scopes($value)

    Type: String

    Optional. The OAuth scopes to grant.

Enum: OAuthConfig::OauthGrantType

  • OAUTH_GRANT_TYPE_UNSPECIFIED => 0

  • CLIENT_CREDENTIAL => 1

Google::Cloud::Ces::V1beta::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::V1beta::Auth::ServiceAccountAuthConfig

Configurations for authentication using a custom service account.

Inherits from Protobuf::Message.

Accessors

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    Required. 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: String

    Optional. The OAuth scopes to grant. If not specified, the default scope `https://www.googleapis.com/auth/cloud-platform` is used.

Google::Cloud::Ces::V1beta::Auth::BearerTokenConfig

Configurations for authentication with a bearer token.

Inherits from Protobuf::Message.

Accessors

  • $msg->token() / $msg->token($value)

    Type: String

    Required. The bearer token. Must be in the format `$context.variables.<name_of_variable>`.

Google::Cloud::Ces::V1beta::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

Google::Cloud::Ces::V1beta::Auth::ApiAuthentication

Authentication information required for API calls.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Ces::V1beta::Auth::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.