Google Cloud Spanner C++ Client  1.42.0
A C++ Client Library for Google Cloud Spanner
Public Member Functions | List of all members
google::cloud::spanner_admin::InstanceAdminConnection Class Referenceabstract

The InstanceAdminConnection object for InstanceAdminClient. More...

#include <google/cloud/spanner/admin/instance_admin_connection.h>

Public Member Functions

virtual ~InstanceAdminConnection ()=0
 
virtual Options options ()
 
virtual StreamRange< google::spanner::admin::instance::v1::InstanceConfig > ListInstanceConfigs (google::spanner::admin::instance::v1::ListInstanceConfigsRequest request)
 
virtual StatusOr< google::spanner::admin::instance::v1::InstanceConfig > GetInstanceConfig (google::spanner::admin::instance::v1::GetInstanceConfigRequest const &request)
 
virtual StreamRange< google::spanner::admin::instance::v1::Instance > ListInstances (google::spanner::admin::instance::v1::ListInstancesRequest request)
 
virtual StatusOr< google::spanner::admin::instance::v1::Instance > GetInstance (google::spanner::admin::instance::v1::GetInstanceRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > CreateInstance (google::spanner::admin::instance::v1::CreateInstanceRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::instance::v1::Instance > > UpdateInstance (google::spanner::admin::instance::v1::UpdateInstanceRequest const &request)
 
virtual Status DeleteInstance (google::spanner::admin::instance::v1::DeleteInstanceRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 

Detailed Description

The InstanceAdminConnection object for InstanceAdminClient.

This interface defines 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) when writing tests that use objects of type InstanceAdminClient.

To create a concrete instance, see MakeInstanceAdminConnection().

For mocking, see spanner_admin_mocks::MockInstanceAdminConnection.

Definition at line 64 of file instance_admin_connection.h.

Constructor & Destructor Documentation

◆ ~InstanceAdminConnection()

virtual google::cloud::spanner_admin::InstanceAdminConnection::~InstanceAdminConnection ( )
pure virtual

Member Function Documentation

◆ CreateInstance()

virtual future<StatusOr<google::spanner::admin::instance::v1::Instance> > google::cloud::spanner_admin::InstanceAdminConnection::CreateInstance ( google::spanner::admin::instance::v1::CreateInstanceRequest const &  request)
virtual

◆ DeleteInstance()

virtual Status google::cloud::spanner_admin::InstanceAdminConnection::DeleteInstance ( google::spanner::admin::instance::v1::DeleteInstanceRequest const &  request)
virtual

◆ GetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::spanner_admin::InstanceAdminConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtual

◆ GetInstance()

virtual StatusOr<google::spanner::admin::instance::v1::Instance> google::cloud::spanner_admin::InstanceAdminConnection::GetInstance ( google::spanner::admin::instance::v1::GetInstanceRequest const &  request)
virtual

◆ GetInstanceConfig()

virtual StatusOr<google::spanner::admin::instance::v1::InstanceConfig> google::cloud::spanner_admin::InstanceAdminConnection::GetInstanceConfig ( google::spanner::admin::instance::v1::GetInstanceConfigRequest const &  request)
virtual

◆ ListInstanceConfigs()

virtual StreamRange<google::spanner::admin::instance::v1::InstanceConfig> google::cloud::spanner_admin::InstanceAdminConnection::ListInstanceConfigs ( google::spanner::admin::instance::v1::ListInstanceConfigsRequest  request)
virtual

◆ ListInstances()

virtual StreamRange<google::spanner::admin::instance::v1::Instance> google::cloud::spanner_admin::InstanceAdminConnection::ListInstances ( google::spanner::admin::instance::v1::ListInstancesRequest  request)
virtual

◆ options()

virtual Options google::cloud::spanner_admin::InstanceAdminConnection::options ( )
inlinevirtual

Definition at line 68 of file instance_admin_connection.h.

◆ SetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::spanner_admin::InstanceAdminConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtual

◆ TestIamPermissions()

virtual StatusOr<google::iam::v1::TestIamPermissionsResponse> google::cloud::spanner_admin::InstanceAdminConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtual

◆ UpdateInstance()

virtual future<StatusOr<google::spanner::admin::instance::v1::Instance> > google::cloud::spanner_admin::InstanceAdminConnection::UpdateInstance ( google::spanner::admin::instance::v1::UpdateInstanceRequest const &  request)
virtual