Merge "Use external service address and ports in sanity-check-for-v2.sh."
[multicloud/k8s.git] / src / orchestrator / json-schemas / deployment-intent.json
1 {
2         "$schema": "http://json-schema.org/schema#",
3         "type": "object",
4         "properties": {
5           "spec": {
6       "required": [
7         "intent"
8       ],
9       "type": "object",
10       "description": "IntentSpecData has Intent",
11       "properties": {
12         "intent": {
13         "additionalProperties": {
14           "type": "string",
15           "maxLength": 128
16         },
17         "type": "object",
18         "example": {
19           "generic-placement-intent": "gpi-name"
20         }
21         }
22       }
23           },
24           "metadata": {
25                 "required": ["name"],
26         "properties": {
27           "userData2": {
28             "description": "User relevant data for the resource",
29             "type": "string",
30             "example": "Some more data",
31             "maxLength": 512
32           },
33           "userData1": {
34             "description": "User relevant data for the resource",
35             "type": "string",
36             "example": "Some data",
37             "maxLength": 512
38           },
39           "name": {
40             "description": "Name of the resource",
41             "type": "string",
42             "example": "ResName",
43             "maxLength": 128,
44             "pattern": "[-_0-9a-zA-Z]+$"
45           },
46           "description": {
47             "description": "Description for the resource",
48             "type": "string",
49             "example": "Resource description",
50             "maxLength": 1024
51           }
52         }
53           }
54         }
55 }