Package cloud.google.com/go/bigquery/connection/apiv1/connectionpb (v1.54.0)

Variables

CloudSqlProperties_DatabaseType_name, CloudSqlProperties_DatabaseType_value

var (
	CloudSqlProperties_DatabaseType_name = map[int32]string{
		0: "DATABASE_TYPE_UNSPECIFIED",
		1: "POSTGRES",
		2: "MYSQL",
	}
	CloudSqlProperties_DatabaseType_value = map[string]int32{
		"DATABASE_TYPE_UNSPECIFIED": 0,
		"POSTGRES":                  1,
		"MYSQL":                     2,
	}
)

Enum value maps for CloudSqlProperties_DatabaseType.

File_google_cloud_bigquery_connection_v1_connection_proto

var File_google_cloud_bigquery_connection_v1_connection_proto protoreflect.FileDescriptor

Functions

func RegisterConnectionServiceServer

func RegisterConnectionServiceServer(s *grpc.Server, srv ConnectionServiceServer)

AwsAccessRole

type AwsAccessRole struct {

	// The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
	// Connection.
	IamRoleId string `protobuf:"bytes,1,opt,name=iam_role_id,json=iamRoleId,proto3" json:"iam_role_id,omitempty"`
	// A unique Google-owned and Google-generated identity for the Connection.
	// This identity will be used to access the user's AWS IAM Role.
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

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

func (*AwsAccessRole) Descriptor

func (*AwsAccessRole) Descriptor() ([]byte, []int)

Deprecated: Use AwsAccessRole.ProtoReflect.Descriptor instead.

func (*AwsAccessRole) GetIamRoleId

func (x *AwsAccessRole) GetIamRoleId() string

func (*AwsAccessRole) GetIdentity

func (x *AwsAccessRole) GetIdentity() string

func (*AwsAccessRole) ProtoMessage

func (*AwsAccessRole) ProtoMessage()

func (*AwsAccessRole) ProtoReflect

func (x *AwsAccessRole) ProtoReflect() protoreflect.Message

func (*AwsAccessRole) Reset

func (x *AwsAccessRole) Reset()

func (*AwsAccessRole) String

func (x *AwsAccessRole) String() string

AwsCrossAccountRole

type AwsCrossAccountRole struct {

	// The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
	// Connection.
	IamRoleId string `protobuf:"bytes,1,opt,name=iam_role_id,json=iamRoleId,proto3" json:"iam_role_id,omitempty"`
	// Output only. Google-owned AWS IAM User for a Connection.
	IamUserId string `protobuf:"bytes,2,opt,name=iam_user_id,json=iamUserId,proto3" json:"iam_user_id,omitempty"`
	// 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
	ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

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.

func (*AwsCrossAccountRole) Descriptor

func (*AwsCrossAccountRole) Descriptor() ([]byte, []int)

Deprecated: Use AwsCrossAccountRole.ProtoReflect.Descriptor instead.

func (*AwsCrossAccountRole) GetExternalId

func (x *AwsCrossAccountRole) GetExternalId() string

func (*AwsCrossAccountRole) GetIamRoleId

func (x *AwsCrossAccountRole) GetIamRoleId() string

func (*AwsCrossAccountRole) GetIamUserId

func (x *AwsCrossAccountRole) GetIamUserId() string

func (*AwsCrossAccountRole) ProtoMessage

func (*AwsCrossAccountRole) ProtoMessage()

func (*AwsCrossAccountRole) ProtoReflect

func (x *AwsCrossAccountRole) ProtoReflect() protoreflect.Message

func (*AwsCrossAccountRole) Reset

func (x *AwsCrossAccountRole) Reset()

func (*AwsCrossAccountRole) String

func (x *AwsCrossAccountRole) String() string

AwsProperties

type AwsProperties struct {

	// Authentication method chosen at connection creation.
	//
	// Types that are assignable to AuthenticationMethod:
	//	*AwsProperties_CrossAccountRole
	//	*AwsProperties_AccessRole
	AuthenticationMethod isAwsProperties_AuthenticationMethod `protobuf_oneof:"authentication_method"`
	// contains filtered or unexported fields
}

Connection properties specific to Amazon Web Services (AWS).

func (*AwsProperties) Descriptor

func (*AwsProperties) Descriptor() ([]byte, []int)

Deprecated: Use AwsProperties.ProtoReflect.Descriptor instead.

func (*AwsProperties) GetAccessRole

func (x *AwsProperties) GetAccessRole() *AwsAccessRole

func (*AwsProperties) GetAuthenticationMethod

func (m *AwsProperties) GetAuthenticationMethod() isAwsProperties_AuthenticationMethod

func (*AwsProperties) GetCrossAccountRole

func (x *AwsProperties) GetCrossAccountRole() *AwsCrossAccountRole

Deprecated: Marked as deprecated in google/cloud/bigquery/connection/v1/connection.proto.

func (*AwsProperties) ProtoMessage

func (*AwsProperties) ProtoMessage()

func (*AwsProperties) ProtoReflect

func (x *AwsProperties) ProtoReflect() protoreflect.Message

func (*AwsProperties) Reset

func (x *AwsProperties) Reset()

func (*AwsProperties) String

func (x *AwsProperties) String() string

AwsProperties_AccessRole

type AwsProperties_AccessRole struct {
	// Authentication using Google owned service account to assume into
	// customer's AWS IAM Role.
	AccessRole *AwsAccessRole `protobuf:"bytes,3,opt,name=access_role,json=accessRole,proto3,oneof"`
}

AwsProperties_CrossAccountRole

type AwsProperties_CrossAccountRole struct {
	// Authentication using Google owned AWS IAM user's access key to assume
	// into customer's AWS IAM Role.
	// Deprecated, do not use.
	//
	// Deprecated: Marked as deprecated in google/cloud/bigquery/connection/v1/connection.proto.
	CrossAccountRole *AwsCrossAccountRole `protobuf:"bytes,2,opt,name=cross_account_role,json=crossAccountRole,proto3,oneof"`
}

AzureProperties

type AzureProperties struct {
	Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`

	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`

	ObjectId string `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`

	CustomerTenantId string `protobuf:"bytes,4,opt,name=customer_tenant_id,json=customerTenantId,proto3" json:"customer_tenant_id,omitempty"`

	RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`

	FederatedApplicationClientId string "" /* 149 byte string literal not displayed */

	Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"`

}

Container for connection properties specific to Azure.

func (*AzureProperties) Descriptor

func (*AzureProperties) Descriptor() ([]byte, []int)

Deprecated: Use AzureProperties.ProtoReflect.Descriptor instead.

func (*AzureProperties) GetApplication

func (x *AzureProperties) GetApplication() string

func (*AzureProperties) GetClientId

func (x *AzureProperties) GetClientId() string

func (*AzureProperties) GetCustomerTenantId

func (x *AzureProperties) GetCustomerTenantId() string

func (*AzureProperties) GetFederatedApplicationClientId

func (x *AzureProperties) GetFederatedApplicationClientId() string

func (*AzureProperties) GetIdentity

func (x *AzureProperties) GetIdentity() string

func (*AzureProperties) GetObjectId

func (x *AzureProperties) GetObjectId() string

func (*AzureProperties) GetRedirectUri

func (x *AzureProperties) GetRedirectUri() string

func (*AzureProperties) ProtoMessage

func (*AzureProperties) ProtoMessage()

func (*AzureProperties) ProtoReflect

func (x *AzureProperties) ProtoReflect() protoreflect.Message

func (*AzureProperties) Reset

func (x *AzureProperties) Reset()

func (*AzureProperties) String

func (x *AzureProperties) String() string

CloudResourceProperties

type CloudResourceProperties struct {

	// 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:
	//   

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

func (*CloudResourceProperties) Descriptor

func (*CloudResourceProperties) Descriptor() ([]byte, []int)

Deprecated: Use CloudResourceProperties.ProtoReflect.Descriptor instead.

func (*CloudResourceProperties) GetServiceAccountId

func (x *CloudResourceProperties) GetServiceAccountId() string

func (*CloudResourceProperties) ProtoMessage

func (*CloudResourceProperties) ProtoMessage()

func (*CloudResourceProperties) ProtoReflect

func (x *CloudResourceProperties) ProtoReflect() protoreflect.Message

func (*CloudResourceProperties) Reset

func (x *CloudResourceProperties) Reset()

func (*CloudResourceProperties) String

func (x *CloudResourceProperties) String() string

CloudSpannerProperties

type CloudSpannerProperties struct {
	Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`

	UseParallelism bool `protobuf:"varint,2,opt,name=use_parallelism,json=useParallelism,proto3" json:"use_parallelism,omitempty"`

	MaxParallelism int32 `protobuf:"varint,5,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"`

	UseServerlessAnalytics bool "" /* 130 byte string literal not displayed */

	UseDataBoost bool `protobuf:"varint,6,opt,name=use_data_boost,json=useDataBoost,proto3" json:"use_data_boost,omitempty"`

	DatabaseRole string `protobuf:"bytes,4,opt,name=database_role,json=databaseRole,proto3" json:"database_role,omitempty"`

}

Connection properties specific to Cloud Spanner.

func (*CloudSpannerProperties) Descriptor

func (*CloudSpannerProperties) Descriptor() ([]byte, []int)

Deprecated: Use CloudSpannerProperties.ProtoReflect.Descriptor instead.

func (*CloudSpannerProperties) GetDatabase

func (x *CloudSpannerProperties) GetDatabase() string

func (*CloudSpannerProperties) GetDatabaseRole

func (x *CloudSpannerProperties) GetDatabaseRole() string

func (*CloudSpannerProperties) GetMaxParallelism

func (x *CloudSpannerProperties) GetMaxParallelism() int32

func (*CloudSpannerProperties) GetUseDataBoost

func (x *CloudSpannerProperties) GetUseDataBoost() bool

func (*CloudSpannerProperties) GetUseParallelism

func (x *CloudSpannerProperties) GetUseParallelism() bool

func (*CloudSpannerProperties) GetUseServerlessAnalytics

func (x *CloudSpannerProperties) GetUseServerlessAnalytics() bool

func (*CloudSpannerProperties) ProtoMessage

func (*CloudSpannerProperties) ProtoMessage()

func (*CloudSpannerProperties) ProtoReflect

func (x *CloudSpannerProperties) ProtoReflect() protoreflect.Message

func (*CloudSpannerProperties) Reset

func (x *CloudSpannerProperties) Reset()

func (*CloudSpannerProperties) String

func (x *CloudSpannerProperties) String() string

CloudSqlCredential

type CloudSqlCredential struct {

	// The username for the credential.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The password for the credential.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Credential info for the Cloud SQL.

func (*CloudSqlCredential) Descriptor

func (*CloudSqlCredential) Descriptor() ([]byte, []int)

Deprecated: Use CloudSqlCredential.ProtoReflect.Descriptor instead.

func (*CloudSqlCredential) GetPassword

func (x *CloudSqlCredential) GetPassword() string

func (*CloudSqlCredential) GetUsername

func (x *CloudSqlCredential) GetUsername() string

func (*CloudSqlCredential) ProtoMessage

func (*CloudSqlCredential) ProtoMessage()

func (*CloudSqlCredential) ProtoReflect

func (x *CloudSqlCredential) ProtoReflect() protoreflect.Message

func (*CloudSqlCredential) Reset

func (x *CloudSqlCredential) Reset()

func (*CloudSqlCredential) String

func (x *CloudSqlCredential) String() string

CloudSqlProperties

type CloudSqlProperties struct {
	InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`

	Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`

	Type CloudSqlProperties_DatabaseType "" /* 135 byte string literal not displayed */

	Credential *CloudSqlCredential `protobuf:"bytes,4,opt,name=credential,proto3" json:"credential,omitempty"`

	ServiceAccountId string `protobuf:"bytes,5,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`

}

Connection properties specific to the Cloud SQL.

func (*CloudSqlProperties) Descriptor

func (*CloudSqlProperties) Descriptor() ([]byte, []int)

Deprecated: Use CloudSqlProperties.ProtoReflect.Descriptor instead.

func (*CloudSqlProperties) GetCredential

func (x *CloudSqlProperties) GetCredential() *CloudSqlCredential

func (*CloudSqlProperties) GetDatabase

func (x *CloudSqlProperties) GetDatabase() string

func (*CloudSqlProperties) GetInstanceId

func (x *CloudSqlProperties) GetInstanceId() string

func (*CloudSqlProperties) GetServiceAccountId

func (x *CloudSqlProperties) GetServiceAccountId() string

func (*CloudSqlProperties) GetType

func (*CloudSqlProperties) ProtoMessage

func (*CloudSqlProperties) ProtoMessage()

func (*CloudSqlProperties) ProtoReflect

func (x *CloudSqlProperties) ProtoReflect() protoreflect.Message

func (*CloudSqlProperties) Reset

func (x *CloudSqlProperties) Reset()

func (*CloudSqlProperties) String

func (x *CloudSqlProperties) String() string

CloudSqlProperties_DatabaseType

type CloudSqlProperties_DatabaseType int32

Supported Cloud SQL database types.

CloudSqlProperties_DATABASE_TYPE_UNSPECIFIED, CloudSqlProperties_POSTGRES, CloudSqlProperties_MYSQL

const (
	// Unspecified database type.
	CloudSqlProperties_DATABASE_TYPE_UNSPECIFIED CloudSqlProperties_DatabaseType = 0
	// Cloud SQL for PostgreSQL.
	CloudSqlProperties_POSTGRES CloudSqlProperties_DatabaseType = 1
	// Cloud SQL for MySQL.
	CloudSqlProperties_MYSQL CloudSqlProperties_DatabaseType = 2
)

func (CloudSqlProperties_DatabaseType) Descriptor

func (CloudSqlProperties_DatabaseType) Enum

func (CloudSqlProperties_DatabaseType) EnumDescriptor

func (CloudSqlProperties_DatabaseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CloudSqlProperties_DatabaseType.Descriptor instead.

func (CloudSqlProperties_DatabaseType) Number

func (CloudSqlProperties_DatabaseType) String

func (CloudSqlProperties_DatabaseType) Type

Connection

type Connection struct {

	// The resource name of the connection in the form of:
	// `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User provided display name for the connection.
	FriendlyName string `protobuf:"bytes,2,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
	// User provided description.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Properties specific to the underlying data source.
	//
	// Types that are assignable to Properties:
	//	*Connection_CloudSql
	//	*Connection_Aws
	//	*Connection_Azure
	//	*Connection_CloudSpanner
	//	*Connection_CloudResource
	//	*Connection_Spark
	//	*Connection_SalesforceDataCloud
	Properties isConnection_Properties `protobuf_oneof:"properties"`
	// Output only. The creation timestamp of the connection.
	CreationTime int64 `protobuf:"varint,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// Output only. The last update timestamp of the connection.
	LastModifiedTime int64 `protobuf:"varint,6,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"`
	// Output only. True, if credential is configured for this connection.
	HasCredential bool `protobuf:"varint,7,opt,name=has_credential,json=hasCredential,proto3" json:"has_credential,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Connection) Descriptor

func (*Connection) Descriptor() ([]byte, []int)

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetAws

func (x *Connection) GetAws() *AwsProperties

func (*Connection) GetAzure

func (x *Connection) GetAzure() *