{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-source-control-sync-job-schema.json",
  "title": "SourceControlSyncJob",
  "description": "Definition of the source control sync job.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-sourcecontrolsyncjob-api-openapi.yml#/components/schemas/SourceControlSyncJob",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Resource name.",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "description": "Resource type.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "description": "Resource id.",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/SourceControlSyncJobProperties",
      "description": "The properties of the source control sync job.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "ProvisioningState": {
      "type": "string",
      "description": "The provisioning state of the job.",
      "enum": [
        "Completed",
        "Failed",
        "Running"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Completed",
            "value": "Completed",
            "description": "Completed"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "Running"
          }
        ]
      }
    },
    "SourceControlSyncJobProperties": {
      "type": "object",
      "description": "Definition of source control sync job properties.",
      "properties": {
        "sourceControlSyncJobId": {
          "type": "string",
          "description": "The source control sync job id."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The creation time of the job.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the job."
        },
        "startTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The start time of the job.",
          "readOnly": true
        },
        "endTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The end time of the job.",
          "readOnly": true
        },
        "syncType": {
          "$ref": "#/$defs/SyncType",
          "description": "The sync type."
        }
      }
    },
    "SyncType": {
      "type": "string",
      "description": "The sync type.",
      "enum": [
        "PartialSync",
        "FullSync"
      ],
      "x-ms-enum": {
        "name": "SyncType",
        "modelAsString": true,
        "values": [
          {
            "name": "PartialSync",
            "value": "PartialSync",
            "description": "PartialSync"
          },
          {
            "name": "FullSync",
            "value": "FullSync",
            "description": "FullSync"
          }
        ]
      }
    }
  }
}