19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_V2_POLICIES_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_V2_POLICIES_CLIENT_H
22#include "google/cloud/iam/v2/policies_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"
28#include <google/longrunning/operations.grpc.pb.h>
35GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
80 return a.connection_ == b.connection_;
289 std::string
const& parent,
google::iam::v2::Policy
const& policy,
290 std::string
const& policy_id,
Options opts
= {});
459GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
friend friend class future
An interface for managing Identity and Access Management (IAM) policies.
Definition: policies_client.h:63
PoliciesClient & operator=(PoliciesClient const &)=default
future< StatusOr< google::iam::v2::Policy > > CreatePolicy(std::string const &parent, google::iam::v2::Policy const &policy, std::string const &policy_id, Options opts={})
Creates a policy.
future< StatusOr< google::iam::v2::Policy > > UpdatePolicy(google::iam::v2::UpdatePolicyRequest const &request, Options opts={})
Updates the specified policy.
friend bool operator!=(PoliciesClient const &a, PoliciesClient const &b)
Definition: policies_client.h:82
friend bool operator==(PoliciesClient const &a, PoliciesClient const &b)
Definition: policies_client.h:79
StreamRange< google::iam::v2::Policy > ListPolicies(std::string const &parent, Options opts={})
Retrieves the policies of the specified kind that are attached to a resource.
future< StatusOr< google::iam::v2::Policy > > DeletePolicy(google::iam::v2::DeletePolicyRequest const &request, Options opts={})
Deletes a policy.
PoliciesClient(PoliciesClient const &)=default
PoliciesClient & operator=(PoliciesClient &&)=default
PoliciesClient(std::shared_ptr< PoliciesConnection > connection, Options opts={})
future< StatusOr< google::iam::v2::Policy > > CreatePolicy(google::iam::v2::CreatePolicyRequest const &request, Options opts={})
Creates a policy.
future< StatusOr< google::iam::v2::Policy > > DeletePolicy(std::string const &name, Options opts={})
Deletes a policy.
StatusOr< google::iam::v2::Policy > GetPolicy(google::iam::v2::GetPolicyRequest const &request, Options opts={})
Gets a policy.
PoliciesClient(PoliciesClient &&)=default
StreamRange< google::iam::v2::Policy > ListPolicies(google::iam::v2::ListPoliciesRequest request, Options opts={})
Retrieves the policies of the specified kind that are attached to a resource.
StatusOr< google::iam::v2::Policy > GetPolicy(std::string const &name, Options opts={})
Gets a policy.
The PoliciesConnection object for PoliciesClient.
Definition: policies_connection.h:63
Definition: policies_client.h:34