Exemplo n.º 1
0
 def request(self):
     return fastjsonschema.compile(schemas.index.request)
Exemplo n.º 2
0
def mem_profile_fastjsonchema():
    fastvalidator = fastjsonschema.compile(SCHEMA)
    fastvalidator(INSTANCE)
Exemplo n.º 3
0
 def __init__(self):
     super(JSONSchemaValidatorE487F8D3481B94F2, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "response": {
             "items": {
             "properties": {
             "additionalStatusURL": {
             "type": [
             "string",
             "null"
             ]
             },
             "data": {
             "type": [
             "string",
             "null"
             ]
             },
             "endTime": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "errorCode": {
             "type": [
             "string",
             "null"
             ]
             },
             "errorKey": {
             "type": [
             "string",
             "null"
             ]
             },
             "failureReason": {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceTenantId": {
             "type": [
             "string",
             "null"
             ]
             },
             "isError": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "lastUpdate": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "operationIdList": {},
             "parentId": {
             "type": [
             "string",
             "null"
             ]
             },
             "progress": {
             "type": [
             "string",
             "null"
             ]
             },
             "rootId": {
             "type": [
             "string",
             "null"
             ]
             },
             "serviceType": {
             "type": [
             "string",
             "null"
             ]
             },
             "startTime": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "username": {
             "type": [
             "string",
             "null"
             ]
             },
             "version": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "version": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorBdc981805B5FAd0A038966D52558, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "items": {
             "properties": {
             "authPassword": {
             "type": "string"
             },
             "authType": {
             "enum": [
             "SHA",
             "MD5"
             ],
             "type": "string"
             },
             "comments": {
             "type": "string"
             },
             "credentialType": {
             "enum": [
             "GLOBAL",
             "APP"
             ],
             "type": "string"
             },
             "description":
              {
             "type": "string"
             },
             "id": {
             "type": "string"
             },
             "instanceTenantId": {
             "type": "string"
             },
             "instanceUuid": {
             "type": "string"
             },
             "privacyPassword": {
             "type": "string"
             },
             "privacyType": {
             "enum": [
             "DES",
             "AES128"
             ],
             "type": "string"
             },
             "snmpMode": {
             "enum": [
             "AUTHPRIV",
             "AUTHNOPRIV",
             "NOAUTHNOPRIV"
             ],
             "type": "string"
             },
             "username": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorB0753B63045528194F2F5Bbf8Ae432D,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "healthDistirubution": {
             "items": {
             "properties": {
             "badCount": {
             "type": "number"
             },
             "badPercentage": {
             "type": "number"
             },
             "category": {
             "type": "string"
             },
             "fairCount": {
             "type": "number"
             },
             "fairPercentage": {
             "type": "number"
             },
             "goodCount": {
             "type": "integer"
             },
             "goodPercentage": {
             "type": "integer"
             },
             "healthScore": {
             "type": "integer"
             },
             "kpiMetrics": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "totalCount": {
             "type": "integer"
             },
             "unmonCount": {
             "type": "number"
             },
             "unmonPercentage": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "latestHealthScore": {
             "type": "integer"
             },
             "latestMeasuredByEntity": {
             "type": "object"
             },
             "measuredBy": {
             "type": "string"
             },
             "monitoredDevices": {
             "type": "integer"
             },
             "monitoredHealthyDevices": {
             "type": "integer"
             },
             "monitoredUnHealthyDevices": {
             "type": "integer"
             },
             "response": {
             "items": {
             "properties": {
             "badCount": {
             "type": "number"
             },
             "entity": {
             "type": "object"
             },
             "fairCount": {
             "type": "integer"
             },
             "goodCount": {
             "type": "integer"
             },
             "healthScore": {
             "type": "integer"
             },
             "time": {
             "type": "string"
             },
             "timeinMillis": {
             "type": "integer"
             },
             "totalCount": {
             "type": "integer"
             },
             "unmonCount": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "unMonitoredDevices": {
             "type": "number"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorBc33Daf690Ec5399A507829Abfc4Fe64,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "basicServiceSetClientIdleTimeout": {
             "type": "integer"
             },
             "clientExclusionTimeout": {
             "type": "integer"
             },
             "enableBasicServiceSetMaxIdle": {
             "type": "boolean"
             },
             "enableBroadcastSSID": {
             "type": "boolean"
             },
             "enableClientExclusion": {
             "type": "boolean"
             },
             "enableDirectedMulticastService": {
             "type": "boolean"
             },
             "enableFastLane": {
             "type": "boolean"
             },
             "enableMACFiltering": {
             "type": "boolean"
             },
             "enableNeighborList": {
             "type": "boolean"
             },
             "enableSessionTimeOut": {
             "type": "boolean"
             },
             "fastTransition": {
             "enum": [
             "Adaptive",
             "Enable",
             "Disable"
             ],
             "type": "string"
             },
             "mfpClientProtection": {
             "enum": [
             "Optional",
             "Disabled",
             "Required"
             ],
             "type": "string"
             },
             "name": {
             "type": "string"
             },
             "passphrase": {
             "type": "string"
             },
             "radioPolicy": {
             "enum": [
             "Dual band operation (2.4GHz and 5GHz)",
             "Dual band operation with band select",
             "5GHz only",
             "2.4GHz only"
             ],
             "type": "string"
             },
             "securityLevel": {
             "enum": [
             "WPA2_ENTERPRISE",
             "WPA2_PERSONAL",
             "OPEN"
             ],
             "type": "string"
             },
             "sessionTimeOut": {
             "type": "integer"
             },
             "trafficType": {
             "enum": [
             "voicedata",
             "data"
             ],
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorE69D02D71905AecBd10B782469Efbda,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "items": {
             "properties": {
             "description":
              {
             "type": "string"
             },
             "filter": {
             "properties": {
             "eventIds": {
             "items": {
             "type": "string"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "name": {
             "type": "string"
             },
             "subscriptionEndpoints": {
             "items": {
             "properties": {
             "instanceId": {
             "type": "string"
             },
             "subscriptionDetails": {
             "properties": {
             "connectorType": {
             "type": "string"
             },
             "fromEmailAddress": {
             "type": "string"
             },
             "subject": {
             "type": "string"
             },
             "toEmailAddresses": {
             "items": {
             "type": "string"
             },
             "type": "array"
             }
             },
             "type": "object"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "subscriptionId": {
             "type": "string"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 8
0
 def __init__(self):
     super(JSONSchemaValidator9788B8Fc4418831D, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "properties": {
             "attributeInfo": {
             "properties": {},
             "type": [
             "object",
             "null"
             ]
             },
             "cdpLevel": {
             "type": [
             "number",
             "null"
             ]
             },
             "deviceIds": {
             "type": [
             "string",
             "null"
             ]
             },
             "discoveryCondition": {
             "type": [
             "string",
             "null"
             ]
             },
             "discoveryStatus": {
             "type": [
             "string"
             ]
             },
             "discoveryType": {
             "type": [
             "string",
             "null"
             ]
             },
             "enablePasswordList": {
             "type": [
             "string",
             "null"
             ]
             },
             "globalCredentialIdList": {
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "httpReadCredential": {
             "properties": {
             "comments": {
             "type": [
             "string",
             "null"
             ]
             },
             "credentialType": {
             "enum": [
             "GLOBAL",
             "APP",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "description":
              {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceTenantId": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "password": {
             "type": [
             "string",
             "null"
             ]
             },
             "port": {
             "type": [
             "number",
             "null"
             ]
             },
             "secure": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "username": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "httpWriteCredential": {
             "properties": {
             "comments": {
             "type": [
             "string",
             "null"
             ]
             },
             "credentialType": {
             "enum": [
             "GLOBAL",
             "APP",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "description":
              {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceTenantId": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "password": {
             "type": [
             "string",
             "null"
             ]
             },
             "port": {
             "type": [
             "number",
             "null"
             ]
             },
             "secure": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "username": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "id": {
             "type": [
             "string"
             ]
             },
             "ipAddressList": {
             "type": [
             "string",
             "null"
             ]
             },
             "ipFilterList": {
             "type": [
             "string",
             "null"
             ]
             },
             "isAutoCdp": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "lldpLevel": {
             "type": [
             "number",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "netconfPort": {
             "type": [
             "string",
             "null"
             ]
             },
             "numDevices": {
             "type": [
             "number",
             "null"
             ]
             },
             "parentDiscoveryId": {
             "type": [
             "string",
             "null"
             ]
             },
             "passwordList": {
             "type": [
             "string",
             "null"
             ]
             },
             "preferredMgmtIPMethod": {
             "type": [
             "string",
             "null"
             ]
             },
             "protocolOrder": {
             "type": [
             "string",
             "null"
             ]
             },
             "retryCount": {
             "type": [
             "number",
             "null"
             ]
             },
             "snmpAuthPassphrase": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpAuthProtocol": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpMode": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpPrivPassphrase": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpPrivProtocol": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpRoCommunity": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpRoCommunityDesc": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpRwCommunity": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpRwCommunityDesc": {
             "type": [
             "string",
             "null"
             ]
             },
             "snmpUserName": {
             "type": [
             "string",
             "null"
             ]
             },
             "timeOut": {
             "type": [
             "number",
             "null"
             ]
             },
             "updateMgmtIp": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "userNameList": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "required": [
             "discoveryStatus",
             "id"
             ],
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')
     ))
Exemplo n.º 9
0
from fastjsonschema import compile, JsonSchemaException
import json
import os

POST = json.load(open(f"{os.getcwd()}/{__name__}/post.json", "r"))
POST_VALIDATOR = compile(POST)
Exemplo n.º 10
0
import fastjsonschema

from dragonchain.lib.interfaces import storage
from dragonchain.lib.dto import transaction_model
from dragonchain.lib.dto import schema
from dragonchain.lib.dto import model
from dragonchain.lib import keys

if TYPE_CHECKING:
    from dragonchain.lib.dto import transaction_type_model  # noqa: F401

EPOCH_OFFSET = 1432238220
BLOCK_INTERVAL = 5

_validate_l1_block_at_rest = fastjsonschema.compile(
    schema.l1_block_at_rest_schema)


def new_from_full_transactions(full_transactions_array: List[
    transaction_model.TransactionModel], block_id: str, prev_id: str,
                               prev_proof: str) -> "L1BlockModel":
    """
    Used in creating new blocks
    Input: List of TransactionModels, previous ID and proof
    Returns: BlockModel object
    """
    # Check the types of input, as there is no schema for a list of full transactions
    if not isinstance(full_transactions_array, list):
        raise TypeError("Invalid input types to create new block model.")

    # Assign the current block ID to every transaction
Exemplo n.º 11
0
 def __init__(self):
     super(JSONSchemaValidator209509D247599E19, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "properties": {
             "response": {
             "items": {
             "properties": {
             "additionalInfo": {
             "items": {},
             "type": [
             "array",
             "null"
             ]
             },
             "groupHierarchy": {
             "type": [
             "string",
             "null"
             ]
             },
             "groupNameHierarchy": {
             "type": [
             "string",
             "null"
             ]
             },
             "groupTypeList": {
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceTenantId": {
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "parentId": {
             "type": [
             "string",
             "null"
             ]
             },
             "systemGroup": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "status": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')
     ))
Exemplo n.º 12
0
 def __init__(self):
     super(JSONSchemaValidatorFb9BEb664F2ABa4C, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "items": {
             "properties": {
             "activateLowerImageVersion": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "deviceUpgradeMode": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "deviceUuid": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "distributeIfNeeded": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "imageUuidList": {
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "smuImageUuidList": {
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')
     ))
Exemplo n.º 13
0
 def __init__(self):
     super(JSONSchemaValidator8Da0391947088A5A, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "_id": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "aaaCredentials": {
             "description":
              "",
             "properties": {
             "password": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "username": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "acceptEula": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "defaultProfile": {
             "description":
              "",
             "properties": {
             "cert": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "fqdnAddresses": {
             "description":
              "",
             "items": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "ipAddresses": {
             "description":
              "",
             "items": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "port": {
             "type": [
             "number",
             "null"
             ]
             },
             "proxy": {
             "type": [
             "boolean",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "savaMappingList": {
             "description":
              "",
             "items": {
             "properties": {
             "autoSyncPeriod": {
             "type": [
             "number",
             "null"
             ]
             },
             "ccoUser": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "expiry": {
             "type": [
             "number",
             "null"
             ]
             },
             "lastSync": {
             "type": [
             "number",
             "null"
             ]
             },
             "profile": {
             "description":
              "",
             "properties": {
             "addressFqdn": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "addressIpV4": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "cert": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "makeDefault": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "name": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "port": {
             "type": [
             "number",
             "null"
             ]
             },
             "profileId": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "proxy": {
             "type": [
             "boolean",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "smartAccountId": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "syncResult": {
             "description":
              "",
             "properties": {
             "syncList": {
             "description":
              "",
             "items": {
             "properties": {
             "deviceSnList": {
             "description":
              "",
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "syncType": {
             "description":
              "",
             "enum": [
             "Add",
             "Update",
             "Delete",
             "MismatchError",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "syncMsg": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "syncResultStr": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "syncStartTime": {
             "type": [
             "number",
             "null"
             ]
             },
             "syncStatus": {
             "description":
              "",
             "enum": [
             "NOT_SYNCED",
             "SYNCING",
             "SUCCESS",
             "FAILURE",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "tenantId": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "token": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "virtualAccountId": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "taskTimeOuts": {
             "description":
              "",
             "properties": {
             "configTimeOut": {
             "type": [
             "number",
             "null"
             ]
             },
             "generalTimeOut": {
             "type": [
             "number",
             "null"
             ]
             },
             "imageDownloadTimeOut": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "tenantId": {
             "description":
              "",
             "type": [
             "string",
             "null"
             ]
             },
             "version": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 14
0
 def __init__(self):
     super(JSONSchemaValidatorDf9908Ad265E83Ab77D73803925678,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "site": {
             "properties": {
             "area": {
             "properties": {
             "name": {
             "type": "string"
             },
             "parentName": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "building": {
             "properties": {
             "address": {
             "type": "string"
             },
             "latitude": {
             "type": "number"
             },
             "longitude": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "parentName": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "floor": {
             "properties": {
             "height": {
             "type": "number"
             },
             "length": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "rfModel": {
             "enum": [
             "Cubes And Walled Offices",
             "Drywall Office Only",
             "Indoor High Ceiling",
             "Outdoor Open Space"
             ],
             "type": "string"
             },
             "width": {
             "type": "number"
             }
             },
             "type": "object"
             }
             },
             "type": "object"
             },
             "type": {
             "enum": [
             "area",
             "building",
             "floor"
             ],
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 15
0
 def __init__(self):
     super(JSONSchemaValidator08Bd88834A68A2E6, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "apCoverage": {
             "items": {
             "properties": {
             "bands": {
             "type": [
             "string",
             "null"
             ]
             },
             "numberOfApsToTest": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "rssiThreshold": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "connection": {
             "type": [
             "string",
             "null"
             ]
             },
             "modelVersion": {
             "type": [
             "number",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "ssids": {
             "items": {
             "properties": {
             "authType": {
             "type": [
             "string",
             "null"
             ]
             },
             "categories": {
             "items": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "profileName": {
             "type": [
             "string",
             "null"
             ]
             },
             "psk": {
             "type": [
             "string",
             "null"
             ]
             },
             "qosPolicy": {
             "type": [
             "string",
             "null"
             ]
             },
             "ssid": {
             "type": [
             "string",
             "null"
             ]
             },
             "tests": {
             "items": {
             "properties": {
             "config": {
             "items": {},
             "type": [
             "array",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "thirdParty": {
             "properties": {
             "selected": {
             "type": [
             "boolean",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 16
0
 def __init__(self):
     super(JSONSchemaValidator868439Bb4E89A6E4, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "issueDetails": {
             "properties": {
             "issue": {
             "items": {
             "properties": {
             "impactedHosts": {
             "items": {},
             "type": [
             "array",
             "null"
             ]
             },
             "issueCategory": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueDescription": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueEntity": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueEntityValue": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "issueId": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueName": {
             "type": [
             "string",
             "null"
             ]
             },
             "issuePriority": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueSeverity": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueSource": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueSummary": {
             "type": [
             "string",
             "null"
             ]
             },
             "issueTimestamp": {
             "type": [
             "number",
             "null"
             ]
             },
             "suggestedActions": {
             "items": {
             "properties": {
             "message": {
             "type": [
             "string",
             "null"
             ]
             },
             "steps": {
             "items": {},
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 17
0
 def __init__(self):
     super(JSONSchemaValidatorFb757E8FCe4B51FfA0Ba1A8E5Ae4D8C0,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "items": {
             "properties": {
             "groupUuid": {
             "type": "string"
             },
             "inheritedGroupName": {
             "type": "string"
             },
             "inheritedGroupUuid": {
             "type": "string"
             },
             "instanceUuid": {
             "type": "string"
             },
             "ssidDetails": {
             "items": {
             "properties": {
             "authServer": {
             "type": "string"
             },
             "enableBroadcastSSID": {
             "type": "boolean"
             },
             "enableFastLane": {
             "type": "boolean"
             },
             "enableMACFiltering": {
             "type": "boolean"
             },
             "fastTransition": {
             "type": "string"
             },
             "isEnabled": {
             "type": "boolean"
             },
             "isFabric": {
             "type": "boolean"
             },
             "name": {
             "type": "string"
             },
             "passphrase": {
             "type": "string"
             },
             "radioPolicy": {
             "type": "string"
             },
             "securityLevel": {
             "type": "string"
             },
             "trafficType": {
             "type": "string"
             },
             "wlanType": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "version": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorF04B76067507B9384E409E9431Ef3,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "_id": {
             "type": "string"
             },
             "dayZeroConfig": {
             "properties": {
             "config": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "dayZeroConfigPreview": {
             "type": "object"
             },
             "deviceInfo": {
             "properties": {
             "aaaCredentials": {
             "properties": {
             "password": {
             "type": "string"
             },
             "username": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "addedOn": {
             "type": "number"
             },
             "addnMacAddrs": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "agentType": {
             "type": "string"
             },
             "authStatus": {
             "type": "string"
             },
             "authenticatedMicNumber": {
             "type": "string"
             },
             "authenticatedSudiSerialNo": {
             "type": "string"
             },
             "capabilitiesSupported": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "cmState": {
             "type": "string"
             },
             "description":
              {
             "type": "string"
             },
             "deviceSudiSerialNos": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "deviceType": {
             "type": "string"
             },
             "featuresSupported": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "fileSystemList": {
             "items": {
             "properties": {
             "freespace": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "readable": {
             "type": "boolean"
             },
             "size": {
             "type": "number"
             },
             "type": {
             "type": "string"
             },
             "writeable": {
             "type": "boolean"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "firstContact": {
             "type": "number"
             },
             "hostname": {
             "type": "string"
             },
             "httpHeaders": {
             "items": {
             "properties": {
             "key": {
             "type": "string"
             },
             "value": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "imageFile": {
             "type": "string"
             },
             "imageVersion": {
             "type": "string"
             },
             "ipInterfaces": {
             "items": {
             "properties": {
             "ipv4Address": {
             "type": "object"
             },
             "ipv6AddressList": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "macAddress": {
             "type": "string"
             },
             "name": {
             "type": "string"
             },
             "status": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "lastContact": {
             "type": "number"
             },
             "lastSyncTime": {
             "type": "number"
             },
             "lastUpdateOn": {
             "type": "number"
             },
             "location": {
             "properties": {
             "address": {
             "type": "string"
             },
             "altitude": {
             "type": "string"
             },
             "latitude": {
             "type": "string"
             },
             "longitude": {
             "type": "string"
             },
             "siteId": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "macAddress": {
             "type": "string"
             },
             "mode": {
             "type": "string"
             },
             "name": {
             "type": "string"
             },
             "neighborLinks": {
             "items": {
             "properties": {
             "localInterfaceName": {
             "type": "string"
             },
             "localMacAddress": {
             "type": "string"
             },
             "localShortInterfaceName": {
             "type": "string"
             },
             "remoteDeviceName": {
             "type": "string"
             },
             "remoteInterfaceName": {
             "type": "string"
             },
             "remoteMacAddress": {
             "type": "string"
             },
             "remotePlatform": {
             "type": "string"
             },
             "remoteShortInterfaceName": {
             "type": "string"
             },
             "remoteVersion": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "onbState": {
             "type": "string"
             },
             "pid": {
             "type": "string"
             },
             "pnpProfileList": {
             "items": {
             "properties": {
             "createdBy": {
             "type": "string"
             },
             "discoveryCreated": {
             "type": "boolean"
             },
             "primaryEndpoint": {
             "properties": {
             "certificate": {
             "type": "string"
             },
             "fqdn": {
             "type": "string"
             },
             "ipv4Address": {
             "type": "object"
             },
             "ipv6Address": {
             "type": "object"
             },
             "port": {
             "type": "number"
             },
             "protocol": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "profileName": {
             "type": "string"
             },
             "secondaryEndpoint": {
             "properties": {
             "certificate": {
             "type": "string"
             },
             "fqdn": {
             "type": "string"
             },
             "ipv4Address": {
             "type": "object"
             },
             "ipv6Address": {
             "type": "object"
             },
             "port": {
             "type": "number"
             },
             "protocol": {
             "type": "string"
             }
             },
             "type": "object"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "populateInventory": {
             "type": "boolean"
             },
             "preWorkflowCliOuputs": {
             "items": {
             "properties": {
             "cli": {
             "type": "string"
             },
             "cliOutput": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "projectId": {
             "type": "string"
             },
             "projectName": {
             "type": "string"
             },
             "reloadRequested": {
             "type": "boolean"
             },
             "serialNumber": {
             "type": "string"
             },
             "siteId": {
             "type": "string"
             },
             "siteName": {
             "type": "string"
             },
             "smartAccountId": {
             "type": "string"
             },
             "source": {
             "type": "string"
             },
             "stack": {
             "type": "boolean"
             },
             "stackInfo": {
             "properties": {
             "isFullRing": {
             "type": "boolean"
             },
             "stackMemberList": {
             "items": {
             "properties": {
             "hardwareVersion": {
             "type": "string"
             },
             "licenseLevel": {
             "type": "string"
             },
             "licenseType": {
             "type": "string"
             },
             "macAddress": {
             "type": "string"
             },
             "pid": {
             "type": "string"
             },
             "priority": {
             "type": "number"
             },
             "role": {
             "type": "string"
             },
             "serialNumber": {
             "type": "string"
             },
             "softwareVersion": {
             "type": "string"
             },
             "stackNumber": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "sudiSerialNumber": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "stackRingProtocol": {
             "type": "string"
             },
             "supportsStackWorkflows": {
             "type": "boolean"
             },
             "totalMemberCount": {
             "type": "number"
             },
             "validLicenseLevels": {
             "items": {
             "type": "string"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "state": {
             "type": "string"
             },
             "sudiRequired": {
             "type": "boolean"
             },
             "tags": {
             "type": "object"
             },
             "userMicNumbers": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "userSudiSerialNos": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "virtualAccountId": {
             "type": "string"
             },
             "workflowId": {
             "type": "string"
             },
             "workflowName": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "runSummaryList": {
             "items": {
             "properties": {
             "details": {
             "type": "string"
             },
             "errorFlag": {
             "type": "boolean"
             },
             "historyTaskInfo": {
             "properties": {
             "addnDetails": {
             "items": {
             "properties": {
             "key": {
             "type": "string"
             },
             "value": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "name": {
             "type": "string"
             },
             "timeTaken": {
             "type": "number"
             },
             "type": {
             "type": "string"
             },
             "workItemList": {
             "items": {
             "properties": {
             "command": {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "outputStr": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "timeTaken": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "timestamp": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "systemResetWorkflow": {
             "properties": {
             "_id": {
             "type": "string"
             },
             "addToInventory": {
             "type": "boolean"
             },
             "addedOn": {
             "type": "number"
             },
             "configId": {
             "type": "string"
             },
             "currTaskIdx": {
             "type": "number"
             },
             "description":
              {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "execTime": {
             "type": "number"
             },
             "imageId": {
             "type": "string"
             },
             "instanceType": {
             "type": "string"
             },
             "lastupdateOn": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "tasks": {
             "items": {
             "properties": {
             "currWorkItemIdx": {
             "type": "number"
             },
             "endTime": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "taskSeqNo": {
             "type": "number"
             },
             "timeTaken": {
             "type": "number"
             },
             "type": {
             "type": "string"
             },
             "workItemList": {
             "items": {
             "properties": {
             "command": {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "outputStr": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "timeTaken": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "tenantId": {
             "type": "string"
             },
             "type": {
             "type": "string"
             },
             "useState": {
             "type": "string"
             },
             "version": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "systemWorkflow": {
             "properties": {
             "_id": {
             "type": "string"
             },
             "addToInventory": {
             "type": "boolean"
             },
             "addedOn": {
             "type": "number"
             },
             "configId": {
             "type": "string"
             },
             "currTaskIdx": {
             "type": "number"
             },
             "description":
              {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "execTime": {
             "type": "number"
             },
             "imageId": {
             "type": "string"
             },
             "instanceType": {
             "type": "string"
             },
             "lastupdateOn": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "tasks": {
             "items": {
             "properties": {
             "currWorkItemIdx": {
             "type": "number"
             },
             "endTime": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "taskSeqNo": {
             "type": "number"
             },
             "timeTaken": {
             "type": "number"
             },
             "type": {
             "type": "string"
             },
             "workItemList": {
             "items": {
             "properties": {
             "command": {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "outputStr": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "timeTaken": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "tenantId": {
             "type": "string"
             },
             "type": {
             "type": "string"
             },
             "useState": {
             "type": "string"
             },
             "version": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "tenantId": {
             "type": "string"
             },
             "version": {
             "type": "number"
             },
             "workflow": {
             "properties": {
             "_id": {
             "type": "string"
             },
             "addToInventory": {
             "type": "boolean"
             },
             "addedOn": {
             "type": "number"
             },
             "configId": {
             "type": "string"
             },
             "currTaskIdx": {
             "type": "number"
             },
             "description":
              {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "execTime": {
             "type": "number"
             },
             "imageId": {
             "type": "string"
             },
             "instanceType": {
             "type": "string"
             },
             "lastupdateOn": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "tasks": {
             "items": {
             "properties": {
             "currWorkItemIdx": {
             "type": "number"
             },
             "endTime": {
             "type": "number"
             },
             "name": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "taskSeqNo": {
             "type": "number"
             },
             "timeTaken": {
             "type": "number"
             },
             "type": {
             "type": "string"
             },
             "workItemList": {
             "items": {
             "properties": {
             "command": {
             "type": "string"
             },
             "endTime": {
             "type": "number"
             },
             "outputStr": {
             "type": "string"
             },
             "startTime": {
             "type": "number"
             },
             "state": {
             "type": "string"
             },
             "timeTaken": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "tenantId": {
             "type": "string"
             },
             "type": {
             "type": "string"
             },
             "useState": {
             "type": "string"
             },
             "version": {
             "type": "number"
             }
             },
             "type": "object"
             },
             "workflowParameters": {
             "properties": {
             "configList": {
             "items": {
             "properties": {
             "configId": {
             "type": "string"
             },
             "configParameters": {
             "items": {
             "properties": {
             "key": {
             "type": "string"
             },
             "value": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "licenseLevel": {
             "type": "string"
             },
             "licenseType": {
             "type": "string"
             },
             "topOfStackSerialNumber": {
             "type": "string"
             }
             },
             "type": "object"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 19
0
 def __init__(self):
     super(JSONSchemaValidator1E962Af345B8B59F, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "autoSyncPeriod": {
             "type": [
             "number",
             "null"
             ]
             },
             "ccoUser": {
             "description":
             "Cco User",
             "type": [
             "string",
             "null"
             ]
             },
             "expiry": {
             "type": [
             "number",
             "null"
             ]
             },
             "lastSync": {
             "type": [
             "number",
             "null"
             ]
             },
             "profile": {
             "description":
             "Profile",
             "properties": {
             "addressFqdn": {
             "description":
             "Address Fqdn",
             "type": [
             "string",
             "null"
             ]
             },
             "addressIpV4": {
             "description":
             "Address Ip V4",
             "type": [
             "string",
             "null"
             ]
             },
             "cert": {
             "description":
             "Cert",
             "type": [
             "string",
             "null"
             ]
             },
             "makeDefault": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "port": {
             "type": [
             "number",
             "null"
             ]
             },
             "profileId": {
             "description":
             "Profile Id",
             "type": [
             "string",
             "null"
             ]
             },
             "proxy": {
             "type": [
             "boolean",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "smartAccountId": {
             "description":
             "Smart Account Id",
             "type": [
             "string",
             "null"
             ]
             },
             "syncResult": {
             "description":
             "Sync Result",
             "properties": {
             "syncList": {
             "description":
             "Sync List",
             "items": {
             "properties": {
             "deviceSnList": {
             "description":
             "Device Sn List",
             "items": {
             "type": [
             "string",
             "null",
             "object"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "syncType": {
             "description":
             "Sync Type",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "syncMsg": {
             "description":
             "Sync Msg",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "syncResultStr": {
             "description":
             "Sync Result Str",
             "type": [
             "string",
             "null"
             ]
             },
             "syncStartTime": {
             "type": [
             "number",
             "null"
             ]
             },
             "syncStatus": {
             "description":
             "Sync Status",
             "type": [
             "string",
             "null"
             ]
             },
             "tenantId": {
             "description":
             "Tenant Id",
             "type": [
             "string",
             "null"
             ]
             },
             "token": {
             "description":
             "Token",
             "type": [
             "string",
             "null"
             ]
             },
             "virtualAccountId": {
             "description":
             "Virtual Account Id",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 20
0
 def __init__(self):
     super(JSONSchemaValidatorCca519Ba45EbB423, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "items": {
             "properties": {
             "groupUuid": {
             "description":
             "Group Uuid",
             "type": [
             "string",
             "null"
             ]
             },
             "inheritedGroupName": {
             "description":
             "Inherited Group Name",
             "type": [
             "string",
             "null"
             ]
             },
             "inheritedGroupUuid": {
             "description":
             "Inherited Group Uuid",
             "type": [
             "string",
             "null"
             ]
             },
             "instanceUuid": {
             "description":
             "Instance Uuid",
             "type": [
             "string",
             "null"
             ]
             },
             "ssidDetails": {
             "description":
             "SSID Details",
             "items": {
             "properties": {
             "authServer": {
             "description":
             "Auth Server",
             "type": [
             "string",
             "null"
             ]
             },
             "enableBroadcastSSID": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "enableFastLane": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "enableMACFiltering": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "fastTransition": {
             "description":
             "Fast Transition",
             "type": [
             "string",
             "null"
             ]
             },
             "isEnabled": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "isFabric": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "passphrase": {
             "description":
             "Passphrase",
             "type": [
             "string",
             "null"
             ]
             },
             "radioPolicy": {
             "description":
             "Radio Policy",
             "type": [
             "string",
             "null"
             ]
             },
             "securityLevel": {
             "description":
             "Security Level",
             "type": [
             "string",
             "null"
             ]
             },
             "trafficType": {
             "description":
             "Traffic Type",
             "type": [
             "string",
             "null"
             ]
             },
             "wlanType": {
             "description":
             "Wlan Type",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "version": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 21
0
 def __init__(self):
     super(JSONSchemaValidator398668874439A41D, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "items": {
             "properties": {
             "applicationSet": {
             "properties": {
             "idRef": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "networkApplications": {
             "items": {
             "properties": {
             "appProtocol": {
             "type": [
             "string",
             "null"
             ]
             },
             "applicationSubType": {
             "type": [
             "string",
             "null"
             ]
             },
             "applicationType": {
             "type": [
             "string",
             "null"
             ]
             },
             "categoryId": {
             "type": [
             "string",
             "null"
             ]
             },
             "displayName": {
             "type": [
             "string",
             "null"
             ]
             },
             "dscp": {
             "type": [
             "string",
             "null"
             ]
             },
             "engineId": {
             "type": [
             "string",
             "null"
             ]
             },
             "helpString": {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "ignoreConflict": {
             "type": [
             "string",
             "null"
             ]
             },
             "longDescription": {
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "popularity": {
             "type": [
             "string",
             "null"
             ]
             },
             "rank": {
             "type": [
             "string",
             "null"
             ]
             },
             "serverName": {
             "type": [
             "string",
             "null"
             ]
             },
             "trafficClass": {
             "type": [
             "string",
             "null"
             ]
             },
             "url": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "networkIdentity": {
             "items": {
             "properties": {
             "displayName": {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "lowerPort": {
             "type": [
             "string",
             "null"
             ]
             },
             "ports": {
             "type": [
             "string",
             "null"
             ]
             },
             "protocol": {
             "type": [
             "string",
             "null"
             ]
             },
             "upperPort": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": "array"
             }'''.replace("\n" + ' ' * 16, '')
     ))
 def __init__(self):
     super(JSONSchemaValidatorD84253559E9D3E81881A4Bd2Fc, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "response": {
             "items": {
             "properties": {
             "groupName": {
             "type": "string"
             },
             "groupOwner": {
             "type": "string"
             },
             "id": {
             "type": "string"
             },
             "ipPools": {
             "items": {
             "properties": {
             "clientOptions": {
             "type": "object"
             },
             "configureExternalDhcp": {
             "type": "boolean"
             },
             "context": {
             "items": {
             "properties": {
             "contextKey": {
             "type": "string"
             },
             "contextValue": {
             "type": "string"
             },
             "owner": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "createTime": {
             "type": "integer"
             },
             "dhcpServerIps": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "dnsServerIps": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "gateways": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "groupUuid": {
             "type": "string"
             },
             "id": {
             "type": "string"
             },
             "ipPoolCidr": {
             "type": "string"
             },
             "ipPoolName": {
             "type": "string"
             },
             "ipv6": {
             "type": "boolean"
             },
             "lastUpdateTime": {
             "type": "integer"
             },
             "overlapping": {
             "type": "boolean"
             },
             "owner": {
             "type": "string"
             },
             "parentUuid": {
             "type": "string"
             },
             "shared": {
             "type": "boolean"
             },
             "totalIpAddressCount": {
             "type": "integer"
             },
             "usedIpAddressCount": {
             "type": "integer"
             },
             "usedPercentage": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "siteHierarchy": {
             "type": "string"
             },
             "siteId": {
             "type": "string"
             },
             "type": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidator84Ad8B0E42CaB48A, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "response": {
             "items": {
             "properties": {
             "adminStatus": {
             "type": [
             "string",
             "null"
             ]
             },
             "className": {
             "type": [
             "string",
             "null"
             ]
             },
             "description":
              {
             "type": [
             "string",
             "null"
             ]
             },
             "deviceId": {
             "type": [
             "string",
             "null"
             ]
             },
             "duplex": {
             "type": [
             "string",
             "null"
             ]
             },
             "id": {
             "type": [
             "string",
             "null"
             ]
             },
             "ifIndex": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceTenantId": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "interfaceType": {
             "type": [
             "string",
             "null"
             ]
             },
             "ipv4Address": {
             "type": [
             "string",
             "null"
             ]
             },
             "ipv4Mask": {
             "type": [
             "string",
             "null"
             ]
             },
             "isisSupport": {
             "type": [
             "string",
             "null"
             ]
             },
             "lastUpdated": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "macAddress": {
             "type": [
             "string",
             "null"
             ]
             },
             "mappedPhysicalInterfaceId": {
             "type": [
             "string",
             "null"
             ]
             },
             "mappedPhysicalInterfaceName": {
             "type": [
             "string",
             "null"
             ]
             },
             "mediaType": {
             "type": [
             "string",
             "null"
             ]
             },
             "nativeVlanId": {
             "type": [
             "string",
             "null"
             ]
             },
             "ospfSupport": {
             "type": [
             "string",
             "null"
             ]
             },
             "pid": {
             "type": [
             "string",
             "null"
             ]
             },
             "portMode": {
             "type": [
             "string",
             "null"
             ]
             },
             "portName": {
             "type": [
             "string",
             "null"
             ]
             },
             "portType": {
             "type": [
             "string",
             "null"
             ]
             },
             "serialNo": {
             "type": [
             "string",
             "null"
             ]
             },
             "series": {
             "type": [
             "string",
             "null"
             ]
             },
             "speed": {
             "type": [
             "string",
             "null"
             ]
             },
             "status": {
             "type": [
             "string",
             "null"
             ]
             },
             "vlanId": {
             "type": [
             "string",
             "null"
             ]
             },
             "voiceVlan": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "version": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorD7B6Ce5Abd5Dad837E22Ace817A6F0,
           self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "response": {
             "items": {
             "properties": {
             "apManagerInterfaceIp": {
             "type": "string"
             },
             "associatedWlcIp": {
             "type": "string"
             },
             "bootDateTime": {
             "type": "string"
             },
             "collectionInterval": {
             "type": "string"
             },
             "collectionStatus": {
             "type": "string"
             },
             "errorCode": {
             "type": "string"
             },
             "errorDescription": {
             "type": "string"
             },
             "family": {
             "type": "string"
             },
             "hostname": {
             "type": "string"
             },
             "id": {
             "type": "string"
             },
             "instanceTenantId": {
             "type": "string"
             },
             "instanceUuid": {
             "type": "string"
             },
             "interfaceCount": {
             "type": "string"
             },
             "inventoryStatusDetail": {
             "type": "string"
             },
             "lastUpdateTime": {
             "type": "string"
             },
             "lastUpdated": {
             "type": "string"
             },
             "lineCardCount": {
             "type": "string"
             },
             "lineCardId": {
             "type": "string"
             },
             "location": {
             "type": "string"
             },
             "locationName": {
             "type": "string"
             },
             "macAddress": {
             "type": "string"
             },
             "managementIpAddress": {
             "type": "string"
             },
             "memorySize": {
             "type": "string"
             },
             "platformId": {
             "type": "string"
             },
             "reachabilityFailureReason": {
             "type": "string"
             },
             "reachabilityStatus": {
             "type": "string"
             },
             "role": {
             "type": "string"
             },
             "roleSource": {
             "type": "string"
             },
             "serialNumber": {
             "type": "string"
             },
             "series": {
             "type": "string"
             },
             "snmpContact": {
             "type": "string"
             },
             "snmpLocation": {
             "type": "string"
             },
             "softwareType": {
             "type": "string"
             },
             "softwareVersion": {
             "type": "string"
             },
             "tagCount": {
             "type": "string"
             },
             "tunnelUdpPort": {
             "type": "string"
             },
             "type": {
             "type": "string"
             },
             "upTime": {
             "type": "string"
             },
             "waasDeviceMode": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 25
0
 def __init__(self):
     super(JSONSchemaValidator828828F44F28Bd0D, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "callbackUrl": {
             "description":
             "Callback Url",
             "type": [
             "string",
             "null"
             ]
             },
             "provisioning": {
             "description":
             "Provisioning",
             "items": {
             "properties": {
             "device": {
             "description":
             "Device",
             "items": {
             "properties": {
             "customNetworks": {
             "description":
             "Custom Networks",
             "items": {
             "properties": {
             "ipAddressPool": {
             "description":
             "Ip Address Pool",
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "port": {
             "description":
             "Port",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "deviceSerialNumber": {
             "description":
             "Device Serial Number",
             "type": [
             "string",
             "null"
             ]
             },
             "ip": {
             "description":
             "Ip",
             "type": [
             "string",
             "null"
             ]
             },
             "serviceProviders": {
             "description":
             "Service Providers",
             "items": {
             "properties": {
             "serviceProvider": {
             "description":
             "Service Provider",
             "type": [
             "string",
             "null"
             ]
             },
             "wanInterface": {
             "description":
             "Wan Interface",
             "properties": {
             "bandwidth": {
             "description":
             "Bandwidth",
             "type": [
             "string",
             "null"
             ]
             },
             "gateway": {
             "description":
             "Gateway",
             "type": [
             "string",
             "null"
             ]
             },
             "interfaceName": {
             "description":
             "Interface Name",
             "type": [
             "string",
             "null"
             ]
             },
             "ipAddress": {
             "description":
             "Ip Address",
             "type": [
             "string",
             "null"
             ]
             },
             "subnetmask": {
             "description":
             "Subnetmask",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "services": {
             "description":
             "Services",
             "items": {
             "properties": {
             "adminPasswordHash": {
             "description":
             "Admin Password Hash",
             "type": [
             "string",
             "null"
             ]
             },
             "centralManagerIP": {
             "description":
             "Central Manager IP",
             "type": [
             "string",
             "null"
             ]
             },
             "centralRegistrationKey": {
             "description":
             "Central Registration Key",
             "type": [
             "string",
             "null"
             ]
             },
             "commonKey": {
             "description":
             "Common Key",
             "type": [
             "string",
             "null"
             ]
             },
             "mode": {
             "description":
             "Mode",
             "type": [
             "string",
             "null"
             ]
             },
             "systemIp": {
             "description":
             "System Ip",
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "description":
             "Type",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "subPools": {
             "description":
             "Sub Pools",
             "items": {
             "properties": {
             "gateway": {
             "description":
             "Gateway",
             "type": [
             "string",
             "null"
             ]
             },
             "ipSubnet": {
             "description":
             "Ip Subnet",
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "description":
             "Type",
             "enum": [
             "Lan",
             "Management",
             "Service",
             "Wan",
             "Generic",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "tagName": {
             "description":
             "Tag Name",
             "type": [
             "string",
             "null"
             ]
             },
             "vlan": {
             "description":
             "Vlan",
             "items": {
             "properties": {
             "id": {
             "description":
             "Id",
             "type": [
             "string",
             "null"
             ]
             },
             "interfaces": {
             "description":
             "Interfaces",
             "type": [
             "string",
             "null"
             ]
             },
             "network": {
             "description":
             "Network",
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "description":
             "Type",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "networksettings": {
             "description":
             "Networksettings",
             "properties": {
             "ipPool": {
             "description":
             "Ip Pool",
             "properties": {
             "globalPool": {
             "description":
             "Global Pool",
             "properties": {
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "site": {
             "description":
             "Site",
             "properties": {
             "area": {
             "description":
             "Area",
             "properties": {
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "parentName": {
             "description":
             "Parent Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "building": {
             "description":
             "Building",
             "properties": {
             "address": {
             "description":
             "Address",
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "floor": {
             "description":
             "Floor",
             "properties": {
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "parentName": {
             "description":
             "Parent Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "siteProfileName": {
             "description":
             "Site Profile Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "templateParam": {
             "description":
             "Template Param",
             "properties": {
             "asav": {
             "description":
             "Asav",
             "properties": {
             "var1": {
             "description":
             "Var1",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "nfvis": {
             "description":
             "Nfvis",
             "properties": {
             "var1": {
             "description":
             "Var1",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "siteProfile": {
             "description":
             "Site Profile",
             "items": {
             "properties": {
             "customTemplate": {
             "description":
             "Custom Template",
             "items": {
             "properties": {
             "deviceType": {
             "description":
             "Device Type",
             "enum": [
             "NFVIS",
             "ASAv",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "template": {
             "description":
             "Template",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "device": {
             "description":
             "Device",
             "items": {
             "properties": {
             "customNetworks": {
             "description":
             "Custom Networks",
             "items": {
             "properties": {
             "connectionType": {
             "description":
             "Connection Type",
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "networkMode": {
             "description":
             "Network Mode",
             "type": [
             "string",
             "null"
             ]
             },
             "servicesToConnect": {
             "description":
             "Services To Connect",
             "items": {
             "properties": {
             "service": {
             "description":
             "Service",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "vlan": {
             "description":
             "Vlan",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "customServices": {
             "description":
             "Custom Services",
             "items": {
             "properties": {
             "applicationType": {
             "description":
             "Application Type",
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "description":
             "Name",
             "type": [
             "string",
             "null"
             ]
             },
             "profile": {
             "description":
             "Profile",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "deviceType": {
             "description":
             "Device Type",
             "enum": [
             "ENCS5100",
             "ENCS5400",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "dia": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "serviceProviders": {
             "description":
             "Service Providers",
             "items": {
             "properties": {
             "connect": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "defaultGateway": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "linkType": {
             "description":
             "Link Type",
             "enum": [
             "GigabitEthernet",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "serviceProvider": {
             "description":
             "Service Provider",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "services": {
             "description":
             "Services",
             "items": {
             "properties": {
             "mode": {
             "description":
             "Mode",
             "type": [
             "string",
             "null"
             ]
             },
             "profile": {
             "description":
             "Profile",
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "description":
             "Type",
             "enum": [
             "isr",
             "vedge",
             "waas",
             "asa",
             "ngfw",
             "paloalto",
             "fortinet",
             "checkpoint",
             "riverbed",
             "silverpeak",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "tagName": {
             "description":
             "Tag Name",
             "type": [
             "string",
             "null"
             ]
             },
             "vlan": {
             "description":
             "Vlan",
             "items": {
             "properties": {
             "id": {
             "description":
             "Id",
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "description":
             "Type",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "siteProfileName": {
             "description":
             "Site Profile Name",
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
 def __init__(self):
     super(JSONSchemaValidatorC7E9C39880735E7684291Bc5Dc3Ba994, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "response": {
             "properties": {
             "id": {
             "type": "string"
             },
             "links": {
             "items": {
             "properties": {
             "additionalInfo": {
             "type": "object"
             },
             "endPortID": {
             "type": "string"
             },
             "endPortIpv4Address": {
             "type": "string"
             },
             "endPortIpv4Mask": {
             "type": "string"
             },
             "endPortName": {
             "type": "string"
             },
             "endPortSpeed": {
             "type": "string"
             },
             "greyOut": {
             "type": "boolean"
             },
             "id": {
             "type": "string"
             },
             "linkStatus": {
             "type": "string"
             },
             "source": {
             "type": "string"
             },
             "startPortID": {
             "type": "string"
             },
             "startPortIpv4Address": {
             "type": "string"
             },
             "startPortIpv4Mask": {
             "type": "string"
             },
             "startPortName": {
             "type": "string"
             },
             "startPortSpeed": {
             "type": "string"
             },
             "tag": {
             "type": "string"
             },
             "target": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "nodes": {
             "items": {
             "properties": {
             "aclApplied": {
             "type": "boolean"
             },
             "additionalInfo": {
             "type": "object"
             },
             "customParam": {
             "properties": {
             "id": {
             "type": "string"
             },
             "label": {
             "type": "string"
             },
             "parentNodeId": {
             "type": "string"
             },
             "x": {
             "type": "integer"
             },
             "y": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "dataPathId": {
             "type": "string"
             },
             "deviceType": {
             "type": "string"
             },
             "family": {
             "type": "string"
             },
             "fixed": {
             "type": "boolean"
             },
             "greyOut": {
             "type": "boolean"
             },
             "id": {
             "type": "string"
             },
             "ip": {
             "type": "string"
             },
             "label": {
             "type": "string"
             },
             "networkType": {
             "type": "string"
             },
             "nodeType": {
             "type": "string"
             },
             "order": {
             "type": "integer"
             },
             "osType": {
             "type": "string"
             },
             "platformId": {
             "type": "string"
             },
             "role": {
             "type": "string"
             },
             "roleSource": {
             "type": "string"
             },
             "softwareVersion": {
             "type": "string"
             },
             "tags": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "upperNode": {
             "type": "string"
             },
             "userId": {
             "type": "string"
             },
             "vlanId": {
             "type": "string"
             },
             "x": {
             "type": "integer"
             },
             "y": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')
     ))
Exemplo n.º 27
0
 def __init__(self):
     super(JSONSchemaValidator1Eb72Ad34E098990, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "properties": {
             "enableFabric": {
             "type": [
             "boolean"
             ]
             },
             "flexConnect": {
             "properties": {
             "enableFlexConnect": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "localToVlan": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "managedAPLocations": {
             "items": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": [
             "array"
             ]
             },
             "ssidDetails": {
             "properties": {
             "enableBroadcastSSID": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "enableFastLane": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "enableMACFiltering": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "fastTransition": {
             "enum": [
             "Adaptive",
             "Enable",
             "Disable",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "name": {
             "type": [
             "string",
             "null"
             ]
             },
             "passphrase": {
             "type": [
             "string",
             "null"
             ]
             },
             "radioPolicy": {
             "enum": [
             "Dual band operation (2.4GHz and 5GHz)",
             "Dual band operation with band select",
             "5GHz only",
             "2.4GHz only",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "securityLevel": {
             "enum": [
             "WPA2_ENTERPRISE",
             "WPA2_PERSONAL",
             "OPEN",
             "WEB_AUTH",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "trafficType": {
             "enum": [
             "data",
             "voicedata",
             null
             ],
             "type": [
             "string",
             "null"
             ]
             },
             "webAuthURL": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": [
             "object"
             ]
             },
             "ssidType": {
             "enum": [
             "Guest",
             "Enterprise",
             null
             ],
             "type": [
             "string"
             ]
             }
             },
             "required": [
             "managedAPLocations",
             "ssidDetails",
             "ssidType",
             "enableFabric"
             ],
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')
     ))
 def __init__(self):
     super(JSONSchemaValidator38B7Eb13449B9471, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "response": {
             "items": {
             "properties": {
             "groupUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "inheritedGroupName": {
             "type": [
             "string",
             "null"
             ]
             },
             "inheritedGroupUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceType": {
             "type": [
             "string",
             "null"
             ]
             },
             "instanceUuid": {
             "type": [
             "string",
             "null"
             ]
             },
             "key": {
             "type": [
             "string",
             "null"
             ]
             },
             "namespace": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": {
             "type": [
             "string",
             "null"
             ]
             },
             "value": {
             "items": {
             "properties": {
             "configureDnacIP": {
             "type": [
             "boolean",
             "null"
             ]
             },
             "ipAddresses": {
             "items": {
             "type": [
             "string",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "version": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             },
             "type": [
             "array",
             "null"
             ]
             },
             "version": {
             "type": [
             "string",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 29
0
 def __init__(self):
     super(JSONSchemaValidatorC37A46857F0Bee5Eba0A514091C, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "response": {
             "items": {
             "properties": {
             "cfsChangeInfo": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "createTime": {
             "type": "integer"
             },
             "customProvisions": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "deployed": {
             "type": "boolean"
             },
             "displayName": {
             "type": "string"
             },
             "excludedInterfaces": {
             "items": {
             "type": "string"
             },
             "type": "array"
             },
             "id": {
             "type": "string"
             },
             "instanceCreatedOn": {
             "type": "integer"
             },
             "instanceId": {
             "type": "integer"
             },
             "instanceUpdatedOn": {
             "type": "integer"
             },
             "instanceVersion": {
             "type": "integer"
             },
             "isExcluded": {
             "type": "boolean"
             },
             "isSeeded": {
             "type": "boolean"
             },
             "isStale": {
             "type": "boolean"
             },
             "lastUpdateTime": {
             "type": "integer"
             },
             "name": {
             "type": "string"
             },
             "namespace": {
             "type": "string"
             },
             "networkDeviceId": {
             "type": "string"
             },
             "provisioningState": {
             "enum": [
             "UNKNOWN",
             "DEFINED",
             "DEPLOYED",
             "FAILED",
             "VERIFIED",
             "DEPLOYING",
             "SUBMITTED",
             "PREPROCESSED",
             "VALIDATED"
             ],
             "type": "string"
             },
             "qosDeviceInterfaceInfo": {
             "items": {
             "properties": {
             "displayName": {
             "type": "string"
             },
             "dmvpnRemoteSitesBw": {
             "items": {
             "type": "integer"
             },
             "type": "array"
             },
             "downloadBW": {
             "type": "number"
             },
             "id": {
             "type": "string"
             },
             "instanceCreatedOn": {
             "type": "integer"
             },
             "instanceId": {
             "type": "integer"
             },
             "instanceUpdatedOn": {
             "type": "integer"
             },
             "instanceVersion": {
             "type": "number"
             },
             "interfaceId": {
             "type": "string"
             },
             "interfaceName": {
             "type": "string"
             },
             "label": {
             "type": "string"
             },
             "role": {
             "enum": [
             "WAN",
             "DMVPN_HUB",
             "DMVPN_SPOKE"
             ],
             "type": "string"
             },
             "uploadBW": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "qualifier": {
             "type": "string"
             },
             "resourceVersion": {
             "type": "integer"
             },
             "targetIdList": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "type": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))
Exemplo n.º 30
0
 def __init__(self):
     super(JSONSchemaValidatorA352F6280E445075B3Ea7Cbf868C2D94, self).__init__()
     self._validator = fastjsonschema.compile(json.loads(
         '''{
             "$schema": "http://json-schema.org/draft-04/schema#",
             "properties": {
             "response": {
             "properties": {
             "_id": {
             "type": "string"
             },
             "apCoverage": {
             "items": {
             "properties": {
             "bands": {
             "type": "string"
             },
             "numberOfApsToTest": {
             "type": "integer"
             },
             "rssiThreshold": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "connection": {
             "type": "string"
             },
             "encryptionMode": {
             "type": "string"
             },
             "frequency": {
             "type": "object"
             },
             "lastModifiedTime": {
             "type": "number"
             },
             "legacyTestSuite": {
             "type": "boolean"
             },
             "location": {
             "type": "object"
             },
             "locationInfoList": {
             "items": {
             "properties": {
             "allSensors": {
             "type": "boolean"
             },
             "locationId": {
             "type": "string"
             },
             "locationType": {
             "type": "string"
             },
             "macAddressList": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "siteHierarchy": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "modelVersion": {
             "type": "integer"
             },
             "name": {
             "type": "string"
             },
             "numAssociatedSensor": {
             "type": "number"
             },
             "numNeighborAPThreshold": {
             "type": "integer"
             },
             "radioAsSensorRemoved": {
             "type": "boolean"
             },
             "rssiThreshold": {
             "type": "integer"
             },
             "runNow": {
             "type": "string"
             },
             "schedule": {
             "properties": {
             "frequency": {
             "properties": {
             "unit": {
             "type": "string"
             },
             "value": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "scheduleRange": {
             "items": {
             "properties": {
             "day": {
             "type": "string"
             },
             "timeRange": {
             "items": {
             "properties": {
             "frequency": {
             "properties": {
             "unit": {
             "type": "string"
             },
             "value": {
             "type": "integer"
             }
             },
             "type": "object"
             },
             "from": {
             "type": "string"
             },
             "to": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "startTime": {
             "type": "number"
             },
             "testScheduleMode": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "scheduleInDays": {
             "type": "number"
             },
             "sensors": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "showWlcUpgradeBanner": {
             "type": "boolean"
             },
             "siteHierarchy": {
             "type": "object"
             },
             "ssids": {
             "items": {
             "properties": {
             "authProtocol": {
             "type": "object"
             },
             "authType": {
             "type": "string"
             },
             "authTypeRcvd": {
             "type": "object"
             },
             "bands": {
             "type": "object"
             },
             "certdownloadurl": {
             "type": "object"
             },
             "certfilename": {
             "type": "object"
             },
             "certpassphrase": {
             "type": "object"
             },
             "certstatus": {
             "type": "string"
             },
             "certxferprotocol": {
             "type": "string"
             },
             "eapMethod": {
             "type": "object"
             },
             "extWebAuth": {
             "type": "boolean"
             },
             "extWebAuthAccessUrl": {
             "type": "object"
             },
             "extWebAuthHtmlTag": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "extWebAuthPortal": {
             "type": "object"
             },
             "extWebAuthVirtualIp": {
             "type": "object"
             },
             "id": {
             "type": "number"
             },
             "layer3webAuthEmailAddress": {
             "type": "object"
             },
             "layer3webAuthpassword": {
             "type": "object"
             },
             "layer3webAuthsecurity": {
             "type": "object"
             },
             "layer3webAuthuserName": {
             "type": "object"
             },
             "numAps": {
             "type": "number"
             },
             "numSensors": {
             "type": "number"
             },
             "password": {
             "type": "object"
             },
             "profileName": {
             "type": "string"
             },
             "psk": {
             "type": "string"
             },
             "qosPolicy": {
             "type": "string"
             },
             "scep": {
             "type": "boolean"
             },
             "ssid": {
             "type": "string"
             },
             "status": {
             "type": "string"
             },
             "tests": {
             "items": {
             "properties": {
             "config": {
             "items": {
             "type": "object"
             },
             "type": "array"
             },
             "name": {
             "type": "string"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "thirdParty": {
             "properties": {
             "selected": {
             "type": "boolean"
             }
             },
             "type": "object"
             },
             "username": {
             "type": "object"
             },
             "validFrom": {
             "type": "number"
             },
             "validTo": {
             "type": "number"
             },
             "whiteList": {
             "type": "boolean"
             },
             "wlanId": {
             "type": "number"
             },
             "wlc": {
             "type": "object"
             }
             },
             "type": "object"
             },
             "type": "array"
             },
             "startTime": {
             "type": "number"
             },
             "status": {
             "type": "string"
             },
             "tenantId": {
             "type": "object"
             },
             "testDurationEstimate": {
             "type": "integer"
             },
             "testScheduleMode": {
             "type": "string"
             },
             "testTemplate": {
             "type": "boolean"
             },
             "tests": {
             "type": "object"
             },
             "version": {
             "type": "number"
             },
             "wlans": {
             "items": {
             "type": "object"
             },
             "type": "array"
             }
             },
             "type": "object"
             },
             "version": {
             "type": "string"
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')
     ))
Exemplo n.º 31
0
 def response(self):
     return fastjsonschema.compile(schemas.index.response)
 def __init__(self):
     super(JSONSchemaValidator89B2Fb144F5BB09B, self).__init__()
     self._validator = fastjsonschema.compile(
         json.loads('''{
             "properties": {
             "response": {
             "properties": {
             "HALastResetReason": {
             "type": [
             "string",
             "null"
             ]
             },
             "HAPrimaryPowerStatus": {
             "type": [
             "string",
             "null"
             ]
             },
             "HASecondaryPowerStatus": {
             "type": [
             "string",
             "null"
             ]
             },
             "airQuality": {
             "type": [
             "string",
             "null"
             ]
             },
             "airQualityScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "clientCount": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "collectionStatus": {
             "type": [
             "string",
             "null"
             ]
             },
             "communicationState": {
             "type": [
             "string",
             "null"
             ]
             },
             "cpu": {
             "type": [
             "string",
             "null"
             ]
             },
             "cpuScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "deviceSeries": {
             "type": [
             "string",
             "null"
             ]
             },
             "freeMbuf": {
             "type": [
             "string",
             "null"
             ]
             },
             "freeMbufScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "freeTimer": {
             "type": [
             "string",
             "null"
             ]
             },
             "freeTimerScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "interference": {
             "type": [
             "string",
             "null"
             ]
             },
             "interferenceScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "location": {
             "type": [
             "string",
             "null"
             ]
             },
             "macAddress": {
             "type": [
             "string",
             "null"
             ]
             },
             "managementIpAddr": {
             "type": [
             "string",
             "null"
             ]
             },
             "memory": {
             "type": [
             "string",
             "null"
             ]
             },
             "memoryScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "noise": {
             "type": [
             "string",
             "null"
             ]
             },
             "noiseScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "nwDeviceFamily": {
             "type": [
             "string",
             "null"
             ]
             },
             "nwDeviceId": {
             "type": [
             "string",
             "null"
             ]
             },
             "nwDeviceName": {
             "type": [
             "string",
             "null"
             ]
             },
             "nwDeviceRole": {
             "type": [
             "string",
             "null"
             ]
             },
             "nwDeviceType": {
             "type": [
             "string",
             "null"
             ]
             },
             "osType": {
             "type": [
             "string",
             "null"
             ]
             },
             "overallHealth": {
             "type": [
             "number",
             "null"
             ]
             },
             "packetPool": {
             "type": [
             "string",
             "null"
             ]
             },
             "packetPoolScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "platformId": {
             "type": [
             "string",
             "null"
             ]
             },
             "redundancyMode": {
             "type": [
             "string",
             "null"
             ]
             },
             "redundancyPeerState": {
             "type": [
             "string",
             "null"
             ]
             },
             "redundancyState": {
             "type": [
             "string",
             "null"
             ]
             },
             "redundancyUnit": {
             "type": [
             "string",
             "null"
             ]
             },
             "softwareVersion": {
             "type": [
             "string",
             "null"
             ]
             },
             "timestamp": {
             "type": [
             "string",
             "null",
             "number"
             ]
             },
             "utilization": {
             "type": [
             "string",
             "null"
             ]
             },
             "utilizationScore": {
             "type": [
             "number",
             "null"
             ]
             },
             "wqe": {
             "type": [
             "string",
             "null"
             ]
             },
             "wqeScore": {
             "type": [
             "number",
             "null"
             ]
             }
             },
             "type": [
             "object",
             "null"
             ]
             }
             },
             "type": "object"
             }'''.replace("\n" + ' ' * 16, '')))