A connection to the Cloud Spanner instance administration service.
More...
#include <google/cloud/spanner/instance_admin_connection.h>
A connection to the Cloud Spanner instance administration service.
- Deprecated:
- Please use google::cloud::spanner_admin::InstanceAdminClient and google::cloud::spanner_admin::InstanceAdminConnection instead.
This interface defines pure-virtual methods for each of the user-facing overload sets in InstanceAdminClient
. This allows users to inject custom behavior (e.g., with a Google Mock object) in a InstanceAdminClient
object for use in their own tests.
To create a concrete instance that connects you to a real Cloud Spanner instance administration service, see MakeInstanceAdminConnection()
.
◆ ~InstanceAdminConnection()
virtual google::cloud::spanner::InstanceAdminConnection::~InstanceAdminConnection |
( |
| ) |
|
|
pure virtual |
◆ CreateInstance()
◆ DeleteInstance()
◆ GetIamPolicy()
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC.
◆ GetInstance()
virtual StatusOr< google::spanner::admin::instance::v1::Instance > google::cloud::spanner::InstanceAdminConnection::GetInstance |
( |
GetInstanceParams |
| ) |
|
|
pure virtual |
Return the metadata for the given instance.
◆ GetInstanceConfig()
virtual StatusOr< google::spanner::admin::instance::v1::InstanceConfig > google::cloud::spanner::InstanceAdminConnection::GetInstanceConfig |
( |
GetInstanceConfigParams |
| ) |
|
|
pure virtual |
Return the InstanceConfig with the given name.
◆ ListInstanceConfigs()
Returns a one-pass input range with all the instance configs.
◆ ListInstances()
Returns a one-pass input range with all the instances meeting the requirements in params
.
◆ options()
virtual Options google::cloud::spanner::InstanceAdminConnection::options |
( |
| ) |
|
|
inlinevirtual |
◆ SetIamPolicy()
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC.
◆ TestIamPermissions()
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > google::cloud::spanner::InstanceAdminConnection::TestIamPermissions |
( |
TestIamPermissionsParams |
| ) |
|
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC.
◆ UpdateInstance()