Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
database_admin_rest_connection.h
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/database/v1/spanner_database_admin.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_REST_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_REST_CONNECTION_H
21
22#include "google/cloud/spanner/admin/database_admin_connection.h"
23#include "google/cloud/options.h"
24#include "google/cloud/version.h"
25#include <memory>
26
27namespace google {
28namespace cloud {
29namespace spanner_admin {
30GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
31
32/**
33 * A factory function to construct an object of type `DatabaseAdminConnection`
34 * that uses REST over HTTP as transport in lieu of gRPC. REST transport should
35 * only be used for services that do not support gRPC or if the existing network
36 * configuration precludes using gRPC.
37 *
38 * The returned connection object should not be used directly; instead it
39 * should be passed as an argument to the constructor of DatabaseAdminClient.
40 *
41 * The optional @p options argument may be used to configure aspects of the
42 * returned `DatabaseAdminConnection`. Expected options are any of the types in
43 * the following option lists:
44 *
45 * - `google::cloud::CommonOptionList`
46 * - `google::cloud::RestOptionList`
47 * - `google::cloud::UnifiedCredentialsOptionList`
48 * - `google::cloud::spanner_admin::DatabaseAdminPolicyOptionList`
49 *
50 * @note Unexpected options will be ignored. To log unexpected options instead,
51 * set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.
52 *
53 * @param options (optional) Configure the `DatabaseAdminConnection` created by
54 * this function.
55 */
57 Options options = {});
58
59GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
60} // namespace spanner_admin
61} // namespace cloud
62} // namespace google
63
64#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_REST_CONNECTION_H
The DatabaseAdminConnection object for DatabaseAdminClient.
Definition: database_admin_connection.h:64
Definition: database_admin_client.h:34
std::shared_ptr< DatabaseAdminConnection > MakeDatabaseAdminConnectionRest(Options options={})
A factory function to construct an object of type DatabaseAdminConnection that uses REST over HTTP as...