{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-sql-instances-verify-external-sync-settings-request-schema.json",
  "title": "SqlInstancesVerifyExternalSyncSettingsRequest",
  "description": "Instance verify external sync settings request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-projects-api-openapi.yml#/components/schemas/SqlInstancesVerifyExternalSyncSettingsRequest",
  "properties": {
    "verifyConnectionOnly": {
      "description": "Flag to enable verifying connection only",
      "type": "boolean"
    },
    "selectedObjects": {
      "items": {
        "$ref": "#/$defs/ExternalSyncSelectedObject"
      },
      "type": "array",
      "description": "Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects."
    },
    "verifyReplicationOnly": {
      "type": "boolean",
      "description": "Optional. Flag to verify settings required by replication setup only"
    },
    "migrationType": {
      "enum": [
        "MIGRATION_TYPE_UNSPECIFIED",
        "LOGICAL",
        "PHYSICAL"
      ],
      "type": "string",
      "description": "Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL."
    },
    "syncParallelLevel": {
      "type": "string",
      "enum": [
        "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED",
        "MIN",
        "OPTIMAL",
        "MAX"
      ],
      "description": "Optional. Parallel level for initial data sync. Only applicable for PostgreSQL."
    },
    "syncMode": {
      "enum": [
        "EXTERNAL_SYNC_MODE_UNSPECIFIED",
        "ONLINE",
        "OFFLINE"
      ],
      "description": "External sync mode",
      "type": "string"
    },
    "location": {
      "description": "Optional. Region of the Cloud SQL instance.",
      "type": "string"
    },
    "mysqlSyncConfig": {
      "$ref": "#/$defs/MySqlSyncConfig",
      "description": "Optional. MySQL-specific settings for start external sync."
    }
  },
  "type": "object",
  "$defs": {
    "ExternalSyncSelectedObject": {
      "type": "object",
      "description": "The selected object that Cloud SQL migrates.",
      "properties": {
        "database": {
          "type": "string",
          "description": "The name of the database that Cloud SQL migrates."
        }
      }
    },
    "MySqlSyncConfig": {
      "properties": {
        "initialSyncFlags": {
          "items": {
            "$ref": "#/$defs/SyncFlags"
          },
          "type": "array",
          "description": "Flags to use for the initial dump."
        }
      },
      "description": "MySQL-specific external server sync settings.",
      "type": "object"
    },
    "SyncFlags": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the flag."
        },
        "value": {
          "type": "string",
          "description": "The value of the flag. This field must be omitted if the flag doesn't take a value."
        }
      },
      "description": "Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump."
    }
  }
}