Class CloudMemcacheConnection (2.24.0)

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

To create a concrete instance, see MakeCloudMemcacheConnection().

For mocking, see memcache_v1_mocks::MockCloudMemcacheConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListInstances(google::cloud::memcache::v1::ListInstancesRequest)

Parameter
Name Description
request google::cloud::memcache::v1::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::memcache::v1::Instance >

virtual GetInstance(google::cloud::memcache::v1::GetInstanceRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::memcache::v1::Instance >

virtual CreateInstance(google::cloud::memcache::v1::CreateInstanceRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::CreateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >

virtual UpdateInstance(google::cloud::memcache::v1::UpdateInstanceRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >

virtual UpdateParameters(google::cloud::memcache::v1::UpdateParametersRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::UpdateParametersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >

virtual DeleteInstance(google::cloud::memcache::v1::DeleteInstanceRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::DeleteInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::OperationMetadata > >

virtual ApplyParameters(google::cloud::memcache::v1::ApplyParametersRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::ApplyParametersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >

virtual RescheduleMaintenance(google::cloud::memcache::v1::RescheduleMaintenanceRequest const &)

Parameter
Name Description
request google::cloud::memcache::v1::RescheduleMaintenanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >