Class MockTelcoAutomationConnection (2.23.0-rc)

A class to mock TelcoAutomationConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type TelcoAutomationClient. To do so, construct an object of type TelcoAutomationClient 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 ListOrchestrationClusters(google::cloud::telcoautomation::v1::ListOrchestrationClustersRequest)

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::telcoautomation::v1::ListOrchestrationClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::OrchestrationCluster >

virtual GetOrchestrationCluster(google::cloud::telcoautomation::v1::GetOrchestrationClusterRequest 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::telcoautomation::v1::GetOrchestrationClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster >

virtual CreateOrchestrationCluster(google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest 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::telcoautomation::v1::CreateOrchestrationClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster > >

virtual DeleteOrchestrationCluster(google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest 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::telcoautomation::v1::DeleteOrchestrationClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::telcoautomation::v1::OperationMetadata > >

virtual ListEdgeSlms(google::cloud::telcoautomation::v1::ListEdgeSlmsRequest)

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::telcoautomation::v1::ListEdgeSlmsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::EdgeSlm >

virtual GetEdgeSlm(google::cloud::telcoautomation::v1::GetEdgeSlmRequest 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::telcoautomation::v1::GetEdgeSlmRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::EdgeSlm >

virtual CreateEdgeSlm(google::cloud::telcoautomation::v1::CreateEdgeSlmRequest 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::telcoautomation::v1::CreateEdgeSlmRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::telcoautomation::v1::EdgeSlm > >

virtual DeleteEdgeSlm(google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest 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::telcoautomation::v1::DeleteEdgeSlmRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::telcoautomation::v1::OperationMetadata > >

virtual CreateBlueprint(google::cloud::telcoautomation::v1::CreateBlueprintRequest 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::telcoautomation::v1::CreateBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual UpdateBlueprint(google::cloud::telcoautomation::v1::UpdateBlueprintRequest 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::telcoautomation::v1::UpdateBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual GetBlueprint(google::cloud::telcoautomation::v1::GetBlueprintRequest 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::telcoautomation::v1::GetBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual DeleteBlueprint(google::cloud::telcoautomation::v1::DeleteBlueprintRequest 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::telcoautomation::v1::DeleteBlueprintRequest const &
Returns
TypeDescription
Status

virtual ListBlueprints(google::cloud::telcoautomation::v1::ListBlueprintsRequest)

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::telcoautomation::v1::ListBlueprintsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Blueprint >

virtual ApproveBlueprint(google::cloud::telcoautomation::v1::ApproveBlueprintRequest 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::telcoautomation::v1::ApproveBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual ProposeBlueprint(google::cloud::telcoautomation::v1::ProposeBlueprintRequest 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::telcoautomation::v1::ProposeBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual RejectBlueprint(google::cloud::telcoautomation::v1::RejectBlueprintRequest 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::telcoautomation::v1::RejectBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Blueprint >

virtual ListBlueprintRevisions(google::cloud::telcoautomation::v1::ListBlueprintRevisionsRequest)

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::telcoautomation::v1::ListBlueprintRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Blueprint >

virtual SearchBlueprintRevisions(google::cloud::telcoautomation::v1::SearchBlueprintRevisionsRequest)

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::telcoautomation::v1::SearchBlueprintRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Blueprint >

virtual SearchDeploymentRevisions(google::cloud::telcoautomation::v1::SearchDeploymentRevisionsRequest)

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::telcoautomation::v1::SearchDeploymentRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Deployment >

virtual DiscardBlueprintChanges(google::cloud::telcoautomation::v1::DiscardBlueprintChangesRequest 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::telcoautomation::v1::DiscardBlueprintChangesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::DiscardBlueprintChangesResponse >

virtual ListPublicBlueprints(google::cloud::telcoautomation::v1::ListPublicBlueprintsRequest)

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::telcoautomation::v1::ListPublicBlueprintsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::PublicBlueprint >

virtual GetPublicBlueprint(google::cloud::telcoautomation::v1::GetPublicBlueprintRequest 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::telcoautomation::v1::GetPublicBlueprintRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::PublicBlueprint >

virtual CreateDeployment(google::cloud::telcoautomation::v1::CreateDeploymentRequest 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::telcoautomation::v1::CreateDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Deployment >

virtual UpdateDeployment(google::cloud::telcoautomation::v1::UpdateDeploymentRequest 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::telcoautomation::v1::UpdateDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Deployment >

virtual GetDeployment(google::cloud::telcoautomation::v1::GetDeploymentRequest 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::telcoautomation::v1::GetDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Deployment >

virtual RemoveDeployment(google::cloud::telcoautomation::v1::RemoveDeploymentRequest 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::telcoautomation::v1::RemoveDeploymentRequest const &
Returns
TypeDescription
Status

virtual ListDeployments(google::cloud::telcoautomation::v1::ListDeploymentsRequest)

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::telcoautomation::v1::ListDeploymentsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Deployment >

virtual ListDeploymentRevisions(google::cloud::telcoautomation::v1::ListDeploymentRevisionsRequest)

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::telcoautomation::v1::ListDeploymentRevisionsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::Deployment >

virtual DiscardDeploymentChanges(google::cloud::telcoautomation::v1::DiscardDeploymentChangesRequest 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::telcoautomation::v1::DiscardDeploymentChangesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::DiscardDeploymentChangesResponse >

virtual ApplyDeployment(google::cloud::telcoautomation::v1::ApplyDeploymentRequest 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::telcoautomation::v1::ApplyDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Deployment >

virtual ComputeDeploymentStatus(google::cloud::telcoautomation::v1::ComputeDeploymentStatusRequest 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::telcoautomation::v1::ComputeDeploymentStatusRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::ComputeDeploymentStatusResponse >

virtual RollbackDeployment(google::cloud::telcoautomation::v1::RollbackDeploymentRequest 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::telcoautomation::v1::RollbackDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::Deployment >

virtual GetHydratedDeployment(google::cloud::telcoautomation::v1::GetHydratedDeploymentRequest 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::telcoautomation::v1::GetHydratedDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment >

virtual ListHydratedDeployments(google::cloud::telcoautomation::v1::ListHydratedDeploymentsRequest)

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::telcoautomation::v1::ListHydratedDeploymentsRequest
Returns
TypeDescription
StreamRange< google::cloud::telcoautomation::v1::HydratedDeployment >

virtual UpdateHydratedDeployment(google::cloud::telcoautomation::v1::UpdateHydratedDeploymentRequest 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::telcoautomation::v1::UpdateHydratedDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment >

virtual ApplyHydratedDeployment(google::cloud::telcoautomation::v1::ApplyHydratedDeploymentRequest 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::telcoautomation::v1::ApplyHydratedDeploymentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment >