Class MockEdgeContainerConnection (2.12.0)

A class to mock EdgeContainerConnection.

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

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::edgecontainer::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::edgecontainer::v1::Cluster >

virtual GetCluster(google::cloud::edgecontainer::v1::GetClusterRequest 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::edgecontainer::v1::GetClusterRequest const &
Returns
Type Description
StatusOr< google::cloud::edgecontainer::v1::Cluster >

virtual CreateCluster(google::cloud::edgecontainer::v1::CreateClusterRequest 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::edgecontainer::v1::CreateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::Cluster > >

virtual UpdateCluster(google::cloud::edgecontainer::v1::UpdateClusterRequest 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::edgecontainer::v1::UpdateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::Cluster > >

virtual DeleteCluster(google::cloud::edgecontainer::v1::DeleteClusterRequest 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::edgecontainer::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::OperationMetadata > >

virtual GenerateAccessToken(google::cloud::edgecontainer::v1::GenerateAccessTokenRequest 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::edgecontainer::v1::GenerateAccessTokenRequest const &
Returns
Type Description
StatusOr< google::cloud::edgecontainer::v1::GenerateAccessTokenResponse >

virtual ListNodePools(google::cloud::edgecontainer::v1::ListNodePoolsRequest)

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::edgecontainer::v1::ListNodePoolsRequest
Returns
Type Description
StreamRange< google::cloud::edgecontainer::v1::NodePool >

virtual GetNodePool(google::cloud::edgecontainer::v1::GetNodePoolRequest 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::edgecontainer::v1::GetNodePoolRequest const &
Returns
Type Description
StatusOr< google::cloud::edgecontainer::v1::NodePool >

virtual CreateNodePool(google::cloud::edgecontainer::v1::CreateNodePoolRequest 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::edgecontainer::v1::CreateNodePoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::NodePool > >

virtual UpdateNodePool(google::cloud::edgecontainer::v1::UpdateNodePoolRequest 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::edgecontainer::v1::UpdateNodePoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::NodePool > >

virtual DeleteNodePool(google::cloud::edgecontainer::v1::DeleteNodePoolRequest 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::edgecontainer::v1::DeleteNodePoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::OperationMetadata > >

virtual ListMachines(google::cloud::edgecontainer::v1::ListMachinesRequest)

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::edgecontainer::v1::ListMachinesRequest
Returns
Type Description
StreamRange< google::cloud::edgecontainer::v1::Machine >

virtual GetMachine(google::cloud::edgecontainer::v1::GetMachineRequest 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::edgecontainer::v1::GetMachineRequest const &
Returns
Type Description
StatusOr< google::cloud::edgecontainer::v1::Machine >

virtual ListVpnConnections(google::cloud::edgecontainer::v1::ListVpnConnectionsRequest)

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::edgecontainer::v1::ListVpnConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::edgecontainer::v1::VpnConnection >

virtual GetVpnConnection(google::cloud::edgecontainer::v1::GetVpnConnectionRequest 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::edgecontainer::v1::GetVpnConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::edgecontainer::v1::VpnConnection >

virtual CreateVpnConnection(google::cloud::edgecontainer::v1::CreateVpnConnectionRequest 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::edgecontainer::v1::CreateVpnConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::VpnConnection > >

virtual DeleteVpnConnection(google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest 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::edgecontainer::v1::DeleteVpnConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::edgecontainer::v1::OperationMetadata > >