19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_METADATA_DECORATOR_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_METADATA_DECORATOR_H
22 #include "google/cloud/spanner/admin/internal/instance_admin_stub.h"
23 #include "google/cloud/version.h"
24 #include <google/longrunning/operations.grpc.pb.h>
38 StatusOr<
google::spanner::admin::instance::v1::ListInstanceConfigsResponse>
40 grpc::ClientContext& context,
41 google::spanner::admin::instance::v1::ListInstanceConfigsRequest
const&
44 StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
46 grpc::ClientContext& context,
47 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
50 StatusOr<
google::spanner::admin::instance::v1::ListInstancesResponse>
52 grpc::ClientContext& context,
53 google::spanner::admin::instance::v1::ListInstancesRequest
const& request)
57 grpc::ClientContext& context,
58 google::spanner::admin::instance::v1::GetInstanceRequest
const& request)
63 std::unique_ptr<grpc::ClientContext> context,
64 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
69 std::unique_ptr<grpc::ClientContext> context,
70 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
74 grpc::ClientContext& context,
75 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
79 grpc::ClientContext& context,
80 google::iam::v1::SetIamPolicyRequest
const& request)
override;
83 grpc::ClientContext& context,
84 google::iam::v1::GetIamPolicyRequest
const& request)
override;
87 grpc::ClientContext& context,
88 google::iam::v1::TestIamPermissionsRequest
const& request)
override;
92 std::unique_ptr<grpc::ClientContext> context,
93 google::longrunning::GetOperationRequest
const& request)
override;
97 std::unique_ptr<grpc::ClientContext> context,
98 google::longrunning::CancelOperationRequest
const& request)
override;
101 void SetMetadata(grpc::ClientContext& context,
102 std::string
const& request_params);
104 std::string api_client_header_;