Class MockVmwareEngineConnection (2.20.0)

A class to mock VmwareEngineConnection.

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

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::vmwareengine::v1::ListPrivateCloudsRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::PrivateCloud >

virtual GetPrivateCloud(google::cloud::vmwareengine::v1::GetPrivateCloudRequest 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::vmwareengine::v1::GetPrivateCloudRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::PrivateCloud >

virtual CreatePrivateCloud(google::cloud::vmwareengine::v1::CreatePrivateCloudRequest 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::vmwareengine::v1::CreatePrivateCloudRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual UpdatePrivateCloud(google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest 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::vmwareengine::v1::UpdatePrivateCloudRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual DeletePrivateCloud(google::cloud::vmwareengine::v1::DeletePrivateCloudRequest 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::vmwareengine::v1::DeletePrivateCloudRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual UndeletePrivateCloud(google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest 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::vmwareengine::v1::UndeletePrivateCloudRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual ListClusters(google::cloud::vmwareengine::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::vmwareengine::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::Cluster >

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

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

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

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

virtual ListSubnets(google::cloud::vmwareengine::v1::ListSubnetsRequest)

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::vmwareengine::v1::ListSubnetsRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::Subnet >

virtual GetSubnet(google::cloud::vmwareengine::v1::GetSubnetRequest 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::vmwareengine::v1::GetSubnetRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::Subnet >

virtual UpdateSubnet(google::cloud::vmwareengine::v1::UpdateSubnetRequest 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::vmwareengine::v1::UpdateSubnetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::Subnet > >

virtual ListNodeTypes(google::cloud::vmwareengine::v1::ListNodeTypesRequest)

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::vmwareengine::v1::ListNodeTypesRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::NodeType >

virtual GetNodeType(google::cloud::vmwareengine::v1::GetNodeTypeRequest 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::vmwareengine::v1::GetNodeTypeRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::NodeType >

virtual ShowNsxCredentials(google::cloud::vmwareengine::v1::ShowNsxCredentialsRequest 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::vmwareengine::v1::ShowNsxCredentialsRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::Credentials >

virtual ShowVcenterCredentials(google::cloud::vmwareengine::v1::ShowVcenterCredentialsRequest 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::vmwareengine::v1::ShowVcenterCredentialsRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::Credentials >

virtual ResetNsxCredentials(google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest 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::vmwareengine::v1::ResetNsxCredentialsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual ResetVcenterCredentials(google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest 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::vmwareengine::v1::ResetVcenterCredentialsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateCloud > >

virtual CreateHcxActivationKey(google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest 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::vmwareengine::v1::CreateHcxActivationKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::HcxActivationKey > >

virtual ListHcxActivationKeys(google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest)

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::vmwareengine::v1::ListHcxActivationKeysRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::HcxActivationKey >

virtual GetHcxActivationKey(google::cloud::vmwareengine::v1::GetHcxActivationKeyRequest 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::vmwareengine::v1::GetHcxActivationKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::HcxActivationKey >

virtual GetNetworkPolicy(google::cloud::vmwareengine::v1::GetNetworkPolicyRequest 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::vmwareengine::v1::GetNetworkPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::NetworkPolicy >

virtual ListNetworkPolicies(google::cloud::vmwareengine::v1::ListNetworkPoliciesRequest)

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::vmwareengine::v1::ListNetworkPoliciesRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::NetworkPolicy >

virtual CreateNetworkPolicy(google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest 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::vmwareengine::v1::CreateNetworkPolicyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::NetworkPolicy > >

virtual UpdateNetworkPolicy(google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest 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::vmwareengine::v1::UpdateNetworkPolicyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::NetworkPolicy > >

virtual DeleteNetworkPolicy(google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest 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::vmwareengine::v1::DeleteNetworkPolicyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::OperationMetadata > >

virtual CreateVmwareEngineNetwork(google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest 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::vmwareengine::v1::CreateVmwareEngineNetworkRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::VmwareEngineNetwork > >

virtual UpdateVmwareEngineNetwork(google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest 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::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::VmwareEngineNetwork > >

virtual DeleteVmwareEngineNetwork(google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest 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::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::OperationMetadata > >

virtual GetVmwareEngineNetwork(google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest 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::vmwareengine::v1::GetVmwareEngineNetworkRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::VmwareEngineNetwork >

virtual ListVmwareEngineNetworks(google::cloud::vmwareengine::v1::ListVmwareEngineNetworksRequest)

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::vmwareengine::v1::ListVmwareEngineNetworksRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::VmwareEngineNetwork >

virtual CreatePrivateConnection(google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest 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::vmwareengine::v1::CreatePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateConnection > >

virtual GetPrivateConnection(google::cloud::vmwareengine::v1::GetPrivateConnectionRequest 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::vmwareengine::v1::GetPrivateConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::vmwareengine::v1::PrivateConnection >

virtual ListPrivateConnections(google::cloud::vmwareengine::v1::ListPrivateConnectionsRequest)

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::vmwareengine::v1::ListPrivateConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::PrivateConnection >

virtual UpdatePrivateConnection(google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest 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::vmwareengine::v1::UpdatePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::PrivateConnection > >

virtual DeletePrivateConnection(google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest 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::vmwareengine::v1::DeletePrivateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vmwareengine::v1::OperationMetadata > >

virtual ListPrivateConnectionPeeringRoutes(google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest)

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::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest
Returns
Type Description
StreamRange< google::cloud::vmwareengine::v1::PeeringRoute >