Send feedback
Class MockTelcoAutomationConnection (2.22.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.22.0 keyboard_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::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
Name
Description
request
google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest 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::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
Name
Description
request
google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest 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 >
Send feedback
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-03-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This document outlines the `MockTelcoAutomationConnection` class, which is designed for application developers to simulate responses and errors from a `TelcoAutomationClient` object during testing."],["The class uses GoogleTest framework functions and gMock's `MOCK_METHOD()` to allow programmers to define the behavior of the mock object."],["The document provides a detailed list of functions available in the `MockTelcoAutomationConnection` class, each designed to simulate different operations related to orchestration clusters, edge SLMs, blueprints, deployments, and hydrated deployments."],["There are several versions of the `MockTelcoAutomationConnection` class that are available, with the most recent being 2.37.0-rc, and these versions have links to the version specific documentations."],["The class offers functions to manage various resources, including listing, getting, creating, deleting, updating, approving, rejecting, proposing, discarding changes, and applying resources like blueprints, deployments, and hydrated deployments."]]],[]]