Class ConnectionServiceConnection (2.14.0)

This interface defines virtual methods for each of the user-facing overload sets in ConnectionServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ConnectionServiceClient.

To create a concrete instance, see MakeConnectionServiceConnection().

For mocking, see bigquery_connection_v1_mocks::MockConnectionServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateConnection(google::cloud::bigquery::connection::v1::CreateConnectionRequest const &)

Parameter
Name Description
request google::cloud::bigquery::connection::v1::CreateConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::connection::v1::Connection >

virtual GetConnection(google::cloud::bigquery::connection::v1::GetConnectionRequest const &)

Parameter
Name Description
request google::cloud::bigquery::connection::v1::GetConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::connection::v1::Connection >

virtual ListConnections(google::cloud::bigquery::connection::v1::ListConnectionsRequest)

Parameter
Name Description
request google::cloud::bigquery::connection::v1::ListConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::connection::v1::Connection >

virtual UpdateConnection(google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &)

Parameter
Name Description
request google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::connection::v1::Connection >

virtual DeleteConnection(google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &)

Parameter
Name Description
request google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &
Returns
Type Description
Status

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >