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

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

A cluster instance.

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

Namespace

Google \ Cloud \ Redis \ Cluster \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp associated with the cluster creation request.

↳ state int

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

↳ uid string

Output only. System assigned, unique identifier for the cluster.

↳ replica_count int

Optional. The number of replica nodes per shard.

↳ authorization_mode int

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

↳ transit_encryption_mode int

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

↳ size_gb int

Output only. Redis memory size in GB for the entire cluster.

↳ shard_count int

Required. Number of shards for the Redis cluster.

↳ psc_configs array<Google\Cloud\Redis\Cluster\V1\PscConfig>

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

↳ discovery_endpoints array<Google\Cloud\Redis\Cluster\V1\DiscoveryEndpoint>

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

↳ psc_connections array<Google\Cloud\Redis\Cluster\V1\PscConnection>

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

↳ state_info Google\Cloud\Redis\Cluster\V1\Cluster\StateInfo

Output only. Additional information about the current state of the cluster.

getName

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

Returns
TypeDescription
string

setName

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp associated with the cluster creation request.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp associated with the cluster creation request.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getState

Output only. The current state of this cluster.

Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

Returns
TypeDescription
int

setState

Output only. The current state of this cluster.

Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUid

Output only. System assigned, unique identifier for the cluster.

Returns
TypeDescription
string

setUid

Output only. System assigned, unique identifier for the cluster.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReplicaCount

Optional. The number of replica nodes per shard.

Returns
TypeDescription
int

hasReplicaCount

clearReplicaCount

setReplicaCount

Optional. The number of replica nodes per shard.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAuthorizationMode

Optional. The authorization mode of the Redis cluster.

If not provided, auth feature is disabled for the cluster.

Returns
TypeDescription
int

setAuthorizationMode

Optional. The authorization mode of the Redis cluster.

If not provided, auth feature is disabled for the cluster.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTransitEncryptionMode

Optional. The in-transit encryption for the Redis cluster.

If not provided, encryption is disabled for the cluster.

Returns
TypeDescription
int

setTransitEncryptionMode

Optional. The in-transit encryption for the Redis cluster.

If not provided, encryption is disabled for the cluster.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSizeGb

Output only. Redis memory size in GB for the entire cluster.

Returns
TypeDescription
int

hasSizeGb

clearSizeGb

setSizeGb

Output only. Redis memory size in GB for the entire cluster.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getShardCount

Required. Number of shards for the Redis cluster.

Returns
TypeDescription
int

hasShardCount

clearShardCount

setShardCount

Required. Number of shards for the Redis cluster.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPscConfigs

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPscConfigs

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

Parameter
NameDescription
var array<Google\Cloud\Redis\Cluster\V1\PscConfig>
Returns
TypeDescription
$this

getDiscoveryEndpoints

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDiscoveryEndpoints

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

Parameter
NameDescription
var array<Google\Cloud\Redis\Cluster\V1\DiscoveryEndpoint>
Returns
TypeDescription
$this

getPscConnections

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPscConnections

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

Parameter
NameDescription
var array<Google\Cloud\Redis\Cluster\V1\PscConnection>
Returns
TypeDescription
$this

getStateInfo

Output only. Additional information about the current state of the cluster.

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

hasStateInfo

clearStateInfo

setStateInfo

Output only. Additional information about the current state of the cluster.

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