Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection Class Reference

A class to mock BigtableInstanceAdminConnection. More...

#include <google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Instance > >, CreateInstance,(google::bigtable::admin::v2::CreateInstanceRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Instance >, GetInstance,(google::bigtable::admin::v2::GetInstanceRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::ListInstancesResponse >, ListInstances,(google::bigtable::admin::v2::ListInstancesRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Instance >, UpdateInstance,(google::bigtable::admin::v2::Instance const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Instance > >, PartialUpdateInstance,(google::bigtable::admin::v2::PartialUpdateInstanceRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteInstance,(google::bigtable::admin::v2::DeleteInstanceRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Cluster > >, CreateCluster,(google::bigtable::admin::v2::CreateClusterRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Cluster >, GetCluster,(google::bigtable::admin::v2::GetClusterRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::ListClustersResponse >, ListClusters,(google::bigtable::admin::v2::ListClustersRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Cluster > >, UpdateCluster,(google::bigtable::admin::v2::Cluster const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Cluster > >, PartialUpdateCluster,(google::bigtable::admin::v2::PartialUpdateClusterRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteCluster,(google::bigtable::admin::v2::DeleteClusterRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::AppProfile >, CreateAppProfile,(google::bigtable::admin::v2::CreateAppProfileRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::AppProfile >, GetAppProfile,(google::bigtable::admin::v2::GetAppProfileRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::bigtable::admin::v2::AppProfile >, ListAppProfiles,(google::bigtable::admin::v2::ListAppProfilesRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::AppProfile > >, UpdateAppProfile,(google::bigtable::admin::v2::UpdateAppProfileRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteAppProfile,(google::bigtable::admin::v2::DeleteAppProfileRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(google::iam::v1::GetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(google::iam::v1::SetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(google::iam::v1::TestIamPermissionsRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::bigtable::admin::v2::HotTablet >, ListHotTablets,(google::bigtable::admin::v2::ListHotTabletsRequest request),(override))
 
virtual Options options ()
 
virtual future< StatusOr< google::bigtable::admin::v2::Instance > > CreateInstance (google::bigtable::admin::v2::CreateInstanceRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Instance > GetInstance (google::bigtable::admin::v2::GetInstanceRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::ListInstancesResponse > ListInstances (google::bigtable::admin::v2::ListInstancesRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Instance > UpdateInstance (google::bigtable::admin::v2::Instance const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Instance > > PartialUpdateInstance (google::bigtable::admin::v2::PartialUpdateInstanceRequest const &request)
 
virtual Status DeleteInstance (google::bigtable::admin::v2::DeleteInstanceRequest const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > CreateCluster (google::bigtable::admin::v2::CreateClusterRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Cluster > GetCluster (google::bigtable::admin::v2::GetClusterRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::ListClustersResponse > ListClusters (google::bigtable::admin::v2::ListClustersRequest const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > UpdateCluster (google::bigtable::admin::v2::Cluster const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > PartialUpdateCluster (google::bigtable::admin::v2::PartialUpdateClusterRequest const &request)
 
virtual Status DeleteCluster (google::bigtable::admin::v2::DeleteClusterRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::AppProfile > CreateAppProfile (google::bigtable::admin::v2::CreateAppProfileRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::AppProfile > GetAppProfile (google::bigtable::admin::v2::GetAppProfileRequest const &request)
 
virtual StreamRange< google::bigtable::admin::v2::AppProfile > ListAppProfiles (google::bigtable::admin::v2::ListAppProfilesRequest request)
 
virtual future< StatusOr< google::bigtable::admin::v2::AppProfile > > UpdateAppProfile (google::bigtable::admin::v2::UpdateAppProfileRequest const &request)
 
virtual Status DeleteAppProfile (google::bigtable::admin::v2::DeleteAppProfileRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 
virtual StreamRange< google::bigtable::admin::v2::HotTablet > ListHotTablets (google::bigtable::admin::v2::ListHotTabletsRequest request)
 

Detailed Description

A class to mock BigtableInstanceAdminConnection.

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

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Member Function Documentation

◆ CreateAppProfile()

virtual StatusOr< google::bigtable::admin::v2::AppProfile > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::CreateAppProfile ( google::bigtable::admin::v2::CreateAppProfileRequest const &  request)
virtualinherited

◆ CreateCluster()

virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::CreateCluster ( google::bigtable::admin::v2::CreateClusterRequest const &  request)
virtualinherited

◆ CreateInstance()

virtual future< StatusOr< google::bigtable::admin::v2::Instance > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::CreateInstance ( google::bigtable::admin::v2::CreateInstanceRequest const &  request)
virtualinherited

◆ DeleteAppProfile()

virtual Status google::cloud::bigtable_admin::BigtableInstanceAdminConnection::DeleteAppProfile ( google::bigtable::admin::v2::DeleteAppProfileRequest const &  request)
virtualinherited

◆ DeleteCluster()

virtual Status google::cloud::bigtable_admin::BigtableInstanceAdminConnection::DeleteCluster ( google::bigtable::admin::v2::DeleteClusterRequest const &  request)
virtualinherited

◆ DeleteInstance()

virtual Status google::cloud::bigtable_admin::BigtableInstanceAdminConnection::DeleteInstance ( google::bigtable::admin::v2::DeleteInstanceRequest const &  request)
virtualinherited

◆ GetAppProfile()

virtual StatusOr< google::bigtable::admin::v2::AppProfile > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::GetAppProfile ( google::bigtable::admin::v2::GetAppProfileRequest const &  request)
virtualinherited

◆ GetCluster()

virtual StatusOr< google::bigtable::admin::v2::Cluster > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::GetCluster ( google::bigtable::admin::v2::GetClusterRequest const &  request)
virtualinherited

◆ GetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtualinherited

◆ GetInstance()

virtual StatusOr< google::bigtable::admin::v2::Instance > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::GetInstance ( google::bigtable::admin::v2::GetInstanceRequest const &  request)
virtualinherited

◆ ListAppProfiles()

virtual StreamRange< google::bigtable::admin::v2::AppProfile > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::ListAppProfiles ( google::bigtable::admin::v2::ListAppProfilesRequest  request)
virtualinherited

◆ ListClusters()

virtual StatusOr< google::bigtable::admin::v2::ListClustersResponse > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::ListClusters ( google::bigtable::admin::v2::ListClustersRequest const &  request)
virtualinherited

◆ ListHotTablets()

virtual StreamRange< google::bigtable::admin::v2::HotTablet > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::ListHotTablets ( google::bigtable::admin::v2::ListHotTabletsRequest  request)
virtualinherited

◆ ListInstances()

virtual StatusOr< google::bigtable::admin::v2::ListInstancesResponse > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::ListInstances ( google::bigtable::admin::v2::ListInstancesRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::AppProfile > >  ,
UpdateAppProfile  ,
(google::bigtable::admin::v2::UpdateAppProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Cluster > >  ,
CreateCluster  ,
(google::bigtable::admin::v2::CreateClusterRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Cluster > >  ,
PartialUpdateCluster  ,
(google::bigtable::admin::v2::PartialUpdateClusterRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Cluster > >  ,
UpdateCluster  ,
(google::bigtable::admin::v2::Cluster const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Instance > >  ,
CreateInstance  ,
(google::bigtable::admin::v2::CreateInstanceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Instance > >  ,
PartialUpdateInstance  ,
(google::bigtable::admin::v2::PartialUpdateInstanceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [8/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( Status  ,
DeleteAppProfile  ,
(google::bigtable::admin::v2::DeleteAppProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( Status  ,
DeleteCluster  ,
(google::bigtable::admin::v2::DeleteClusterRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( Status  ,
DeleteInstance  ,
(google::bigtable::admin::v2::DeleteInstanceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::AppProfile >  ,
CreateAppProfile  ,
(google::bigtable::admin::v2::CreateAppProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::AppProfile >  ,
GetAppProfile  ,
(google::bigtable::admin::v2::GetAppProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Cluster >  ,
GetCluster  ,
(google::bigtable::admin::v2::GetClusterRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [14/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Instance >  ,
GetInstance  ,
(google::bigtable::admin::v2::GetInstanceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [15/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Instance >  ,
UpdateInstance  ,
(google::bigtable::admin::v2::Instance const &request)  ,
(override)   
)

◆ MOCK_METHOD() [16/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::ListClustersResponse >  ,
ListClusters  ,
(google::bigtable::admin::v2::ListClustersRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [17/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::ListInstancesResponse >  ,
ListInstances  ,
(google::bigtable::admin::v2::ListInstancesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [18/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(google::iam::v1::GetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [19/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
SetIamPolicy  ,
(google::iam::v1::SetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [20/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StatusOr< google::iam::v1::TestIamPermissionsResponse >  ,
TestIamPermissions  ,
(google::iam::v1::TestIamPermissionsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [21/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StreamRange< google::bigtable::admin::v2::AppProfile >  ,
ListAppProfiles  ,
(google::bigtable::admin::v2::ListAppProfilesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [22/22]

google::cloud::bigtable_admin_mocks::MockBigtableInstanceAdminConnection::MOCK_METHOD ( StreamRange< google::bigtable::admin::v2::HotTablet >  ,
ListHotTablets  ,
(google::bigtable::admin::v2::ListHotTabletsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigtable_admin::BigtableInstanceAdminConnection::options ( )
inlinevirtualinherited

◆ PartialUpdateCluster()

virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster ( google::bigtable::admin::v2::PartialUpdateClusterRequest const &  request)
virtualinherited

◆ PartialUpdateInstance()

virtual future< StatusOr< google::bigtable::admin::v2::Instance > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance ( google::bigtable::admin::v2::PartialUpdateInstanceRequest const &  request)
virtualinherited

◆ SetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtualinherited

◆ TestIamPermissions()

virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtualinherited

◆ UpdateAppProfile()

virtual future< StatusOr< google::bigtable::admin::v2::AppProfile > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile ( google::bigtable::admin::v2::UpdateAppProfileRequest const &  request)
virtualinherited

◆ UpdateCluster()

virtual future< StatusOr< google::bigtable::admin::v2::Cluster > > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster ( google::bigtable::admin::v2::Cluster const &  request)
virtualinherited

◆ UpdateInstance()

virtual StatusOr< google::bigtable::admin::v2::Instance > google::cloud::bigtable_admin::BigtableInstanceAdminConnection::UpdateInstance ( google::bigtable::admin::v2::Instance const &  request)
virtualinherited