Google Cloud Spanner C++ Client
A C++ Client Library for Google Cloud Spanner
|
A connection to the Cloud Spanner instance administration service. More...
#include <google/cloud/spanner/instance_admin_connection.h>
Classes | |
struct | CreateInstanceParams |
Wrap the arguments for CreateInstance() . More... | |
struct | DeleteInstanceParams |
Wrap the arguments for DeleteInstance() . More... | |
struct | GetIamPolicyParams |
Wrap the arguments for GetIamPolicy() . More... | |
struct | GetInstanceConfigParams |
Wrap the arguments for GetInstanceConfig() . More... | |
struct | GetInstanceParams |
Wrap the arguments for GetInstance() . More... | |
struct | ListInstanceConfigsParams |
Wrap the arguments for ListInstanceConfigs() . More... | |
struct | ListInstancesParams |
Wrap the arguments for ListInstances() . More... | |
struct | SetIamPolicyParams |
Wrap the arguments for SetIamPolicy() . More... | |
struct | TestIamPermissionsParams |
Wrap the arguments for TestIamPermissions() . More... | |
struct | UpdateInstanceParams |
Wrap the arguments for UpdateInstance() . More... | |
Public Member Functions | |
virtual | ~InstanceAdminConnection ()=0 |
virtual StatusOr< google::spanner::admin::instance::v1::Instance > | GetInstance (GetInstanceParams)=0 |
Return the metadata for the given instance. More... | |
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > | CreateInstance (CreateInstanceParams p)=0 |
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > | UpdateInstance (UpdateInstanceParams p)=0 |
virtual Status | DeleteInstance (DeleteInstanceParams p)=0 |
virtual StatusOr< google::spanner::admin::instance::v1::InstanceConfig > | GetInstanceConfig (GetInstanceConfigParams)=0 |
Return the InstanceConfig with the given name. More... | |
virtual ListInstanceConfigsRange | ListInstanceConfigs (ListInstanceConfigsParams)=0 |
Returns a one-pass input range with all the instance configs. More... | |
virtual ListInstancesRange | ListInstances (ListInstancesParams params)=0 |
Returns a one-pass input range with all the instances meeting the requirements in params . More... | |
virtual StatusOr< google::iam::v1::Policy > | GetIamPolicy (GetIamPolicyParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC. More... | |
virtual StatusOr< google::iam::v1::Policy > | SetIamPolicy (SetIamPolicyParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC. More... | |
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > | TestIamPermissions (TestIamPermissionsParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC. More... | |
A connection to the Cloud Spanner instance administration service.
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()
.
Definition at line 70 of file instance_admin_connection.h.
|
pure virtualdefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC.
|
pure virtual |
Return the metadata for the given instance.
|
pure virtual |
Return the InstanceConfig with the given name.
|
pure virtual |
Returns a one-pass input range with all the instance configs.
|
pure virtual |
Returns a one-pass input range with all the instances meeting the requirements in params
.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC.
|
pure virtual |