Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
instance_admin_logging_decorator.h
Go to the documentation of this file.
1 // Copyright 2021 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 // Generated by the Codegen C++ plugin.
16 // If you make any local changes, they will be lost.
17 // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto
18 
19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_LOGGING_DECORATOR_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_LOGGING_DECORATOR_H
21 
22 #include "google/cloud/spanner/admin/internal/instance_admin_stub.h"
23 #include "google/cloud/tracing_options.h"
24 #include "google/cloud/version.h"
25 #include <google/longrunning/operations.grpc.pb.h>
26 #include <memory>
27 #include <set>
28 #include <string>
29 
30 namespace google {
31 namespace cloud {
32 namespace spanner_admin_internal {
33 inline namespace GOOGLE_CLOUD_CPP_GENERATED_NS {
34 
36  public:
37  ~InstanceAdminLogging() override = default;
38  InstanceAdminLogging(std::shared_ptr<InstanceAdminStub> child,
39  TracingOptions tracing_options,
40  std::set<std::string> components);
41 
42  StatusOr<google::spanner::admin::instance::v1::ListInstanceConfigsResponse>
44  grpc::ClientContext& context,
45  google::spanner::admin::instance::v1::ListInstanceConfigsRequest const&
46  request) override;
47 
48  StatusOr<google::spanner::admin::instance::v1::InstanceConfig>
50  grpc::ClientContext& context,
51  google::spanner::admin::instance::v1::GetInstanceConfigRequest const&
52  request) override;
53 
54  StatusOr<google::spanner::admin::instance::v1::ListInstancesResponse>
56  grpc::ClientContext& context,
57  google::spanner::admin::instance::v1::ListInstancesRequest const& request)
58  override;
59 
60  StatusOr<google::spanner::admin::instance::v1::Instance> GetInstance(
61  grpc::ClientContext& context,
62  google::spanner::admin::instance::v1::GetInstanceRequest const& request)
63  override;
64 
65  future<StatusOr<google::longrunning::Operation>> AsyncCreateInstance(
67  std::unique_ptr<grpc::ClientContext> context,
68  google::spanner::admin::instance::v1::CreateInstanceRequest const&
69  request) override;
70 
71  future<StatusOr<google::longrunning::Operation>> AsyncUpdateInstance(
73  std::unique_ptr<grpc::ClientContext> context,
74  google::spanner::admin::instance::v1::UpdateInstanceRequest const&
75  request) override;
76 
78  grpc::ClientContext& context,
79  google::spanner::admin::instance::v1::DeleteInstanceRequest const&
80  request) override;
81 
82  StatusOr<google::iam::v1::Policy> SetIamPolicy(
83  grpc::ClientContext& context,
84  google::iam::v1::SetIamPolicyRequest const& request) override;
85 
86  StatusOr<google::iam::v1::Policy> GetIamPolicy(
87  grpc::ClientContext& context,
88  google::iam::v1::GetIamPolicyRequest const& request) override;
89 
90  StatusOr<google::iam::v1::TestIamPermissionsResponse> TestIamPermissions(
91  grpc::ClientContext& context,
92  google::iam::v1::TestIamPermissionsRequest const& request) override;
93 
94  future<StatusOr<google::longrunning::Operation>> AsyncGetOperation(
96  std::unique_ptr<grpc::ClientContext> context,
97  google::longrunning::GetOperationRequest const& request) override;
98 
101  std::unique_ptr<grpc::ClientContext> context,
102  google::longrunning::CancelOperationRequest const& request) override;
103 
104  private:
105  std::shared_ptr<InstanceAdminStub> child_;
106  TracingOptions tracing_options_;
107  std::set<std::string> components_;
108 }; // InstanceAdminLogging
109 
110 } // namespace GOOGLE_CLOUD_CPP_GENERATED_NS
111 } // namespace spanner_admin_internal
112 } // namespace cloud
113 } // namespace google
114 
115 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_INSTANCE_ADMIN_LOGGING_DECORATOR_H