Class InstancesConnection (2.19.0)

This interface defines virtual methods for each of the user-facing overload sets in InstancesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type InstancesClient.

To create a concrete instance, see MakeInstancesConnection().

For mocking, see appengine_v1_mocks::MockInstancesConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListInstances(google::appengine::v1::ListInstancesRequest)

Parameter
NameDescription
request google::appengine::v1::ListInstancesRequest
Returns
TypeDescription
StreamRange< google::appengine::v1::Instance >

virtual GetInstance(google::appengine::v1::GetInstanceRequest const &)

Parameter
NameDescription
request google::appengine::v1::GetInstanceRequest const &
Returns
TypeDescription
StatusOr< google::appengine::v1::Instance >

virtual DeleteInstance(google::appengine::v1::DeleteInstanceRequest const &)

Parameter
NameDescription
request google::appengine::v1::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::appengine::v1::OperationMetadataV1 > >

virtual DebugInstance(google::appengine::v1::DebugInstanceRequest const &)

Parameter
NameDescription
request google::appengine::v1::DebugInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::appengine::v1::Instance > >