Struct googapis::google::cloud::memcache::v1::cloud_memcache_client::CloudMemcacheClient [−][src]
pub struct CloudMemcacheClient<T> { /* fields omitted */ }
Expand description
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
Implementations
impl<T> CloudMemcacheClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> CloudMemcacheClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> CloudMemcacheClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesRequest>
) -> Result<Response<ListInstancesResponse>, Status>
pub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesRequest>
) -> Result<Response<ListInstancesResponse>, Status>
Lists Instances in a given location.
pub async fn get_instance(
&mut self,
request: impl IntoRequest<GetInstanceRequest>
) -> Result<Response<Instance>, Status>
pub async fn get_instance(
&mut self,
request: impl IntoRequest<GetInstanceRequest>
) -> Result<Response<Instance>, Status>
Gets details of a single Instance.
pub async fn create_instance(
&mut self,
request: impl IntoRequest<CreateInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_instance(
&mut self,
request: impl IntoRequest<CreateInstanceRequest>
) -> Result<Response<Operation>, Status>
Creates a new Instance in a given location.
pub async fn update_instance(
&mut self,
request: impl IntoRequest<UpdateInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_instance(
&mut self,
request: impl IntoRequest<UpdateInstanceRequest>
) -> Result<Response<Operation>, Status>
Updates an existing Instance in a given project and location.
pub async fn update_parameters(
&mut self,
request: impl IntoRequest<UpdateParametersRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_parameters(
&mut self,
request: impl IntoRequest<UpdateParametersRequest>
) -> Result<Response<Operation>, Status>
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.
pub async fn delete_instance(
&mut self,
request: impl IntoRequest<DeleteInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_instance(
&mut self,
request: impl IntoRequest<DeleteInstanceRequest>
) -> Result<Response<Operation>, Status>
Deletes a single Instance.
pub async fn apply_parameters(
&mut self,
request: impl IntoRequest<ApplyParametersRequest>
) -> Result<Response<Operation>, Status>
pub async fn apply_parameters(
&mut self,
request: impl IntoRequest<ApplyParametersRequest>
) -> Result<Response<Operation>, Status>
ApplyParameters will restart the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for CloudMemcacheClient<T> where
T: RefUnwindSafe,
impl<T> Send for CloudMemcacheClient<T> where
T: Send,
impl<T> Sync for CloudMemcacheClient<T> where
T: Sync,
impl<T> Unpin for CloudMemcacheClient<T> where
T: Unpin,
impl<T> UnwindSafe for CloudMemcacheClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more