{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotctl-api-collect-pub-result-schema.json",
  "title": "robotctl_apiCollectPubResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-troubleshooting-api-api-openapi.yml#/components/schemas/robotctl_apiCollectPubResult",
  "type": "object",
  "properties": {
    "Result": {
      "$ref": "#/$defs/robotctl_apiResultValue"
    },
    "Description": {
      "type": "string"
    },
    "Jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CollectPubResultpublishJob"
      }
    }
  },
  "$defs": {
    "CollectPubResultpublishJob": {
      "type": "object",
      "properties": {
        "PublishJobId": {
          "type": "string",
          "title": "Id of publish job"
        },
        "CollectJobId": {
          "type": "string",
          "title": "Id of show tech job"
        },
        "Type": {
          "$ref": "#/$defs/robotctl_apiPublishType"
        },
        "JobStatus": {
          "$ref": "#/$defs/robotctl_apijobStatus"
        },
        "User": {
          "type": "string"
        },
        "CreationTime": {
          "type": "string"
        },
        "Description": {
          "type": "string"
        },
        "Progress": {
          "type": "string"
        },
        "SSH_Configuration": {
          "$ref": "#/$defs/robotctl_apiSSH_Config"
        }
      }
    },
    "robotctl_apiPublishType": {
      "type": "string",
      "enum": [
        "SSH"
      ],
      "default": "SSH"
    },
    "robotctl_apiResultValue": {
      "type": "string",
      "enum": [
        "NOOP",
        "SUCCESS",
        "FAILURE"
      ],
      "default": "NOOP"
    },
    "robotctl_apiSSH_Config": {
      "type": "object",
      "properties": {
        "Username": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Password": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Destination": {
          "type": "string",
          "title": "MANDATORY"
        },
        "Dest_path": {
          "type": "string",
          "title": "MANDATORY - Path on destination host"
        },
        "Port": {
          "type": "integer",
          "format": "int32",
          "title": "MANDATORY - SCP Port on destination host"
        }
      },
      "title": "Configuration for SCP"
    },
    "robotctl_apijobStatus": {
      "type": "string",
      "enum": [
        "JobUnknown",
        "JobCreated",
        "JobInProgress",
        "JobCompleted",
        "JobFailed"
      ],
      "default": "JobUnknown"
    }
  }
}