Class CloudMemcacheConnection (2.22.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
TypeDescription
Options

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

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

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

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

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

Parameter
NameDescription
request google::cloud::memcache::v1::CreateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::memcache::v1::UpdateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::memcache::v1::UpdateParametersRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::memcache::v1::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::memcache::v1::ApplyParametersRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::memcache::v1::RescheduleMaintenanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::memcache::v1::Instance > >