genproto: google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1 Index | Files

package connection

import "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1"

Index

Package Files

connection.pb.go

Variables

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.

var File_google_cloud_bigquery_connection_v1_connection_proto protoreflect.FileDescriptor

func RegisterConnectionServiceServer Uses

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

type CloudSqlCredential Uses

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 Uses

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

Deprecated: Use CloudSqlCredential.ProtoReflect.Descriptor instead.

func (*CloudSqlCredential) GetPassword Uses

func (x *CloudSqlCredential) GetPassword() string

func (*CloudSqlCredential) GetUsername Uses

func (x *CloudSqlCredential) GetUsername() string

func (*CloudSqlCredential) ProtoMessage Uses

func (*CloudSqlCredential) ProtoMessage()

func (*CloudSqlCredential) ProtoReflect Uses

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

func (*CloudSqlCredential) Reset Uses

func (x *CloudSqlCredential) Reset()

func (*CloudSqlCredential) String Uses

func (x *CloudSqlCredential) String() string

type CloudSqlProperties Uses

type CloudSqlProperties struct {

    // Cloud SQL instance ID in the form `project:location:instance`.
    InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
    // Database name.
    Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
    // Type of the Cloud SQL database.
    Type CloudSqlProperties_DatabaseType `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.bigquery.connection.v1.CloudSqlProperties_DatabaseType" json:"type,omitempty"`
    // Input only. Cloud SQL credential.
    Credential *CloudSqlCredential `protobuf:"bytes,4,opt,name=credential,proto3" json:"credential,omitempty"`
    // contains filtered or unexported fields
}

Connection properties specific to the Cloud SQL.

func (*CloudSqlProperties) Descriptor Uses

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

Deprecated: Use CloudSqlProperties.ProtoReflect.Descriptor instead.

func (*CloudSqlProperties) GetCredential Uses

func (x *CloudSqlProperties) GetCredential() *CloudSqlCredential

func (*CloudSqlProperties) GetDatabase Uses

func (x *CloudSqlProperties) GetDatabase() string

func (*CloudSqlProperties) GetInstanceId Uses

func (x *CloudSqlProperties) GetInstanceId() string

func (*CloudSqlProperties) GetType Uses

func (x *CloudSqlProperties) GetType() CloudSqlProperties_DatabaseType

func (*CloudSqlProperties) ProtoMessage Uses

func (*CloudSqlProperties) ProtoMessage()

func (*CloudSqlProperties) ProtoReflect Uses

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

func (*CloudSqlProperties) Reset Uses

func (x *CloudSqlProperties) Reset()

func (*CloudSqlProperties) String Uses

func (x *CloudSqlProperties) String() string

type CloudSqlProperties_DatabaseType Uses

type CloudSqlProperties_DatabaseType int32

Supported Cloud SQL database types.

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 Uses

func (CloudSqlProperties_DatabaseType) Descriptor() protoreflect.EnumDescriptor

func (CloudSqlProperties_DatabaseType) Enum Uses

func (x CloudSqlProperties_DatabaseType) Enum() *CloudSqlProperties_DatabaseType

func (CloudSqlProperties_DatabaseType) EnumDescriptor Uses

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

Deprecated: Use CloudSqlProperties_DatabaseType.Descriptor instead.

func (CloudSqlProperties_DatabaseType) Number Uses

func (x CloudSqlProperties_DatabaseType) Number() protoreflect.EnumNumber

func (CloudSqlProperties_DatabaseType) String Uses

func (x CloudSqlProperties_DatabaseType) String() string

func (CloudSqlProperties_DatabaseType) Type Uses

func (CloudSqlProperties_DatabaseType) Type() protoreflect.EnumType

type Connection Uses

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
    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 Uses

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

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetCloudSql Uses

func (x *Connection) GetCloudSql() *CloudSqlProperties

func (*Connection) GetCreationTime Uses

func (x *Connection) GetCreationTime() int64

func (*Connection) GetDescription Uses

func (x *Connection) GetDescription() string

func (*Connection) GetFriendlyName Uses

func (x *Connection) GetFriendlyName() string

func (*Connection) GetHasCredential Uses

func (x *Connection) GetHasCredential() bool

func (*Connection) GetLastModifiedTime Uses

func (x *Connection) GetLastModifiedTime() int64

func (*Connection) GetName Uses

func (x *Connection) GetName() string

func (*Connection) GetProperties Uses

func (m *Connection) GetProperties() isConnection_Properties

func (*Connection) ProtoMessage Uses

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect Uses

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

func (*Connection) Reset Uses

func (x *Connection) Reset()

func (*Connection) String Uses

func (x *Connection) String() string

type ConnectionServiceClient Uses

type ConnectionServiceClient interface {
    // Creates a new connection.
    CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
    // Returns specified connection.
    GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
    // Returns a list of connections in the given project.
    ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error)
    // Updates the specified connection. For security reasons, also resets
    // credential if connection properties are in the update field mask.
    UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
    // Deletes connection and associated credential.
    DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Gets the access control policy for a resource.
    // Returns an empty policy if the resource exists and does not have a policy
    // set.
    GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
    // Sets the access control policy on the specified resource. Replaces any
    // existing policy.
    //
    // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
    SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
    // Returns permissions that a caller has on the specified resource.
    // If the resource does not exist, this will return an empty set of
    // permissions, not a `NOT_FOUND` error.
    //
    // Note: This operation is designed to be used for building permission-aware
    // UIs and command-line tools, not for authorization checking. This operation
    // may "fail open" without warning.
    TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}

ConnectionServiceClient is the client API for ConnectionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConnectionServiceClient Uses

func NewConnectionServiceClient(cc grpc.ClientConnInterface) ConnectionServiceClient

type ConnectionServiceServer Uses

type ConnectionServiceServer interface {
    // Creates a new connection.
    CreateConnection(context.Context, *CreateConnectionRequest) (*Connection, error)
    // Returns specified connection.
    GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)
    // Returns a list of connections in the given project.
    ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)
    // Updates the specified connection. For security reasons, also resets
    // credential if connection properties are in the update field mask.
    UpdateConnection(context.Context, *UpdateConnectionRequest) (*Connection, error)
    // Deletes connection and associated credential.
    DeleteConnection(context.Context, *DeleteConnectionRequest) (*empty.Empty, error)
    // Gets the access control policy for a resource.
    // Returns an empty policy if the resource exists and does not have a policy
    // set.
    GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
    // Sets the access control policy on the specified resource. Replaces any
    // existing policy.
    //
    // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
    SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
    // Returns permissions that a caller has on the specified resource.
    // If the resource does not exist, this will return an empty set of
    // permissions, not a `NOT_FOUND` error.
    //
    // Note: This operation is designed to be used for building permission-aware
    // UIs and command-line tools, not for authorization checking. This operation
    // may "fail open" without warning.
    TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}

ConnectionServiceServer is the server API for ConnectionService service.

type Connection_CloudSql Uses

type Connection_CloudSql struct {
    // Cloud SQL properties.
    CloudSql *CloudSqlProperties `protobuf:"bytes,4,opt,name=cloud_sql,json=cloudSql,proto3,oneof"`
}

type CreateConnectionRequest Uses

type CreateConnectionRequest struct {

    // Required. Parent resource name.
    // Must be in the format `projects/{project_id}/locations/{location_id}`
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional. Connection id that should be assigned to the created connection.
    ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
    // Required. Connection to create.
    Connection *Connection `protobuf:"bytes,3,opt,name=connection,proto3" json:"connection,omitempty"`
    // contains filtered or unexported fields
}

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

func (*CreateConnectionRequest) Descriptor Uses

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

Deprecated: Use CreateConnectionRequest.ProtoReflect.Descriptor instead.

func (*CreateConnectionRequest) GetConnection Uses

func (x *CreateConnectionRequest) GetConnection() *Connection

func (*CreateConnectionRequest) GetConnectionId Uses

func (x *CreateConnectionRequest) GetConnectionId() string

func (*CreateConnectionRequest) GetParent Uses

func (x *CreateConnectionRequest) GetParent() string

func (*CreateConnectionRequest) ProtoMessage Uses

func (*CreateConnectionRequest) ProtoMessage()

func (*CreateConnectionRequest) ProtoReflect Uses

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

func (*CreateConnectionRequest) Reset Uses

func (x *CreateConnectionRequest) Reset()

func (*CreateConnectionRequest) String Uses

func (x *CreateConnectionRequest) String() string

type DeleteConnectionRequest Uses

type DeleteConnectionRequest struct {

    // Required. Name of the deleted connection, for example:
    // `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

The request for [ConnectionService.DeleteConnectionRequest][].

func (*DeleteConnectionRequest) Descriptor Uses

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

Deprecated: Use DeleteConnectionRequest.ProtoReflect.Descriptor instead.

func (*DeleteConnectionRequest) GetName Uses

func (x *DeleteConnectionRequest) GetName() string

func (*DeleteConnectionRequest) ProtoMessage Uses

func (*DeleteConnectionRequest) ProtoMessage()

func (*DeleteConnectionRequest) ProtoReflect Uses

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

func (*DeleteConnectionRequest) Reset Uses

func (x *DeleteConnectionRequest) Reset()

func (*DeleteConnectionRequest) String Uses

func (x *DeleteConnectionRequest) String() string

type GetConnectionRequest Uses

type GetConnectionRequest struct {

    // Required. Name of the requested connection, for example:
    // `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

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

func (*GetConnectionRequest) Descriptor Uses

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

Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead.

func (*GetConnectionRequest) GetName Uses

func (x *GetConnectionRequest) GetName() string

func (*GetConnectionRequest) ProtoMessage Uses

func (*GetConnectionRequest) ProtoMessage()

func (*GetConnectionRequest) ProtoReflect Uses

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

func (*GetConnectionRequest) Reset Uses

func (x *GetConnectionRequest) Reset()

func (*GetConnectionRequest) String Uses

func (x *GetConnectionRequest) String() string

type ListConnectionsRequest Uses

type ListConnectionsRequest struct {

    // Required. Parent resource name.
    // Must be in the form: `projects/{project_id}/locations/{location_id}`
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. Page size.
    PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Page token.
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

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

func (*ListConnectionsRequest) Descriptor Uses

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

Deprecated: Use ListConnectionsRequest.ProtoReflect.Descriptor instead.

func (*ListConnectionsRequest) GetPageSize Uses

func (x *ListConnectionsRequest) GetPageSize() int32

func (*ListConnectionsRequest) GetPageToken Uses

func (x *ListConnectionsRequest) GetPageToken() string

func (*ListConnectionsRequest) GetParent Uses

func (x *ListConnectionsRequest) GetParent() string

func (*ListConnectionsRequest) ProtoMessage Uses

func (*ListConnectionsRequest) ProtoMessage()

func (*ListConnectionsRequest) ProtoReflect Uses

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

func (*ListConnectionsRequest) Reset Uses

func (x *ListConnectionsRequest) Reset()

func (*ListConnectionsRequest) String Uses

func (x *ListConnectionsRequest) String() string

type ListConnectionsResponse Uses

type ListConnectionsResponse struct {

    // Next page token.
    NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // List of connections.
    Connections []*Connection `protobuf:"bytes,2,rep,name=connections,proto3" json:"connections,omitempty"`
    // contains filtered or unexported fields
}

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

func (*ListConnectionsResponse) Descriptor Uses

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

Deprecated: Use ListConnectionsResponse.ProtoReflect.Descriptor instead.

func (*ListConnectionsResponse) GetConnections Uses

func (x *ListConnectionsResponse) GetConnections() []*Connection

func (*ListConnectionsResponse) GetNextPageToken Uses

func (x *ListConnectionsResponse) GetNextPageToken() string

func (*ListConnectionsResponse) ProtoMessage Uses

func (*ListConnectionsResponse) ProtoMessage()

func (*ListConnectionsResponse) ProtoReflect Uses

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

func (*ListConnectionsResponse) Reset Uses

func (x *ListConnectionsResponse) Reset()

func (*ListConnectionsResponse) String Uses

func (x *ListConnectionsResponse) String() string

type UnimplementedConnectionServiceServer Uses

type UnimplementedConnectionServiceServer struct {
}

UnimplementedConnectionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedConnectionServiceServer) CreateConnection Uses

func (*UnimplementedConnectionServiceServer) CreateConnection(context.Context, *CreateConnectionRequest) (*Connection, error)

func (*UnimplementedConnectionServiceServer) DeleteConnection Uses

func (*UnimplementedConnectionServiceServer) DeleteConnection(context.Context, *DeleteConnectionRequest) (*empty.Empty, error)

func (*UnimplementedConnectionServiceServer) GetConnection Uses

func (*UnimplementedConnectionServiceServer) GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)

func (*UnimplementedConnectionServiceServer) GetIamPolicy Uses

func (*UnimplementedConnectionServiceServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedConnectionServiceServer) ListConnections Uses

func (*UnimplementedConnectionServiceServer) ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)

func (*UnimplementedConnectionServiceServer) SetIamPolicy Uses

func (*UnimplementedConnectionServiceServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedConnectionServiceServer) TestIamPermissions Uses

func (*UnimplementedConnectionServiceServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)

func (*UnimplementedConnectionServiceServer) UpdateConnection Uses

func (*UnimplementedConnectionServiceServer) UpdateConnection(context.Context, *UpdateConnectionRequest) (*Connection, error)

type UpdateConnectionRequest Uses

type UpdateConnectionRequest struct {

    // Required. Name of the connection to update, for example:
    // `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. Connection containing the updated fields.
    Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
    // Required. Update mask for the connection fields to be updated.
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

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

func (*UpdateConnectionRequest) Descriptor Uses

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

Deprecated: Use UpdateConnectionRequest.ProtoReflect.Descriptor instead.

func (*UpdateConnectionRequest) GetConnection Uses

func (x *UpdateConnectionRequest) GetConnection() *Connection

func (*UpdateConnectionRequest) GetName Uses

func (x *UpdateConnectionRequest) GetName() string

func (*UpdateConnectionRequest) GetUpdateMask Uses

func (x *UpdateConnectionRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateConnectionRequest) ProtoMessage Uses

func (*UpdateConnectionRequest) ProtoMessage()

func (*UpdateConnectionRequest) ProtoReflect Uses

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

func (*UpdateConnectionRequest) Reset Uses

func (x *UpdateConnectionRequest) Reset()

func (*UpdateConnectionRequest) String Uses

func (x *UpdateConnectionRequest) String() string

Package connection imports 14 packages (graph). Updated 2020-08-13. Refresh now. Tools for package owners.