Types for Google Cloud Bigquery Connection v1 API¶
- class google.cloud.bigquery_connection_v1.types.AwsAccessRole(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Authentication method for Amazon Web Services (AWS) that uses Google owned Google service account to assume into customer’s AWS IAM Role.
- class google.cloud.bigquery_connection_v1.types.AwsCrossAccountRole(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- external_id¶
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
- Type
- class google.cloud.bigquery_connection_v1.types.AwsProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Connection properties specific to Amazon Web Services (AWS).
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- cross_account_role¶
Authentication using Google owned AWS IAM user’s access key to assume into customer’s AWS IAM Role. Deprecated, do not use.
This field is a member of oneof
authentication_method
.
- class google.cloud.bigquery_connection_v1.types.AzureProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Container for connection properties specific to Azure.
- redirect_uri¶
The URL user will be redirected to after granting consent during connection setup.
- Type
- federated_application_client_id¶
The client ID of the user’s Azure Active Directory Application used for a federated connection.
- Type
- class google.cloud.bigquery_connection_v1.types.CloudResourceProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Container for connection properties for delegation of access to GCP resources.
- service_account_id¶
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
- Type
- class google.cloud.bigquery_connection_v1.types.CloudSpannerProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Connection properties specific to Cloud Spanner.
- max_parallelism¶
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: Eitheruse_data_boost
oruse_serverless_analytics
must be set.- Type
- use_serverless_analytics¶
If the serverless analytics service should be used to read data from Cloud Spanner. Note:
use_parallelism
must be set when using serverless analytics.- Type
- use_data_boost¶
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. Preferuse_data_boost
overuse_serverless_analytics
.- Type
- database_role¶
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
andINSERT
. 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.
- Type
- class google.cloud.bigquery_connection_v1.types.CloudSqlCredential(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Credential info for the Cloud SQL.
- class google.cloud.bigquery_connection_v1.types.CloudSqlProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Connection properties specific to the Cloud SQL.
- type_¶
Type of the Cloud SQL database.
- credential¶
Input only. Cloud SQL credential.
- service_account_id¶
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.
- Type
- class DatabaseType(value)[source]¶
Bases:
proto.enums.Enum
Supported Cloud SQL database types.
- Values:
- DATABASE_TYPE_UNSPECIFIED (0):
Unspecified database type.
- POSTGRES (1):
Cloud SQL for PostgreSQL.
- MYSQL (2):
Cloud SQL for MySQL.
- class google.cloud.bigquery_connection_v1.types.Connection(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration parameters to establish connection with an external data source, except the credential attributes.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- name¶
The resource name of the connection in the form of:
projects/{project_id}/locations/{location_id}/connections/{connection_id}
- Type
- class google.cloud.bigquery_connection_v1.types.CreateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
- parent¶
Required. Parent resource name. Must be in the format
projects/{project_id}/locations/{location_id}
- Type
- connection¶
Required. Connection to create.
- class google.cloud.bigquery_connection_v1.types.DeleteConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for [ConnectionService.DeleteConnectionRequest][].
- class google.cloud.bigquery_connection_v1.types.GetConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
- class google.cloud.bigquery_connection_v1.types.ListConnectionsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
- parent¶
Required. Parent resource name. Must be in the form:
projects/{project_id}/locations/{location_id}
- Type
- class google.cloud.bigquery_connection_v1.types.ListConnectionsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
- connections¶
List of connections.
- Type
MutableSequence[google.cloud.bigquery_connection_v1.types.Connection]
- class google.cloud.bigquery_connection_v1.types.MetastoreServiceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration of the Dataproc Metastore Service.
- class google.cloud.bigquery_connection_v1.types.SalesforceDataCloudProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Connection properties specific to Salesforce DataCloud. This is intended for use only by Salesforce partner projects.
- identity¶
Output only. A unique Google-owned and Google-generated service account identity for the connection.
- Type
- class google.cloud.bigquery_connection_v1.types.SparkHistoryServerConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration of the Spark History Server.
- class google.cloud.bigquery_connection_v1.types.SparkProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Container for connection properties to execute stored procedures for Apache Spark.
- service_account_id¶
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
- Type
- metastore_service_config¶
Optional. Dataproc Metastore Service configuration for the connection.
- spark_history_server_config¶
Optional. Spark History Server configuration for the connection.
- class google.cloud.bigquery_connection_v1.types.UpdateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
- name¶
Required. Name of the connection to update, for example:
projects/{project_id}/locations/{location_id}/connections/{connection_id}
- Type
- connection¶
Required. Connection containing the updated fields.
- update_mask¶
Required. Update mask for the connection fields to be updated.