{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "$ref": "#/definitions/Example",
    "definitions": {
        "Example": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "results": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Result"
                    }
                },
                "totalResults": {
                    "type": "integer"
                },
                "orderBy": {
                    "type": "string"
                },
                "pageNo": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "totalPages": {
                    "type": "integer"
                },
                "nextPage": {
                    "type": "boolean"
                },
                "descendingOrder": {
                    "type": "boolean"
                }
            },
            "required": [
                "descendingOrder",
                "nextPage",
                "orderBy",
                "pageNo",
                "pageSize",
                "results",
                "totalPages",
                "totalResults"
            ],
            "title": "Example"
        },
        "Result": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string",
                    "format": "uuid"
                },
                "hostName": {
                    "type": "string"
                },
                "ipAddress": {
                    "type": "string"
                },
                "dns": {
                    "type": "string"
                },
                "dnsName": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/Client"
                },
                "identity": {
                    "type": "string"
                },
                "createdDate": {
                    "type": "string"
                },
                "updatedDate": {
                    "type": "string"
                },
                "classCode": {
                    "type": "string"
                },
                "deviceType": {
                    "type": "string"
                },
                "devicePath": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "state": {
                    "type": "string"
                },
                "macAddress": {
                    "type": "string"
                },
                "make": {
                    "type": "string"
                },
                "model": {
                    "type": "string"
                },
                "biosName": {
                    "type": "string"
                },
                "biosVersion": {
                    "type": "string"
                },
                "osName": {
                    "type": "string"
                },
                "osArchitecture": {
                    "type": "string"
                },
                "serialNumber": {
                    "type": "string",
                    "format": "uuid"
                },
                "systemUID": {
                    "type": "string",
                    "format": "uuid"
                },
                "description": {
                    "type": "string"
                },
                "gatewayProfileId": {
                    "type": "string",
                    "format": "integer"
                },
                "source": {
                    "type": "string"
                },
                "agentInstalled": {
                    "type": "boolean"
                },
                "agentInstalledTime": {
                    "type": "string"
                },
                "agentVersion": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "attributes": {
                    "$ref": "#/definitions/Attributes"
                },
                "aliasName": {
                    "type": "string"
                },
                "managementProfile": {
                    "$ref": "#/definitions/ManagementProfile"
                },
                "location": {
                    "$ref": "#/definitions/Location"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Tag"
                    }
                },
                "name": {
                    "type": "string"
                },
                "resourceName": {
                    "type": "string"
                },
                "consoles": {
                    "type": "array",
                    "items": {}
                },
                "deviceGroups": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/DeviceGroup"
                    }
                },
                "resourceType": {
                    "type": "string"
                },
                "appRoles": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/AppRole"
                    }
                },
                "assetManagedTime": {
                    "type": "string"
                },
                "firstAssetManagedTime": {
                    "type": "string"
                }
            },
            "required": [
                "agentInstalled",
                "agentInstalledTime",
                "agentVersion",
                "aliasName",
                "appRoles",
                "assetManagedTime",
                "attributes",
                "biosName",
                "biosVersion",
                "classCode",
                "client",
                "consoles",
                "createdDate",
                "description",
                "deviceGroups",
                "devicePath",
                "deviceType",
                "dns",
                "dnsName",
                "firstAssetManagedTime",
                "gatewayProfileId",
                "hostName",
                "id",
                "identity",
                "ipAddress",
                "location",
                "macAddress",
                "make",
                "managementProfile",
                "model",
                "name",
                "osArchitecture",
                "osName",
                "resourceName",
                "resourceType",
                "serialNumber",
                "source",
                "state",
                "status",
                "systemUID",
                "tags",
                "type",
                "updatedDate"
            ],
            "title": "Result"
        },
        "AppRole": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "name": {
                    "type": "string"
                }
            },
            "required": [
                "name"
            ],
            "title": "AppRole"
        },
        "Attributes": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "network": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Network"
                    }
                }
            },
            "required": [
                "network"
            ],
            "title": "Attributes"
        },
        "Network": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "ip": {
                    "type": "string"
                },
                "mac": {
                    "type": "string"
                }
            },
            "required": [
                "ip"
            ],
            "title": "Network"
        },
        "Client": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "integer"
                },
                "uniqueId": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "featureFlags": {
                    "$ref": "#/definitions/FeatureFlags"
                },
                "webConsoles": {
                    "type": "boolean"
                }
            },
            "required": [
                "featureFlags",
                "id",
                "name",
                "uniqueId",
                "webConsoles"
            ],
            "title": "Client"
        },
        "FeatureFlags": {
            "type": "object",
            "additionalProperties": false,
            "title": "FeatureFlags"
        },
        "DeviceGroup": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string",
                    "format": "integer"
                },
                "name": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "createdDate": {
                    "type": "string"
                },
                "updatedDate": {
                    "type": "string"
                },
                "linkedService": {
                    "type": "boolean"
                }
            },
            "required": [
                "createdDate",
                "description",
                "id",
                "linkedService",
                "name",
                "updatedDate"
            ],
            "title": "DeviceGroup"
        },
        "Location": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "address": {
                    "type": "string"
                },
                "city": {
                    "type": "string"
                },
                "path": {
                    "type": "string"
                }
            },
            "required": [
                "address",
                "city",
                "description",
                "id",
                "name",
                "path"
            ],
            "title": "Location"
        },
        "ManagementProfile": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "delete": {
                    "type": "boolean"
                }
            },
            "required": [
                "delete",
                "id",
                "name",
                "type"
            ],
            "title": "ManagementProfile"
        },
        "Tag": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "name": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            },
            "required": [
                "name",
                "value"
            ],
            "title": "Tag"
        }
    }
}