Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class MockTelcoAutomationConnection (2.30.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.30.0keyboard_arrow_down
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
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListOrchestrationClustersRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetOrchestrationClusterRequest const &
Returns
Type
Description
StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster >
virtual CreateOrchestrationCluster(google::longrunning::Operation const &)
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::telcoautomation::v1::OrchestrationCluster > >
virtual DeleteOrchestrationCluster(google::longrunning::Operation const &)
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
operation
google::longrunning::Operation const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListEdgeSlmsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetEdgeSlmRequest const &
Returns
Type
Description
StatusOr< google::cloud::telcoautomation::v1::EdgeSlm >
virtual CreateEdgeSlm(google::longrunning::Operation const &)
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
operation
google::longrunning::Operation const &
Returns
Type
Description
future< StatusOr< google::cloud::telcoautomation::v1::EdgeSlm > >
virtual DeleteEdgeSlm(google::longrunning::Operation const &)
This function is implemented using gMock 's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter
Name
Description
operation
google::longrunning::Operation const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::CreateBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::UpdateBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::DeleteBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListBlueprintsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ApproveBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ProposeBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::RejectBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListBlueprintRevisionsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::SearchBlueprintRevisionsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::SearchDeploymentRevisionsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::DiscardBlueprintChangesRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListPublicBlueprintsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetPublicBlueprintRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::CreateDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::UpdateDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::RemoveDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListDeploymentsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListDeploymentRevisionsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::DiscardDeploymentChangesRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ApplyDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ComputeDeploymentStatusRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::RollbackDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::GetHydratedDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ListHydratedDeploymentsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::UpdateHydratedDeploymentRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::ApplyHydratedDeploymentRequest const &
Returns
Type
Description
StatusOr< google::cloud::telcoautomation::v1::HydratedDeployment >
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["This page details the `MockTelcoAutomationConnection` class, which is designed to simulate responses for testing applications that use `TelcoAutomationClient`."],["The mock class provides virtual functions, implemented using gMock's `MOCK_METHOD()`, that replicate the behavior of a real `TelcoAutomationConnection`."],["The class offers a comprehensive set of mocked methods, covering operations such as managing orchestration clusters, edge SLMs, blueprints, deployments, and their revisions."],["The mock functions allow developers to simulate various responses, including errors, enabling thorough testing of application behavior under different conditions."],["There are many versions of the `MockTelcoAutomationConnection` class, with version 2.37.0-rc being the latest release candidate, and the list goes back to 2.19.0."]]],[]]