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::MockBigtableTableAdminConnection Class Reference

A class to mock BigtableTableAdminConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Table >, CreateTable,(google::bigtable::admin::v2::CreateTableRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::bigtable::admin::v2::Table >, ListTables,(google::bigtable::admin::v2::ListTablesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Table >, GetTable,(google::bigtable::admin::v2::GetTableRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Table > >, UpdateTable,(google::bigtable::admin::v2::UpdateTableRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteTable,(google::bigtable::admin::v2::DeleteTableRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Table > >, UndeleteTable,(google::bigtable::admin::v2::UndeleteTableRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Table >, ModifyColumnFamilies,(google::bigtable::admin::v2::ModifyColumnFamiliesRequest const &request),(override))
 
 MOCK_METHOD (Status, DropRowRange,(google::bigtable::admin::v2::DropRowRangeRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse >, GenerateConsistencyToken,(google::bigtable::admin::v2::GenerateConsistencyTokenRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse >, CheckConsistency,(google::bigtable::admin::v2::CheckConsistencyRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Backup > >, CreateBackup,(google::bigtable::admin::v2::CreateBackupRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Backup >, GetBackup,(google::bigtable::admin::v2::GetBackupRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::bigtable::admin::v2::Backup >, UpdateBackup,(google::bigtable::admin::v2::UpdateBackupRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteBackup,(google::bigtable::admin::v2::DeleteBackupRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::bigtable::admin::v2::Backup >, ListBackups,(google::bigtable::admin::v2::ListBackupsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::bigtable::admin::v2::Table > >, RestoreTable,(google::bigtable::admin::v2::RestoreTableRequest 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 (future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > >, AsyncCheckConsistency,(google::bigtable::admin::v2::CheckConsistencyRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::bigtable::admin::v2::Table > CreateTable (google::bigtable::admin::v2::CreateTableRequest const &request)
 
virtual StreamRange< google::bigtable::admin::v2::Table > ListTables (google::bigtable::admin::v2::ListTablesRequest request)
 
virtual StatusOr< google::bigtable::admin::v2::Table > GetTable (google::bigtable::admin::v2::GetTableRequest const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Table > > UpdateTable (google::bigtable::admin::v2::UpdateTableRequest const &request)
 
virtual Status DeleteTable (google::bigtable::admin::v2::DeleteTableRequest const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Table > > UndeleteTable (google::bigtable::admin::v2::UndeleteTableRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Table > ModifyColumnFamilies (google::bigtable::admin::v2::ModifyColumnFamiliesRequest const &request)
 
virtual Status DropRowRange (google::bigtable::admin::v2::DropRowRangeRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse > GenerateConsistencyToken (google::bigtable::admin::v2::GenerateConsistencyTokenRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > CheckConsistency (google::bigtable::admin::v2::CheckConsistencyRequest const &request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Backup > > CreateBackup (google::bigtable::admin::v2::CreateBackupRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Backup > GetBackup (google::bigtable::admin::v2::GetBackupRequest const &request)
 
virtual StatusOr< google::bigtable::admin::v2::Backup > UpdateBackup (google::bigtable::admin::v2::UpdateBackupRequest const &request)
 
virtual Status DeleteBackup (google::bigtable::admin::v2::DeleteBackupRequest const &request)
 
virtual StreamRange< google::bigtable::admin::v2::Backup > ListBackups (google::bigtable::admin::v2::ListBackupsRequest request)
 
virtual future< StatusOr< google::bigtable::admin::v2::Table > > RestoreTable (google::bigtable::admin::v2::RestoreTableRequest 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 future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > > AsyncCheckConsistency (google::bigtable::admin::v2::CheckConsistencyRequest const &request)
 

Detailed Description

A class to mock BigtableTableAdminConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type BigtableTableAdminClient. To do so, construct an object of type BigtableTableAdminClient 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

◆ AsyncCheckConsistency()

virtual future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > > google::cloud::bigtable_admin::BigtableTableAdminConnection::AsyncCheckConsistency ( google::bigtable::admin::v2::CheckConsistencyRequest const &  request)
virtualinherited

◆ CheckConsistency()

virtual StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > google::cloud::bigtable_admin::BigtableTableAdminConnection::CheckConsistency ( google::bigtable::admin::v2::CheckConsistencyRequest const &  request)
virtualinherited

◆ CreateBackup()

virtual future< StatusOr< google::bigtable::admin::v2::Backup > > google::cloud::bigtable_admin::BigtableTableAdminConnection::CreateBackup ( google::bigtable::admin::v2::CreateBackupRequest const &  request)
virtualinherited

◆ CreateTable()

virtual StatusOr< google::bigtable::admin::v2::Table > google::cloud::bigtable_admin::BigtableTableAdminConnection::CreateTable ( google::bigtable::admin::v2::CreateTableRequest const &  request)
virtualinherited

◆ DeleteBackup()

virtual Status google::cloud::bigtable_admin::BigtableTableAdminConnection::DeleteBackup ( google::bigtable::admin::v2::DeleteBackupRequest const &  request)
virtualinherited

◆ DeleteTable()

virtual Status google::cloud::bigtable_admin::BigtableTableAdminConnection::DeleteTable ( google::bigtable::admin::v2::DeleteTableRequest const &  request)
virtualinherited

◆ DropRowRange()

virtual Status google::cloud::bigtable_admin::BigtableTableAdminConnection::DropRowRange ( google::bigtable::admin::v2::DropRowRangeRequest const &  request)
virtualinherited

◆ GenerateConsistencyToken()

virtual StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse > google::cloud::bigtable_admin::BigtableTableAdminConnection::GenerateConsistencyToken ( google::bigtable::admin::v2::GenerateConsistencyTokenRequest const &  request)
virtualinherited

◆ GetBackup()

virtual StatusOr< google::bigtable::admin::v2::Backup > google::cloud::bigtable_admin::BigtableTableAdminConnection::GetBackup ( google::bigtable::admin::v2::GetBackupRequest const &  request)
virtualinherited

◆ GetIamPolicy()

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

◆ GetTable()

virtual StatusOr< google::bigtable::admin::v2::Table > google::cloud::bigtable_admin::BigtableTableAdminConnection::GetTable ( google::bigtable::admin::v2::GetTableRequest const &  request)
virtualinherited

◆ ListBackups()

virtual StreamRange< google::bigtable::admin::v2::Backup > google::cloud::bigtable_admin::BigtableTableAdminConnection::ListBackups ( google::bigtable::admin::v2::ListBackupsRequest  request)
virtualinherited

◆ ListTables()

virtual StreamRange< google::bigtable::admin::v2::Table > google::cloud::bigtable_admin::BigtableTableAdminConnection::ListTables ( google::bigtable::admin::v2::ListTablesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Backup > >  ,
CreateBackup  ,
(google::bigtable::admin::v2::CreateBackupRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > >  ,
AsyncCheckConsistency  ,
(google::bigtable::admin::v2::CheckConsistencyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Table > >  ,
RestoreTable  ,
(google::bigtable::admin::v2::RestoreTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Table > >  ,
UndeleteTable  ,
(google::bigtable::admin::v2::UndeleteTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( future< StatusOr< google::bigtable::admin::v2::Table > >  ,
UpdateTable  ,
(google::bigtable::admin::v2::UpdateTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/21]

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

◆ MOCK_METHOD() [7/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( Status  ,
DeleteBackup  ,
(google::bigtable::admin::v2::DeleteBackupRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( Status  ,
DeleteTable  ,
(google::bigtable::admin::v2::DeleteTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( Status  ,
DropRowRange  ,
(google::bigtable::admin::v2::DropRowRangeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Backup >  ,
GetBackup  ,
(google::bigtable::admin::v2::GetBackupRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Backup >  ,
UpdateBackup  ,
(google::bigtable::admin::v2::UpdateBackupRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse >  ,
CheckConsistency  ,
(google::bigtable::admin::v2::CheckConsistencyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse >  ,
GenerateConsistencyToken  ,
(google::bigtable::admin::v2::GenerateConsistencyTokenRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [14/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Table >  ,
CreateTable  ,
(google::bigtable::admin::v2::CreateTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [15/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Table >  ,
GetTable  ,
(google::bigtable::admin::v2::GetTableRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [16/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StatusOr< google::bigtable::admin::v2::Table >  ,
ModifyColumnFamilies  ,
(google::bigtable::admin::v2::ModifyColumnFamiliesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [17/21]

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

◆ MOCK_METHOD() [18/21]

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

◆ MOCK_METHOD() [19/21]

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

◆ MOCK_METHOD() [20/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StreamRange< google::bigtable::admin::v2::Backup >  ,
ListBackups  ,
(google::bigtable::admin::v2::ListBackupsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [21/21]

google::cloud::bigtable_admin_mocks::MockBigtableTableAdminConnection::MOCK_METHOD ( StreamRange< google::bigtable::admin::v2::Table >  ,
ListTables  ,
(google::bigtable::admin::v2::ListTablesRequest request)  ,
(override)   
)

◆ ModifyColumnFamilies()

virtual StatusOr< google::bigtable::admin::v2::Table > google::cloud::bigtable_admin::BigtableTableAdminConnection::ModifyColumnFamilies ( google::bigtable::admin::v2::ModifyColumnFamiliesRequest const &  request)
virtualinherited

◆ options()

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

◆ RestoreTable()

virtual future< StatusOr< google::bigtable::admin::v2::Table > > google::cloud::bigtable_admin::BigtableTableAdminConnection::RestoreTable ( google::bigtable::admin::v2::RestoreTableRequest const &  request)
virtualinherited

◆ SetIamPolicy()

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

◆ TestIamPermissions()

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

◆ UndeleteTable()

virtual future< StatusOr< google::bigtable::admin::v2::Table > > google::cloud::bigtable_admin::BigtableTableAdminConnection::UndeleteTable ( google::bigtable::admin::v2::UndeleteTableRequest const &  request)
virtualinherited

◆ UpdateBackup()

virtual StatusOr< google::bigtable::admin::v2::Backup > google::cloud::bigtable_admin::BigtableTableAdminConnection::UpdateBackup ( google::bigtable::admin::v2::UpdateBackupRequest const &  request)
virtualinherited

◆ UpdateTable()

virtual future< StatusOr< google::bigtable::admin::v2::Table > > google::cloud::bigtable_admin::BigtableTableAdminConnection::UpdateTable ( google::bigtable::admin::v2::UpdateTableRequest const &  request)
virtualinherited