{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-memorystore/json-schema/google-cloud-memorystore-cluster-schema.json",
  "title": "Cluster",
  "description": "A cluster instance.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-memorystore-redis-projects-api-openapi.yml#/components/schemas/Cluster",
  "properties": {
    "kmsKey": {
      "description": "Optional. The KMS key used to encrypt the at-rest data of the cluster.",
      "type": "string"
    },
    "createTime": {
      "description": "Output only. The timestamp associated with the cluster creation request.",
      "type": "string",
      "readOnly": true,
      "format": "google-datetime"
    },
    "preciseSizeGb": {
      "format": "double",
      "readOnly": true,
      "type": "number",
      "description": "Output only. Precise value of redis memory size in GB for the entire cluster."
    },
    "discoveryEndpoints": {
      "description": "Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.",
      "items": {
        "$ref": "#/$defs/DiscoveryEndpoint"
      },
      "readOnly": true,
      "type": "array"
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/ClusterMaintenanceSchedule",
      "description": "Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule."
    },
    "replicaCount": {
      "format": "int32",
      "type": "integer",
      "description": "Optional. The number of replica nodes per shard."
    },
    "persistenceConfig": {
      "$ref": "#/$defs/ClusterPersistenceConfig",
      "description": "Optional. Persistence config (RDB, AOF) for the cluster."
    },
    "aclPolicyInfo": {
      "$ref": "#/$defs/AclPolicyInfo",
      "description": "Output only. Details of the applied ACL policy."
    },
    "effectiveMaintenanceVersion": {
      "type": "string",
      "description": "Output only. This field represents the actual maintenance version of the cluster.",
      "readOnly": true
    },
    "zoneDistributionConfig": {
      "$ref": "#/$defs/ZoneDistributionConfig",
      "description": "Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region."
    },
    "serverCaPool": {
      "description": "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}\".",
      "type": "string"
    },
    "clusterEndpoints": {
      "items": {
        "$ref": "#/$defs/ClusterEndpoint"
      },
      "description": "Optional. A list of cluster endpoints.",
      "type": "array"
    },
    "serverCaMode": {
      "type": "string",
      "description": "Optional. Server CA mode for the cluster.",
      "enum": [
        "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"
      ]
    },
    "allowFewerZonesDeployment": {
      "type": "boolean",
      "description": "Optional. Immutable. Deprecated, do not use.",
      "deprecated": true
    },
    "gcsSource": {
      "$ref": "#/$defs/GcsBackupSource",
      "description": "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."
    },
    "stateInfo": {
      "$ref": "#/$defs/StateInfo",
      "description": "Output only. Additional information about the current state of the cluster."
    },
    "nodeType": {
      "type": "string",
      "enum": [
        "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"
      ],
      "description": "Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node."
    },
    "maintenancePolicy": {
      "$ref": "#/$defs/ClusterMaintenancePolicy",
      "description": "Optional. ClusterMaintenancePolicy determines when to allow or deny updates."
    },
    "aclPolicy": {
      "description": "Optional. The ACL policy to be applied to the cluster.",
      "type": "string"
    },
    "uid": {
      "readOnly": true,
      "description": "Output only. System assigned, unique identifier for the cluster.",
      "type": "string"
    },
    "satisfiesPzi": {
      "readOnly": true,
      "description": "Optional. Output only. Reserved for future use.",
      "type": "boolean"
    },
    "satisfiesPzs": {
      "type": "boolean",
      "description": "Optional. Output only. Reserved for future use.",
      "readOnly": true
    },
    "maintenanceVersion": {
      "description": "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.",
      "type": "string"
    },
    "crossClusterReplicationConfig": {
      "$ref": "#/$defs/CrossClusterReplicationConfig",
      "description": "Optional. Cross cluster replication config."
    },
    "encryptionInfo": {
      "$ref": "#/$defs/EncryptionInfo",
      "description": "Output only. Encryption information of the data at rest of the cluster."
    },
    "rotateServerCertificate": {
      "type": "boolean",
      "description": "Optional. Input only. Rotate the server certificates."
    },
    "simulateMaintenanceEvent": {
      "type": "boolean",
      "description": "Optional. Input only. Simulate a maintenance event."
    },
    "authorizationMode": {
      "type": "string",
      "description": "Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.",
      "enum": [
        "AUTH_MODE_UNSPECIFIED",
        "AUTH_MODE_IAM_AUTH",
        "AUTH_MODE_DISABLED",
        "AUTH_MODE_TOKEN_AUTH"
      ]
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. Labels to represent user-provided metadata.",
      "type": "object"
    },
    "redisConfigs": {
      "description": "Optional. Key/Value pairs of customer overrides for mutable Redis Configs",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "deletionProtectionEnabled": {
      "description": "Optional. The delete operation will fail when the value is set to true.",
      "type": "boolean"
    },
    "pscConnections": {
      "description": "Output only. The list of PSC connections that are auto-created through service connectivity automation.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/PscConnection"
      },
      "type": "array"
    },
    "managedBackupSource": {
      "$ref": "#/$defs/ManagedBackupSource",
      "description": "Optional. Backups generated and managed by memorystore service."
    },
    "pscServiceAttachments": {
      "description": "Output only. Service attachment details to configure Psc connections",
      "items": {
        "$ref": "#/$defs/PscServiceAttachment"
      },
      "type": "array",
      "readOnly": true
    },
    "state": {
      "readOnly": true,
      "description": "Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED",
      "enum": [
        "STATE_UNSPECIFIED",
        "CREATING",
        "ACTIVE",
        "UPDATING",
        "DELETING"
      ],
      "type": "string"
    },
    "automatedBackupConfig": {
      "$ref": "#/$defs/AutomatedBackupConfig",
      "description": "Optional. The automated backup config for the cluster."
    },
    "availableMaintenanceVersions": {
      "description": "Output only. This field is used to determine the available maintenance versions for the self service update.",
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "string"
      }
    },
    "sizeGb": {
      "readOnly": true,
      "description": "Output only. Redis memory size in GB for the entire cluster rounded up to the next integer.",
      "format": "int32",
      "type": "integer"
    },
    "backupCollection": {
      "description": "Optional. Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}",
      "type": "string",
      "readOnly": true
    },
    "transitEncryptionMode": {
      "description": "Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.",
      "type": "string",
      "enum": [
        "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
        "TRANSIT_ENCRYPTION_MODE_DISABLED",
        "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"
      ]
    },
    "shardCount": {
      "description": "Optional. Number of shards for the Redis cluster.",
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "description": "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}`",
      "type": "string"
    },
    "pscConfigs": {
      "description": "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.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PscConfig"
      }
    },
    "asyncClusterEndpointsDeletionEnabled": {
      "type": "boolean",
      "description": "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."
    },
    "ondemandMaintenance": {
      "description": "Optional. Input only. Ondemand maintenance for the cluster. This field can be used to trigger ondemand critical update on the cluster.",
      "type": "boolean",
      "deprecated": true
    },
    "aclPolicyInSync": {
      "description": "Optional. Output only. Deprecated: Indicates whether the ACL rules applied to the cluster are in sync.",
      "type": "boolean",
      "readOnly": true,
      "deprecated": true
    }
  },
  "type": "object",
  "$defs": {
    "AOFConfig": {
      "description": "Configuration of the AOF based persistence.",
      "properties": {
        "appendFsync": {
          "enum": [
            "APPEND_FSYNC_UNSPECIFIED",
            "NO",
            "EVERYSEC",
            "ALWAYS"
          ],
          "type": "string",
          "description": "Optional. fsync configuration."
        }
      },
      "type": "object"
    },
    "AclPolicyInfo": {
      "description": "Details of the applied ACL policy.",
      "type": "object",
      "properties": {
        "appliedAclPolicy": {
          "description": "Output only. The resource name of the applied ACL policy. Format: \"projects/{project}/locations/{location}/aclPolicies/{acl_policy}\"",
          "type": "string",
          "readOnly": true
        },
        "aclPolicyRevisionStatuses": {
          "description": "Output only. A list of status for various revisions of this ACL policy on the cluster.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AclPolicyRevisionStatus"
          },
          "readOnly": true
        },
        "appliedAclPolicyRevisionNumber": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The revision number of the applied ACL policy revision.",
          "type": "string"
        },
        "appliedAclPolicyRevision": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The resource name of the applied ACL policy revision. Format: \"projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}\""
        }
      }
    },
    "AclPolicyRevisionStatus": {
      "properties": {
        "state": {
          "readOnly": true,
          "enum": [
            "STATE_UNSPECIFIED",
            "APPLYING",
            "APPLIED",
            "FAILED"
          ],
          "description": "Output only. AclPolicyRevision state.",
          "type": "string"
        },
        "aclPolicyRevisionNumber": {
          "readOnly": true,
          "description": "Output only. The revision number of the ACL policy revision this status refers to.",
          "format": "int64",
          "type": "string"
        },
        "aclPolicyRevision": {
          "description": "Output only. The resource name of the ACL policy revision this status refers to. Format: \"projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}\"",
          "type": "string",
          "readOnly": true
        },
        "errorMessage": {
          "readOnly": true,
          "description": "Output only. Human-readable error message providing more details for FAILED states.",
          "type": "string"
        }
      },
      "description": "AclPolicyRevisionStatus stores the per-revision status for an attached cluster.",
      "type": "object"
    },
    "AutomatedBackupConfig": {
      "description": "The automated backup config for a cluster.",
      "properties": {
        "fixedFrequencySchedule": {
          "$ref": "#/$defs/FixedFrequencySchedule",
          "description": "Optional. Trigger automated backups at a fixed frequency."
        },
        "retention": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days."
        },
        "automatedBackupMode": {
          "description": "Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.",
          "type": "string",
          "enum": [
            "AUTOMATED_BACKUP_MODE_UNSPECIFIED",
            "DISABLED",
            "ENABLED"
          ]
        }
      },
      "type": "object"
    },
    "ClusterEndpoint": {
      "properties": {
        "connections": {
          "items": {
            "$ref": "#/$defs/ConnectionDetail"
          },
          "description": "Required. A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.",
          "type": "array"
        }
      },
      "description": "ClusterEndpoint consists of PSC connections that are created as a group in each VPC network for accessing the cluster. In each group, there shall be one connection for each service attachment in the cluster.",
      "type": "object"
    },
    "ClusterMaintenancePolicy": {
      "properties": {
        "weeklyMaintenanceWindow": {
          "type": "array",
          "description": "Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one.",
          "items": {
            "$ref": "#/$defs/ClusterWeeklyMaintenanceWindow"
          }
        },
        "createTime": {
          "type": "string",
          "description": "Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned.",
          "format": "google-datetime",
          "readOnly": true
        },
        "updateTime": {
          "description": "Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated.",
          "format": "google-datetime",
          "type": "string",
          "readOnly": true
        }
      },
      "type": "object",
      "description": "Maintenance policy per cluster."
    },
    "ClusterMaintenanceSchedule": {
      "description": "Upcoming maintenance schedule.",
      "properties": {
        "endTime": {
          "description": "Output only. The end time of any upcoming scheduled maintenance for this instance.",
          "type": "string",
          "format": "google-datetime",
          "readOnly": true
        },
        "startTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The start time of any upcoming scheduled maintenance for this instance.",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "ClusterPersistenceConfig": {
      "properties": {
        "aofConfig": {
          "$ref": "#/$defs/AOFConfig",
          "description": "Optional. AOF configuration. This field will be ignored if mode is not AOF."
        },
        "mode": {
          "type": "string",
          "description": "Optional. The mode of persistence.",
          "enum": [
            "PERSISTENCE_MODE_UNSPECIFIED",
            "DISABLED",
            "RDB",
            "AOF"
          ]
        },
        "rdbConfig": {
          "$ref": "#/$defs/RDBConfig",
          "description": "Optional. RDB configuration. This field will be ignored if mode is not RDB."
        }
      },
      "type": "object",
      "description": "Configuration of the persistence functionality."
    },
    "ClusterWeeklyMaintenanceWindow": {
      "description": "Time window specified for weekly operations.",
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "enum": [
            "DAY_OF_WEEK_UNSPECIFIED",
            "MONDAY",
            "TUESDAY",
            "WEDNESDAY",
            "THURSDAY",
            "FRIDAY",
            "SATURDAY",
            "SUNDAY"
          ],
          "description": "Optional. The day of the week for the maintenance window. This field is required. You can't use `DAY_OF_WEEK_UNSPECIFIED`."
        },
        "startTime": {
          "$ref": "#/$defs/TimeOfDay",
          "description": "Optional. The start time of the maintenance window in UTC. When you specify a maintenance window, `start_time` is required."
        }
      }
    },
    "ConnectionDetail": {
      "type": "object",
      "description": "Detailed information of each PSC connection.",
      "properties": {
        "pscConnection": {
          "$ref": "#/$defs/PscConnection",
          "description": "Detailed information of a PSC connection that is created by the customer who owns the cluster."
        },
        "pscAutoConnection": {
          "$ref": "#/$defs/PscAutoConnection",
          "description": "Detailed information of a PSC connection that is created through service connectivity automation."
        }
      }
    },
    "CrossClusterReplicationConfig": {
      "description": "Cross cluster replication config.",
      "type": "object",
      "properties": {
        "secondaryClusters": {
          "items": {
            "$ref": "#/$defs/RemoteCluster"
          },
          "description": "List of secondary clusters that are replicating from this primary cluster. This field is only set for a primary cluster.",
          "type": "array"
        },
        "primaryCluster": {
          "$ref": "#/$defs/RemoteCluster",
          "description": "Details of the primary cluster that is used as the replication source for this secondary cluster. This field is only set for a secondary cluster."
        },
        "clusterRole": {
          "description": "Output only. The role of the cluster in cross cluster replication.",
          "enum": [
            "CLUSTER_ROLE_UNSPECIFIED",
            "NONE",
            "PRIMARY",
            "SECONDARY"
          ],
          "readOnly": true,
          "type": "string"
        },
        "membership": {
          "$ref": "#/$defs/Membership",
          "description": "Output only. An output only view of all the member clusters participating in the cross cluster replication. This view will be provided by every member cluster irrespective of its cluster role(primary or secondary). A primary cluster can provide information about all the secondary clusters replicating from it. However, a secondary cluster only knows about the primary cluster from which it is replicating. However, for scenarios, where the primary cluster is unavailable(e.g. regional outage), a GetCluster request can be sent to any other member cluster and this field will list all the member clusters participating in cross cluster replication."
        },
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The last time cross cluster replication config was updated.",
          "format": "google-datetime"
        }
      }
    },
    "DiscoveryEndpoint": {
      "properties": {
        "address": {
          "description": "Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.",
          "readOnly": true,
          "type": "string"
        },
        "pscConfig": {
          "$ref": "#/$defs/PscConfig",
          "description": "Output only. Customer configuration for where the endpoint is created and accessed from."
        },
        "port": {
          "description": "Output only. The port number of the exposed Redis endpoint.",
          "format": "int32",
          "type": "integer",
          "readOnly": true
        }
      },
      "description": "Endpoints on each network, for Redis clients to connect to the cluster.",
      "type": "object"
    },
    "EncryptionInfo": {
      "type": "object",
      "description": "EncryptionInfo describes the encryption information of a cluster or a backup.",
      "properties": {
        "kmsKeyPrimaryState": {
          "description": "Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.",
          "type": "string",
          "enum": [
            "KMS_KEY_STATE_UNSPECIFIED",
            "ENABLED",
            "PERMISSION_DENIED",
            "DISABLED",
            "DESTROYED",
            "DESTROY_SCHEDULED",
            "EKM_KEY_UNREACHABLE_DETECTED",
            "BILLING_DISABLED",
            "UNKNOWN_FAILURE"
          ],
          "readOnly": true
        },
        "encryptionType": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "GOOGLE_DEFAULT_ENCRYPTION",
            "CUSTOMER_MANAGED_ENCRYPTION"
          ],
          "description": "Output only. Type of encryption."
        },
        "kmsKeyVersions": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. KMS key versions that are being used to protect the data at-rest.",
          "items": {
            "type": "string"
          }
        },
        "lastUpdateTime": {
          "format": "google-datetime",
          "description": "Output only. The most recent time when the encryption info was updated.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "FixedFrequencySchedule": {
      "properties": {
        "startTime": {
          "$ref": "#/$defs/TimeOfDay",
          "description": "Required. The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required."
        }
      },
      "description": "This schedule allows the backup to be triggered at a fixed frequency (currently only daily is supported).",
      "type": "object"
    },
    "GcsBackupSource": {
      "properties": {
        "uris": {
          "items": {
            "type": "string"
          },
          "description": "Optional. URIs of the Cloud Storage objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters."
    },
    "ManagedBackupSource": {
      "description": "Backups that generated and managed by memorystore.",
      "type": "object",
      "properties": {
        "backup": {
          "description": "Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.",
          "type": "string"
        }
      }
    },
    "Membership": {
      "description": "An output only view of all the member clusters participating in the cross cluster replication.",
      "type": "object",
      "properties": {
        "secondaryClusters": {
          "description": "Output only. The list of secondary clusters replicating from the primary cluster.",
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemoteCluster"
          }
        },
        "primaryCluster": {
          "$ref": "#/$defs/RemoteCluster",
          "description": "Output only. The primary cluster that acts as the source of replication for the secondary clusters."
        }
      }
    },
    "PscAutoConnection": {
      "description": "Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.",
      "properties": {
        "projectId": {
          "type": "string",
          "description": "Required. The consumer project_id where the forwarding rule is created from."
        },
        "address": {
          "type": "string",
          "description": "Output only. The IP allocated on the consumer network for the PSC forwarding rule.",
          "readOnly": true
        },
        "network": {
          "type": "string",
          "description": "Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}."
        },
        "connectionType": {
          "description": "Output only. Type of the PSC connection.",
          "enum": [
            "CONNECTION_TYPE_UNSPECIFIED",
            "CONNECTION_TYPE_DISCOVERY",
            "CONNECTION_TYPE_PRIMARY",
            "CONNECTION_TYPE_READER"
          ],
          "type": "string",
          "readOnly": true
        },
        "pscConnectionStatus": {
          "enum": [
            "PSC_CONNECTION_STATUS_UNSPECIFIED",
            "PSC_CONNECTION_STATUS_ACTIVE",
            "PSC_CONNECTION_STATUS_NOT_FOUND"
          ],
          "type": "string",
          "readOnly": true,
          "description": "Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status."
        },
        "forwardingRule": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}."
        },
        "serviceAttachment": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}."
        },
        "pscConnectionId": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The PSC connection id of the forwarding rule connected to the service attachment."
        }
      },
      "type": "object"
    },
    "PscConfig": {
      "properties": {
        "network": {
          "type": "string",
          "description": "Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}."
        }
      },
      "type": "object"
    },
    "PscConnection": {
      "properties": {
        "connectionType": {
          "enum": [
            "CONNECTION_TYPE_UNSPECIFIED",
            "CONNECTION_TYPE_DISCOVERY",
            "CONNECTION_TYPE_PRIMARY",
            "CONNECTION_TYPE_READER"
          ],
          "type": "string",
          "description": "Output only. Type of the PSC connection.",
          "readOnly": true
        },
        "pscConnectionId": {
          "type": "string",
          "description": "Required. The PSC connection id of the forwarding rule connected to the service attachment."
        },
        "pscConnectionStatus": {
          "readOnly": true,
          "description": "Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.",
          "type": "string",
          "enum": [
            "PSC_CONNECTION_STATUS_UNSPECIFIED",
            "PSC_CONNECTION_STATUS_ACTIVE",
            "PSC_CONNECTION_STATUS_NOT_FOUND"
          ]
        },
        "address": {
          "type": "string",
          "description": "Required. The IP allocated on the consumer network for the PSC forwarding rule."
        },
        "forwardingRule": {
          "type": "string",
          "description": "Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}."
        },
        "network": {
          "type": "string",
          "description": "Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}."
        },
        "projectId": {
          "description": "Optional. Project ID of the consumer project where the forwarding rule is created in.",
          "type": "string"
        },
        "port": {
          "type": "integer",
          "readOnly": true,
          "description": "Output only. port will only be set for Primary/Reader or Discovery endpoint.",
          "format": "int32"
        },
        "serviceAttachment": {
          "type": "string",
          "description": "Required. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}."
        }
      },
      "type": "object",
      "description": "Details of consumer resources in a PSC connection."
    },
    "PscServiceAttachment": {
      "type": "object",
      "description": "Configuration of a service attachment of the cluster, for creating PSC connections.",
      "properties": {
        "serviceAttachment": {
          "type": "string",
          "description": "Output only. Service attachment URI which your self-created PscConnection should use as target",
          "readOnly": true
        },
        "connectionType": {
          "enum": [
            "CONNECTION_TYPE_UNSPECIFIED",
            "CONNECTION_TYPE_DISCOVERY",
            "CONNECTION_TYPE_PRIMARY",
            "CONNECTION_TYPE_READER"
          ],
          "type": "string",
          "description": "Output only. Type of a PSC connection targeting this service attachment.",
          "readOnly": true
        }
      }
    },
    "RDBConfig": {
      "properties": {
        "rdbSnapshotStartTime": {
          "format": "google-datetime",
          "description": "Optional. The time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.",
          "type": "string"
        },
        "rdbSnapshotPeriod": {
          "enum": [
            "SNAPSHOT_PERIOD_UNSPECIFIED",
            "ONE_HOUR",
            "SIX_HOURS",
            "TWELVE_HOURS",
            "TWENTY_FOUR_HOURS"
          ],
          "type": "string",
          "description": "Optional. Period between RDB snapshots."
        }
      },
      "type": "object",
      "description": "Configuration of the RDB based persistence."
    },
    "RemoteCluster": {
      "type": "object",
      "properties": {
        "cluster": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The full resource path of the remote cluster in the format: projects//locations//clusters/"
        },
        "uid": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The unique identifier of the remote cluster."
        }
      },
      "description": "Details of the remote cluster associated with this cluster in a cross cluster replication setup."
    },
    "StateInfo": {
      "type": "object",
      "properties": {
        "updateInfo": {
          "$ref": "#/$defs/UpdateInfo",
          "description": "Describes ongoing update on the cluster when cluster state is UPDATING."
        }
      },
      "description": "Represents additional information about the state of the cluster."
    },
    "TimeOfDay": {
      "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.",
      "properties": {
        "minutes": {
          "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.",
          "format": "int32",
          "type": "integer"
        },
        "nanos": {
          "format": "int32",
          "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.",
          "type": "integer"
        },
        "seconds": {
          "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.",
          "type": "integer",
          "format": "int32"
        },
        "hours": {
          "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "UpdateInfo": {
      "description": "Represents information about an updating cluster.",
      "properties": {
        "targetShardCount": {
          "type": "integer",
          "description": "Target number of shards for redis cluster",
          "format": "int32"
        },
        "targetReplicaCount": {
          "type": "integer",
          "format": "int32",
          "description": "Target number of replica nodes per shard."
        },
        "targetNodeType": {
          "type": "string",
          "enum": [
            "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"
          ],
          "description": "Target node type for redis cluster."
        }
      },
      "type": "object"
    },
    "ZoneDistributionConfig": {
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
            "MULTI_ZONE",
            "SINGLE_ZONE"
          ],
          "description": "Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified."
        },
        "zones": {
          "description": "Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "activeZones": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. The exact list of zones where the cluster currently has active VMs.",
          "items": {
            "type": "string"
          }
        },
        "zone": {
          "description": "Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Zone distribution config for allocation of cluster resources."
    }
  }
}