{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-sql-instances-start-external-sync-request-schema.json",
  "title": "SqlInstancesStartExternalSyncRequest",
  "description": "Instance start external sync 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/SqlInstancesStartExternalSyncRequest",
  "type": "object",
  "properties": {
    "location": {
      "description": "Optional. Region of the Cloud SQL instance.",
      "type": "string"
    },
    "skipVerification": {
      "type": "boolean",
      "description": "Whether to skip the verification step (VESS)."
    },
    "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."
    },
    "replicaOverwriteEnabled": {
      "type": "boolean",
      "description": "Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned."
    },
    "syncMode": {
      "type": "string",
      "enum": [
        "EXTERNAL_SYNC_MODE_UNSPECIFIED",
        "ONLINE",
        "OFFLINE"
      ],
      "description": "External sync mode."
    },
    "syncParallelLevel": {
      "enum": [
        "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED",
        "MIN",
        "OPTIMAL",
        "MAX"
      ],
      "description": "Optional. Parallel level for initial data sync. Currently only applicable for MySQL.",
      "type": "string"
    },
    "mysqlSyncConfig": {
      "$ref": "#/$defs/MySqlSyncConfig",
      "description": "MySQL-specific settings for start external sync."
    }
  },
  "$defs": {
    "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."
    }
  }
}