19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_DATABASE_ADMIN_METADATA_DECORATOR_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INTERNAL_DATABASE_ADMIN_METADATA_DECORATOR_H
22 #include "google/cloud/spanner/admin/internal/database_admin_stub.h"
23 #include "google/cloud/version.h"
24 #include <google/longrunning/operations.grpc.pb.h>
38 StatusOr<
google::spanner::admin::database::v1::ListDatabasesResponse>
40 grpc::ClientContext& context,
41 google::spanner::admin::database::v1::ListDatabasesRequest
const& request)
46 std::unique_ptr<grpc::ClientContext> context,
47 google::spanner::admin::database::v1::CreateDatabaseRequest
const&
51 grpc::ClientContext& context,
52 google::spanner::admin::database::v1::GetDatabaseRequest
const& request)
57 std::unique_ptr<grpc::ClientContext> context,
58 google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
62 grpc::ClientContext& context,
63 google::spanner::admin::database::v1::DropDatabaseRequest
const& request)
66 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
68 grpc::ClientContext& context,
69 google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
73 grpc::ClientContext& context,
74 google::iam::v1::SetIamPolicyRequest
const& request)
override;
77 grpc::ClientContext& context,
78 google::iam::v1::GetIamPolicyRequest
const& request)
override;
81 grpc::ClientContext& context,
82 google::iam::v1::TestIamPermissionsRequest
const& request)
override;
86 std::unique_ptr<grpc::ClientContext> context,
87 google::spanner::admin::database::v1::CreateBackupRequest
const& request)
91 grpc::ClientContext& context,
92 google::spanner::admin::database::v1::GetBackupRequest
const& request)
96 grpc::ClientContext& context,
97 google::spanner::admin::database::v1::UpdateBackupRequest
const& request)
101 grpc::ClientContext& context,
102 google::spanner::admin::database::v1::DeleteBackupRequest
const& request)
105 StatusOr<
google::spanner::admin::database::v1::ListBackupsResponse>
107 google::spanner::admin::database::v1::ListBackupsRequest
const&
112 std::unique_ptr<grpc::ClientContext> context,
113 google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
116 StatusOr<
google::spanner::admin::database::v1::ListDatabaseOperationsResponse>
118 grpc::ClientContext& context,
119 google::spanner::admin::database::v1::ListDatabaseOperationsRequest
const&
122 StatusOr<
google::spanner::admin::database::v1::ListBackupOperationsResponse>
124 grpc::ClientContext& context,
125 google::spanner::admin::database::v1::ListBackupOperationsRequest
const&
130 std::unique_ptr<grpc::ClientContext> context,
131 google::longrunning::GetOperationRequest
const& request)
override;
135 std::unique_ptr<grpc::ClientContext> context,
136 google::longrunning::CancelOperationRequest
const& request)
override;
139 void SetMetadata(grpc::ClientContext& context,
140 std::string
const& request_params);
142 std::string api_client_header_;