0.13.0 (latest) 0.12.0 0.11.0 0.10.3 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.1 0.3.2 0.2.5 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** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.GcsBackupSource` Optional. Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters. Read permission is required to import from the provided Cloud Storage objects. |
| `↳ managed_backup_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.ManagedBackupSource` Optional. Backups generated and managed by memorystore service. |
| `↳ name` | `string` Required. Identifier. 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 rounded up to the next integer. |
| `↳ shard_count` | `int` Optional. Number of shards for the Redis cluster. |
| `↳ psc_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConfig>` Optional. 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<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/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<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConnection>` Output only. The list of PSC connections that are auto-created through service connectivity automation. |
| `↳ state_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.StateInfo` Output only. Additional information about the current state of the cluster. |
| `↳ node_type` | `int` Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node. |
| `↳ persistence_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterPersistenceConfig` Optional. Persistence config (RDB, AOF) for the cluster. |
| `↳ redis_configs` | `array|Google\Protobuf\Internal\MapField` Optional. Key/Value pairs of customer overrides for mutable Redis Configs |
| `↳ precise_size_gb` | `float` Output only. Precise value of redis memory size in GB for the entire cluster. |
| `↳ zone_distribution_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ZoneDistributionConfig` Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region. |
| `↳ cross_cluster_replication_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig` Optional. Cross cluster replication config. |
| `↳ deletion_protection_enabled` | `bool` Optional. The delete operation will fail when the value is set to true. |
| `↳ maintenance_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenancePolicy` Optional. ClusterMaintenancePolicy determines when to allow or deny updates. |
| `↳ maintenance_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenanceSchedule` Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule. |
| `↳ psc_service_attachments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscServiceAttachment>` Output only. Service attachment details to configure Psc connections |
| `↳ cluster_endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterEndpoint>` Optional. A list of cluster enpoints. |
| `↳ backup_collection` | `string` Optional. Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection} |
| `↳ kms_key` | `string` Optional. The KMS key used to encrypt the at-rest data of the cluster. |
| `↳ automated_backup_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AutomatedBackupConfig` Optional. The automated backup config for the cluster. |
| `↳ encryption_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.EncryptionInfo` Output only. Encryption information of the data at rest of the cluster. |
| `↳ async_cluster_endpoints_deletion_enabled` | `bool` Optional. If true, cluster endpoints that are created and registered by customers can be deleted asynchronously. That is, such a cluster endpoint can be de-registered before the forwarding rules in the cluster endpoint are deleted. |
| `↳ server_ca_mode` | `int` Optional. Server CA mode for the cluster. |
| `↳ server_ca_pool` | `string` Optional. Customer-managed CA pool for the cluster. Only applicable for BYOCA i.e. if server_ca_mode is SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA. Format: "projects/{project}/locations/{region}/caPools/{ca_pool}". |
| `↳ rotate_server_certificate` | `bool` Optional. Input only. Rotate the server certificates. |
| `↳ acl_policy` | `string` Optional. The ACL policy to be applied to the cluster. |
| `↳ acl_policy_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicyInfo` Output only. Details of the applied ACL policy. |

### getGcsSource

Optional. Backups stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the clusters.
Read permission is required to import from the provided Cloud Storage
objects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.GcsBackupSource|null` |   |

### hasGcsSource

### setGcsSource

Optional. Backups stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the clusters.
Read permission is required to import from the provided Cloud Storage
objects.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.GcsBackupSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getManagedBackupSource

Optional. Backups generated and managed by memorystore service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.ManagedBackupSource|null` |   |

### hasManagedBackupSource

### setManagedBackupSource

Optional. Backups generated and managed by memorystore service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.ManagedBackupSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

Required. Identifier. 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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Identifier. 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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. The current state of this cluster.

Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.State). |

### setState

Output only. The current state of this cluster.

Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUid

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUid

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReplicaCount

Optional. The number of replica nodes per shard.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasReplicaCount

### clearReplicaCount

### setReplicaCount

Optional. The number of replica nodes per shard.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthorizationMode

Optional. The authorization mode of the Redis cluster.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthorizationMode](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AuthorizationMode). |

### setAuthorizationMode

Optional. The authorization mode of the Redis cluster.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AuthorizationMode](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AuthorizationMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTransitEncryptionMode

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

If not provided, encryption is disabled for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TransitEncryptionMode](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.TransitEncryptionMode). |

### setTransitEncryptionMode

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

If not provided, encryption is disabled for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TransitEncryptionMode](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.TransitEncryptionMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSizeGb

Output only. Redis memory size in GB for the entire cluster rounded up to
the next integer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasSizeGb

### clearSizeGb

### setSizeGb

Output only. Redis memory size in GB for the entire cluster rounded up to
the next integer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShardCount

Optional. Number of shards for the Redis cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasShardCount

### clearShardCount

### setShardCount

Optional. Number of shards for the Redis cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscConfigs

Optional. 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** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConfig>` |   |

### setPscConfigs

Optional. 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** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.DiscoveryEndpoint>` |   |

### 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** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.DiscoveryEndpoint>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscConnections

Output only. The list of PSC connections that are auto-created through
service connectivity automation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConnection>` |   |

### setPscConnections

Output only. The list of PSC connections that are auto-created through
service connectivity automation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConnection>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStateInfo

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.StateInfo|null` |   |

### hasStateInfo

### clearStateInfo

### setStateInfo

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.Cluster.StateInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeType

Optional. The type of a redis node in the cluster. NodeType determines the
underlying machine-type of a redis node.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [NodeType](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.NodeType). |

### setNodeType

Optional. The type of a redis node in the cluster. NodeType determines the
underlying machine-type of a redis node.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [NodeType](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.NodeType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPersistenceConfig

Optional. Persistence config (RDB, AOF) for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterPersistenceConfig|null` |   |

### hasPersistenceConfig

### clearPersistenceConfig

### setPersistenceConfig

Optional. Persistence config (RDB, AOF) for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterPersistenceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRedisConfigs

Optional. Key/Value pairs of customer overrides for mutable Redis Configs

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setRedisConfigs

Optional. Key/Value pairs of customer overrides for mutable Redis Configs

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPreciseSizeGb

Output only. Precise value of redis memory size in GB for the entire
cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasPreciseSizeGb

### clearPreciseSizeGb

### setPreciseSizeGb

Output only. Precise value of redis memory size in GB for the entire
cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZoneDistributionConfig

Optional. This config will be used to determine how the customer wants us
to distribute cluster resources within the region.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ZoneDistributionConfig|null` |   |

### hasZoneDistributionConfig

### clearZoneDistributionConfig

### setZoneDistributionConfig

Optional. This config will be used to determine how the customer wants us
to distribute cluster resources within the region.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ZoneDistributionConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCrossClusterReplicationConfig

Optional. Cross cluster replication config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig|null` |   |

### hasCrossClusterReplicationConfig

### clearCrossClusterReplicationConfig

### setCrossClusterReplicationConfig

Optional. Cross cluster replication config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeletionProtectionEnabled

Optional. The delete operation will fail when the value is set to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDeletionProtectionEnabled

### clearDeletionProtectionEnabled

### setDeletionProtectionEnabled

Optional. The delete operation will fail when the value is set to true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaintenancePolicy

Optional. ClusterMaintenancePolicy determines when to allow or deny
updates.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenancePolicy|null` |   |

### hasMaintenancePolicy

### clearMaintenancePolicy

### setMaintenancePolicy

Optional. ClusterMaintenancePolicy determines when to allow or deny
updates.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenancePolicy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaintenanceSchedule

Output only. ClusterMaintenanceSchedule Output only Published maintenance
schedule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenanceSchedule|null` |   |

### hasMaintenanceSchedule

### clearMaintenanceSchedule

### setMaintenanceSchedule

Output only. ClusterMaintenanceSchedule Output only Published maintenance
schedule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterMaintenanceSchedule` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscServiceAttachments

Output only. Service attachment details to configure Psc connections

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscServiceAttachment>` |   |

### setPscServiceAttachments

Output only. Service attachment details to configure Psc connections

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscServiceAttachment>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClusterEndpoints

Optional. A list of cluster enpoints.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterEndpoint>` |   |

### setClusterEndpoints

Optional. A list of cluster enpoints.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterEndpoint>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBackupCollection

Optional. Output only. The backup collection full resource name. Example:
projects/{project}/locations/{location}/backupCollections/{collection}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasBackupCollection

### clearBackupCollection

### setBackupCollection

Optional. Output only. The backup collection full resource name. Example:
projects/{project}/locations/{location}/backupCollections/{collection}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKmsKey

### clearKmsKey

### setKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutomatedBackupConfig

Optional. The automated backup config for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AutomatedBackupConfig|null` |   |

### hasAutomatedBackupConfig

### clearAutomatedBackupConfig

### setAutomatedBackupConfig

Optional. The automated backup config for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AutomatedBackupConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.EncryptionInfo|null` |   |

### hasEncryptionInfo

### clearEncryptionInfo

### setEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.EncryptionInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAsyncClusterEndpointsDeletionEnabled

Optional. If true, cluster endpoints that are created and registered by
customers can be deleted asynchronously. That is, such a cluster endpoint
can be de-registered before the forwarding rules in the cluster endpoint
are deleted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasAsyncClusterEndpointsDeletionEnabled

### clearAsyncClusterEndpointsDeletionEnabled

### setAsyncClusterEndpointsDeletionEnabled

Optional. If true, cluster endpoints that are created and registered by
customers can be deleted asynchronously. That is, such a cluster endpoint
can be de-registered before the forwarding rules in the cluster endpoint
are deleted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaMode

Optional. Server CA mode for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasServerCaMode

### clearServerCaMode

### setServerCaMode

Optional. Server CA mode for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaPool

Optional. Customer-managed CA pool for the cluster. Only applicable for
BYOCA i.e. if server_ca_mode is SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA.

Format: "projects/{project}/locations/{region}/caPools/{ca_pool}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasServerCaPool

### clearServerCaPool

### setServerCaPool

Optional. Customer-managed CA pool for the cluster. Only applicable for
BYOCA i.e. if server_ca_mode is SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA.

Format: "projects/{project}/locations/{region}/caPools/{ca_pool}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRotateServerCertificate

Optional. Input only. Rotate the server certificates.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasRotateServerCertificate

### clearRotateServerCertificate

### setRotateServerCertificate

Optional. Input only. Rotate the server certificates.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAclPolicy

Optional. The ACL policy to be applied to the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAclPolicy

Optional. The ACL policy to be applied to the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAclPolicyInfo

Output only. Details of the applied ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicyInfo|null` |   |

### hasAclPolicyInfo

### clearAclPolicyInfo

### setAclPolicyInfo

Output only. Details of the applied ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicyInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImportSources

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |