{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-create-assessment-details-schema.json",
  "title": "CreateAssessmentDetails",
  "description": "Common Create Assessment details.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasemigration-api-openapi.yml#/components/schemas/CreateAssessmentDetails",
  "properties": {
    "acceptableDowntime": {
      "description": "Time allowed for the application downtime.",
      "enum": [
        "LESS_THAN_10_MINUTES",
        "LESS_THAN_1_HOUR",
        "LESS_THAN_4_HOURS",
        "LESS_THAN_8_HOURS",
        "LESS_THAN_12_HOURS",
        "LESS_THAN_1_DAY",
        "LESS_THAN_2_DAYS",
        "MORE_THAN_2_DAYS"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/AcceptableDowntime"
    },
    "compartmentId": {
      "description": "The OCID of the resource being referenced.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "creationType": {
      "description": "The type of assessment creation.",
      "enum": [
        "CREATE_ONLY",
        "CREATE_AND_RUN_ASSESSORS"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/CreationType"
    },
    "databaseCombination": {
      "description": "The combination of source and target databases participating in a migration.\nExample: ORACLE means the migration is meant for migrating Oracle source and target databases.\n",
      "enum": [
        "MYSQL",
        "ORACLE"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseCombination"
    },
    "databaseDataSize": {
      "description": "The size of a source database.",
      "enum": [
        "LESS_THAN_1GB",
        "GB_1_10",
        "GB_10_50",
        "GB_50_100",
        "GB_100_500",
        "GB_500_TB_1",
        "TB_1_3",
        "TB_3_10",
        "TB_10_50",
        "GREATER_THAN_50TB"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseDataSize"
    },
    "ddlExpectation": {
      "description": "DDL expectation values.",
      "enum": [
        "DDL_EXPECTED",
        "DDL_NOT_EXPECTED"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DdlExpectation"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "A user-friendly description. Does not have to be unique, and it's changeable. \nAvoid entering confidential information.\n",
      "maxLength": 400,
      "minLength": 0,
      "type": "string",
      "x-default-description": "null"
    },
    "displayName": {
      "description": "A user-friendly name. Does not have to be unique, and it's changeable. \nAvoid entering confidential information.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. \nFor more information, see Resource Tags. Example: {\"Department\": \"Finance\"}\n",
      "type": "object"
    },
    "networkSpeedMegabitPerSecond": {
      "description": "A network speed in Megabits per second.",
      "enum": [
        "MBPS_10",
        "MBPS_100",
        "MBPS_1000",
        "MBPS_2500",
        "MBPS_5000",
        "MBPS_10000"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/NetworkSpeedMegabitPerSecond"
    },
    "sourceDatabaseConnection": {
      "$ref": "#/$defs/SourceAssessmentConnection"
    },
    "targetDatabaseConnection": {
      "$ref": "#/$defs/TargetAssessmentConnection"
    }
  },
  "required": [
    "compartmentId",
    "databaseCombination",
    "networkSpeedMegabitPerSecond",
    "acceptableDowntime",
    "databaseDataSize",
    "ddlExpectation",
    "sourceDatabaseConnection",
    "targetDatabaseConnection"
  ],
  "type": "object",
  "$defs": {
    "SourceAssessmentConnection": {
      "description": "Source Assessment Connection object",
      "properties": {
        "id": {
          "description": "The OCID of the resource being referenced.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "TargetAssessmentConnection": {
      "description": "Target Assessment Connection object",
      "properties": {
        "connectionType": {
          "description": "Defines the type of connection. For example, ORACLE.",
          "enum": [
            "MYSQL",
            "ORACLE"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/ConnectionType"
        },
        "databaseVersion": {
          "description": "The database version",
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        "id": {
          "description": "The OCID of the resource being referenced.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "technologySubType": {
          "description": "Technology sub-type e.g. ADW_SHARED, ADW_DEDICATED, ATP_SHARED, ATP_DEDICATED",
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        "technologyType": {
          "description": "The technology type.",
          "enum": [
            "OCI_AUTONOMOUS_DATABASE",
            "OCI_MYSQL",
            "ORACLE_DATABASE",
            "ORACLE_EXADATA",
            "AMAZON_RDS_ORACLE",
            "AMAZON_AURORA_MYSQL",
            "AMAZON_RDS_MYSQL",
            "AZURE_MYSQL",
            "GOOGLE_CLOUD_SQL_MYSQL",
            "MYSQL_SERVER"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/TechnologyType"
        }
      },
      "type": "object"
    }
  }
}