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_stub.h"
24 #include "google/cloud/spanner/admin/retry_traits.h"
25 #include "google/cloud/backoff_policy.h"
26 #include "google/cloud/future.h"
27 #include "google/cloud/options.h"
28 #include "google/cloud/polling_policy.h"
29 #include "google/cloud/status_or.h"
30 #include "google/cloud/stream_range.h"
31 #include "google/cloud/version.h"
32 #include <google/longrunning/operations.grpc.pb.h>
40 using InstanceAdminRetryPolicy =
44 using InstanceAdminLimitedTimeRetryPolicy =
48 using InstanceAdminLimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
56 virtual StreamRange<
google::spanner::admin::instance::v1::InstanceConfig>
58 google::spanner::admin::instance::v1::ListInstanceConfigsRequest request);
60 virtual StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>
62 google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
65 virtual StreamRange<
google::spanner::admin::instance::v1::Instance>
67 google::spanner::admin::instance::v1::ListInstancesRequest request);
70 google::spanner::admin::instance::v1::GetInstanceRequest
const& request);
72 virtual future<StatusOr<
google::spanner::admin::instance::v1::Instance>>
74 google::spanner::admin::instance::v1::CreateInstanceRequest
const&
77 virtual future<StatusOr<
google::spanner::admin::instance::v1::Instance>>
79 google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
83 google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
87 google::iam::v1::SetIamPolicyRequest
const& request);
90 google::iam::v1::GetIamPolicyRequest
const& request);
92 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>