{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-ssl-certs-insert-response-schema.json",
  "title": "SslCertsInsertResponse",
  "description": "SslCert insert response.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-ssl-certs-api-openapi.yml#/components/schemas/SslCertsInsertResponse",
  "properties": {
    "serverCaCert": {
      "$ref": "#/$defs/SslCert",
      "description": "The server Certificate Authority's certificate. If this is missing you can force a new one to be generated by calling resetSslConfig method on instances resource."
    },
    "kind": {
      "description": "This is always `sql#sslCertsInsert`.",
      "type": "string"
    },
    "operation": {
      "$ref": "#/$defs/Operation",
      "description": "The operation to track the ssl certs insert request."
    },
    "clientCert": {
      "$ref": "#/$defs/SslCertDetail",
      "description": "The new client certificate and private key."
    }
  },
  "type": "object",
  "$defs": {
    "AcquireSsrsLeaseContext": {
      "type": "object",
      "properties": {
        "reportDatabase": {
          "description": "The report database to be used for SSRS setup.",
          "type": "string"
        },
        "serviceLogin": {
          "type": "string",
          "description": "The username to be used as the service login to connect to the report database for SSRS setup."
        },
        "duration": {
          "type": "string",
          "description": "Lease duration needed for SSRS setup.",
          "format": "google-duration"
        },
        "setupLogin": {
          "description": "The username to be used as the setup login to connect to the database server for SSRS setup.",
          "type": "string"
        }
      },
      "description": "Acquire SSRS lease context."
    },
    "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"
        }
      }
    },
    "BackupContext": {
      "description": "Backup context.",
      "type": "object",
      "properties": {
        "backupId": {
          "type": "string",
          "format": "int64",
          "description": "The identifier of the backup."
        },
        "kind": {
          "description": "This is always `sql#backupContext`.",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "The name of the backup. Format: projects/{project}/backups/{backup}"
        }
      }
    },
    "ExportContext": {
      "properties": {
        "uri": {
          "description": "The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.",
          "type": "string"
        },
        "fileType": {
          "enum": [
            "SQL_FILE_TYPE_UNSPECIFIED",
            "SQL",
            "CSV",
            "BAK",
            "TDE"
          ],
          "type": "string",
          "description": "The file type for the specified uri."
        },
        "kind": {
          "description": "This is always `sql#exportContext`.",
          "type": "string"
        },
        "databases": {
          "description": "Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "bakExportOptions": {
          "type": "object",
          "properties": {
            "exportLogStartTime": {
              "type": "string",
              "format": "google-datetime",
              "description": "Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server."
            },
            "stripeCount": {
              "format": "int32",
              "description": "Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.",
              "type": "integer"
            },
            "differentialBase": {
              "type": "boolean",
              "description": "Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base"
            },
            "striped": {
              "description": "Whether or not the export should be striped.",
              "type": "boolean"
            },
            "bakType": {
              "description": "Type of this bak file will be export, FULL or DIFF, SQL Server only",
              "enum": [
                "BAK_TYPE_UNSPECIFIED",
                "FULL",
                "DIFF",
                "TLOG"
              ],
              "type": "string"
            },
            "copyOnly": {
              "type": "boolean",
              "description": "Deprecated: copy_only is deprecated. Use differential_base instead",
              "deprecated": true
            },
            "exportLogEndTime": {
              "format": "google-datetime",
              "type": "string",
              "description": "Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server."
            }
          },
          "description": "Options for exporting BAK files (SQL Server-only)"
        },
        "tdeExportOptions": {
          "properties": {
            "certificatePath": {
              "description": "Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.",
              "type": "string"
            },
            "name": {
              "type": "string",
              "description": "Required. Certificate name. Applicable only for SQL Server instances."
            },
            "privateKeyPath": {
              "type": "string",
              "description": "Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances."
            },
            "privateKeyPassword": {
              "description": "Required. Password that encrypts the private key.",
              "type": "string"
            }
          },
          "type": "object",
          "description": "Optional. Export parameters specific to SQL Server TDE certificates"
        },
        "csvExportOptions": {
          "properties": {
            "fieldsTerminatedBy": {
              "type": "string",
              "description": "Specifies the character that separates columns within each row (line) of the file."
            },
            "selectQuery": {
              "description": "The select query used to extract the data.",
              "type": "string"
            },
            "quoteCharacter": {
              "description": "Specifies the quoting character to be used when a data value is quoted.",
              "type": "string"
            },
            "escapeCharacter": {
              "type": "string",
              "description": "Specifies the character that should appear before a data character that needs to be escaped."
            },
            "linesTerminatedBy": {
              "type": "string",
              "description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values."
            }
          },
          "type": "object",
          "description": "Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only."
        },
        "offload": {
          "description": "Whether to perform a serverless export.",
          "type": "boolean"
        },
        "sqlExportOptions": {
          "description": "Options for exporting data as SQL statements.",
          "properties": {
            "postgresExportOptions": {
              "properties": {
                "clean": {
                  "description": "Optional. Use this option to include DROP <object> SQL statements. Use these statements to delete database objects before running the import operation.",
                  "type": "boolean"
                },
                "ifExists": {
                  "description": "Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "description": "Options for exporting from a Cloud SQL for PostgreSQL instance."
            },
            "mysqlExportOptions": {
              "type": "object",
              "description": "Options for exporting from MySQL.",
              "properties": {
                "masterData": {
                  "format": "int32",
                  "description": "Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.",
                  "type": "integer"
                }
              }
            },
            "threads": {
              "format": "int32",
              "description": "Optional. The number of threads to use for parallel export.",
              "type": "integer"
            },
            "parallel": {
              "type": "boolean",
              "description": "Optional. Whether or not the export should be parallel."
            },
            "tables": {
              "items": {
                "type": "string"
              },
              "description": "Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.",
              "type": "array"
            },
            "schemaOnly": {
              "description": "Export only schemas.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "description": "Database instance export context."
    },
    "ImportContext": {
      "description": "Database instance import context.",
      "type": "object",
      "properties": {
        "importUser": {
          "type": "string",
          "description": "The PostgreSQL user for this import operation. PostgreSQL instances only."
        },
        "database": {
          "type": "string",
          "description": "The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified."
        },
        "sqlImportOptions": {
          "properties": {
            "postgresImportOptions": {
              "properties": {
                "ifExists": {
                  "type": "boolean",
                  "description": "Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel."
                },
                "clean": {
                  "description": "Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "description": "Optional. Options for importing from a Cloud SQL for PostgreSQL instance."
            },
            "threads": {
              "format": "int32",
              "type": "integer",
              "description": "Optional. The number of threads to use for parallel import."
            },
            "parallel": {
              "type": "boolean",
              "description": "Optional. Whether or not the import should be parallel."
            }
          },
          "type": "object",
          "description": "Optional. Options for importing data from SQL statements."
        },
        "tdeImportOptions": {
          "properties": {
            "name": {
              "description": "Required. Certificate name. Applicable only for SQL Server instances.",
              "type": "string"
            },
            "privateKeyPath": {
              "type": "string",
              "description": "Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances."
            },
            "certificatePath": {
              "type": "string",
              "description": "Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances."
            },
            "privateKeyPassword": {
              "type": "string",
              "description": "Required. Password that encrypts the private key."
            }
          },
          "description": "Optional. Import parameters specific to SQL Server TDE certificates",
          "type": "object"
        },
        "kind": {
          "description": "This is always `sql#importContext`.",
          "type": "string"
        },
        "uri": {
          "type": "string",
          "description": "Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file."
        },
        "fileType": {
          "enum": [
            "SQL_FILE_TYPE_UNSPECIFIED",
            "SQL",
            "CSV",
            "BAK",
            "TDE"
          ],
          "type": "string",
          "description": "The file type for the specified uri.\\`SQL`: The file contains SQL statements. \\`CSV`: The file contains CSV data."
        },
        "bakImportOptions": {
          "description": "Import parameters specific to SQL Server .BAK files",
          "properties": {
            "noRecovery": {
              "type": "boolean",
              "description": "Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server."
            },
            "stopAtMark": {
              "description": "Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.",
              "type": "string"
            },
            "striped": {
              "type": "boolean",
              "description": "Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server."
            },
            "bakType": {
              "description": "Type of the bak content, FULL or DIFF",
              "type": "string",
              "enum": [
                "BAK_TYPE_UNSPECIFIED",
                "FULL",
                "DIFF",
                "TLOG"
              ]
            },
            "encryptionOptions": {
              "properties": {
                "pvkPath": {
                  "type": "string",
                  "description": "Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file."
                },
                "keepEncrypted": {
                  "description": "Optional. Whether the imported file remains encrypted.",
                  "type": "boolean"
                },
                "certPath": {
                  "description": "Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.",
                  "type": "string"
                },
                "pvkPassword": {
                  "type": "string",
                  "description": "Password that encrypts the private key"
                }
              },
              "type": "object"
            },
            "stopAt": {
              "description": "Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.",
              "type": "string",
              "format": "google-datetime"
            },
            "recoveryOnly": {
              "description": "Whether or not the backup importing request will just bring database online without downloading Bak content only one of \"no_recovery\" and \"recovery_only\" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "csvImportOptions": {
          "description": "Options for importing data as CSV.",
          "type": "object",
          "properties": {
            "columns": {
              "type": "array",
              "description": "The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.",
              "items": {
                "type": "string"
              }
            },
            "quoteCharacter": {
              "description": "Specifies the quoting character to be used when a data value is quoted.",
              "type": "string"
            },
            "table": {
              "description": "The table to which CSV data is imported.",
              "type": "string"
            },
            "fieldsTerminatedBy": {
              "type": "string",
              "description": "Specifies the character that separates columns within each row (line) of the file."
            },
            "linesTerminatedBy": {
              "description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.",
              "type": "string"
            },
            "escapeCharacter": {
              "description": "Specifies the character that should appear before a data character that needs to be escaped.",
              "type": "string"
            }
          }
        }
      }
    },
    "Operation": {
      "description": "An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.",
      "type": "object",
      "properties": {
        "status": {
          "description": "The status of an operation.",
          "type": "string",
          "enum": [
            "SQL_OPERATION_STATUS_UNSPECIFIED",
            "PENDING",
            "RUNNING",
            "DONE"
          ]
        },
        "apiWarning": {
          "$ref": "#/$defs/ApiWarning",
          "description": "An Admin API warning message."
        },
        "backupContext": {
          "$ref": "#/$defs/BackupContext",
          "description": "The context for backup operation, if applicable."
        },
        "targetLink": {
          "type": "string"
        },
        "stopWorkloadCaptureContext": {
          "$ref": "#/$defs/StopWorkloadCaptureContext",
          "description": "The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance."
        },
        "exportContext": {
          "$ref": "#/$defs/ExportContext",
          "description": "The context for export operation, if applicable."
        },
        "importContext": {
          "$ref": "#/$defs/ImportContext",
          "description": "The context for import operation, if applicable."
        },
        "operationType": {
          "enum": [
            "SQL_OPERATION_TYPE_UNSPECIFIED",
            "IMPORT",
            "EXPORT",
            "CREATE",
            "UPDATE",
            "DELETE",
            "RESTART",
            "BACKUP",
            "SNAPSHOT",
            "BACKUP_VOLUME",
            "DELETE_VOLUME",
            "RESTORE_VOLUME",
            "INJECT_USER",
            "CLONE",
            "STOP_REPLICA",
            "START_REPLICA",
            "PROMOTE_REPLICA",
            "CREATE_REPLICA",
            "CREATE_USER",
            "DELETE_USER",
            "UPDATE_USER",
            "CREATE_DATABASE",
            "DELETE_DATABASE",
            "UPDATE_DATABASE",
            "FAILOVER",
            "DELETE_BACKUP",
            "RECREATE_REPLICA",
            "TRUNCATE_LOG",
            "DEMOTE_MASTER",
            "MAINTENANCE",
            "ENABLE_PRIVATE_IP",
            "DEFER_MAINTENANCE",
            "CREATE_CLONE",
            "RESCHEDULE_MAINTENANCE",
            "START_EXTERNAL_SYNC",
            "LOG_CLEANUP",
            "AUTO_RESTART",
            "REENCRYPT",
            "SWITCHOVER",
            "UPDATE_BACKUP",
            "ACQUIRE_SSRS_LEASE",
            "RELEASE_SSRS_LEASE",
            "RECONFIGURE_OLD_PRIMARY",
            "CLUSTER_MAINTENANCE",
            "SELF_SERVICE_MAINTENANCE",
            "SWITCHOVER_TO_REPLICA",
            "MAJOR_VERSION_UPGRADE",
            "ADVANCED_BACKUP",
            "MANAGE_BACKUP",
            "ENHANCED_BACKUP",
            "REPAIR_READ_POOL",
            "CREATE_READ_POOL",
            "PRE_CHECK_MAJOR_VERSION_UPGRADE",
            "SETUP_MIGRATION",
            "CREATE_BLUE_GREEN_DEPLOYMENT",
            "SWITCHOVER_BLUE_GREEN_DEPLOYMENT",
            "DELETE_BLUE_GREEN_DEPLOYMENT"
          ],
          "description": "The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`",
          "type": "string"
        },
        "acquireSsrsLeaseContext": {
          "$ref": "#/$defs/AcquireSsrsLeaseContext",
          "description": "The context for acquire SSRS lease operation, if applicable."
        },
        "user": {
          "description": "The email address of the user who initiated this operation.",
          "type": "string"
        },
        "preCheckMajorVersionUpgradeContext": {
          "$ref": "#/$defs/PreCheckMajorVersionUpgradeContext",
          "description": "This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found)."
        },
        "endTime": {
          "format": "google-datetime",
          "description": "The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "type": "string"
        },
        "startWorkloadReplayContext": {
          "$ref": "#/$defs/StartWorkloadReplayContext",
          "description": "The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed)."
        },
        "selfLink": {
          "type": "string",
          "description": "The URI of this resource."
        },
        "targetProject": {
          "type": "string",
          "description": "The project ID of the target instance related to this operation."
        },
        "subOperationType": {
          "$ref": "#/$defs/SqlSubOperationType",
          "description": "Optional. The sub operation based on the operation type."
        },
        "stopWorkloadReplayContext": {
          "$ref": "#/$defs/StopWorkloadReplayContext",
          "description": "The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance."
        },
        "name": {
          "type": "string",
          "description": "An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation."
        },
        "targetId": {
          "type": "string",
          "description": "Name of the resource on which this operation runs."
        },
        "startWorkloadCaptureContext": {
          "$ref": "#/$defs/StartWorkloadCaptureContext",
          "description": "The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance."
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#operation`."
        },
        "error": {
          "$ref": "#/$defs/OperationErrors",
          "description": "If errors occurred during processing of this operation, this field will be populated."
        },
        "startTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`."
        },
        "insertTime": {
          "type": "string",
          "description": "The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "format": "google-datetime"
        }
      }
    },
    "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."
    },
    "OperationErrors": {
      "type": "object",
      "properties": {
        "kind": {
          "description": "This is always `sql#operationErrors`.",
          "type": "string"
        },
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperationError"
          },
          "description": "The list of errors encountered while processing this operation."
        }
      },
      "description": "Database instance operation errors list wrapper."
    },
    "PreCheckMajorVersionUpgradeContext": {
      "description": "Pre-check major version upgrade context.",
      "properties": {
        "kind": {
          "description": "Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.",
          "type": "string"
        },
        "targetDatabaseVersion": {
          "description": "Required. The target database version to upgrade to.",
          "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"
        },
        "maxRuntime": {
          "type": "string",
          "format": "google-duration",
          "description": "Optional. The maximum allowed runtime for the precheck operation."
        },
        "preCheckResponse": {
          "items": {
            "$ref": "#/$defs/PreCheckResponse"
          },
          "readOnly": true,
          "description": "Output only. The responses from the precheck operation.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "PreCheckResponse": {
      "description": "Structured PreCheckResponse containing message, type, and required actions.",
      "properties": {
        "message": {
          "type": "string",
          "description": "The message to be displayed to the user."
        },
        "messageType": {
          "type": "string",
          "description": "The type of message whether it is an info, warning, or error.",
          "enum": [
            "MESSAGE_TYPE_UNSPECIFIED",
            "INFO",
            "WARNING",
            "ERROR"
          ]
        },
        "actionsRequired": {
          "description": "The actions that the user needs to take. Use repeated for multiple actions.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object"
    },
    "SqlSubOperationType": {
      "type": "object",
      "description": "The sub operation type based on the operation type.",
      "properties": {
        "maintenanceType": {
          "description": "The type of maintenance to be performed on the instance.",
          "type": "string",
          "enum": [
            "SQL_MAINTENANCE_TYPE_UNSPECIFIED",
            "INSTANCE_MAINTENANCE",
            "REPLICA_INCLUDED_MAINTENANCE",
            "INSTANCE_SELF_SERVICE_MAINTENANCE",
            "REPLICA_INCLUDED_SELF_SERVICE_MAINTENANCE"
          ]
        }
      }
    },
    "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"
    },
    "SslCertDetail": {
      "type": "object",
      "properties": {
        "certPrivateKey": {
          "type": "string",
          "description": "The private key for the client cert, in pem format. Keep private in order to protect your security."
        },
        "certInfo": {
          "$ref": "#/$defs/SslCert",
          "description": "The public information about the cert."
        }
      },
      "description": "SslCertDetail."
    },
    "StartWorkloadCaptureContext": {
      "description": "The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.",
      "properties": {
        "enableLiveReplay": {
          "description": "Optional. If true, the captured workload is simultaneously executed on a separate, ephemeral Cloud SQL instance. This \"live replay\" instance is automatically provisioned and is cloned from the source instance. If false (the default), the workload is only stored and no live replay occurs. It can be replayed later using a separate `StartWorkloadReplayRequest`. Note: The workload capture runs continuously until an explicit `StopWorkloadCaptureRequest` is issued.",
          "type": "boolean"
        },
        "replayInstance": {
          "type": "string",
          "description": "Optional. Required if `enable_live_replay` is true. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less."
        }
      },
      "type": "object"
    },
    "StartWorkloadReplayContext": {
      "type": "object",
      "description": "The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).",
      "properties": {
        "workloadId": {
          "type": "string",
          "description": "Output only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries.",
          "readOnly": true
        },
        "replayInstance": {
          "description": "Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.",
          "type": "string"
        }
      }
    },
    "StopWorkloadCaptureContext": {
      "description": "The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.",
      "properties": {
        "abortLiveReplay": {
          "type": "boolean",
          "description": "Optional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed."
        }
      },
      "type": "object"
    },
    "StopWorkloadReplayContext": {
      "description": "The context for the `StopWorkloadReplay` operation, which represents an operation that stops an active workload replay on a target Cloud SQL replay instance.",
      "properties": {},
      "type": "object"
    }
  }
}