📂 File Browser

AgentAI/vendor/google/apiclient-services/src/CloudRedis
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AOFConfig.php
▶ Open 📄 View Source
🐘 AclPolicy.php
▶ Open 📄 View Source
🐘 AclRule.php
▶ Open 📄 View Source
🐘 AddAuthTokenRequest.php
▶ Open 📄 View Source
🐘 AddTokenAuthUserRequest.php
▶ Open 📄 View Source
🐘 AssetLocation.php
▶ Open 📄 View Source
🐘 AuthToken.php
▶ Open 📄 View Source
🐘 AutomatedBackupConfig.php
▶ Open 📄 View Source
🐘 AvailabilityConfiguration.php
▶ Open 📄 View Source
🐘 Backup.php
▶ Open 📄 View Source
🐘 BackupClusterRequest.php
▶ Open 📄 View Source
🐘 BackupCollection.php
▶ Open 📄 View Source
🐘 BackupConfiguration.php
▶ Open 📄 View Source
🐘 BackupDRConfiguration.php
▶ Open 📄 View Source
🐘 BackupDRMetadata.php
▶ Open 📄 View Source
🐘 BackupFile.php
▶ Open 📄 View Source
🐘 BackupRun.php
▶ Open 📄 View Source
🐘 BlobstoreLocation.php
▶ Open 📄 View Source
🐘 CertChain.php
▶ Open 📄 View Source
🐘 CertificateAuthority.php
▶ Open 📄 View Source
🐘 CloudAsset.php
▶ Open 📄 View Source
🐘 CloudAssetComposition.php
▶ Open 📄 View Source
🐘 Cluster.php
▶ Open 📄 View Source
🐘 ClusterEndpoint.php
▶ Open 📄 View Source
🐘 ClusterMaintenancePolicy.php
▶ Open 📄 View Source
🐘 ClusterMaintenanceSchedule.php
▶ Open 📄 View Source
🐘 ClusterPersistenceConfig.php
▶ Open 📄 View Source
🐘 ClusterSlots.php
▶ Open 📄 View Source
🐘 ClusterWeeklyMaintenanceWindow.php
▶ Open 📄 View Source
🐘 Compliance.php
▶ Open 📄 View Source
🐘 ConfigBasedSignalData.php
▶ Open 📄 View Source
🐘 ConnectionDetail.php
▶ Open 📄 View Source
🐘 CrossClusterReplicationConfig.php
▶ Open 📄 View Source
🐘 CustomMetadataData.php
▶ Open 📄 View Source
🐘 DatabaseMetadata.php
▶ Open 📄 View Source
🐘 DatabaseResourceFeed.php
▶ Open 📄 View Source
🐘 DatabaseResourceHealthSignalData.php
▶ Open 📄 View Source
🐘 DatabaseResourceId.php
▶ Open 📄 View Source
🐘 DatabaseResourceMetadata.php
▶ Open 📄 View Source
🐘 DatabaseResourceRecommendationSignalData.php
▶ Open 📄 View Source
🐘 DatabaseResourceSignalData.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DirectLocationAssignment.php
▶ Open 📄 View Source
🐘 DiscoveryEndpoint.php
▶ Open 📄 View Source
🐘 EncryptionInfo.php
▶ Open 📄 View Source
🐘 Endpoint.php
▶ Open 📄 View Source
🐘 Entitlement.php
▶ Open 📄 View Source
🐘 ExportBackupRequest.php
▶ Open 📄 View Source
🐘 ExportInstanceRequest.php
▶ Open 📄 View Source
🐘 ExtraParameter.php
▶ Open 📄 View Source
🐘 FailoverInstanceRequest.php
▶ Open 📄 View Source
🐘 FixedFrequencySchedule.php
▶ Open 📄 View Source
🐘 GCBDRConfiguration.php
▶ Open 📄 View Source
🐘 GcsBackupSource.php
▶ Open 📄 View Source
🐘 GcsDestination.php
▶ Open 📄 View Source
🐘 GcsSource.php
▶ Open 📄 View Source
🐘 GoogleCloudRedisV1LocationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudRedisV1OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudRedisV1ZoneMetadata.php
▶ Open 📄 View Source
🐘 ImportInstanceRequest.php
▶ Open 📄 View Source
🐘 InputConfig.php
▶ Open 📄 View Source
🐘 Instance.php
▶ Open 📄 View Source
🐘 InstanceAuthString.php
▶ Open 📄 View Source
🐘 InternalResourceMetadata.php
▶ Open 📄 View Source
🐘 IsolationExpectations.php
▶ Open 📄 View Source
🐘 ListAclPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListAuthTokensResponse.php
▶ Open 📄 View Source
🐘 ListBackupCollectionsResponse.php
▶ Open 📄 View Source
🐘 ListBackupsResponse.php
▶ Open 📄 View Source
🐘 ListClustersResponse.php
▶ Open 📄 View Source
🐘 ListInstancesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListTokenAuthUsersResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LocationAssignment.php
▶ Open 📄 View Source
🐘 LocationData.php
▶ Open 📄 View Source
🐘 MachineConfiguration.php
▶ Open 📄 View Source
🐘 MaintenancePolicy.php
▶ Open 📄 View Source
🐘 MaintenanceSchedule.php
▶ Open 📄 View Source
🐘 ManagedBackupSource.php
▶ Open 📄 View Source
🐘 ManagedCertificateAuthority.php
▶ Open 📄 View Source
🐘 Membership.php
▶ Open 📄 View Source
🐘 NodeInfo.php
▶ Open 📄 View Source
🐘 ObservabilityMetricData.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationError.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 OutputConfig.php
▶ Open 📄 View Source
🐘 PersistenceConfig.php
▶ Open 📄 View Source
🐘 PlacerLocation.php
▶ Open 📄 View Source
🐘 PrivateServiceConnect.php
▶ Open 📄 View Source
🐘 Product.php
▶ Open 📄 View Source
🐘 PscAutoConnection.php
▶ Open 📄 View Source
🐘 PscConfig.php
▶ Open 📄 View Source
🐘 PscConnection.php
▶ Open 📄 View Source
🐘 PscServiceAttachment.php
▶ Open 📄 View Source
🐘 RDBConfig.php
▶ Open 📄 View Source
🐘 ReconciliationOperationMetadata.php
▶ Open 📄 View Source
🐘 RedisEmpty.php
▶ Open 📄 View Source
🐘 RegionalCertChain.php
▶ Open 📄 View Source
🐘 RegionalManagedCertificateAuthority.php
▶ Open 📄 View Source
🐘 RegionalMigDistributionPolicy.php
▶ Open 📄 View Source
🐘 RemoteCluster.php
▶ Open 📄 View Source
🐘 RequirementOverride.php
▶ Open 📄 View Source
🐘 RescheduleClusterMaintenanceRequest.php
▶ Open 📄 View Source
🐘 RescheduleMaintenanceRequest.php
▶ Open 📄 View Source
🐘 ResourceFlags.php
▶ Open 📄 View Source
🐘 ResourceMaintenanceDenySchedule.php
▶ Open 📄 View Source
🐘 ResourceMaintenanceInfo.php
▶ Open 📄 View Source
🐘 ResourceMaintenanceSchedule.php
▶ Open 📄 View Source
🐘 RetentionSettings.php
▶ Open 📄 View Source
🐘 SharedRegionalCertificateAuthority.php
▶ Open 📄 View Source
🐘 SignalMetadata.php
▶ Open 📄 View Source
🐘 SpannerLocation.php
▶ Open 📄 View Source
🐘 StateInfo.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Tags.php
▶ Open 📄 View Source
🐘 TenantProjectProxy.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 TlsCertificate.php
▶ Open 📄 View Source
🐘 TokenAuthUser.php
▶ Open 📄 View Source
🐘 TypedValue.php
▶ Open 📄 View Source
🐘 UpcomingMaintenance.php
▶ Open 📄 View Source
🐘 UpdateInfo.php
▶ Open 📄 View Source
🐘 UpgradeInstanceRequest.php
▶ Open 📄 View Source
🐘 UserLabels.php
▶ Open 📄 View Source
🐘 WeeklyMaintenanceWindow.php
▶ Open 📄 View Source
🐘 ZoneConfiguration.php
▶ Open 📄 View Source
🐘 ZoneDistributionConfig.php
▶ Open 📄 View Source

📄 Source: Cluster.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\CloudRedis;

class Cluster extends \Google\Collection
{
  /**
   * Not set.
   */
  public const AUTHORIZATION_MODE_AUTH_MODE_UNSPECIFIED = 'AUTH_MODE_UNSPECIFIED';
  /**
   * IAM basic authorization mode
   */
  public const AUTHORIZATION_MODE_AUTH_MODE_IAM_AUTH = 'AUTH_MODE_IAM_AUTH';
  /**
   * Authorization disabled mode
   */
  public const AUTHORIZATION_MODE_AUTH_MODE_DISABLED = 'AUTH_MODE_DISABLED';
  /**
   * Token based authorization mode
   */
  public const AUTHORIZATION_MODE_AUTH_MODE_TOKEN_AUTH = 'AUTH_MODE_TOKEN_AUTH';
  /**
   * Node type unspecified
   */
  public const NODE_TYPE_NODE_TYPE_UNSPECIFIED = 'NODE_TYPE_UNSPECIFIED';
  /**
   * Redis shared core nano node_type.
   */
  public const NODE_TYPE_REDIS_SHARED_CORE_NANO = 'REDIS_SHARED_CORE_NANO';
  /**
   * Redis highmem medium node_type.
   */
  public const NODE_TYPE_REDIS_HIGHMEM_MEDIUM = 'REDIS_HIGHMEM_MEDIUM';
  /**
   * Redis highmem xlarge node_type.
   */
  public const NODE_TYPE_REDIS_HIGHMEM_XLARGE = 'REDIS_HIGHMEM_XLARGE';
  /**
   * Redis standard small node_type.
   */
  public const NODE_TYPE_REDIS_STANDARD_SMALL = 'REDIS_STANDARD_SMALL';
  /**
   * Redis highcpu medium node_type.
   */
  public const NODE_TYPE_REDIS_HIGHCPU_MEDIUM = 'REDIS_HIGHCPU_MEDIUM';
  /**
   * Redis standard large node_type.
   */
  public const NODE_TYPE_REDIS_STANDARD_LARGE = 'REDIS_STANDARD_LARGE';
  /**
   * Redis highmem 2xlarge node_type.
   */
  public const NODE_TYPE_REDIS_HIGHMEM_2XLARGE = 'REDIS_HIGHMEM_2XLARGE';
  /**
   * Server CA mode not specified.
   */
  public const SERVER_CA_MODE_SERVER_CA_MODE_UNSPECIFIED = 'SERVER_CA_MODE_UNSPECIFIED';
  /**
   * Each cluster has its own Google managed CA.
   */
  public const SERVER_CA_MODE_SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA = 'SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA';
  /**
   * The cluster uses Google managed shared CA in the region.
   */
  public const SERVER_CA_MODE_SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA = 'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA';
  /**
   * The cluster uses customer managed CA from CAS.
   */
  public const SERVER_CA_MODE_SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA = 'SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA';
  /**
   * Not set.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * Redis cluster is being created.
   */
  public const STATE_CREATING = 'CREATING';
  /**
   * Redis cluster has been created and is fully usable.
   */
  public const STATE_ACTIVE = 'ACTIVE';
  /**
   * Redis cluster configuration is being updated.
   */
  public const STATE_UPDATING = 'UPDATING';
  /**
   * Redis cluster is being deleted.
   */
  public const STATE_DELETING = 'DELETING';
  /**
   * In-transit encryption not set.
   */
  public const TRANSIT_ENCRYPTION_MODE_TRANSIT_ENCRYPTION_MODE_UNSPECIFIED = 'TRANSIT_ENCRYPTION_MODE_UNSPECIFIED';
  /**
   * In-transit encryption disabled.
   */
  public const TRANSIT_ENCRYPTION_MODE_TRANSIT_ENCRYPTION_MODE_DISABLED = 'TRANSIT_ENCRYPTION_MODE_DISABLED';
  /**
   * Use server managed encryption for in-transit encryption.
   */
  public const TRANSIT_ENCRYPTION_MODE_TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION = 'TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION';
  protected $collection_key = 'pscServiceAttachments';
  /**
   * Optional. The ACL policy to be applied to the cluster.
   *
   * @var string
   */
  public $aclPolicy;
  /**
   * Optional. Output only. Indicates whether the ACL rules applied to the
   * cluster are in sync with the latest ACL policy rules. This field is only
   * applicable if the ACL policy is set for the cluster.
   *
   * @var bool
   */
  public $aclPolicyInSync;
  /**
   * Optional. Immutable. Deprecated, do not use.
   *
   * @deprecated
   * @var bool
   */
  public $allowFewerZonesDeployment;
  /**
   * 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.
   *
   * @var bool
   */
  public $asyncClusterEndpointsDeletionEnabled;
  /**
   * Optional. The authorization mode of the Redis cluster. If not provided,
   * auth feature is disabled for the cluster.
   *
   * @var string
   */
  public $authorizationMode;
  protected $automatedBackupConfigType = AutomatedBackupConfig::class;
  protected $automatedBackupConfigDataType = '';
  /**
   * Output only. This field is used to determine the available maintenance
   * versions for the self service update.
   *
   * @var string[]
   */
  public $availableMaintenanceVersions;
  /**
   * Optional. Output only. The backup collection full resource name. Example:
   * projects/{project}/locations/{location}/backupCollections/{collection}
   *
   * @var string
   */
  public $backupCollection;
  protected $clusterEndpointsType = ClusterEndpoint::class;
  protected $clusterEndpointsDataType = 'array';
  /**
   * Output only. The timestamp associated with the cluster creation request.
   *
   * @var string
   */
  public $createTime;
  protected $crossClusterReplicationConfigType = CrossClusterReplicationConfig::class;
  protected $crossClusterReplicationConfigDataType = '';
  /**
   * Optional. The delete operation will fail when the value is set to true.
   *
   * @var bool
   */
  public $deletionProtectionEnabled;
  protected $discoveryEndpointsType = DiscoveryEndpoint::class;
  protected $discoveryEndpointsDataType = 'array';
  /**
   * Output only. This field represents the actual maintenance version of the
   * cluster.
   *
   * @var string
   */
  public $effectiveMaintenanceVersion;
  protected $encryptionInfoType = EncryptionInfo::class;
  protected $encryptionInfoDataType = '';
  protected $gcsSourceType = GcsBackupSource::class;
  protected $gcsSourceDataType = '';
  /**
   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
   *
   * @var string
   */
  public $kmsKey;
  /**
   * Optional. Labels to represent user-provided metadata.
   *
   * @var string[]
   */
  public $labels;
  protected $maintenancePolicyType = ClusterMaintenancePolicy::class;
  protected $maintenancePolicyDataType = '';
  protected $maintenanceScheduleType = ClusterMaintenanceSchedule::class;
  protected $maintenanceScheduleDataType = '';
  /**
   * Optional. This field can be used to trigger self service update to indicate
   * the desired maintenance version. The input to this field can be determined
   * by the available_maintenance_versions field.
   *
   * @var string
   */
  public $maintenanceVersion;
  protected $managedBackupSourceType = ManagedBackupSource::class;
  protected $managedBackupSourceDataType = '';
  /**
   * 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}`
   *
   * @var string
   */
  public $name;
  /**
   * Optional. The type of a redis node in the cluster. NodeType determines the
   * underlying machine-type of a redis node.
   *
   * @var string
   */
  public $nodeType;
  /**
   * Optional. Input only. Ondemand maintenance for the cluster. This field can
   * be used to trigger ondemand critical update on the cluster.
   *
   * @deprecated
   * @var bool
   */
  public $ondemandMaintenance;
  protected $persistenceConfigType = ClusterPersistenceConfig::class;
  protected $persistenceConfigDataType = '';
  /**
   * Output only. Precise value of redis memory size in GB for the entire
   * cluster.
   *
   * @var 
   */
  public $preciseSizeGb;
  protected $pscConfigsType = PscConfig::class;
  protected $pscConfigsDataType = 'array';
  protected $pscConnectionsType = PscConnection::class;
  protected $pscConnectionsDataType = 'array';
  protected $pscServiceAttachmentsType = PscServiceAttachment::class;
  protected $pscServiceAttachmentsDataType = 'array';
  /**
   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
   *
   * @var string[]
   */
  public $redisConfigs;
  /**
   * Optional. The number of replica nodes per shard.
   *
   * @var int
   */
  public $replicaCount;
  /**
   * Optional. Input only. Rotate the server certificates.
   *
   * @var bool
   */
  public $rotateServerCertificate;
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzi;
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzs;
  /**
   * Optional. Server CA mode for the cluster.
   *
   * @var string
   */
  public $serverCaMode;
  /**
   * 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}".
   *
   * @var string
   */
  public $serverCaPool;
  /**
   * Optional. Number of shards for the Redis cluster.
   *
   * @var int
   */
  public $shardCount;
  /**
   * Optional. Input only. Simulate a maintenance event.
   *
   * @var bool
   */
  public $simulateMaintenanceEvent;
  /**
   * Output only. Redis memory size in GB for the entire cluster rounded up to
   * the next integer.
   *
   * @var int
   */
  public $sizeGb;
  /**
   * Output only. The current state of this cluster. Can be CREATING, READY,
   * UPDATING, DELETING and SUSPENDED
   *
   * @var string
   */
  public $state;
  protected $stateInfoType = StateInfo::class;
  protected $stateInfoDataType = '';
  /**
   * Optional. The in-transit encryption for the Redis cluster. If not provided,
   * encryption is disabled for the cluster.
   *
   * @var string
   */
  public $transitEncryptionMode;
  /**
   * Output only. System assigned, unique identifier for the cluster.
   *
   * @var string
   */
  public $uid;
  protected $zoneDistributionConfigType = ZoneDistributionConfig::class;
  protected $zoneDistributionConfigDataType = '';

  /**
   * Optional. The ACL policy to be applied to the cluster.
   *
   * @param string $aclPolicy
   */
  public function setAclPolicy($aclPolicy)
  {
    $this->aclPolicy = $aclPolicy;
  }
  /**
   * @return string
   */
  public function getAclPolicy()
  {
    return $this->aclPolicy;
  }
  /**
   * Optional. Output only. Indicates whether the ACL rules applied to the
   * cluster are in sync with the latest ACL policy rules. This field is only
   * applicable if the ACL policy is set for the cluster.
   *
   * @param bool $aclPolicyInSync
   */
  public function setAclPolicyInSync($aclPolicyInSync)
  {
    $this->aclPolicyInSync = $aclPolicyInSync;
  }
  /**
   * @return bool
   */
  public function getAclPolicyInSync()
  {
    return $this->aclPolicyInSync;
  }
  /**
   * Optional. Immutable. Deprecated, do not use.
   *
   * @deprecated
   * @param bool $allowFewerZonesDeployment
   */
  public function setAllowFewerZonesDeployment($allowFewerZonesDeployment)
  {
    $this->allowFewerZonesDeployment = $allowFewerZonesDeployment;
  }
  /**
   * @deprecated
   * @return bool
   */
  public function getAllowFewerZonesDeployment()
  {
    return $this->allowFewerZonesDeployment;
  }
  /**
   * 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.
   *
   * @param bool $asyncClusterEndpointsDeletionEnabled
   */
  public function setAsyncClusterEndpointsDeletionEnabled($asyncClusterEndpointsDeletionEnabled)
  {
    $this->asyncClusterEndpointsDeletionEnabled = $asyncClusterEndpointsDeletionEnabled;
  }
  /**
   * @return bool
   */
  public function getAsyncClusterEndpointsDeletionEnabled()
  {
    return $this->asyncClusterEndpointsDeletionEnabled;
  }
  /**
   * Optional. The authorization mode of the Redis cluster. If not provided,
   * auth feature is disabled for the cluster.
   *
   * Accepted values: AUTH_MODE_UNSPECIFIED, AUTH_MODE_IAM_AUTH,
   * AUTH_MODE_DISABLED, AUTH_MODE_TOKEN_AUTH
   *
   * @param self::AUTHORIZATION_MODE_* $authorizationMode
   */
  public function setAuthorizationMode($authorizationMode)
  {
    $this->authorizationMode = $authorizationMode;
  }
  /**
   * @return self::AUTHORIZATION_MODE_*
   */
  public function getAuthorizationMode()
  {
    return $this->authorizationMode;
  }
  /**
   * Optional. The automated backup config for the cluster.
   *
   * @param AutomatedBackupConfig $automatedBackupConfig
   */
  public function setAutomatedBackupConfig(AutomatedBackupConfig $automatedBackupConfig)
  {
    $this->automatedBackupConfig = $automatedBackupConfig;
  }
  /**
   * @return AutomatedBackupConfig
   */
  public function getAutomatedBackupConfig()
  {
    return $this->automatedBackupConfig;
  }
  /**
   * Output only. This field is used to determine the available maintenance
   * versions for the self service update.
   *
   * @param string[] $availableMaintenanceVersions
   */
  public function setAvailableMaintenanceVersions($availableMaintenanceVersions)
  {
    $this->availableMaintenanceVersions = $availableMaintenanceVersions;
  }
  /**
   * @return string[]
   */
  public function getAvailableMaintenanceVersions()
  {
    return $this->availableMaintenanceVersions;
  }
  /**
   * Optional. Output only. The backup collection full resource name. Example:
   * projects/{project}/locations/{location}/backupCollections/{collection}
   *
   * @param string $backupCollection
   */
  public function setBackupCollection($backupCollection)
  {
    $this->backupCollection = $backupCollection;
  }
  /**
   * @return string
   */
  public function getBackupCollection()
  {
    return $this->backupCollection;
  }
  /**
   * Optional. A list of cluster endpoints.
   *
   * @param ClusterEndpoint[] $clusterEndpoints
   */
  public function setClusterEndpoints($clusterEndpoints)
  {
    $this->clusterEndpoints = $clusterEndpoints;
  }
  /**
   * @return ClusterEndpoint[]
   */
  public function getClusterEndpoints()
  {
    return $this->clusterEndpoints;
  }
  /**
   * Output only. The timestamp associated with the cluster creation request.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Optional. Cross cluster replication config.
   *
   * @param CrossClusterReplicationConfig $crossClusterReplicationConfig
   */
  public function setCrossClusterReplicationConfig(CrossClusterReplicationConfig $crossClusterReplicationConfig)
  {
    $this->crossClusterReplicationConfig = $crossClusterReplicationConfig;
  }
  /**
   * @return CrossClusterReplicationConfig
   */
  public function getCrossClusterReplicationConfig()
  {
    return $this->crossClusterReplicationConfig;
  }
  /**
   * Optional. The delete operation will fail when the value is set to true.
   *
   * @param bool $deletionProtectionEnabled
   */
  public function setDeletionProtectionEnabled($deletionProtectionEnabled)
  {
    $this->deletionProtectionEnabled = $deletionProtectionEnabled;
  }
  /**
   * @return bool
   */
  public function getDeletionProtectionEnabled()
  {
    return $this->deletionProtectionEnabled;
  }
  /**
   * Output only. Endpoints created on each given network, for Redis clients to
   * connect to the cluster. Currently only one discovery endpoint is supported.
   *
   * @param DiscoveryEndpoint[] $discoveryEndpoints
   */
  public function setDiscoveryEndpoints($discoveryEndpoints)
  {
    $this->discoveryEndpoints = $discoveryEndpoints;
  }
  /**
   * @return DiscoveryEndpoint[]
   */
  public function getDiscoveryEndpoints()
  {
    return $this->discoveryEndpoints;
  }
  /**
   * Output only. This field represents the actual maintenance version of the
   * cluster.
   *
   * @param string $effectiveMaintenanceVersion
   */
  public function setEffectiveMaintenanceVersion($effectiveMaintenanceVersion)
  {
    $this->effectiveMaintenanceVersion = $effectiveMaintenanceVersion;
  }
  /**
   * @return string
   */
  public function getEffectiveMaintenanceVersion()
  {
    return $this->effectiveMaintenanceVersion;
  }
  /**
   * Output only. Encryption information of the data at rest of the cluster.
   *
   * @param EncryptionInfo $encryptionInfo
   */
  public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
  {
    $this->encryptionInfo = $encryptionInfo;
  }
  /**
   * @return EncryptionInfo
   */
  public function getEncryptionInfo()
  {
    return $this->encryptionInfo;
  }
  /**
   * 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.
   *
   * @param GcsBackupSource $gcsSource
   */
  public function setGcsSource(GcsBackupSource $gcsSource)
  {
    $this->gcsSource = $gcsSource;
  }
  /**
   * @return GcsBackupSource
   */
  public function getGcsSource()
  {
    return $this->gcsSource;
  }
  /**
   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
   *
   * @param string $kmsKey
   */
  public function setKmsKey($kmsKey)
  {
    $this->kmsKey = $kmsKey;
  }
  /**
   * @return string
   */
  public function getKmsKey()
  {
    return $this->kmsKey;
  }
  /**
   * Optional. Labels to represent user-provided metadata.
   *
   * @param string[] $labels
   */
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  /**
   * @return string[]
   */
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * Optional. ClusterMaintenancePolicy determines when to allow or deny
   * updates.
   *
   * @param ClusterMaintenancePolicy $maintenancePolicy
   */
  public function setMaintenancePolicy(ClusterMaintenancePolicy $maintenancePolicy)
  {
    $this->maintenancePolicy = $maintenancePolicy;
  }
  /**
   * @return ClusterMaintenancePolicy
   */
  public function getMaintenancePolicy()
  {
    return $this->maintenancePolicy;
  }
  /**
   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
   * schedule.
   *
   * @param ClusterMaintenanceSchedule $maintenanceSchedule
   */
  public function setMaintenanceSchedule(ClusterMaintenanceSchedule $maintenanceSchedule)
  {
    $this->maintenanceSchedule = $maintenanceSchedule;
  }
  /**
   * @return ClusterMaintenanceSchedule
   */
  public function getMaintenanceSchedule()
  {
    return $this->maintenanceSchedule;
  }
  /**
   * Optional. This field can be used to trigger self service update to indicate
   * the desired maintenance version. The input to this field can be determined
   * by the available_maintenance_versions field.
   *
   * @param string $maintenanceVersion
   */
  public function setMaintenanceVersion($maintenanceVersion)
  {
    $this->maintenanceVersion = $maintenanceVersion;
  }
  /**
   * @return string
   */
  public function getMaintenanceVersion()
  {
    return $this->maintenanceVersion;
  }
  /**
   * Optional. Backups generated and managed by memorystore service.
   *
   * @param ManagedBackupSource $managedBackupSource
   */
  public function setManagedBackupSource(ManagedBackupSource $managedBackupSource)
  {
    $this->managedBackupSource = $managedBackupSource;
  }
  /**
   * @return ManagedBackupSource
   */
  public function getManagedBackupSource()
  {
    return $this->managedBackupSource;
  }
  /**
   * 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}`
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Optional. The type of a redis node in the cluster. NodeType determines the
   * underlying machine-type of a redis node.
   *
   * Accepted values: NODE_TYPE_UNSPECIFIED, REDIS_SHARED_CORE_NANO,
   * REDIS_HIGHMEM_MEDIUM, REDIS_HIGHMEM_XLARGE, REDIS_STANDARD_SMALL,
   * REDIS_HIGHCPU_MEDIUM, REDIS_STANDARD_LARGE, REDIS_HIGHMEM_2XLARGE
   *
   * @param self::NODE_TYPE_* $nodeType
   */
  public function setNodeType($nodeType)
  {
    $this->nodeType = $nodeType;
  }
  /**
   * @return self::NODE_TYPE_*
   */
  public function getNodeType()
  {
    return $this->nodeType;
  }
  /**
   * Optional. Input only. Ondemand maintenance for the cluster. This field can
   * be used to trigger ondemand critical update on the cluster.
   *
   * @deprecated
   * @param bool $ondemandMaintenance
   */
  public function setOndemandMaintenance($ondemandMaintenance)
  {
    $this->ondemandMaintenance = $ondemandMaintenance;
  }
  /**
   * @deprecated
   * @return bool
   */
  public function getOndemandMaintenance()
  {
    return $this->ondemandMaintenance;
  }
  /**
   * Optional. Persistence config (RDB, AOF) for the cluster.
   *
   * @param ClusterPersistenceConfig $persistenceConfig
   */
  public function setPersistenceConfig(ClusterPersistenceConfig $persistenceConfig)
  {
    $this->persistenceConfig = $persistenceConfig;
  }
  /**
   * @return ClusterPersistenceConfig
   */
  public function getPersistenceConfig()
  {
    return $this->persistenceConfig;
  }
  public function setPreciseSizeGb($preciseSizeGb)
  {
    $this->preciseSizeGb = $preciseSizeGb;
  }
  public function getPreciseSizeGb()
  {
    return $this->preciseSizeGb;
  }
  /**
   * 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.
   *
   * @param PscConfig[] $pscConfigs
   */
  public function setPscConfigs($pscConfigs)
  {
    $this->pscConfigs = $pscConfigs;
  }
  /**
   * @return PscConfig[]
   */
  public function getPscConfigs()
  {
    return $this->pscConfigs;
  }
  /**
   * Output only. The list of PSC connections that are auto-created through
   * service connectivity automation.
   *
   * @param PscConnection[] $pscConnections
   */
  public function setPscConnections($pscConnections)
  {
    $this->pscConnections = $pscConnections;
  }
  /**
   * @return PscConnection[]
   */
  public function getPscConnections()
  {
    return $this->pscConnections;
  }
  /**
   * Output only. Service attachment details to configure Psc connections
   *
   * @param PscServiceAttachment[] $pscServiceAttachments
   */
  public function setPscServiceAttachments($pscServiceAttachments)
  {
    $this->pscServiceAttachments = $pscServiceAttachments;
  }
  /**
   * @return PscServiceAttachment[]
   */
  public function getPscServiceAttachments()
  {
    return $this->pscServiceAttachments;
  }
  /**
   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
   *
   * @param string[] $redisConfigs
   */
  public function setRedisConfigs($redisConfigs)
  {
    $this->redisConfigs = $redisConfigs;
  }
  /**
   * @return string[]
   */
  public function getRedisConfigs()
  {
    return $this->redisConfigs;
  }
  /**
   * Optional. The number of replica nodes per shard.
   *
   * @param int $replicaCount
   */
  public function setReplicaCount($replicaCount)
  {
    $this->replicaCount = $replicaCount;
  }
  /**
   * @return int
   */
  public function getReplicaCount()
  {
    return $this->replicaCount;
  }
  /**
   * Optional. Input only. Rotate the server certificates.
   *
   * @param bool $rotateServerCertificate
   */
  public function setRotateServerCertificate($rotateServerCertificate)
  {
    $this->rotateServerCertificate = $rotateServerCertificate;
  }
  /**
   * @return bool
   */
  public function getRotateServerCertificate()
  {
    return $this->rotateServerCertificate;
  }
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @param bool $satisfiesPzi
   */
  public function setSatisfiesPzi($satisfiesPzi)
  {
    $this->satisfiesPzi = $satisfiesPzi;
  }
  /**
   * @return bool
   */
  public function getSatisfiesPzi()
  {
    return $this->satisfiesPzi;
  }
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @param bool $satisfiesPzs
   */
  public function setSatisfiesPzs($satisfiesPzs)
  {
    $this->satisfiesPzs = $satisfiesPzs;
  }
  /**
   * @return bool
   */
  public function getSatisfiesPzs()
  {
    return $this->satisfiesPzs;
  }
  /**
   * Optional. Server CA mode for the cluster.
   *
   * Accepted values: SERVER_CA_MODE_UNSPECIFIED,
   * SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA,
   * SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA,
   * SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA
   *
   * @param self::SERVER_CA_MODE_* $serverCaMode
   */
  public function setServerCaMode($serverCaMode)
  {
    $this->serverCaMode = $serverCaMode;
  }
  /**
   * @return self::SERVER_CA_MODE_*
   */
  public function getServerCaMode()
  {
    return $this->serverCaMode;
  }
  /**
   * 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}".
   *
   * @param string $serverCaPool
   */
  public function setServerCaPool($serverCaPool)
  {
    $this->serverCaPool = $serverCaPool;
  }
  /**
   * @return string
   */
  public function getServerCaPool()
  {
    return $this->serverCaPool;
  }
  /**
   * Optional. Number of shards for the Redis cluster.
   *
   * @param int $shardCount
   */
  public function setShardCount($shardCount)
  {
    $this->shardCount = $shardCount;
  }
  /**
   * @return int
   */
  public function getShardCount()
  {
    return $this->shardCount;
  }
  /**
   * Optional. Input only. Simulate a maintenance event.
   *
   * @param bool $simulateMaintenanceEvent
   */
  public function setSimulateMaintenanceEvent($simulateMaintenanceEvent)
  {
    $this->simulateMaintenanceEvent = $simulateMaintenanceEvent;
  }
  /**
   * @return bool
   */
  public function getSimulateMaintenanceEvent()
  {
    return $this->simulateMaintenanceEvent;
  }
  /**
   * Output only. Redis memory size in GB for the entire cluster rounded up to
   * the next integer.
   *
   * @param int $sizeGb
   */
  public function setSizeGb($sizeGb)
  {
    $this->sizeGb = $sizeGb;
  }
  /**
   * @return int
   */
  public function getSizeGb()
  {
    return $this->sizeGb;
  }
  /**
   * Output only. The current state of this cluster. Can be CREATING, READY,
   * UPDATING, DELETING and SUSPENDED
   *
   * Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, UPDATING, DELETING
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Output only. Additional information about the current state of the cluster.
   *
   * @param StateInfo $stateInfo
   */
  public function setStateInfo(StateInfo $stateInfo)
  {
    $this->stateInfo = $stateInfo;
  }
  /**
   * @return StateInfo
   */
  public function getStateInfo()
  {
    return $this->stateInfo;
  }
  /**
   * Optional. The in-transit encryption for the Redis cluster. If not provided,
   * encryption is disabled for the cluster.
   *
   * Accepted values: TRANSIT_ENCRYPTION_MODE_UNSPECIFIED,
   * TRANSIT_ENCRYPTION_MODE_DISABLED,
   * TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION
   *
   * @param self::TRANSIT_ENCRYPTION_MODE_* $transitEncryptionMode
   */
  public function setTransitEncryptionMode($transitEncryptionMode)
  {
    $this->transitEncryptionMode = $transitEncryptionMode;
  }
  /**
   * @return self::TRANSIT_ENCRYPTION_MODE_*
   */
  public function getTransitEncryptionMode()
  {
    return $this->transitEncryptionMode;
  }
  /**
   * Output only. System assigned, unique identifier for the cluster.
   *
   * @param string $uid
   */
  public function setUid($uid)
  {
    $this->uid = $uid;
  }
  /**
   * @return string
   */
  public function getUid()
  {
    return $this->uid;
  }
  /**
   * Optional. This config will be used to determine how the customer wants us
   * to distribute cluster resources within the region.
   *
   * @param ZoneDistributionConfig $zoneDistributionConfig
   */
  public function setZoneDistributionConfig(ZoneDistributionConfig $zoneDistributionConfig)
  {
    $this->zoneDistributionConfig = $zoneDistributionConfig;
  }
  /**
   * @return ZoneDistributionConfig
   */
  public function getZoneDistributionConfig()
  {
    return $this->zoneDistributionConfig;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');
← Back