Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
Public Member Functions | List of all members
google::cloud::spanner_mocks::v1::MockInstanceAdminConnection Class Reference

A class to mock google::cloud::spanner::InstanceAdminConnection. More...

#include <google/cloud/spanner/mocks/mock_instance_admin_connection.h>

Public Member Functions

 MOCK_METHOD (StatusOr< google::spanner::admin::instance::v1::Instance >, GetInstance,(GetInstanceParams),(override))
 
 MOCK_METHOD (future< StatusOr< google::spanner::admin::instance::v1::Instance >>, CreateInstance,(CreateInstanceParams),(override))
 
 MOCK_METHOD (future< StatusOr< google::spanner::admin::instance::v1::Instance >>, UpdateInstance,(UpdateInstanceParams),(override))
 
 MOCK_METHOD (Status, DeleteInstance,(DeleteInstanceParams),(override))
 
 MOCK_METHOD (StatusOr< google::spanner::admin::instance::v1::InstanceConfig >, GetInstanceConfig,(GetInstanceConfigParams),(override))
 
 MOCK_METHOD (spanner::ListInstanceConfigsRange, ListInstanceConfigs,(ListInstanceConfigsParams),(override))
 
 MOCK_METHOD (spanner::ListInstancesRange, ListInstances,(ListInstancesParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(GetIamPolicyParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(SetIamPolicyParams),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(TestIamPermissionsParams),(override))
 

Detailed Description

A class to mock google::cloud::spanner::InstanceAdminConnection.

Application developers may want to test their code with simulated responses, including errors from a spanner::InstanceAdminClient. To do so, construct a spanner::InstanceAdminClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

Definition at line 34 of file mock_instance_admin_connection.h.

Member Function Documentation

◆ MOCK_METHOD() [1/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::instance::v1::Instance >>  ,
CreateInstance  ,
(CreateInstanceParams)  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::spanner::admin::instance::v1::Instance >>  ,
UpdateInstance  ,
(UpdateInstanceParams)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( spanner::ListInstanceConfigsRange  ,
ListInstanceConfigs  ,
(ListInstanceConfigsParams)  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( spanner::ListInstancesRange  ,
ListInstances  ,
(ListInstancesParams)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( Status  ,
DeleteInstance  ,
(DeleteInstanceParams)  ,
(override)   
)

◆ MOCK_METHOD() [6/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(GetIamPolicyParams)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
SetIamPolicy  ,
(SetIamPolicyParams)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::TestIamPermissionsResponse >  ,
TestIamPermissions  ,
(TestIamPermissionsParams)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::instance::v1::Instance >  ,
GetInstance  ,
(GetInstanceParams)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::spanner_mocks::v1::MockInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::spanner::admin::instance::v1::InstanceConfig >  ,
GetInstanceConfig  ,
(GetInstanceConfigParams)  ,
(override)   
)