Class DataPolicyServiceConnection (2.16.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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

Parameter
Name Description
request google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy >

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 >