19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_STUB_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_STUB_H
22 #include "google/cloud/completion_queue.h"
23 #include "google/cloud/future.h"
24 #include "google/cloud/status_or.h"
25 #include "google/cloud/version.h"
26 #include <google/longrunning/operations.grpc.pb.h>
27 #include <google/spanner/admin/instance/v1/spanner_instance_admin.grpc.pb.h>
40 google::spanner::admin::instance::v1::ListInstanceConfigsResponse>
42 grpc::ClientContext& context,
43 google::spanner::admin::instance::v1::ListInstanceConfigsRequest
const&
46 virtual StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
48 grpc::ClientContext& context,
49 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
52 virtual StatusOr<
google::spanner::admin::instance::v1::ListInstancesResponse>
54 grpc::ClientContext& context,
55 google::spanner::admin::instance::v1::ListInstancesRequest
const&
59 grpc::ClientContext& context,
60 google::spanner::admin::instance::v1::GetInstanceRequest
const&
65 std::unique_ptr<grpc::ClientContext> context,
66 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
71 std::unique_ptr<grpc::ClientContext> context,
72 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
76 grpc::ClientContext& context,
77 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
81 grpc::ClientContext& context,
82 google::iam::v1::SetIamPolicyRequest
const& request) = 0;
85 grpc::ClientContext& context,
86 google::iam::v1::GetIamPolicyRequest
const& request) = 0;
88 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>
90 grpc::ClientContext& context,
91 google::iam::v1::TestIamPermissionsRequest
const& request) = 0;
95 std::unique_ptr<grpc::ClientContext> context,
96 google::longrunning::GetOperationRequest
const& request) = 0;
100 std::unique_ptr<grpc::ClientContext> context,
101 google::longrunning::CancelOperationRequest
const& request) = 0;
108 google::spanner::admin::instance::v1::InstanceAdmin::StubInterface>
110 std::unique_ptr<
google::longrunning::Operations::StubInterface>
112 : grpc_stub_(std::move(grpc_stub)), operations_(std::move(operations)) {}
114 StatusOr<
google::spanner::admin::instance::v1::ListInstanceConfigsResponse>
116 grpc::ClientContext& client_context,
117 google::spanner::admin::instance::v1::ListInstanceConfigsRequest
const&
120 StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
122 grpc::ClientContext& client_context,
123 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
126 StatusOr<
google::spanner::admin::instance::v1::ListInstancesResponse>
128 grpc::ClientContext& client_context,
129 google::spanner::admin::instance::v1::ListInstancesRequest
const& request)
133 grpc::ClientContext& client_context,
134 google::spanner::admin::instance::v1::GetInstanceRequest
const& request)
139 std::unique_ptr<grpc::ClientContext> context,
140 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
145 std::unique_ptr<grpc::ClientContext> context,
146 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
150 grpc::ClientContext& client_context,
151 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
155 grpc::ClientContext& client_context,
156 google::iam::v1::SetIamPolicyRequest
const& request)
override;
159 grpc::ClientContext& client_context,
160 google::iam::v1::GetIamPolicyRequest
const& request)
override;
163 grpc::ClientContext& client_context,
164 google::iam::v1::TestIamPermissionsRequest
const& request)
override;
168 std::unique_ptr<grpc::ClientContext> context,
169 google::longrunning::GetOperationRequest
const& request)
override;
173 std::unique_ptr<grpc::ClientContext> context,
174 google::longrunning::CancelOperationRequest
const& request)
override;
178 google::spanner::admin::instance::v1::InstanceAdmin::StubInterface>
180 std::unique_ptr<
google::longrunning::Operations::StubInterface> operations_;