{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-list-backups-response-schema.json",
  "title": "ListBackupsResponse",
  "description": "The response payload containing a list of the backups.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-backups-api-openapi.yml#/components/schemas/ListBackupsResponse",
  "type": "object",
  "properties": {
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiWarning"
      },
      "description": "If a region isn't unavailable or if an unknown error occurs, then a warning message is returned."
    },
    "backups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Backup"
      },
      "description": "A list of backups."
    },
    "nextPageToken": {
      "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, then there aren't subsequent pages.",
      "type": "string"
    }
  },
  "$defs": {
    "AclEntry": {
      "properties": {
        "expirationTime": {
          "description": "The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "type": "string",
          "format": "google-datetime"
        },
        "value": {
          "type": "string",
          "description": "The allowlisted value for the access control list."
        },
        "name": {
          "type": "string",
          "description": "Optional. A label to identify this entry."
        },
        "kind": {
          "description": "This is always `sql#aclEntry`.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "An entry for an Access Control list."
    },
    "AdvancedMachineFeatures": {
      "description": "Specifies options for controlling advanced machine features.",
      "type": "object",
      "properties": {
        "threadsPerCore": {
          "description": "The number of threads per physical core.",
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "ApiWarning": {
      "description": "An Admin API warning message.",
      "type": "object",
      "properties": {
        "region": {
          "description": "The region name for REGION_UNREACHABLE warning.",
          "type": "string"
        },
        "message": {
          "description": "The warning message.",
          "type": "string"
        },
        "code": {
          "enum": [
            "SQL_API_WARNING_CODE_UNSPECIFIED",
            "REGION_UNREACHABLE",
            "MAX_RESULTS_EXCEEDS_LIMIT",
            "COMPROMISED_CREDENTIALS",
            "INTERNAL_STATE_FAILURE"
          ],
          "description": "Code to uniquely identify the warning type.",
          "type": "string"
        }
      }
    },
    "AvailableDatabaseVersion": {
      "type": "object",
      "description": "An available database version. It can be a major or a minor version.",
      "properties": {
        "name": {
          "description": "The database version name. For MySQL 8.0, this string provides the database major and minor version.",
          "type": "string"
        },
        "majorVersion": {
          "description": "The version's major version name.",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "The database version's display name."
        }
      }
    },
    "Backup": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of this backup."
        },
        "state": {
          "type": "string",
          "description": "Output only. The status of this backup.",
          "enum": [
            "SQL_BACKUP_STATE_UNSPECIFIED",
            "ENQUEUED",
            "RUNNING",
            "FAILED",
            "SUCCESSFUL",
            "DELETING",
            "DELETION_FAILED"
          ],
          "readOnly": true
        },
        "instanceDeletionTime": {
          "description": "Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.",
          "readOnly": true,
          "format": "google-datetime",
          "type": "string"
        },
        "kmsKey": {
          "readOnly": true,
          "description": "Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.",
          "type": "string"
        },
        "type": {
          "enum": [
            "SQL_BACKUP_TYPE_UNSPECIFIED",
            "AUTOMATED",
            "ON_DEMAND",
            "FINAL"
          ],
          "type": "string",
          "readOnly": true,
          "description": "Output only. The type of this backup. The type can be \"AUTOMATED\", \"ON_DEMAND\" or “FINAL”."
        },
        "kind": {
          "type": "string",
          "description": "Output only. This is always `sql#backup`.",
          "readOnly": true
        },
        "databaseVersion": {
          "enum": [
            "SQL_DATABASE_VERSION_UNSPECIFIED",
            "MYSQL_5_1",
            "MYSQL_5_5",
            "MYSQL_5_6",
            "MYSQL_5_7",
            "MYSQL_8_0",
            "MYSQL_8_0_18",
            "MYSQL_8_0_26",
            "MYSQL_8_0_27",
            "MYSQL_8_0_28",
            "MYSQL_8_0_29",
            "MYSQL_8_0_30",
            "MYSQL_8_0_31",
            "MYSQL_8_0_32",
            "MYSQL_8_0_33",
            "MYSQL_8_0_34",
            "MYSQL_8_0_35",
            "MYSQL_8_0_36",
            "MYSQL_8_0_37",
            "MYSQL_8_0_39",
            "MYSQL_8_0_40",
            "MYSQL_8_0_41",
            "MYSQL_8_0_42",
            "MYSQL_8_0_43",
            "MYSQL_8_0_44",
            "MYSQL_8_0_45",
            "MYSQL_8_0_46",
            "MYSQL_8_4",
            "MYSQL_9_7",
            "SQLSERVER_2017_STANDARD",
            "SQLSERVER_2017_ENTERPRISE",
            "SQLSERVER_2017_EXPRESS",
            "SQLSERVER_2017_WEB",
            "POSTGRES_9_6",
            "POSTGRES_10",
            "POSTGRES_11",
            "POSTGRES_12",
            "POSTGRES_13",
            "POSTGRES_14",
            "POSTGRES_15",
            "POSTGRES_16",
            "POSTGRES_17",
            "POSTGRES_18",
            "POSTGRES_19",
            "POSTGRES_20",
            "SQLSERVER_2019_STANDARD",
            "SQLSERVER_2019_ENTERPRISE",
            "SQLSERVER_2019_EXPRESS",
            "SQLSERVER_2019_WEB",
            "SQLSERVER_2022_STANDARD",
            "SQLSERVER_2022_ENTERPRISE",
            "SQLSERVER_2022_EXPRESS",
            "SQLSERVER_2022_WEB",
            "SQLSERVER_2025_STANDARD",
            "SQLSERVER_2025_ENTERPRISE",
            "SQLSERVER_2025_EXPRESS"
          ],
          "description": "Output only. The database version of the instance of at the time this backup was made.",
          "type": "string",
          "readOnly": true
        },
        "satisfiesPzi": {
          "description": "Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use.",
          "readOnly": true,
          "type": "boolean"
        },
        "timeZone": {
          "description": "Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.",
          "type": "string",
          "readOnly": true
        },
        "error": {
          "$ref": "#/$defs/OperationError",
          "description": "Output only. Information about why the backup operation fails (for example, when the backup state fails)."
        },
        "instance": {
          "description": "The name of the source database instance.",
          "type": "string"
        },
        "ttlDays": {
          "description": "Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.",
          "type": "string",
          "format": "int64"
        },
        "kmsKeyVersion": {
          "type": "string",
          "description": "Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.",
          "readOnly": true
        },
        "selfLink": {
          "type": "string",
          "description": "Output only. The URI of this resource.",
          "readOnly": true
        },
        "instanceSettings": {
          "$ref": "#/$defs/DatabaseInstance",
          "description": "Optional. Output only. The instance setting of the source instance that's associated with this backup."
        },
        "backupKind": {
          "readOnly": true,
          "description": "Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.",
          "enum": [
            "SQL_BACKUP_KIND_UNSPECIFIED",
            "SNAPSHOT",
            "PHYSICAL"
          ],
          "type": "string"
        },
        "maxChargeableBytes": {
          "format": "int64",
          "readOnly": true,
          "type": "string",
          "description": "Output only. The maximum chargeable bytes for the backup."
        },
        "location": {
          "description": "The storage location of the backups. The location can be multi-regional.",
          "type": "string"
        },
        "satisfiesPzs": {
          "type": "boolean",
          "description": "Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use.",
          "readOnly": true
        },
        "backupRun": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The mapping to backup run resource used for IAM validations."
        },
        "backupInterval": {
          "$ref": "#/$defs/Interval",
          "description": "Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available."
        },
        "expiryTime": {
          "format": "google-datetime",
          "description": "Backup expiration time. A UTC timestamp of when this backup expired.",
          "type": "string"
        }
      },
      "description": "A backup resource."
    },
    "BackupConfiguration": {
      "type": "object",
      "properties": {
        "transactionalLogStorageState": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "TRANSACTIONAL_LOG_STORAGE_STATE_UNSPECIFIED",
            "DISK",
            "SWITCHING_TO_CLOUD_STORAGE",
            "SWITCHED_TO_CLOUD_STORAGE",
            "CLOUD_STORAGE"
          ],
          "description": "Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database."
        },
        "backupRetentionSettings": {
          "$ref": "#/$defs/BackupRetentionSettings",
          "description": "Backup retention settings."
        },
        "pointInTimeRecoveryEnabled": {
          "description": "Whether point in time recovery is enabled.",
          "type": "boolean"
        },
        "backupTier": {
          "description": "Output only. Backup tier that manages the backups for the instance.",
          "readOnly": true,
          "enum": [
            "BACKUP_TIER_UNSPECIFIED",
            "STANDARD",
            "ADVANCED",
            "ENHANCED"
          ],
          "type": "string"
        },
        "transactionLogRetentionDays": {
          "format": "int32",
          "type": "integer",
          "description": "The number of days of transaction logs we retain for point in time restore, from 1-7."
        },
        "location": {
          "type": "string",
          "description": "Location of the backup"
        },
        "binaryLogEnabled": {
          "type": "boolean",
          "description": "(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well."
        },
        "replicationLogArchivingEnabled": {
          "description": "Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.",
          "type": "boolean",
          "deprecated": true
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#backupConfiguration`."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether this configuration is enabled."
        },
        "startTime": {
          "description": "Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.",
          "type": "string"
        }
      },
      "description": "Database instance backup configuration."
    },
    "BackupRetentionSettings": {
      "type": "object",
      "properties": {
        "retentionUnit": {
          "description": "The unit that 'retained_backups' represents.",
          "type": "string",
          "enum": [
            "RETENTION_UNIT_UNSPECIFIED",
            "COUNT"
          ]
        },
        "retainedBackups": {
          "description": "Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.",
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "We currently only support backup retention by specifying the number of backups we will retain."
    },
    "BlueGreenDeploymentInfo": {
      "properties": {
        "deploymentId": {
          "description": "Output only. The resource ID of the blue-green deployment.",
          "readOnly": true,
          "type": "string"
        },
        "state": {
          "readOnly": true,
          "description": "Output only. The current state of blue-green-deployment for UI tags",
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "PRE_SWITCHOVER",
            "POST_SWITCHOVER"
          ]
        },
        "source": {
          "$ref": "#/$defs/SourceRole",
          "description": "Output only. The source instance for the Blue-Green deployment."
        },
        "target": {
          "$ref": "#/$defs/TargetRole",
          "description": "Output only. The target instance for the Blue-Green deployment."
        }
      },
      "description": "Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.",
      "type": "object"
    },
    "ConnectionPoolConfig": {
      "properties": {
        "poolerCount": {
          "type": "integer",
          "readOnly": true,
          "format": "int32",
          "description": "Output only. Number of connection poolers."
        },
        "flags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionPoolFlags"
          },
          "description": "Optional. List of connection pool configuration flags."
        },
        "connectionPoolingEnabled": {
          "type": "boolean",
          "description": "Whether managed connection pooling is enabled."
        }
      },
      "type": "object",
      "description": "The managed connection pooling configuration."
    },
    "ConnectionPoolFlags": {
      "type": "object",
      "description": "Connection pool flags for Cloud SQL instances managed connection pool configuration.",
      "properties": {
        "value": {
          "description": "Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.",
          "type": "string"
        },
        "name": {
          "description": "Required. The name of the flag.",
          "type": "string"
        }
      }
    },
    "DataCacheConfig": {
      "description": "Data cache configurations.",
      "type": "object",
      "properties": {
        "dataCacheEnabled": {
          "description": "Whether data cache is enabled for the instance.",
          "type": "boolean"
        }
      }
    },
    "DatabaseFlags": {
      "description": "Database flags for Cloud SQL instances.",
      "properties": {
        "name": {
          "description": "The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.",
          "type": "string"
        },
        "value": {
          "description": "The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "DatabaseInstance": {
      "type": "object",
      "description": "A Cloud SQL instance resource.",
      "properties": {
        "dnsNames": {
          "items": {
            "$ref": "#/$defs/DnsNameMapping"
          },
          "type": "array",
          "description": "Output only. The list of DNS names used by this instance.",
          "readOnly": true
        },
        "project": {
          "type": "string",
          "description": "The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable."
        },
        "maxDiskSize": {
          "description": "The maximum disk size of the instance in bytes.",
          "type": "string",
          "format": "int64",
          "deprecated": true
        },
        "suspensionReason": {
          "description": "If the instance state is SUSPENDED, the reason for the suspension.",
          "type": "array",
          "items": {
            "enum": [
              "SQL_SUSPENSION_REASON_UNSPECIFIED",
              "BILLING_ISSUE",
              "LEGAL_ISSUE",
              "OPERATIONAL_ISSUE",
              "KMS_KEY_ISSUE",
              "PROJECT_ABUSE"
            ],
            "type": "string"
          }
        },
        "databaseCenterIntegration": {
          "type": "string",
          "enum": [
            "DATABASE_CENTER_INTEGRATION_UNSPECIFIED",
            "ENABLED",
            "DISABLED"
          ],
          "description": "Optional. State of the Database Center integration for this instance. When unspecified, Database Center integration is enabled by default."
        },
        "primaryDnsName": {
          "readOnly": true,
          "description": "Output only. DEPRECATED: please use write_endpoint instead.",
          "type": "string",
          "deprecated": true
        },
        "dnsName": {
          "description": "Output only. The dns name of the instance.",
          "readOnly": true,
          "type": "string"
        },
        "diskEncryptionStatus": {
          "$ref": "#/$defs/DiskEncryptionStatus",
          "description": "Disk encryption status specific to an instance."
        },
        "databaseCenterIntegrationEnabled": {
          "type": "boolean",
          "description": "Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center."
        },
        "settings": {
          "$ref": "#/$defs/Settings",
          "description": "The user settings."
        },
        "etag": {
          "type": "string",
          "description": "This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead."
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#instance`."
        },
        "databaseVersion": {
          "enum": [
            "SQL_DATABASE_VERSION_UNSPECIFIED",
            "MYSQL_5_1",
            "MYSQL_5_5",
            "MYSQL_5_6",
            "MYSQL_5_7",
            "MYSQL_8_0",
            "MYSQL_8_0_18",
            "MYSQL_8_0_26",
            "MYSQL_8_0_27",
            "MYSQL_8_0_28",
            "MYSQL_8_0_29",
            "MYSQL_8_0_30",
            "MYSQL_8_0_31",
            "MYSQL_8_0_32",
            "MYSQL_8_0_33",
            "MYSQL_8_0_34",
            "MYSQL_8_0_35",
            "MYSQL_8_0_36",
            "MYSQL_8_0_37",
            "MYSQL_8_0_39",
            "MYSQL_8_0_40",
            "MYSQL_8_0_41",
            "MYSQL_8_0_42",
            "MYSQL_8_0_43",
            "MYSQL_8_0_44",
            "MYSQL_8_0_45",
            "MYSQL_8_0_46",
            "MYSQL_8_4",
            "MYSQL_9_7",
            "SQLSERVER_2017_STANDARD",
            "SQLSERVER_2017_ENTERPRISE",
            "SQLSERVER_2017_EXPRESS",
            "SQLSERVER_2017_WEB",
            "POSTGRES_9_6",
            "POSTGRES_10",
            "POSTGRES_11",
            "POSTGRES_12",
            "POSTGRES_13",
            "POSTGRES_14",
            "POSTGRES_15",
            "POSTGRES_16",
            "POSTGRES_17",
            "POSTGRES_18",
            "POSTGRES_19",
            "POSTGRES_20",
            "SQLSERVER_2019_STANDARD",
            "SQLSERVER_2019_ENTERPRISE",
            "SQLSERVER_2019_EXPRESS",
            "SQLSERVER_2019_WEB",
            "SQLSERVER_2022_STANDARD",
            "SQLSERVER_2022_ENTERPRISE",
            "SQLSERVER_2022_EXPRESS",
            "SQLSERVER_2022_WEB",
            "SQLSERVER_2025_STANDARD",
            "SQLSERVER_2025_ENTERPRISE",
            "SQLSERVER_2025_EXPRESS"
          ],
          "type": "string",
          "description": "The database engine type and version. The `databaseVersion` field cannot be changed after instance creation."
        },
        "satisfiesPzi": {
          "description": "Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.",
          "type": "boolean",
          "readOnly": true
        },
        "sqlNetworkArchitecture": {
          "enum": [
            "SQL_NETWORK_ARCHITECTURE_UNSPECIFIED",
            "NEW_NETWORK_ARCHITECTURE",
            "OLD_NETWORK_ARCHITECTURE"
          ],
          "type": "string"
        },
        "availableMaintenanceVersions": {
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. List all maintenance versions applicable on the instance"
        },
        "replicaConfiguration": {
          "$ref": "#/$defs/ReplicaConfiguration",
          "description": "Configuration specific to failover replicas and read replicas."
        },
        "onPremisesConfiguration": {
          "$ref": "#/$defs/OnPremisesConfiguration",
          "description": "Configuration specific to on-premises instances."
        },
        "serverCaCert": {
          "$ref": "#/$defs/SslCert",
          "description": "SSL configuration."
        },
        "ipAddresses": {
          "items": {
            "$ref": "#/$defs/IpMapping"
          },
          "description": "The assigned IP addresses for the instance.",
          "type": "array"
        },
        "scheduledMaintenance": {
          "$ref": "#/$defs/SqlScheduledMaintenance",
          "description": "The start time of any upcoming scheduled maintenance for this instance."
        },
        "replicaNames": {
          "type": "array",
          "description": "The replicas of the instance.",
          "items": {
            "type": "string"
          }
        },
        "satisfiesPzs": {
          "description": "This status indicates whether the instance satisfies PZS. The status is reserved for future use.",
          "type": "boolean"
        },
        "pscServiceAttachmentLink": {
          "description": "Output only. The link to service attachment of PSC instance.",
          "readOnly": true,
          "type": "string"
        },
        "gceZone": {
          "description": "The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.",
          "type": "string"
        },
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "type": "string"
        },
        "connectionName": {
          "description": "Connection name of the Cloud SQL instance used in connection strings.",
          "type": "string"
        },
        "maintenanceVersion": {
          "type": "string",
          "description": "The current software version on the instance."
        },
        "name": {
          "description": "Name of the Cloud SQL instance. This does not include the project ID.",
          "type": "string"
        },
        "rootPassword": {
          "type": "string",
          "description": "Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances."
        },
        "selfLink": {
          "description": "The URI of this resource.",
          "type": "string"
        },
        "masterInstanceName": {
          "type": "string",
          "description": "The name of the instance which will act as primary in the replication setup."
        },
        "includeReplicasForMajorVersionUpgrade": {
          "type": "boolean",
          "description": "Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated."
        },
        "failoverReplica": {
          "type": "object",
          "properties": {
            "name": {
              "description": "The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.",
              "type": "string"
            },
            "available": {
              "description": "The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.",
              "type": "boolean"
            }
          },
          "description": "The name and status of the failover replica."
        },
        "outOfDiskReport": {
          "$ref": "#/$defs/SqlOutOfDiskReport",
          "description": "This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job"
        },
        "nodes": {
          "items": {
            "$ref": "#/$defs/PoolNodeConfig"
          },
          "readOnly": true,
          "description": "Output only. Entries containing information about each read pool node of the read pool.",
          "type": "array"
        },
        "ipv6Address": {
          "description": "The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.",
          "type": "string",
          "deprecated": true
        },
        "currentDiskSize": {
          "description": "The current disk usage of the instance in bytes. This property has been deprecated. Use the \"cloudsql.googleapis.com/database/disk/bytes_used\" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.",
          "format": "int64",
          "type": "string",
          "deprecated": true
        },
        "serviceAccountEmailAddress": {
          "description": "The service account email address assigned to the instance.\\This property is read-only.",
          "type": "string"
        },
        "region": {
          "type": "string",
          "description": "The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`."
        },
        "diskEncryptionConfiguration": {
          "$ref": "#/$defs/DiskEncryptionConfiguration",
          "description": "Disk encryption configuration specific to an instance."
        },
        "writeEndpoint": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The dns name of the primary instance in a replication group."
        },
        "instanceType": {
          "type": "string",
          "enum": [
            "SQL_INSTANCE_TYPE_UNSPECIFIED",
            "CLOUD_SQL_INSTANCE",
            "ON_PREMISES_INSTANCE",
            "READ_REPLICA_INSTANCE",
            "READ_POOL_INSTANCE",
            "GREEN_INSTANCE"
          ],
          "description": "The instance type."
        },
        "upgradableDatabaseVersions": {
          "description": "Output only. All database versions that are available for upgrade.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AvailableDatabaseVersion"
          },
          "readOnly": true
        },
        "databaseInstalledVersion": {
          "type": "string",
          "description": "Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.",
          "readOnly": true
        },
        "switchTransactionLogsToCloudStorageEnabled": {
          "description": "Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.",
          "type": "boolean"
        },
        "backendType": {
          "description": "The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.",
          "type": "string",
          "enum": [
            "SQL_BACKEND_TYPE_UNSPECIFIED",
            "FIRST_GEN",
            "SECOND_GEN",
            "EXTERNAL"
          ]
        },
        "state": {
          "description": "The current serving state of the Cloud SQL instance.",
          "type": "string",
          "enum": [
            "SQL_INSTANCE_STATE_UNSPECIFIED",
            "RUNNABLE",
            "SUSPENDED",
            "PENDING_DELETE",
            "PENDING_CREATE",
            "MAINTENANCE",
            "FAILED",
            "ONLINE_MAINTENANCE",
            "REPAIRING"
          ]
        },
        "secondaryGceZone": {
          "type": "string",
          "description": "The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone."
        },
        "nodeCount": {
          "description": "The number of read pool nodes in a read pool.",
          "type": "integer",
          "format": "int32"
        },
        "deploymentInfo": {
          "$ref": "#/$defs/BlueGreenDeploymentInfo",
          "description": "Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup."
        },
        "geminiConfig": {
          "$ref": "#/$defs/GeminiInstanceConfig",
          "description": "Gemini instance configuration."
        },
        "skipPrecheck": {
          "type": "boolean",
          "description": "Optional. Input only. Determines whether the precheck step is skipped during a major version upgrade."
        },
        "tags": {
          "description": "Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `\"\" : \"\"`. For example, a single resource can have the following tags: ``` \"123/environment\": \"production\", \"123/costCenter\": \"marketing\", ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "replicationCluster": {
          "$ref": "#/$defs/ReplicationCluster",
          "description": "Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL."
        }
      }
    },
    "DenyMaintenancePeriod": {
      "description": "Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.",
      "properties": {
        "startDate": {
          "type": "string",
          "description": "\"deny maintenance period\" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01"
        },
        "endDate": {
          "type": "string",
          "description": "\"deny maintenance period\" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01"
        },
        "time": {
          "description": "Time in UTC when the \"deny maintenance period\" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00",
          "type": "string"
        }
      },
      "type": "object"
    },
    "DiskEncryptionConfiguration": {
      "description": "Disk encryption configuration for an instance.",
      "properties": {
        "kmsKeyName": {
          "description": "Resource name of KMS key for disk encryption.",
          "type": "string"
        },
        "kind": {
          "description": "This is always `sql#diskEncryptionConfiguration`.",
          "type": "string"
        },
        "cmekSourceLogEncryptionEnforced": {
          "description": "Optional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service.",
          "type": "boolean"
        },
        "confidentialMode": {
          "type": "boolean",
          "description": "Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently."
        }
      },
      "type": "object"
    },
    "DiskEncryptionStatus": {
      "type": "object",
      "description": "Disk encryption status for an instance.",
      "properties": {
        "kind": {
          "type": "string",
          "description": "This is always `sql#diskEncryptionStatus`."
        },
        "kmsKeyVersionName": {
          "description": "KMS key version used to encrypt the Cloud SQL instance resource",
          "type": "string"
        }
      }
    },
    "DnsNameMapping": {
      "properties": {
        "dnsScope": {
          "readOnly": true,
          "description": "Output only. The scope that the DNS name applies to.",
          "type": "string",
          "enum": [
            "DNS_SCOPE_UNSPECIFIED",
            "INSTANCE",
            "CLUSTER"
          ]
        },
        "recordManager": {
          "enum": [
            "RECORD_MANAGER_UNSPECIFIED",
            "CUSTOMER",
            "CLOUD_SQL_AUTOMATION"
          ],
          "type": "string",
          "readOnly": true,
          "description": "Output only. The manager for this DNS record."
        },
        "connectionType": {
          "description": "Output only. The connection type of the DNS name.",
          "type": "string",
          "enum": [
            "CONNECTION_TYPE_UNSPECIFIED",
            "PUBLIC",
            "PRIVATE_SERVICES_ACCESS",
            "PRIVATE_SERVICE_CONNECT"
          ],
          "readOnly": true
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The DNS name."
        }
      },
      "type": "object",
      "description": "DNS metadata."
    },
    "FinalBackupConfig": {
      "type": "object",
      "properties": {
        "retentionDays": {
          "description": "The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).",
          "type": "integer",
          "format": "int32"
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the final backup is enabled for the instance."
        }
      },
      "description": "Config used to determine the final backup settings for the instance."
    },
    "GeminiInstanceConfig": {
      "description": "Gemini instance configuration.",
      "properties": {
        "activeQueryEnabled": {
          "type": "boolean",
          "readOnly": true,
          "description": "Output only. Whether the active query is enabled."
        },
        "oomSessionCancelEnabled": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Whether canceling the out-of-memory (OOM) session is enabled."
        },
        "flagRecommenderEnabled": {
          "readOnly": true,
          "description": "Output only. Whether the flag recommender is enabled.",
          "type": "boolean"
        },
        "entitled": {
          "description": "Output only. Whether Gemini is enabled.",
          "readOnly": true,
          "type": "boolean"
        },
        "googleVacuumMgmtEnabled": {
          "description": "Output only. Whether the vacuum management is enabled.",
          "readOnly": true,
          "type": "boolean"
        },
        "indexAdvisorEnabled": {
          "readOnly": true,
          "description": "Output only. Whether the index advisor is enabled.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "InsightsConfig": {
      "type": "object",
      "properties": {
        "recordApplicationTags": {
          "type": "boolean",
          "description": "Whether Query Insights will record application tags from query when enabled."
        },
        "recordClientAddress": {
          "description": "Whether Query Insights will record client address when enabled.",
          "type": "boolean"
        },
        "queryPlansPerMinute": {
          "format": "int32",
          "description": "Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.",
          "type": "integer"
        },
        "queryStringLength": {
          "type": "integer",
          "description": "Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.",
          "format": "int32"
        },
        "enhancedQueryInsightsEnabled": {
          "description": "Optional. Whether enhanced query insights feature is enabled.",
          "type": "boolean"
        },
        "queryInsightsEnabled": {
          "description": "Whether Query Insights feature is enabled.",
          "type": "boolean"
        }
      },
      "description": "Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration."
    },
    "InstanceReference": {
      "type": "object",
      "description": "Reference to another Cloud SQL instance.",
      "properties": {
        "project": {
          "type": "string",
          "description": "The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it."
        },
        "name": {
          "type": "string",
          "description": "The name of the Cloud SQL instance being referenced. This does not include the project ID."
        },
        "region": {
          "type": "string",
          "description": "The region of the Cloud SQL instance being referenced."
        }
      }
    },
    "Interval": {
      "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.",
      "type": "object",
      "properties": {
        "endTime": {
          "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.",
          "format": "google-datetime",
          "type": "string"
        },
        "startTime": {
          "type": "string",
          "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",
          "format": "google-datetime"
        }
      }
    },
    "IpConfiguration": {
      "description": "IP Management configuration.",
      "properties": {
        "authorizedNetworks": {
          "description": "The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AclEntry"
          }
        },
        "serverCaMode": {
          "type": "string",
          "enum": [
            "CA_MODE_UNSPECIFIED",
            "GOOGLE_MANAGED_INTERNAL_CA",
            "GOOGLE_MANAGED_CAS_CA",
            "CUSTOMER_MANAGED_CAS_CA"
          ],
          "description": "Specify what type of CA is used for the server certificate."
        },
        "serverCaPool": {
          "type": "string",
          "description": "Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}"
        },
        "serverCertificateRotationMode": {
          "description": "Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.",
          "enum": [
            "SERVER_CERTIFICATE_ROTATION_MODE_UNSPECIFIED",
            "NO_AUTOMATIC_ROTATION",
            "AUTOMATIC_ROTATION_DURING_MAINTENANCE"
          ],
          "type": "string"
        },
        "requireSsl": {
          "type": "boolean",
          "description": "Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag."
        },
        "customSubjectAlternativeNames": {
          "items": {
            "type": "string"
          },
          "description": "Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.",
          "type": "array"
        },
        "allocatedIpRange": {
          "type": "string",
          "description": "The name of the allocated ip range for the private ip Cloud SQL instance. For example: \"google-managed-services-default\". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`"
        },
        "privateNetwork": {
          "description": "The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.",
          "type": "string"
        },
        "ipv4Enabled": {
          "description": "Whether the instance is assigned a public IP address or not.",
          "type": "boolean"
        },
        "sslMode": {
          "type": "string",
          "enum": [
            "SSL_MODE_UNSPECIFIED",
            "ALLOW_UNENCRYPTED_AND_ENCRYPTED",
            "ENCRYPTED_ONLY",
            "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
          ],
          "description": "Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections."
        },
        "enablePrivatePathForGoogleCloudServices": {
          "description": "Controls connectivity to private IP instances from Google services, such as BigQuery.",
          "type": "boolean"
        },
        "pscConfig": {
          "$ref": "#/$defs/PscConfig",
          "description": "PSC settings for this instance."
        }
      },
      "type": "object"
    },
    "IpMapping": {
      "type": "object",
      "description": "Database instance IP mapping",
      "properties": {
        "timeToRetire": {
          "format": "google-datetime",
          "description": "The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.",
          "type": "string"
        },
        "type": {
          "enum": [
            "SQL_IP_ADDRESS_TYPE_UNSPECIFIED",
            "PRIMARY",
            "OUTGOING",
            "PRIVATE",
            "MIGRATED_1ST_GEN"
          ],
          "description": "The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.",
          "type": "string"
        },
        "ipAddress": {
          "type": "string",
          "description": "The IP address assigned."
        }
      }
    },
    "LocationPreference": {
      "properties": {
        "secondaryZone": {
          "type": "string",
          "description": "The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'."
        },
        "zone": {
          "description": "The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.",
          "type": "string"
        },
        "kind": {
          "description": "This is always `sql#locationPreference`.",
          "type": "string"
        },
        "followGaeApplication": {
          "type": "string",
          "description": "The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.",
          "deprecated": true
        }
      },
      "type": "object",
      "description": "Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified."
    },
    "MaintenanceWindow": {
      "description": "Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.",
      "properties": {
        "day": {
          "description": "Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.",
          "format": "int32",
          "type": "integer"
        },
        "updateTrack": {
          "description": "Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).",
          "type": "string",
          "enum": [
            "SQL_UPDATE_TRACK_UNSPECIFIED",
            "canary",
            "stable",
            "week5"
          ]
        },
        "hour": {
          "description": "Hour of day - 0 to 23. Specify in the UTC time zone.",
          "type": "integer",
          "format": "int32"
        },
        "kind": {
          "description": "This is always `sql#maintenanceWindow`.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MySqlReplicaConfiguration": {
      "description": "Read-replica configuration specific to MySQL databases.",
      "properties": {
        "connectRetryInterval": {
          "type": "integer",
          "description": "Seconds to wait between connect retries. MySQL's default is 60 seconds.",
          "format": "int32"
        },
        "clientKey": {
          "description": "PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.",
          "type": "string"
        },
        "masterHeartbeatPeriod": {
          "type": "string",
          "format": "int64",
          "description": "Interval in milliseconds between replication heartbeats."
        },
        "clientCertificate": {
          "description": "PEM representation of the replica's x509 certificate.",
          "type": "string"
        },
        "password": {
          "description": "The password for the replication connection.",
          "type": "string"
        },
        "verifyServerCertificate": {
          "description": "Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.",
          "type": "boolean"
        },
        "sslCipher": {
          "type": "string",
          "description": "A list of permissible ciphers to use for SSL encryption."
        },
        "dumpFilePath": {
          "type": "string",
          "description": "Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump."
        },
        "username": {
          "description": "The username for the replication connection.",
          "type": "string"
        },
        "kind": {
          "description": "This is always `sql#mysqlReplicaConfiguration`.",
          "type": "string"
        },
        "caCertificate": {
          "type": "string",
          "description": "PEM representation of the trusted CA's x509 certificate."
        }
      },
      "type": "object"
    },
    "OnPremisesConfiguration": {
      "type": "object",
      "properties": {
        "sslOption": {
          "description": "Optional. SSL option for replica connection to the on-premises source.",
          "enum": [
            "SSL_OPTION_UNSPECIFIED",
            "DISABLE",
            "REQUIRE",
            "VERIFY_CA"
          ],
          "type": "string"
        },
        "clientCertificate": {
          "type": "string",
          "description": "PEM representation of the replica's x509 certificate."
        },
        "caCertificate": {
          "type": "string",
          "description": "PEM representation of the trusted CA's x509 certificate."
        },
        "dmsManaged": {
          "description": "Output only. Indicates whether the resource is managed by Database Migration Service.",
          "type": "boolean",
          "readOnly": true
        },
        "selectedObjects": {
          "items": {
            "$ref": "#/$defs/SelectedObjects"
          },
          "type": "array",
          "description": "Optional. A list of objects that the user selects for replication from an external source instance."
        },
        "password": {
          "description": "The password for connecting to on-premises instance.",
          "type": "string"
        },
        "clientKey": {
          "description": "PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.",
          "type": "string"
        },
        "username": {
          "description": "The username for connecting to on-premises instance.",
          "type": "string"
        },
        "dumpFilePath": {
          "type": "string",
          "description": "The dump file to create the Cloud SQL replica."
        },
        "hostPort": {
          "type": "string",
          "description": "The host and port of the on-premises instance in host:port format"
        },
        "sourceInstance": {
          "$ref": "#/$defs/InstanceReference",
          "description": "The reference to Cloud SQL instance if the source is Cloud SQL."
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#onPremisesConfiguration`."
        }
      },
      "description": "On-premises instance configuration."
    },
    "OperationError": {
      "type": "object",
      "properties": {
        "kind": {
          "description": "This is always `sql#operationError`.",
          "type": "string"
        },
        "code": {
          "type": "string",
          "description": "Identifies the specific error that occurred."
        },
        "message": {
          "description": "Additional information about the error encountered.",
          "type": "string"
        }
      },
      "description": "Database instance operation error."
    },
    "PasswordValidationPolicy": {
      "description": "Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.",
      "properties": {
        "enablePasswordPolicy": {
          "type": "boolean",
          "description": "Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords."
        },
        "complexity": {
          "type": "string",
          "enum": [
            "COMPLEXITY_UNSPECIFIED",
            "COMPLEXITY_DEFAULT"
          ],
          "description": "The complexity of the password."
        },
        "passwordChangeInterval": {
          "description": "Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.",
          "format": "google-duration",
          "type": "string"
        },
        "reuseInterval": {
          "format": "int32",
          "type": "integer",
          "description": "Number of previous passwords that cannot be reused."
        },
        "disallowCompromisedCredentials": {
          "type": "boolean",
          "description": "This field is deprecated and will be removed in a future version of the API.",
          "deprecated": true
        },
        "minLength": {
          "format": "int32",
          "description": "Minimum number of characters allowed.",
          "type": "integer"
        },
        "disallowUsernameSubstring": {
          "type": "boolean",
          "description": "Disallow username as a part of the password."
        }
      },
      "type": "object"
    },
    "PerformanceCaptureConfig": {
      "description": "Performance capture configuration.",
      "properties": {
        "probingIntervalSeconds": {
          "description": "Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.",
          "type": "integer",
          "format": "int32"
        },
        "transactionLockWaitThresholdCount": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check."
        },
        "historyListLengthThresholdCount": {
          "format": "int32",
          "description": "Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.",
          "type": "integer"
        },
        "cpuUtilizationThresholdPercent": {
          "format": "int32",
          "description": "Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.",
          "type": "integer"
        },
        "probeThreshold": {
          "description": "Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.",
          "type": "integer",
          "format": "int32"
        },
        "enabled": {
          "description": "Optional. Enables or disables the performance capture feature.",
          "type": "boolean"
        },
        "secondsBehindSourceThreshold": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica."
        },
        "semaphoreWaitThresholdCount": {
          "description": "Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.",
          "type": "integer",
          "format": "int32"
        },
        "runningThreadsThreshold": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance."
        },
        "transactionKillType": {
          "description": "Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.",
          "enum": [
            "TRANSACTION_KILL_TYPE_UNSPECIFIED",
            "READ_ONLY_TRANSACTIONS",
            "ALL_TRANSACTIONS"
          ],
          "type": "string"
        },
        "transactionDurationThreshold": {
          "format": "int32",
          "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.",
          "type": "integer"
        },
        "transactionKillThresholdSeconds": {
          "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., > 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 < transaction_kill_threshold_seconds < transaction_duration_threshold` will be rejected.",
          "format": "int32",
          "type": "integer"
        },
        "transactionKillExcludedUserHosts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `[\"app_user\", \"db_admin@10.1.2.3\", \"report_user@%\"]`"
        },
        "memoryUsageThresholdPercent": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check."
        }
      },
      "type": "object"
    },
    "PoolNodeConfig": {
      "type": "object",
      "properties": {
        "pscServiceAttachmentLink": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The Private Service Connect (PSC) service attachment of the read pool node."
        },
        "gceZone": {
          "type": "string",
          "description": "Output only. The zone of the read pool node.",
          "readOnly": true
        },
        "dnsNames": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. The list of DNS names used by this read pool node.",
          "items": {
            "$ref": "#/$defs/DnsNameMapping"
          }
        },
        "state": {
          "description": "Output only. The current state of the read pool node.",
          "readOnly": true,
          "enum": [
            "SQL_INSTANCE_STATE_UNSPECIFIED",
            "RUNNABLE",
            "SUSPENDED",
            "PENDING_DELETE",
            "PENDING_CREATE",
            "MAINTENANCE",
            "FAILED",
            "ONLINE_MAINTENANCE",
            "REPAIRING"
          ],
          "type": "string"
        },
        "pscAutoConnections": {
          "description": "Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/PscAutoConnectionConfig"
          }
        },
        "dnsName": {
          "type": "string",
          "description": "Output only. The DNS name of the read pool node.",
          "readOnly": true
        },
        "ipAddresses": {
          "items": {
            "$ref": "#/$defs/IpMapping"
          },
          "type": "array",
          "readOnly": true,
          "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node."
        },
        "name": {
          "readOnly": true,
          "description": "Output only. The name of the read pool node, to be used for retrieving metrics and logs.",
          "type": "string"
        }
      },
      "description": "Details of a single read pool node of a read pool."
    },
    "PscAutoConnectionConfig": {
      "type": "object",
      "description": "Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.",
      "properties": {
        "consumerProject": {
          "description": "Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.",
          "type": "string"
        },
        "serviceConnectionPolicy": {
          "readOnly": true,
          "description": "Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.",
          "type": "string"
        },
        "writeEndpointAutoDnsStatus": {
          "description": "Output only. The status of automated DNS provisioning for the write endpoint.",
          "readOnly": true,
          "type": "string",
          "enum": [
            "AUTO_DNS_STATUS_UNSPECIFIED",
            "AUTO_DNS_OK",
            "AUTO_DNS_FAILED",
            "AUTO_DNS_UNKNOWN"
          ]
        },
        "serviceConnectionPolicyCreationResult": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The status of service connection policy creation."
        },
        "consumerNetworkStatus": {
          "description": "The connection policy status of the consumer network.",
          "type": "string"
        },
        "ipAddress": {
          "description": "The IP address of the consumer endpoint.",
          "type": "string"
        },
        "instanceAutoDnsStatus": {
          "description": "Output only. The status of automated DNS provisioning.",
          "readOnly": true,
          "enum": [
            "AUTO_DNS_STATUS_UNSPECIFIED",
            "AUTO_DNS_OK",
            "AUTO_DNS_FAILED",
            "AUTO_DNS_UNKNOWN"
          ],
          "type": "string"
        },
        "status": {
          "description": "The connection status of the consumer endpoint.",
          "type": "string"
        },
        "consumerNetwork": {
          "description": "Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.",
          "type": "string"
        }
      }
    },
    "PscConfig": {
      "description": "PSC settings for a Cloud SQL instance.",
      "type": "object",
      "properties": {
        "networkAttachmentUri": {
          "type": "string",
          "description": "Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect using the PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID"
        },
        "pscEnabled": {
          "description": "Whether PSC connectivity is enabled for this instance.",
          "type": "boolean"
        },
        "pscWriteEndpointDnsEnabled": {
          "description": "Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.",
          "type": "boolean"
        },
        "allowedConsumerProjects": {
          "description": "Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "pscAutoConnectionPolicyEnabled": {
          "type": "boolean",
          "description": "Optional. Whether to set up the PSC service connection policy automatically."
        },
        "pscAutoDnsEnabled": {
          "description": "Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.",
          "type": "boolean"
        },
        "pscAutoConnections": {
          "items": {
            "$ref": "#/$defs/PscAutoConnectionConfig"
          },
          "type": "array",
          "description": "Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance."
        }
      }
    },
    "ReadPoolAutoScaleConfig": {
      "description": "The read pool auto-scale configuration.",
      "type": "object",
      "properties": {
        "scaleInCooldownSeconds": {
          "description": "The cooldown period for scale-in operations.",
          "type": "integer",
          "format": "int32"
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether read pool auto scaling is enabled."
        },
        "scaleOutCooldownSeconds": {
          "format": "int32",
          "type": "integer",
          "description": "The cooldown period for scale-out operations."
        },
        "disableScaleIn": {
          "type": "boolean",
          "description": "Indicates whether read pool auto scaling supports scale in operations (removing nodes)."
        },
        "maxNodeCount": {
          "description": "Maximum number of read pool nodes to be maintained.",
          "type": "integer",
          "format": "int32"
        },
        "minNodeCount": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of read pool nodes to be maintained."
        },
        "targetMetrics": {
          "description": "Optional. Target metrics for read pool auto scaling.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TargetMetric"
          }
        }
      }
    },
    "ReplicaConfiguration": {
      "properties": {
        "kind": {
          "description": "This is always `sql#replicaConfiguration`.",
          "type": "string"
        },
        "mysqlReplicaConfiguration": {
          "$ref": "#/$defs/MySqlReplicaConfiguration",
          "description": "MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory."
        },
        "failoverTarget": {
          "description": "Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.",
          "type": "boolean"
        },
        "cascadableReplica": {
          "type": "boolean",
          "description": "Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it."
        }
      },
      "type": "object",
      "description": "Read-replica configuration for connecting to the primary instance."
    },
    "ReplicationCluster": {
      "type": "object",
      "properties": {
        "psaWriteEndpoint": {
          "type": "string",
          "description": "Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn't have a DR replica yet or the DR replica is deleted.",
          "readOnly": true
        },
        "failoverDrReplicaName": {
          "type": "string",
          "description": "Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation."
        },
        "drReplica": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance."
        }
      },
      "description": "A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL."
    },
    "SelectedObjects": {
      "description": "A list of objects that the user selects for replication from an external source instance.",
      "properties": {
        "database": {
          "description": "Required. The name of the database to migrate.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Settings": {
      "description": "Database instance settings.",
      "properties": {
        "pricingPlan": {
          "description": "The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.",
          "type": "string",
          "enum": [
            "SQL_PRICING_PLAN_UNSPECIFIED",
            "PACKAGE",
            "PER_USE"
          ]
        },
        "databaseFlags": {
          "description": "The database flags passed to the instance at startup.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/DatabaseFlags"
          }
        },
        "dataApiAccess": {
          "type": "string",
          "enum": [
            "DATA_API_ACCESS_UNSPECIFIED",
            "DISALLOW_DATA_API",
            "ALLOW_DATA_API"
          ],
          "description": "This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default."
        },
        "edition": {
          "enum": [
            "EDITION_UNSPECIFIED",
            "ENTERPRISE",
            "ENTERPRISE_PLUS",
            "DEVELOPER"
          ],
          "description": "Optional. The edition type of the Cloud SQL instance.",
          "type": "string"
        },
        "insightsConfig": {
          "$ref": "#/$defs/InsightsConfig",
          "description": "Insights configuration, for now relevant only for Postgres."
        },
        "deletionProtectionEnabled": {
          "description": "Configuration to protect against accidental instance deletion.",
          "type": "boolean"
        },
        "replicationType": {
          "description": "The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.",
          "type": "string",
          "enum": [
            "SQL_REPLICATION_TYPE_UNSPECIFIED",
            "SYNCHRONOUS",
            "ASYNCHRONOUS"
          ],
          "deprecated": true
        },
        "passwordValidationPolicy": {
          "$ref": "#/$defs/PasswordValidationPolicy",
          "description": "The local user password validation policy of the instance for PostgreSQL and MySQL."
        },
        "denyMaintenancePeriods": {
          "type": "array",
          "description": "Deny maintenance periods",
          "items": {
            "$ref": "#/$defs/DenyMaintenancePeriod"
          }
        },
        "ipConfiguration": {
          "$ref": "#/$defs/IpConfiguration",
          "description": "The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances."
        },
        "authorizedGaeApplications": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.",
          "deprecated": true
        },
        "performanceCaptureConfig": {
          "$ref": "#/$defs/PerformanceCaptureConfig",
          "description": "Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations."
        },
        "dataDiskProvisionedThroughput": {
          "type": "string",
          "format": "int64",
          "description": "Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types."
        },
        "dataDiskProvisionedIops": {
          "type": "string",
          "description": "Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.",
          "format": "int64"
        },
        "activeDirectoryConfig": {
          "$ref": "#/$defs/SqlActiveDirectoryConfig",
          "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server."
        },
        "retainBackupsOnDelete": {
          "description": "Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.",
          "type": "boolean"
        },
        "dataDiskType": {
          "type": "string",
          "enum": [
            "SQL_DATA_DISK_TYPE_UNSPECIFIED",
            "PD_SSD",
            "PD_HDD",
            "OBSOLETE_LOCAL_SSD",
            "HYPERDISK_BALANCED"
          ],
          "description": "The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances."
        },
        "storageAutoResize": {
          "description": "Configuration to increase storage size automatically. The default value is true.",
          "type": "boolean"
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#settings`."
        },
        "acceleratedReplicaMode": {
          "type": "boolean",
          "description": "Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect."
        },
        "databaseReplicationEnabled": {
          "type": "boolean",
          "description": "Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance."
        },
        "activationPolicy": {
          "enum": [
            "SQL_ACTIVATION_POLICY_UNSPECIFIED",
            "ALWAYS",
            "NEVER",
            "ON_DEMAND"
          ],
          "type": "string",
          "description": "The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives."
        },
        "replicationLagMaxSeconds": {
          "description": "Optional. Configuration value for recreation of replica after certain replication lag",
          "format": "int32",
          "type": "integer"
        },
        "connectorEnforcement": {
          "description": "Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.",
          "type": "string",
          "enum": [
            "CONNECTOR_ENFORCEMENT_UNSPECIFIED",
            "NOT_REQUIRED",
            "REQUIRED"
          ]
        },
        "userLabels": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "User-provided labels, represented as a dictionary where each label is a single key value pair."
        },
        "tier": {
          "description": "The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.",
          "type": "string"
        },
        "settingsVersion": {
          "format": "int64",
          "type": "string",
          "description": "The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value."
        },
        "dataDiskSizeGb": {
          "description": "The size of data disk, in GB. The data disk size minimum is 10GB.",
          "format": "int64",
          "type": "string"
        },
        "dataCacheConfig": {
          "$ref": "#/$defs/DataCacheConfig",
          "description": "Configuration for data cache."
        },
        "locationPreference": {
          "$ref": "#/$defs/LocationPreference",
          "description": "The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances."
        },
        "advancedMachineFeatures": {
          "$ref": "#/$defs/AdvancedMachineFeatures",
          "description": "Specifies advanced machine configuration for the instances relevant only for SQL Server."
        },
        "crashSafeReplicationEnabled": {
          "description": "Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.",
          "type": "boolean",
          "deprecated": true
        },
        "maintenanceWindow": {
          "$ref": "#/$defs/MaintenanceWindow",
          "description": "The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes."
        },
        "timeZone": {
          "description": "Server timezone, relevant only for Cloud SQL for SQL Server.",
          "type": "string"
        },
        "readPoolAutoScaleConfig": {
          "$ref": "#/$defs/ReadPoolAutoScaleConfig",
          "description": "Optional. The read pool auto-scale configuration for the instance."
        },
        "sqlServerAuditConfig": {
          "$ref": "#/$defs/SqlServerAuditConfig",
          "description": "SQL Server specific audit configuration."
        },
        "enableDataplexIntegration": {
          "description": "Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.",
          "type": "boolean"
        },
        "connectionPoolConfig": {
          "$ref": "#/$defs/ConnectionPoolConfig",
          "description": "Optional. The managed connection pooling configuration for the instance."
        },
        "storageAutoResizeLimit": {
          "description": "The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.",
          "format": "int64",
          "type": "string"
        },
        "autoUpgradeEnabled": {
          "description": "Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.",
          "type": "boolean"
        },
        "finalBackupConfig": {
          "$ref": "#/$defs/FinalBackupConfig",
          "description": "Optional. The final backup configuration for the instance."
        },
        "backupConfiguration": {
          "$ref": "#/$defs/BackupConfiguration",
          "description": "The daily backup configuration for the instance."
        },
        "availabilityType": {
          "type": "string",
          "enum": [
            "SQL_AVAILABILITY_TYPE_UNSPECIFIED",
            "ZONAL",
            "REGIONAL"
          ],
          "description": "Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability)."
        },
        "enableGoogleMlIntegration": {
          "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.",
          "type": "boolean"
        },
        "collation": {
          "type": "string",
          "description": "The name of server Instance collation."
        },
        "entraidConfig": {
          "$ref": "#/$defs/SqlServerEntraIdConfig",
          "description": "Optional. The Microsoft Entra ID configuration for the SQL Server instance."
        }
      },
      "type": "object"
    },
    "SourceRole": {
      "description": "The source instance for the Blue-Green deployment.",
      "type": "object",
      "properties": {
        "targetId": {
          "$ref": "#/$defs/InstanceReference",
          "description": "Output only. The target instance paired with this source instance in a blue-green deployment."
        }
      }
    },
    "SqlActiveDirectoryConfig": {
      "type": "object",
      "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server.",
      "properties": {
        "dnsServers": {
          "description": "Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "organizationalUnit": {
          "description": "Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.",
          "type": "string"
        },
        "adminCredentialSecretName": {
          "description": "Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).",
          "type": "string"
        },
        "domain": {
          "description": "The name of the domain (e.g., mydomain.com).",
          "type": "string"
        },
        "mode": {
          "description": "Optional. The mode of the Active Directory configuration.",
          "enum": [
            "ACTIVE_DIRECTORY_MODE_UNSPECIFIED",
            "MANAGED_ACTIVE_DIRECTORY",
            "SELF_MANAGED_ACTIVE_DIRECTORY",
            "CUSTOMER_MANAGED_ACTIVE_DIRECTORY"
          ],
          "type": "string"
        },
        "kind": {
          "description": "This is always sql#activeDirectoryConfig.",
          "type": "string"
        }
      }
    },
    "SqlOutOfDiskReport": {
      "type": "object",
      "properties": {
        "sqlOutOfDiskState": {
          "enum": [
            "SQL_OUT_OF_DISK_STATE_UNSPECIFIED",
            "NORMAL",
            "SOFT_SHUTDOWN"
          ],
          "type": "string",
          "description": "This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job"
        },
        "sqlMinRecommendedIncreaseSizeGb": {
          "type": "integer",
          "format": "int32",
          "description": "The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:"
        }
      },
      "description": "This message wraps up the information written by out-of-disk detection job."
    },
    "SqlScheduledMaintenance": {
      "properties": {
        "canReschedule": {
          "description": "If the scheduled maintenance can be rescheduled.",
          "type": "boolean"
        },
        "scheduleDeadlineTime": {
          "description": "Maintenance cannot be rescheduled to start beyond this deadline.",
          "type": "string",
          "format": "google-datetime"
        },
        "canDefer": {
          "type": "boolean",
          "deprecated": true
        },
        "startTime": {
          "description": "The start time of any upcoming scheduled maintenance for this instance.",
          "format": "google-datetime",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Any scheduled maintenance for this instance."
    },
    "SqlServerAuditConfig": {
      "description": "SQL Server specific audit configuration.",
      "properties": {
        "retentionInterval": {
          "format": "google-duration",
          "type": "string",
          "description": "How long to keep generated audit files."
        },
        "bucket": {
          "type": "string",
          "description": "The name of the destination bucket (e.g., gs://mybucket)."
        },
        "kind": {
          "description": "This is always sql#sqlServerAuditConfig",
          "type": "string"
        },
        "uploadInterval": {
          "description": "How often to upload generated audit files.",
          "type": "string",
          "format": "google-duration"
        }
      },
      "type": "object"
    },
    "SqlServerEntraIdConfig": {
      "properties": {
        "tenantId": {
          "type": "string",
          "description": "Optional. The tenant ID for the Entra ID configuration."
        },
        "applicationId": {
          "type": "string",
          "description": "Optional. The application ID for the Entra ID configuration."
        },
        "kind": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. This is always sql#sqlServerEntraIdConfig"
        }
      },
      "description": "SQL Server Entra ID configuration.",
      "type": "object"
    },
    "SslCert": {
      "type": "object",
      "properties": {
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`"
        },
        "sha1Fingerprint": {
          "type": "string",
          "description": "Sha1 Fingerprint."
        },
        "expirationTime": {
          "type": "string",
          "description": "The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "format": "google-datetime"
        },
        "selfLink": {
          "type": "string",
          "description": "The URI of this resource."
        },
        "commonName": {
          "type": "string",
          "description": "User supplied name. Constrained to [a-zA-Z.-_ ]+."
        },
        "instance": {
          "type": "string",
          "description": "Name of the database instance."
        },
        "certSerialNumber": {
          "description": "Serial number, as extracted from the certificate.",
          "type": "string"
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#sslCert`."
        },
        "cert": {
          "description": "PEM representation.",
          "type": "string"
        }
      },
      "description": "SslCerts Resource"
    },
    "TargetMetric": {
      "type": "object",
      "description": "Target metric for read pool auto scaling.",
      "properties": {
        "targetValue": {
          "description": "The target value for the metric.",
          "format": "float",
          "type": "number"
        },
        "metric": {
          "type": "string",
          "description": "The metric name to be used for auto scaling."
        }
      }
    },
    "TargetRole": {
      "properties": {
        "sourceId": {
          "$ref": "#/$defs/InstanceReference",
          "description": "Output only. The source instance paired with this target instance in a blue-green deployment."
        }
      },
      "description": "The target instance for the Blue-Green deployment.",
      "type": "object"
    }
  }
}