Class DataPolicyServiceConnection (2.22.0)

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

To create a concrete instance, see MakeDataPolicyServiceConnection().

For mocking, see bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateDataPolicy(google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

virtual UpdateDataPolicy(google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

virtual RenameDataPolicy(google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

virtual DeleteDataPolicy(google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &
Returns
TypeDescription
Status

virtual GetDataPolicy(google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

virtual ListDataPolicies(google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest)

Parameter
NameDescription
request google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest
Returns
TypeDescription
StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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 >