Files
deb-python-dcos/cli/dcoscli/data/config-schema/core.json
2015-08-18 10:21:03 -07:00

49 lines
1.6 KiB
JSON

{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"email": {
"type": "string",
"title": "Your email address",
"description": "Your email address"
},
"dcos_url": {
"type": "string",
"pattern": "^(?:(?:https?)://)(([^:])+(:[^:]+)?@){0,1}(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.?)+(?:[a-zA-Z]{2,6}\\.?|[a-zA-Z0-9-]{2,}\\.?)?|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$",
"title": "DCOS URL",
"description": "The URL to the location of the DCOS"
},
"refresh_token": {
"type": "string",
"title": "Your OAuth refresh token",
"description": "Your OAuth refresh token"
},
"reporting": {
"type": "boolean",
"title": "Usage Reporting",
"description": "Whether to report usage events to Mesosphere",
"default": true
},
"token": {
"type": "string",
"title": "Your OAuth access token",
"description": "Your OAuth access token"
},
"mesos_master_url": {
"type": "string",
"pattern": "^(?:(?:https?)://)(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.?)+(?:[a-zA-Z]{2,6}\\.?|[a-zA-Z0-9-]{2,}\\.?)?|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$",
"title": "Mesos Master URL",
"description":
"Mesos Master URL. Must be of the format: \"http://host:port\""
},
"timeout": {
"type": "integer",
"default": 5,
"minimum": 1,
"title": "Request timeout in seconds",
"description": "Request timeout in seconds"
}
},
"additionalProperties": false
}