19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INSTANCE_ADMIN_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_INSTANCE_ADMIN_CONNECTION_H
22#include "google/cloud/spanner/admin/instance_admin_connection_idempotency_policy.h"
23#include "google/cloud/spanner/admin/internal/instance_admin_retry_traits.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/future.h"
26#include "google/cloud/options.h"
27#include "google/cloud/polling_policy.h"
28#include "google/cloud/status_or.h"
29#include "google/cloud/stream_range.h"
30#include "google/cloud/version.h"
31#include <google/longrunning/operations.grpc.pb.h>
32#include <google/spanner/admin/instance/v1/spanner_instance_admin.pb.h>
38GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
40using InstanceAdminRetryPolicy =
42 spanner_admin_internal::InstanceAdminRetryTraits>;
44using InstanceAdminLimitedTimeRetryPolicy =
46 spanner_admin_internal::InstanceAdminRetryTraits>;
48using InstanceAdminLimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
50 spanner_admin_internal::InstanceAdminRetryTraits>;
53
54
55
56
57
58
59
60
61
62
63
70 virtual StreamRange<
google::spanner::admin::instance::v1::InstanceConfig>
72 google::spanner::admin::instance::v1::ListInstanceConfigsRequest request);
74 virtual StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
76 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
79 virtual future<StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>>
81 google::spanner::admin::instance::v1::CreateInstanceConfigRequest
const&
84 virtual future<StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>>
86 google::spanner::admin::instance::v1::UpdateInstanceConfigRequest
const&
90 google::spanner::admin::instance::v1::DeleteInstanceConfigRequest
const&
93 virtual StreamRange<
google::longrunning::Operation>
95 google::spanner::admin::instance::v1::ListInstanceConfigOperationsRequest
98 virtual StreamRange<
google::spanner::admin::instance::v1::Instance>
100 google::spanner::admin::instance::v1::ListInstancesRequest request);
103 google::spanner::admin::instance::v1::GetInstanceRequest
const& request);
105 virtual future<StatusOr<
google::spanner::admin::instance::v1::Instance>>
107 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
110 virtual future<StatusOr<
google::spanner::admin::instance::v1::Instance>>
112 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
116 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
120 google::iam::v1::SetIamPolicyRequest
const& request);
123 google::iam::v1::GetIamPolicyRequest
const& request);
125 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
153GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
154namespace gcpcxxV1 = GOOGLE_CLOUD_CPP_NS;
friend friend class future
The InstanceAdminConnection object for InstanceAdminClient.
Definition: instance_admin_connection.h:64
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > CreateInstance(google::spanner::admin::instance::v1::CreateInstanceRequest const &request)
virtual StreamRange< google::longrunning::Operation > ListInstanceConfigOperations(google::spanner::admin::instance::v1::ListInstanceConfigOperationsRequest request)
virtual StreamRange< google::spanner::admin::instance::v1::InstanceConfig > ListInstanceConfigs(google::spanner::admin::instance::v1::ListInstanceConfigsRequest request)
virtual Options options()
Definition: instance_admin_connection.h:68
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request)
virtual StatusOr< google::spanner::admin::instance::v1::Instance > GetInstance(google::spanner::admin::instance::v1::GetInstanceRequest const &request)
virtual StatusOr< google::spanner::admin::instance::v1::InstanceConfig > GetInstanceConfig(google::spanner::admin::instance::v1::GetInstanceConfigRequest const &request)
virtual future< StatusOr< google::spanner::admin::instance::v1::InstanceConfig > > CreateInstanceConfig(google::spanner::admin::instance::v1::CreateInstanceConfigRequest const &request)
virtual ~InstanceAdminConnection()=0
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > UpdateInstance(google::spanner::admin::instance::v1::UpdateInstanceRequest const &request)
virtual StreamRange< google::spanner::admin::instance::v1::Instance > ListInstances(google::spanner::admin::instance::v1::ListInstancesRequest request)
virtual future< StatusOr< google::spanner::admin::instance::v1::InstanceConfig > > UpdateInstanceConfig(google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const &request)
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request)
virtual Status DeleteInstanceConfig(google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const &request)
virtual Status DeleteInstance(google::spanner::admin::instance::v1::DeleteInstanceRequest const &request)
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request)
Definition: database_admin_client.h:34
std::shared_ptr< InstanceAdminConnection > MakeInstanceAdminConnection(Options options={})
A factory function to construct an object of type InstanceAdminConnection.