19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_DATAPOLICIES_V1_DATA_POLICY_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_DATAPOLICIES_V1_DATA_POLICY_CLIENT_H
22#include "google/cloud/bigquery/datapolicies/v1/data_policy_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
80 return a.connection_ == b.connection_;
117 std::string
const& parent,
256 std::string
const& new_data_policy_id,
Options opts
= {});
575 google::iam::v1::TestIamPermissionsRequest
const& request,
583GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Data Policy Service provides APIs for managing the label-policy bindings.
Definition: data_policy_client.h:61
DataPolicyServiceClient & operator=(DataPolicyServiceClient const &)=default
StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request, Options opts={})
Returns the caller's permission on the specified data policy resource.
Status DeleteDataPolicy(std::string const &name, Options opts={})
Deletes the data policy specified by its resource name.
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > UpdateDataPolicy(google::cloud::bigquery::datapolicies::v1::DataPolicy const &data_policy, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the metadata for an existing data policy.
Status DeleteDataPolicy(google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request, Options opts={})
Deletes the data policy specified by its resource name.
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > GetDataPolicy(google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request, Options opts={})
Gets the data policy specified by its resource name.
StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy > ListDataPolicies(std::string const &parent, Options opts={})
List all of the data policies in the specified parent project.
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > CreateDataPolicy(std::string const &parent, google::cloud::bigquery::datapolicies::v1::DataPolicy const &data_policy, Options opts={})
Creates a new data policy under a project with the given dataPolicyId (used as the display name),...
~DataPolicyServiceClient()
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > RenameDataPolicy(google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request, Options opts={})
Renames the id (display name) of the specified data policy.
friend bool operator!=(DataPolicyServiceClient const &a, DataPolicyServiceClient const &b)
Definition: data_policy_client.h:82
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > CreateDataPolicy(google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request, Options opts={})
Creates a new data policy under a project with the given dataPolicyId (used as the display name),...
StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request, Options opts={})
Sets the IAM policy for the specified data policy.
StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request, Options opts={})
Gets the IAM policy for the specified data policy.
DataPolicyServiceClient(DataPolicyServiceClient &&)=default
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > RenameDataPolicy(std::string const &name, std::string const &new_data_policy_id, Options opts={})
Renames the id (display name) of the specified data policy.
DataPolicyServiceClient(DataPolicyServiceClient const &)=default
StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy > ListDataPolicies(google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request, Options opts={})
List all of the data policies in the specified parent project.
DataPolicyServiceClient(std::shared_ptr< DataPolicyServiceConnection > connection, Options opts={})
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > UpdateDataPolicy(google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request, Options opts={})
Updates the metadata for an existing data policy.
DataPolicyServiceClient & operator=(DataPolicyServiceClient &&)=default
StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > GetDataPolicy(std::string const &name, Options opts={})
Gets the data policy specified by its resource name.
friend bool operator==(DataPolicyServiceClient const &a, DataPolicyServiceClient const &b)
Definition: data_policy_client.h:78
The DataPolicyServiceConnection object for DataPolicyServiceClient.
Definition: data_policy_connection.h:62
Definition: data_policy_client.h:32
Definition: analytics_hub_client.h:30