Google Cloud BigQuery C++ Client 2.10.1
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection Class Reference

A class to mock DataTransferServiceConnection. More...

#include <google/cloud/bigquery/datatransfer/v1/mocks/mock_data_transfer_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource >, GetDataSource,(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource >, ListDataSources,(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, CreateTransferConfig,(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, UpdateTransferConfig,(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteTransferConfig,(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >, GetTransferConfig,(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig >, ListTransferConfigs,(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse >, ScheduleTransferRuns,(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse >, StartManualTransferRuns,(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun >, GetTransferRun,(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteTransferRun,(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun >, ListTransferRuns,(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage >, ListTransferLogs,(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse >, CheckValidCreds,(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request),(override))
 
 MOCK_METHOD (Status, EnrollDataSources,(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource > GetDataSource (google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource > ListDataSources (google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > CreateTransferConfig (google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > UpdateTransferConfig (google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request)
 
virtual Status DeleteTransferConfig (google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > GetTransferConfig (google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig > ListTransferConfigs (google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse > ScheduleTransferRuns (google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse > StartManualTransferRuns (google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun > GetTransferRun (google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request)
 
virtual Status DeleteTransferRun (google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun > ListTransferRuns (google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request)
 
virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage > ListTransferLogs (google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request)
 
virtual StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse > CheckValidCreds (google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request)
 
virtual Status EnrollDataSources (google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request)
 

Detailed Description

A class to mock DataTransferServiceConnection.

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

◆ CheckValidCreds()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::CheckValidCreds ( google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &  request)
virtualinherited

◆ CreateTransferConfig()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::CreateTransferConfig ( google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &  request)
virtualinherited

◆ DeleteTransferConfig()

virtual Status google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::DeleteTransferConfig ( google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &  request)
virtualinherited

◆ DeleteTransferRun()

virtual Status google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::DeleteTransferRun ( google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &  request)
virtualinherited

◆ EnrollDataSources()

virtual Status google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::EnrollDataSources ( google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &  request)
virtualinherited

◆ GetDataSource()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::GetDataSource ( google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &  request)
virtualinherited

◆ GetTransferConfig()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::GetTransferConfig ( google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &  request)
virtualinherited

◆ GetTransferRun()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::GetTransferRun ( google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &  request)
virtualinherited

◆ ListDataSources()

virtual StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::ListDataSources ( google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest  request)
virtualinherited

◆ ListTransferConfigs()

virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::ListTransferConfigs ( google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest  request)
virtualinherited

◆ ListTransferLogs()

virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::ListTransferLogs ( google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest  request)
virtualinherited

◆ ListTransferRuns()

virtual StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::ListTransferRuns ( google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
DeleteTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::DeleteTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
DeleteTransferRun  ,
(google::cloud::bigquery::datatransfer::v1::DeleteTransferRunRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( Status  ,
EnrollDataSources  ,
(google::cloud::bigquery::datatransfer::v1::EnrollDataSourcesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::CheckValidCredsResponse >  ,
CheckValidCreds  ,
(google::cloud::bigquery::datatransfer::v1::CheckValidCredsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::DataSource >  ,
GetDataSource  ,
(google::cloud::bigquery::datatransfer::v1::GetDataSourceRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse >  ,
ScheduleTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsResponse >  ,
StartManualTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
CreateTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::CreateTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
GetTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::GetTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
UpdateTransferConfig  ,
(google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datatransfer::v1::TransferRun >  ,
GetTransferRun  ,
(google::cloud::bigquery::datatransfer::v1::GetTransferRunRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::DataSource >  ,
ListDataSources  ,
(google::cloud::bigquery::datatransfer::v1::ListDataSourcesRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [14/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferConfig >  ,
ListTransferConfigs  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferConfigsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [15/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferMessage >  ,
ListTransferLogs  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferLogsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [16/16]

google::cloud::bigquery_datatransfer_v1_mocks::MockDataTransferServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datatransfer::v1::TransferRun >  ,
ListTransferRuns  ,
(google::cloud::bigquery::datatransfer::v1::ListTransferRunsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::options ( )
inlinevirtualinherited

◆ ScheduleTransferRuns()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsResponse > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::ScheduleTransferRuns ( google::cloud::bigquery::datatransfer::v1::ScheduleTransferRunsRequest const &  request)
virtualinherited

◆ StartManualTransferRuns()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1:: StartManualTransferRunsResponse > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::StartManualTransferRuns ( google::cloud::bigquery::datatransfer::v1::StartManualTransferRunsRequest const &  request)
virtualinherited

◆ UpdateTransferConfig()

virtual StatusOr< google::cloud::bigquery::datatransfer::v1::TransferConfig > google::cloud::bigquery_datatransfer_v1::DataTransferServiceConnection::UpdateTransferConfig ( google::cloud::bigquery::datatransfer::v1::UpdateTransferConfigRequest const &  request)
virtualinherited