19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_DATABASE_ADMIN_LOGGING_DECORATOR_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_DATABASE_ADMIN_LOGGING_DECORATOR_H
22 #include "google/cloud/spanner/admin/internal/database_admin_stub.h"
23 #include "google/cloud/tracing_options.h"
24 #include "google/cloud/version.h"
25 #include <google/longrunning/operations.grpc.pb.h>
40 std::set<std::string> components);
42 StatusOr<
google::spanner::admin::database::v1::ListDatabasesResponse>
44 grpc::ClientContext& context,
45 google::spanner::admin::database::v1::ListDatabasesRequest
const& request)
50 std::unique_ptr<grpc::ClientContext> context,
51 google::spanner::admin::database::v1::CreateDatabaseRequest
const&
55 grpc::ClientContext& context,
56 google::spanner::admin::database::v1::GetDatabaseRequest
const& request)
61 std::unique_ptr<grpc::ClientContext> context,
62 google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
66 grpc::ClientContext& context,
67 google::spanner::admin::database::v1::DropDatabaseRequest
const& request)
70 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
72 grpc::ClientContext& context,
73 google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
77 grpc::ClientContext& context,
78 google::iam::v1::SetIamPolicyRequest
const& request)
override;
81 grpc::ClientContext& context,
82 google::iam::v1::GetIamPolicyRequest
const& request)
override;
85 grpc::ClientContext& context,
86 google::iam::v1::TestIamPermissionsRequest
const& request)
override;
90 std::unique_ptr<grpc::ClientContext> context,
91 google::spanner::admin::database::v1::CreateBackupRequest
const& request)
95 grpc::ClientContext& context,
96 google::spanner::admin::database::v1::GetBackupRequest
const& request)
100 grpc::ClientContext& context,
101 google::spanner::admin::database::v1::UpdateBackupRequest
const& request)
105 grpc::ClientContext& context,
106 google::spanner::admin::database::v1::DeleteBackupRequest
const& request)
109 StatusOr<
google::spanner::admin::database::v1::ListBackupsResponse>
111 google::spanner::admin::database::v1::ListBackupsRequest
const&
116 std::unique_ptr<grpc::ClientContext> context,
117 google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
120 StatusOr<
google::spanner::admin::database::v1::ListDatabaseOperationsResponse>
122 grpc::ClientContext& context,
123 google::spanner::admin::database::v1::ListDatabaseOperationsRequest
const&
126 StatusOr<
google::spanner::admin::database::v1::ListBackupOperationsResponse>
128 grpc::ClientContext& context,
129 google::spanner::admin::database::v1::ListBackupOperationsRequest
const&
134 std::unique_ptr<grpc::ClientContext> context,
135 google::longrunning::GetOperationRequest
const& request)
override;
139 std::unique_ptr<grpc::ClientContext> context,
140 google::longrunning::CancelOperationRequest
const& request)
override;
145 std::set<std::string> components_;