{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-migration-center/json-schema/google-cloud-migration-center-source-schema.json",
  "title": "Source",
  "description": "Source represents an object from which asset information is streamed to Migration Center.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-migration-center-migrationcenter-projects-api-openapi.yml#/components/schemas/Source",
  "type": "object",
  "properties": {
    "updateTime": {
      "description": "Output only. The timestamp when the source was last updated.",
      "type": "string",
      "format": "google-datetime",
      "readOnly": true
    },
    "description": {
      "description": "Free-text description.",
      "type": "string"
    },
    "errorFrameCount": {
      "format": "int32",
      "readOnly": true,
      "type": "integer",
      "description": "Output only. The number of frames that were reported by the source and contained errors."
    },
    "createTime": {
      "description": "Output only. The timestamp when the source was created.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "displayName": {
      "description": "User-friendly display name.",
      "type": "string"
    },
    "managed": {
      "type": "boolean",
      "description": "If `true`, the source is managed by other service(s)."
    },
    "pendingFrameCount": {
      "description": "Output only. Number of frames that are still being processed.",
      "type": "integer",
      "format": "int32",
      "readOnly": true
    },
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "DELETING",
        "INVALID"
      ],
      "description": "Output only. The state of the source.",
      "readOnly": true
    },
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The full name of the source."
    },
    "priority": {
      "description": "The information confidence of the source. The higher the value, the higher the confidence.",
      "type": "integer",
      "format": "int32"
    },
    "type": {
      "type": "string",
      "enum": [
        "SOURCE_TYPE_UNKNOWN",
        "SOURCE_TYPE_UPLOAD",
        "SOURCE_TYPE_GUEST_OS_SCAN",
        "SOURCE_TYPE_INVENTORY_SCAN",
        "SOURCE_TYPE_CUSTOM",
        "SOURCE_TYPE_DISCOVERY_CLIENT"
      ],
      "description": "Data source type."
    }
  }
}