Service Client: Google::Cloud::Bigquery::Connection::V1::Connection::ConnectionServiceClient

Client stub representing the remote ConnectionService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to bigquery.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Bigquery::Connection::V1::Connection - Compiled Protocol Buffers messages for google/cloud/bigquery/connection/v1/connection.proto

SYNOPSIS

use Google::Cloud::Bigquery::Connection::V1::Connection;

my $msg = Google::Cloud::Bigquery::Connection::V1::Connection::CreateConnectionRequest->new({
    parent => $parent,
    connection_id => $connection_id,
    connection => $connection,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Connection::V1::Connection::CreateConnectionRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/bigquery/connection/v1/connection.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::Bigquery::Connection::V1::Connection::CreateConnectionRequest

The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent resource name. Must be in the format `projects/{project_id}/locations/{location_id}`

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

    Type: String

    Optional. Connection id that should be assigned to the created connection.

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

    Type: Message (Google::Cloud::Bigquery::Connection::V1::Connection::Connection)

    Required. Connection to create.

Google::Cloud::Bigquery::Connection::V1::Connection::GetConnectionRequest

The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the requested connection, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}`

Google::Cloud::Bigquery::Connection::V1::Connection::ListConnectionsRequest

The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent resource name. Must be in the form: `projects/{project_id}/locations/{location_id}`

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

    Type: Int32

    Required. Page size.

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

    Type: String

    Page token.

Google::Cloud::Bigquery::Connection::V1::Connection::ListConnectionsResponse

The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Connection::V1::Connection::UpdateConnectionRequest

The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the connection to update, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

    Type: Message (Google::Cloud::Bigquery::Connection::V1::Connection::Connection)

    Required. Connection containing the updated fields.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Update mask for the connection fields to be updated.

Google::Cloud::Bigquery::Connection::V1::Connection::DeleteConnectionRequest

The request for [ConnectionService.DeleteConnectionRequest][].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the deleted connection, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}`

Google::Cloud::Bigquery::Connection::V1::Connection::Connection

Configuration parameters to establish connection with an external data source, except the credential attributes.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Connection::V1::Connection::CloudSqlProperties

Connection properties specific to the Cloud SQL.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud SQL instance ID in the form `project:location:instance`.

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

    Type: String

    Database name.

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

    Type: Enum (Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties::DatabaseType)

    Type of the Cloud SQL database.

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

    Type: Message (Google::Cloud::Bigquery::Connection::V1::Connection::CloudSqlCredential)

    Input only. Cloud SQL credential.

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

    Type: String

    Output only. The account ID of the service used for the purpose of this connection.

    When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.

Enum: CloudSqlProperties::DatabaseType

  • DATABASE_TYPE_UNSPECIFIED => 0

  • POSTGRES => 1

  • MYSQL => 2

Google::Cloud::Bigquery::Connection::V1::Connection::CloudSqlCredential

Credential info for the Cloud SQL.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The username for the credential.

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

    Type: String

    The password for the credential.

Google::Cloud::Bigquery::Connection::V1::Connection::CloudSpannerProperties

Connection properties specific to Cloud Spanner.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud Spanner database in the form `project/instance/database'

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

    Type: Bool

    If parallelism should be used when reading from Cloud Spanner

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

    Type: Int32

    Allows setting max parallelism per query when executing on Spanner independent compute resources. If unspecified, default values of parallelism are chosen that are dependent on the Cloud Spanner instance configuration.

    REQUIRES: `use_parallelism` must be set. REQUIRES: Either `use_data_boost` or `use_serverless_analytics` must be set.

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

    Type: Bool

    If the serverless analytics service should be used to read data from Cloud Spanner. Note: `use_parallelism` must be set when using serverless analytics.

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

    Type: Bool

    If set, the request will be executed via Spanner independent compute resources. REQUIRES: `use_parallelism` must be set.

    NOTE: `use_serverless_analytics` will be deprecated. Prefer `use_data_boost` over `use_serverless_analytics`.

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

    Type: String

    Optional. Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as `SELECT` and `INSERT`. Other users should only use roles provided by their Cloud Spanner admins.

    For more details, see [About fine-grained access control] (https://cloud.google.com/spanner/docs/fgac-about).

    REQUIRES: The database role name must start with a letter, and can only contain letters, numbers, and underscores.

Google::Cloud::Bigquery::Connection::V1::Connection::AwsProperties

Connection properties specific to Amazon Web Services (AWS).

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Connection::V1::Connection::AwsCrossAccountRole

Authentication method for Amazon Web Services (AWS) that uses Google owned AWS IAM user's access key to assume into customer's AWS IAM Role.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

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

    Type: String

    Output only. Google-owned AWS IAM User for a Connection.

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

    Type: String

    Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

Google::Cloud::Bigquery::Connection::V1::Connection::AwsAccessRole

Authentication method for Amazon Web Services (AWS) that uses Google owned Google service account to assume into customer's AWS IAM Role.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

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

    Type: String

    A unique Google-owned and Google-generated identity for the Connection. This identity will be used to access the user's AWS IAM Role.

Google::Cloud::Bigquery::Connection::V1::Connection::AzureProperties

Container for connection properties specific to Azure.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The name of the Azure Active Directory Application.

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

    Type: String

    Output only. The client id of the Azure Active Directory Application.

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

    Type: String

    Output only. The object id of the Azure Active Directory Application.

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

    Type: String

    The id of customer's directory that host the data.

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

    Type: String

    The URL user will be redirected to after granting consent during connection setup.

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

    Type: String

    The client ID of the user's Azure Active Directory Application used for a federated connection.

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

    Type: String

    Output only. A unique Google-owned and Google-generated identity for the Connection. This identity will be used to access the user's Azure Active Directory Application.

Google::Cloud::Bigquery::Connection::V1::Connection::CloudResourceProperties

Container for connection properties for delegation of access to GCP resources.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The account ID of the service created for the purpose of this connection.

    The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of an operation in BigQuery, the service account will be used to connect to the desired resources in GCP.

    The account ID is in the form of: <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com

Google::Cloud::Bigquery::Connection::V1::Connection::MetastoreServiceConfig

Configuration of the Dataproc Metastore Service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Resource name of an existing Dataproc Metastore service.

    Example:

    * `projects/[project_id]/locations/[region]/services/[service_id]`

Google::Cloud::Bigquery::Connection::V1::Connection::SparkHistoryServerConfig

Configuration of the Spark History Server.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Resource name of an existing Dataproc Cluster to act as a Spark History Server for the connection.

    Example:

    * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`

Google::Cloud::Bigquery::Connection::V1::Connection::SparkProperties

Container for connection properties to execute stored procedures for Apache Spark.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The account ID of the service created for the purpose of this connection.

    The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of a stored procedure for Apache Spark in BigQuery, the service account is used to connect to the desired resources in Google Cloud.

    The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com

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

    Type: Message (Google::Cloud::Bigquery::Connection::V1::Connection::MetastoreServiceConfig)

    Optional. Dataproc Metastore Service configuration for the connection.

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

    Type: Message (Google::Cloud::Bigquery::Connection::V1::Connection::SparkHistoryServerConfig)

    Optional. Spark History Server configuration for the connection.

Google::Cloud::Bigquery::Connection::V1::Connection::SalesforceDataCloudProperties

Connection properties specific to Salesforce DataCloud. This is intended for use only by Salesforce partner projects.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URL to the user's Salesforce DataCloud instance.

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

    Type: String

    Output only. A unique Google-owned and Google-generated service account identity for the connection.

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

    Type: String

    The ID of the user's Salesforce tenant.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Connection::V1::Connection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.