Interface CloudMemcacheGrpc.AsyncService (2.21.0)

public static interface CloudMemcacheGrpc.AsyncService

Configures and manages Cloud Memorystore for Memcached instances. The memcache.googleapis.com service implements the Google Cloud Memorystore for Memcached API and defines the following resource model for managing Memorystore Memcached (also called Memcached below) instances:

  • The service works with a collection of cloud projects, named: /projects/*
  • Each project has a collection of available locations, named: /locations/*
  • Each location has a collection of Memcached instances, named: /instances/*
  • As such, Memcached instances are resources of the form: /projects/{project_id}/locations/{location_id}/instances/{instance_id} Note that location_id must be a GCP region; for example:
  • projects/my-memcached-project/locations/us-central1/instances/my-memcached

Methods

applyParameters(ApplyParametersRequest request, StreamObserver<Operation> responseObserver)

public default void applyParameters(ApplyParametersRequest request, StreamObserver<Operation> responseObserver)

ApplyParameters restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.

Parameters
NameDescription
requestApplyParametersRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

applySoftwareUpdate(ApplySoftwareUpdateRequest request, StreamObserver<Operation> responseObserver)

public default void applySoftwareUpdate(ApplySoftwareUpdateRequest request, StreamObserver<Operation> responseObserver)

Updates software on the selected nodes of the Instance.

Parameters
NameDescription
requestApplySoftwareUpdateRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createInstance(CreateInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void createInstance(CreateInstanceRequest request, StreamObserver<Operation> responseObserver)

Creates a new Instance in a given location.

Parameters
NameDescription
requestCreateInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteInstance(DeleteInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void deleteInstance(DeleteInstanceRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Instance.

Parameters
NameDescription
requestDeleteInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

public default void getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

Gets details of a single Instance.

Parameters
NameDescription
requestGetInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Instance>

listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

public default void listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

Lists Instances in a given location.

Parameters
NameDescription
requestListInstancesRequest
responseObserverio.grpc.stub.StreamObserver<ListInstancesResponse>

rescheduleMaintenance(RescheduleMaintenanceRequest request, StreamObserver<Operation> responseObserver)

public default void rescheduleMaintenance(RescheduleMaintenanceRequest request, StreamObserver<Operation> responseObserver)

Performs the apply phase of the RescheduleMaintenance verb.

Parameters
NameDescription
requestRescheduleMaintenanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateInstance(UpdateInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void updateInstance(UpdateInstanceRequest request, StreamObserver<Operation> responseObserver)

Updates an existing Instance in a given project and location.

Parameters
NameDescription
requestUpdateInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateParameters(UpdateParametersRequest request, StreamObserver<Operation> responseObserver)

public default void updateParameters(UpdateParametersRequest request, StreamObserver<Operation> responseObserver)

Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by ApplyParameters to apply the parameters to nodes of the Memcached instance.

Parameters
NameDescription
requestUpdateParametersRequest
responseObserverio.grpc.stub.StreamObserver<Operation>