Reference documentation and code samples for the Google Cloud Memorystore for Memcached API class Google::Cloud::Memcache::V1beta2::CreateInstanceRequest.
Request for CreateInstance.
Inherits
- Object
 
Extended By
- Google::Protobuf::MessageExts::ClassMethods
 
Includes
- Google::Protobuf::MessageExts
 
Methods
#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}wherelocation_idrefers 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}wherelocation_idrefers to a GCP region 
 Returns 
 -  (::String) — Required. The resource name of the instance location using the form: 
projects/{project_id}/locations/{location_id}wherelocation_idrefers to a GCP region 
#resource
def resource() -> ::Google::Cloud::Memcache::V1beta2::Instance Returns 
 - (::Google::Cloud::Memcache::V1beta2::Instance) — Required. A Memcached [Instance] resource
 
#resource=
def resource=(value) -> ::Google::Cloud::Memcache::V1beta2::Instance Parameter 
 - value (::Google::Cloud::Memcache::V1beta2::Instance) — Required. A Memcached [Instance] resource
 
 Returns 
 - (::Google::Cloud::Memcache::V1beta2::Instance) — Required. A Memcached [Instance] resource