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