Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
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)) | |
virtual Options | options () |
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 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.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC.
|
pure virtualinherited |
Return the metadata for the given instance.
|
pure virtualinherited |
Return the InstanceConfig with the given name.
|
pure virtualinherited |
Returns a one-pass input range with all the instance configs.
|
pure virtualinherited |
Returns a one-pass input range with all the instances meeting the requirements in params
.
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | future< StatusOr< google::spanner::admin::instance::v1::Instance > > | , |
CreateInstance | , | ||
(CreateInstanceParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | future< StatusOr< google::spanner::admin::instance::v1::Instance > > | , |
UpdateInstance | , | ||
(UpdateInstanceParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | spanner::ListInstanceConfigsRange | , |
ListInstanceConfigs | , | ||
(ListInstanceConfigsParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | spanner::ListInstancesRange | , |
ListInstances | , | ||
(ListInstancesParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | Status | , |
DeleteInstance | , | ||
(DeleteInstanceParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | StatusOr< google::iam::v1::Policy > | , |
GetIamPolicy | , | ||
(GetIamPolicyParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | StatusOr< google::iam::v1::Policy > | , |
SetIamPolicy | , | ||
(SetIamPolicyParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | StatusOr< google::iam::v1::TestIamPermissionsResponse > | , |
TestIamPermissions | , | ||
(TestIamPermissionsParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | StatusOr< google::spanner::admin::instance::v1::Instance > | , |
GetInstance | , | ||
(GetInstanceParams) | , | ||
(override) | |||
) |
google::cloud::spanner_mocks::MockInstanceAdminConnection::MOCK_METHOD | ( | StatusOr< google::spanner::admin::instance::v1::InstanceConfig > | , |
GetInstanceConfig | , | ||
(GetInstanceConfigParams) | , | ||
(override) | |||
) |
|
inlinevirtualinherited |
|
pure virtualinherited |
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC.
|
pure virtualinherited |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC.
|
pure virtualinherited |