{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-ise/json-schema/cisco-ise-time-and-date-condition-response-entity-schema.json",
  "title": "TimeAndDateConditionResponseEntity",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-ise-device-administration-time-date-conditions-api-openapi.yml#/components/schemas/TimeAndDateConditionResponseEntity",
  "required": [
    "response",
    "version"
  ],
  "type": "object",
  "properties": {
    "response": {
      "$ref": "#/$defs/TimeAndDateCondition",
      "exampleSetFlag": true
    },
    "version": {
      "type": "string",
      "exampleSetFlag": true
    }
  },
  "exampleSetFlag": false,
  "$defs": {
    "DatesRange": {
      "title": "DatesRange",
      "required": [
        "endDate",
        "startDate"
      ],
      "type": "object",
      "properties": {
        "endDate": {
          "type": "string",
          "exampleSetFlag": true
        },
        "startDate": {
          "type": "string",
          "exampleSetFlag": true
        }
      },
      "description": "<p>Defines for which date/s TimeAndDate condition will be matched<br> Options are - Date range, for specific date, the same date should be used for start/end date <br> Default - no specific dates<br> In order to reset the dates to have no specific dates Date format - yyyy-mm-dd (MM = month, dd = day, yyyy = year)</p>",
      "exampleSetFlag": false
    },
    "HoursRange": {
      "title": "HoursRange",
      "required": [
        "endTime",
        "startTime"
      ],
      "type": "object",
      "properties": {
        "endTime": {
          "type": "string",
          "exampleSetFlag": true
        },
        "startTime": {
          "type": "string",
          "exampleSetFlag": true
        }
      },
      "description": "<p>Defines for which hours a TimeAndDate condition will be matched<br> Time foramt - hh:mm  ( h = hour , mm = minutes ) <br> Default - All Day </p>",
      "exampleSetFlag": false
    },
    "Link": {
      "title": "Link",
      "required": [
        "href"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "exampleSetFlag": true
        },
        "rel": {
          "type": "string",
          "exampleSetFlag": true,
          "enum": [
            "next",
            "previous",
            "self",
            "status"
          ]
        },
        "type": {
          "type": "string",
          "exampleSetFlag": true
        }
      },
      "exampleSetFlag": false
    },
    "TimeAndDateCondition": {
      "title": "TimeAndDateCondition",
      "required": [
        "conditionType",
        "name"
      ],
      "type": "object",
      "properties": {
        "conditionType": {
          "type": "string",
          "description": "<ul><li>Inidicates whether the record is the condition itself(data) or a logical(or,and) aggregation</li> <li>Data type enum(reference,single) indicates than \"conditonId\" OR \"ConditionAttrs\" fields should contain condition data but not both</li> <li>Logical aggreation(and,or) enum indicates that additional conditions are present under the children field</li></ul>",
          "exampleSetFlag": true,
          "enum": [
            "ConditionAndBlock",
            "ConditionAttributes",
            "ConditionOrBlock",
            "ConditionReference",
            "LibraryConditionAndBlock",
            "LibraryConditionAttributes",
            "LibraryConditionOrBlock",
            "TimeAndDateCondition"
          ]
        },
        "datesRange": {
          "$ref": "#/$defs/DatesRange",
          "exampleSetFlag": true
        },
        "datesRangeException": {
          "$ref": "#/$defs/DatesRange",
          "exampleSetFlag": true
        },
        "description": {
          "type": "string",
          "description": "Condition description",
          "exampleSetFlag": true
        },
        "hoursRange": {
          "$ref": "#/$defs/HoursRange",
          "exampleSetFlag": true
        },
        "hoursRangeException": {
          "$ref": "#/$defs/HoursRange",
          "exampleSetFlag": true
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "exampleSetFlag": true
        },
        "isNegate": {
          "type": "boolean",
          "description": "Indicates whereas this condition is in negate mode",
          "exampleSetFlag": true
        },
        "link": {
          "$ref": "#/$defs/Link",
          "exampleSetFlag": true
        },
        "name": {
          "type": "string",
          "description": "Condition name",
          "exampleSetFlag": true
        },
        "weekDays": {
          "type": "array",
          "description": "<p>Defines for which days this condition will be matched<br> Days format - Arrays of WeekDay enums <br> Default - List of All week days</p>",
          "exampleSetFlag": true,
          "items": {
            "type": "string",
            "exampleSetFlag": false,
            "enum": [
              "Friday",
              "Monday",
              "Saturday",
              "Sunday",
              "Thursday",
              "Tuesday",
              "Wednesday"
            ]
          }
        },
        "weekDaysException": {
          "type": "array",
          "description": "<p>Defines for which days this condition will NOT be matched<br> Days format - Arrays of WeekDay enums <br> Default - Not enabled</p>",
          "exampleSetFlag": true,
          "items": {
            "type": "string",
            "exampleSetFlag": false,
            "enum": [
              "Friday",
              "Monday",
              "Saturday",
              "Sunday",
              "Thursday",
              "Tuesday",
              "Wednesday"
            ]
          }
        }
      },
      "description": "Condition based on time and date.",
      "exampleSetFlag": false
    }
  }
}