19 #include "google/cloud/spanner/admin/internal/instance_admin_logging_decorator.h"
20 #include "google/cloud/internal/log_wrapper.h"
21 #include "google/cloud/status_or.h"
22 #include <google/spanner/admin/instance/v1/spanner_instance_admin.grpc.pb.h>
32 std::set<std::string> components)
33 : child_(std::move(child)),
34 tracing_options_
(std::move(tracing_options)
),
35 components_(std::move(components)) {}
37 StatusOr<
google::spanner::admin::instance::v1::ListInstanceConfigsResponse>
39 grpc::ClientContext& context,
40 google::spanner::admin::instance::v1::ListInstanceConfigsRequest
const&
43 [
this](grpc::ClientContext& context,
44 google::spanner::admin::instance::v1::
45 ListInstanceConfigsRequest
const& request) {
48 context, request,
__func__, tracing_options_);
51 StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
53 grpc::ClientContext& context,
54 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
58 grpc::ClientContext& context,
59 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
61 context, request,
__func__, tracing_options_);
64 StatusOr<
google::spanner::admin::instance::v1::ListInstancesResponse>
66 grpc::ClientContext& context,
67 google::spanner::admin::instance::v1::ListInstancesRequest
const& request) {
69 [
this](grpc::ClientContext& context,
70 google::spanner::admin::instance::v1::ListInstancesRequest
const&
72 context, request,
__func__, tracing_options_);
75 StatusOr<
google::spanner::admin::instance::v1::Instance>
77 grpc::ClientContext& context,
78 google::spanner::admin::instance::v1::GetInstanceRequest
const& request) {
80 [
this](grpc::ClientContext& context,
81 google::spanner::admin::instance::v1::GetInstanceRequest
const&
83 context, request,
__func__, tracing_options_);
89 std::unique_ptr<grpc::ClientContext> context,
90 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
94 std::unique_ptr<grpc::ClientContext> context,
95 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
99 cq, std::move(context), request,
__func__, tracing_options_);
105 std::unique_ptr<grpc::ClientContext> context,
106 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
110 std::unique_ptr<grpc::ClientContext> context,
111 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
115 cq, std::move(context), request,
__func__, tracing_options_);
119 grpc::ClientContext& context,
120 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
123 [
this](grpc::ClientContext& context,
124 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
126 context, request,
__func__, tracing_options_);
130 grpc::ClientContext& context,
131 google::iam::v1::SetIamPolicyRequest
const& request) {
133 [
this](grpc::ClientContext& context,
134 google::iam::v1::SetIamPolicyRequest
const& request) {
137 context, request,
__func__, tracing_options_);
141 grpc::ClientContext& context,
142 google::iam::v1::GetIamPolicyRequest
const& request) {
144 [
this](grpc::ClientContext& context,
145 google::iam::v1::GetIamPolicyRequest
const& request) {
148 context, request,
__func__, tracing_options_);
151 StatusOr<
google::iam::v1::TestIamPermissionsResponse>
153 grpc::ClientContext& context,
154 google::iam::v1::TestIamPermissionsRequest
const& request) {
156 [
this](grpc::ClientContext& context,
157 google::iam::v1::TestIamPermissionsRequest
const& request) {
160 context, request,
__func__, tracing_options_);
166 std::unique_ptr<grpc::ClientContext> context,
167 google::longrunning::GetOperationRequest
const& request) {
170 std::unique_ptr<grpc::ClientContext> context,
171 google::longrunning::GetOperationRequest
const& request) {
174 cq, std::move(context), request,
__func__, tracing_options_);
179 std::unique_ptr<grpc::ClientContext> context,
180 google::longrunning::CancelOperationRequest
const& request) {
183 std::unique_ptr<grpc::ClientContext> context,
184 google::longrunning::CancelOperationRequest
const& request) {
187 cq, std::move(context), request,
__func__, tracing_options_);