# Google Cloud Memorystore for Memcached V1 API - Class Google::Cloud::Memcache::V1::CreateInstanceRequest (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::CreateInstanceRequest.

Request for [CreateInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-CloudMemcache-Client#Google__Cloud__Memcache__V1__CloudMemcache__Client_create_instance_instance_ "Google::Cloud::Memcache::V1::CloudMemcache::Client#create_instance (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #instance

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

**Returns**

- ([::Google::Cloud::Memcache::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-Instance)) --- Required. A Memcached Instance

### #instance=

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

**Parameter**

- **value** ([::Google::Cloud::Memcache::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-Instance)) --- Required. A Memcached Instance
**Returns**

- ([::Google::Cloud::Memcache::V1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Cloud-Memcache-V1-Instance)) --- Required. A Memcached Instance

### #instance_id

    def instance_id() -> ::String

**Returns**

- (::String) --- Required. The logical name of the Memcached instance in the user project with the following restrictions:

  - Must contain only lowercase letters, numbers, and hyphens.
  - Must start with a letter.
  - Must be between 1-40 characters.
  - Must end with a number or a letter.
  - Must be unique within the user project / location.

  If any of the above are not met, the API raises an invalid argument error.

### #instance_id=

    def instance_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The logical name of the Memcached instance in the user project with the following restrictions:


  - Must contain only lowercase letters, numbers, and hyphens.
  - Must start with a letter.
  - Must be between 1-40 characters.
  - Must end with a number or a letter.
  - Must be unique within the user project / location.

  If any of the above are not met, the API raises an invalid argument error.
**Returns**

- (::String) --- Required. The logical name of the Memcached instance in the user project with the following restrictions:

  - Must contain only lowercase letters, numbers, and hyphens.
  - Must start with a letter.
  - Must be between 1-40 characters.
  - Must end with a number or a letter.
  - Must be unique within the user project / location.

  If any of the above are not met, the API raises an invalid argument error.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region
**Returns**

- (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region