Google Cloud Redis Cluster V1 Client - Class CreateClusterRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class CreateClusterRequest.

Request for CreateCluster.

Generated from protobuf message google.cloud.redis.cluster.v1.CreateClusterRequest

Namespace

Google \ Cloud \ Redis \ Cluster \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region.

↳ cluster_id string

Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location

↳ cluster Google\Cloud\Redis\Cluster\V1\Cluster

Required. The cluster that is to be created.

↳ request_id string

Idempotent request UUID.

getParent

Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region.

Returns
TypeDescription
string

setParent

Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClusterId

Required. The logical name of the Redis cluster in the customer project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.

  • Must start with a letter.

  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project / location
Returns
TypeDescription
string

setClusterId

Required. The logical name of the Redis cluster in the customer project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.

  • Must start with a letter.

  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project / location
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCluster

Required. The cluster that is to be created.

Returns
TypeDescription
Google\Cloud\Redis\Cluster\V1\Cluster|null

hasCluster

clearCluster

setCluster

Required. The cluster that is to be created.

Parameter
NameDescription
var Google\Cloud\Redis\Cluster\V1\Cluster
Returns
TypeDescription
$this

getRequestId

Idempotent request UUID.

Returns
TypeDescription
string

setRequestId

Idempotent request UUID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region. Please see Google\Cloud\Redis\Cluster\V1\CloudRedisClusterClient::locationName() for help formatting this field.

cluster Google\Cloud\Redis\Cluster\V1\Cluster

Required. The cluster that is to be created.

clusterId string

Required. The logical name of the Redis cluster in the customer project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project / location
Returns
TypeDescription
Google\Cloud\Redis\Cluster\V1\CreateClusterRequest