Class ConnectionServiceConnection (2.13.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::bigquery::connection::v1::CreateConnectionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::connection::v1::Connection >

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

Parameter
NameDescription
request google::cloud::bigquery::connection::v1::GetConnectionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::connection::v1::Connection >

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

Parameter
NameDescription
request google::cloud::bigquery::connection::v1::ListConnectionsRequest
Returns
TypeDescription
StreamRange< google::cloud::bigquery::connection::v1::Connection >

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

Parameter
NameDescription
request google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::connection::v1::Connection >

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

Parameter
NameDescription
request google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >