Class MockVmwareEngineConnection (2.19.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
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListPrivateCloudsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetPrivateCloudRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListClustersRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetClusterRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreateClusterRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdateClusterRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::DeleteClusterRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListSubnetsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetSubnetRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdateSubnetRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListNodeTypesRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetNodeTypeRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ShowNsxCredentialsRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ShowVcenterCredentialsRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetHcxActivationKeyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetNetworkPolicyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListNetworkPoliciesRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListVmwareEngineNetworksRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListPrivateConnectionsRequest
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const &
Returns
TypeDescription
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
NameDescription
request google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest
Returns
TypeDescription
StreamRange< google::cloud::vmwareengine::v1::PeeringRoute >