public sealed class ConnectionServiceClientImpl : ConnectionServiceClient
Reference documentation and code samples for the BigQuery Connection v1 API class ConnectionServiceClientImpl.
ConnectionService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.BigQuery.Connection.V1Assembly
Google.Cloud.BigQuery.Connection.V1.dll
Remarks
Manages external data source connections and credentials.
Constructors
ConnectionServiceClientImpl(ConnectionServiceClient, ConnectionServiceSettings, ILogger)
public ConnectionServiceClientImpl(ConnectionService.ConnectionServiceClient grpcClient, ConnectionServiceSettings settings, ILogger logger)
Constructs a client wrapper for the ConnectionService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ConnectionServiceConnectionServiceClient The underlying gRPC client. |
settings | ConnectionServiceSettings The base ConnectionServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override ConnectionService.ConnectionServiceClient GrpcClient { get; }
The underlying gRPC ConnectionService client
Property Value | |
---|---|
Type | Description |
ConnectionServiceConnectionServiceClient |
Methods
CreateConnection(CreateConnectionRequest, CallSettings)
public override Connection CreateConnection(CreateConnectionRequest request, CallSettings callSettings = null)
Creates a new connection.
Parameters | |
---|---|
Name | Description |
request | CreateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection | The RPC response. |
CreateConnectionAsync(CreateConnectionRequest, CallSettings)
public override Task<Connection> CreateConnectionAsync(CreateConnectionRequest request, CallSettings callSettings = null)
Creates a new connection.
Parameters | |
---|---|
Name | Description |
request | CreateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection | A Task containing the RPC response. |
DeleteConnection(DeleteConnectionRequest, CallSettings)
public override void DeleteConnection(DeleteConnectionRequest request, CallSettings callSettings = null)
Deletes connection and associated credential.
Parameters | |
---|---|
Name | Description |
request | DeleteConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)
public override Task DeleteConnectionAsync(DeleteConnectionRequest request, CallSettings callSettings = null)
Deletes connection and associated credential.
Parameters | |
---|---|
Name | Description |
request | DeleteConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetConnection(GetConnectionRequest, CallSettings)
public override Connection GetConnection(GetConnectionRequest request, CallSettings callSettings = null)
Returns specified connection.
Parameters | |
---|---|
Name | Description |
request | GetConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection | The RPC response. |
GetConnectionAsync(GetConnectionRequest, CallSettings)
public override Task<Connection> GetConnectionAsync(GetConnectionRequest request, CallSettings callSettings = null)
Returns specified connection.
Parameters | |
---|---|
Name | Description |
request | GetConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection | A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
ListConnections(ListConnectionsRequest, CallSettings)
public override PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(ListConnectionsRequest request, CallSettings callSettings = null)
Returns a list of connections in the given project.
Parameters | |
---|---|
Name | Description |
request | ListConnectionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConnectionsResponseConnection | A pageable sequence of Connection resources. |
ListConnectionsAsync(ListConnectionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(ListConnectionsRequest request, CallSettings callSettings = null)
Returns a list of connections in the given project.
Parameters | |
---|---|
Name | Description |
request | ListConnectionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConnectionsResponseConnection | A pageable asynchronous sequence of Connection resources. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsResponse | The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse | A Task containing the RPC response. |
UpdateConnection(UpdateConnectionRequest, CallSettings)
public override Connection UpdateConnection(UpdateConnectionRequest request, CallSettings callSettings = null)
Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.
Parameters | |
---|---|
Name | Description |
request | UpdateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Connection | The RPC response. |
UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)
public override Task<Connection> UpdateConnectionAsync(UpdateConnectionRequest request, CallSettings callSettings = null)
Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.
Parameters | |
---|---|
Name | Description |
request | UpdateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConnection | A Task containing the RPC response. |