# Google Cloud Memorystore for Memcached V1 API - Class Google::Cloud::Memcache::V1::CloudMemcache::Rest::ServiceStub (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.5 Reference documentation and code samples for the Google Cloud Memorystore for Memcached V1 API class Google::Cloud::Memcache::V1::CloudMemcache::Rest::ServiceStub.

REST service stub for the CloudMemcache service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #apply_parameters

    def apply_parameters(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the apply_parameters REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::ApplyParametersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-ApplyParametersRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #create_instance

    def create_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_instance REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::CreateInstanceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-CreateInstanceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_instance

    def delete_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_instance REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::DeleteInstanceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-DeleteInstanceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_instance

    def get_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Memcache::V1::Instance

Baseline implementation for the get_instance REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::GetInstanceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-GetInstanceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Memcache::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-Instance))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Memcache::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-Instance)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_instances

    def list_instances(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Memcache::V1::ListInstancesResponse

Baseline implementation for the list_instances REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::ListInstancesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-ListInstancesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Memcache::V1::ListInstancesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-ListInstancesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Memcache::V1::ListInstancesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-ListInstancesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #reschedule_maintenance

    def reschedule_maintenance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the reschedule_maintenance REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-RescheduleMaintenanceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_instance

    def update_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_instance REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::UpdateInstanceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-UpdateInstanceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #update_parameters

    def update_parameters(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_parameters REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Memcache::V1::UpdateParametersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-UpdateParametersRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)