# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::V1::UpdateInstanceRequest (v2.6.0)

2.6.0 (latest) 2.5.1 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.2 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::V1::UpdateInstanceRequest.

Request for
[UpdateInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-CloudRedis-Client#Google__Cloud__Redis__V1__CloudRedis__Client_update_instance_instance_ "Google::Cloud::Redis::V1::CloudRedis::Client#update_instance (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #instance

    def instance() -> ::Google::Cloud::Redis::V1::Instance

**Returns**

- ([::Google::Cloud::Redis::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance)) --- Required. Update description. Only fields specified in update_mask are updated.

### #instance=

    def instance=(value) -> ::Google::Cloud::Redis::V1::Instance

**Parameter**

- **value** ([::Google::Cloud::Redis::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance)) --- Required. Update description. Only fields specified in update_mask are updated.
**Returns**

- ([::Google::Cloud::Redis::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance)) --- Required. Update description. Only fields specified in update_mask are updated.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Protobuf-FieldMask)) ---

  Required. Mask of fields to update. At least one path must be supplied in
  this field. The elements of the repeated paths field may only include these
  fields from [Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance "Google::Cloud::Redis::V1::Instance (class)"):
  - `displayName`
  - `labels`
  - `memorySizeGb`
  - `redisConfig`
  - `replica_count`

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Protobuf-FieldMask)) ---

  Required. Mask of fields to update. At least one path must be supplied in
  this field. The elements of the repeated paths field may only include these
  fields from [Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance "Google::Cloud::Redis::V1::Instance (class)"):
  - `displayName`
  - `labels`
  - `memorySizeGb`
  - `redisConfig`
  - `replica_count`
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Protobuf-FieldMask)) ---

  Required. Mask of fields to update. At least one path must be supplied in
  this field. The elements of the repeated paths field may only include these
  fields from [Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-Instance "Google::Cloud::Redis::V1::Instance (class)"):
  - `displayName`
  - `labels`
  - `memorySizeGb`
  - `redisConfig`
  - `replica_count`