Class CloudMemcacheConnection (2.30.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 CreateInstance(NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::CreateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpdateInstance(NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::UpdateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpdateParameters(NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::UpdateParametersRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateParameters(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteInstance(NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::DeleteInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ApplyParameters(NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::ApplyParametersRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ApplyParameters(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::memcache::v1::RescheduleMaintenanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RescheduleMaintenance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::memcache::v1::Instance > >