{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-pending-changes-request-schema.json",
  "title": "PendingChangesRequest",
  "description": "Represents the pending changes request object which will be used to generate the delta of the changes pending on the device.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-deployment-api-openapi.yml#/components/schemas/PendingChangesRequest",
  "properties": {
    "description": {
      "type": "string"
    },
    "deviceList": {
      "description": "List of device UUIDs for which the pending changes request has to triggered.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "type": "string"
    },
    "links": {
      "$ref": "#/$defs/ILinks",
      "type": "object"
    },
    "metadata": {
      "$ref": "#/$defs/PendingChangesRequestMetadata",
      "type": "object"
    },
    "name": {
      "type": "string"
    },
    "requestType": {
      "description": "Specifies whether cli diff or policy diff or both need to be generated. One of: CLI_DIFF | POLICY_DIFF | CLI_AND_POLICY_DIFF.",
      "enum": [
        "CLI_DIFF",
        "POLICY_DIFF",
        "CLI_AND_POLICY_DIFF"
      ],
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "Domain": {
      "description": "The details about the domain.",
      "properties": {
        "id": {
          "description": "Unique UUID of this domain",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "description": "Links to the domain resource URLs.",
          "type": "object"
        },
        "name": {
          "description": "Name of the domain.",
          "type": "string"
        },
        "type": {
          "description": "Domain type definition (fixed).",
          "type": "string"
        },
        "uuid": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IDomain": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ILinks": {
      "description": "This defines the self referencing links for the given resource.",
      "properties": {
        "parent": {
          "description": "Full resource URL path to reference the parent (if any) for this resource.",
          "type": "string"
        },
        "self": {
          "description": "Full resource URL path to reference this particular resource.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IMetadata": {
      "properties": {
        "domain": {
          "$ref": "#/$defs/IDomain",
          "type": "object"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/IMetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/IReadonly",
          "type": "object"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "IMetadataUser": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IReadonly": {
      "properties": {
        "reason": {
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ISubTask": {
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "status": {
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/ITarget",
          "type": "object"
        }
      },
      "type": "object"
    },
    "ITarget": {
      "description": "This is the target device.",
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "description": "Unique ID of the device.",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "name": {
          "description": "Name of the device.",
          "type": "string"
        },
        "type": {
          "description": "Device",
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ITaskStatus": {
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "subTasks": {
          "items": {
            "$ref": "#/$defs/ISubTask",
            "type": "object"
          },
          "type": "array"
        },
        "taskType": {
          "enum": [
            "DEVICE_REGISTRATION",
            "SMART_LICENSE",
            "DEVICE_DEPLOYMENT",
            "DEVICE_ROLLBACK",
            "NGFWHA_OPERATIONS",
            "COPY_CONFIG_REQUEST",
            "HIT_COUNT_REFRESH",
            "FTD_CLUSTER_BOOTSTRAP",
            "FTD_CLUSTER_CREATE",
            "FTD_CLUSTER_BREAK",
            "FTD_CLUSTER_ADD_NODES",
            "FTD_CLUSTER_REMOVE_NODES",
            "DEVICE_BACKUP",
            "FTD_CLUSTER_UPDATE_BOOTSTRAP",
            "FTD_CLUSTER_COMMAND",
            "SSP_EPM_OIR",
            "SSP_EPM_BREAKOUT_DEPLOY",
            "DEVICE_EXPORT",
            "DEVICE_IMPORT",
            "POLICY_EXPORT",
            "CHASSIS_REGISTRATION",
            "CHANGE_MANAGER",
            "CONFIGURE_DEVICE_VALIDATE",
            "CONFIGURE_DEVICE",
            "CONFIGURE_MANAGER",
            "CONFIGURE_MANAGER_ADD",
            "CONFIGURE_MANAGER_DELETE",
            "INITIATE_MIGRATION",
            "DISCARD_MIGRATION",
            "SWITCH_TO_ANALYTICS",
            "DELETE_DEVICE",
            "GENERATE_REPORTS",
            "FLEXCONFIG_MIGRATION",
            "DEVICE_UNREGISTRATION",
            "PENDING_CHANGES_REQUEST",
            "DEVICE_TROUBLESHOOT",
            "DEVICE_MODEL_MIGRATION",
            "DEVICE_TEMPLATE_CREATION",
            "CHASSIS_CONVERSION_REQUEST",
            "SNORT_PROFILER",
            "CPU_PROFILER",
            "POLICY_REPORT_GENERATION",
            "DEVICE_TEMPLATE_APPLY",
            "LTP_ONBOARDING",
            "POLICY_CLONE_OPERATION",
            "DEVICE_CERTIFICATE_MANAGEMENT",
            "OOB_CHANGES_REQUEST",
            "UPLOAD_TROUBLESHOOT"
          ],
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "MetadataUser": {
      "description": "This object defines details about the user.",
      "properties": {
        "id": {
          "description": "The unique UUID of the user",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "description": "Contains the self referencing links to this resource",
          "type": "object"
        },
        "name": {
          "description": "Name of the user.",
          "type": "string"
        },
        "type": {
          "description": "The user type (fixed).",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PendingChangesRequestMetadata": {
      "properties": {
        "deployInProgressSkippedDeviceList": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "domain": {
          "$ref": "#/$defs/Domain",
          "type": "object"
        },
        "downloadUrl": {
          "type": "string"
        },
        "failedDeviceList": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/MetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/ReadOnly",
          "type": "object"
        },
        "task": {
          "$ref": "#/$defs/ITaskStatus",
          "type": "object"
        },
        "taskInProgressSkippedDeviceList": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ReadOnly": {
      "description": "Defines the read only conditions if the referenced resource is read only.",
      "properties": {
        "reason": {
          "description": "Reason the resource is read only - SYSTEM (if it is system defined), RBAC (if user RBAC permissions make it read only) or DOMAIN (if resource is read only in current domain).",
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "description": "True if this resource us read only and false otherwise.",
          "type": "boolean"
        }
      },
      "type": "object"
    }
  }
}