Class MockDataplexServiceConnection (2.22.0-rc)

A class to mock DataplexServiceConnection.

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

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
TypeDescription
Options

virtual CreateLake(google::cloud::dataplex::v1::CreateLakeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateLakeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Lake > >

virtual UpdateLake(google::cloud::dataplex::v1::UpdateLakeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateLakeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Lake > >

virtual DeleteLake(google::cloud::dataplex::v1::DeleteLakeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteLakeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListLakes(google::cloud::dataplex::v1::ListLakesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListLakesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Lake >

virtual GetLake(google::cloud::dataplex::v1::GetLakeRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetLakeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Lake >

virtual ListLakeActions(google::cloud::dataplex::v1::ListLakeActionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListLakeActionsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Action >

virtual CreateZone(google::cloud::dataplex::v1::CreateZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateZoneRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Zone > >

virtual UpdateZone(google::cloud::dataplex::v1::UpdateZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateZoneRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Zone > >

virtual DeleteZone(google::cloud::dataplex::v1::DeleteZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteZoneRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListZones(google::cloud::dataplex::v1::ListZonesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListZonesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Zone >

virtual GetZone(google::cloud::dataplex::v1::GetZoneRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetZoneRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Zone >

virtual ListZoneActions(google::cloud::dataplex::v1::ListZoneActionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListZoneActionsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Action >

virtual CreateAsset(google::cloud::dataplex::v1::CreateAssetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateAssetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Asset > >

virtual UpdateAsset(google::cloud::dataplex::v1::UpdateAssetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateAssetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Asset > >

virtual DeleteAsset(google::cloud::dataplex::v1::DeleteAssetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteAssetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListAssets(google::cloud::dataplex::v1::ListAssetsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListAssetsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Asset >

virtual GetAsset(google::cloud::dataplex::v1::GetAssetRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetAssetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Asset >

virtual ListAssetActions(google::cloud::dataplex::v1::ListAssetActionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListAssetActionsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Action >

virtual CreateTask(google::cloud::dataplex::v1::CreateTaskRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateTaskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Task > >

virtual UpdateTask(google::cloud::dataplex::v1::UpdateTaskRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateTaskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Task > >

virtual DeleteTask(google::cloud::dataplex::v1::DeleteTaskRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteTaskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListTasks(google::cloud::dataplex::v1::ListTasksRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListTasksRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Task >

virtual GetTask(google::cloud::dataplex::v1::GetTaskRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Task >

virtual ListJobs(google::cloud::dataplex::v1::ListJobsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListJobsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Job >

virtual RunTask(google::cloud::dataplex::v1::RunTaskRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::RunTaskRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::RunTaskResponse >

virtual GetJob(google::cloud::dataplex::v1::GetJobRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Job >

virtual CancelJob(google::cloud::dataplex::v1::CancelJobRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CancelJobRequest const &
Returns
TypeDescription
Status

virtual CreateEnvironment(google::cloud::dataplex::v1::CreateEnvironmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::CreateEnvironmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Environment > >

virtual UpdateEnvironment(google::cloud::dataplex::v1::UpdateEnvironmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::UpdateEnvironmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::Environment > >

virtual DeleteEnvironment(google::cloud::dataplex::v1::DeleteEnvironmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::DeleteEnvironmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataplex::v1::OperationMetadata > >

virtual ListEnvironments(google::cloud::dataplex::v1::ListEnvironmentsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListEnvironmentsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Environment >

virtual GetEnvironment(google::cloud::dataplex::v1::GetEnvironmentRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::GetEnvironmentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataplex::v1::Environment >

virtual ListSessions(google::cloud::dataplex::v1::ListSessionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
NameDescription
request google::cloud::dataplex::v1::ListSessionsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataplex::v1::Session >