/
property-values.json
231 lines (231 loc) 路 8.38 KB
/
property-values.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/pulumi/pulumi/blob/master/sdk/go/common/apitype/property-values.json",
"$anchor": "property_value",
"title": "Pulumi Property Value",
"description": "A schema for Pulumi Property values.",
"oneOf": [
{
"title": "Primitive property values",
"type": ["null", "boolean", "number", "string"],
"not": { "$ref": "#unknown_value" }
},
{
"$anchor": "unknown_value",
"title": "Unknown property values",
"const": "04da6b54-80e4-46f7-96ec-b56ff0331ba9"
},
{
"title": "Array property values",
"type": "array",
"items": {
"$ref": "#property_value"
}
},
{
"title": "Object property values",
"type": "object",
"additionalProperties": {
"$ref": "#property_value"
},
"$comment": "The properties map below prevents the object schema from matching special objects",
"properties": {
"4dabf18193072939515e22adb298388d": false
}
},
{
"$anchor": "asset_value",
"title": "Asset property values",
"type": "object",
"properties": {
"4dabf18193072939515e22adb298388d": {
"description": "Asset signature",
"const": "c44067f5952c0a294b673a41bacd8c17"
},
"hash": {
"description": "The SHA256 hash of the asset's contents.",
"type": "string"
}
},
"required": ["4dabf18193072939515e22adb298388d"],
"oneOf": [
{
"title": "Hash-only Asset",
"properties": {
"text": false,
"path": false,
"uri": false
},
"required": ["hash"]
},
{
"title": "Literal Asset",
"properties": {
"text": {
"description": "The literal contents of the asset.",
"type": "string"
},
"path": false,
"uri": false
},
"required": ["text"]
},
{
"title": "Local File Asset",
"properties": {
"path": {
"description": "The path to a local file that contains the asset's contents.",
"type": "string"
},
"text": false,
"uri": false
},
"required": ["path"]
},
{
"title": "URI File Asset",
"properties": {
"uri": {
"description": "The URI of a file that contains the asset's contents.",
"type": "string",
"format": "uri"
},
"text": false,
"path": false
},
"required": ["uri"]
}
]
},
{
"$anchor": "archive_value",
"title": "Archive property values",
"type": "object",
"properties": {
"4dabf18193072939515e22adb298388d": {
"description": "Archive signature",
"const": "0def7320c3a5731c473e5ecbe6d01bc7"
},
"hash": {
"description": "The SHA256 hash of the archive's contents.",
"type": "string"
}
},
"required": ["4dabf18193072939515e22adb298388d"],
"oneOf": [
{
"title": "Hash-only Archive",
"properties": {
"assets": false,
"path": false,
"uri": false
},
"required": ["hash"]
},
{
"title": "Literal Archive",
"properties": {
"assets": {
"description": "The literal contents of the archive.",
"type": "object",
"additionalProperties": {
"oneOf": [
{ "$ref": "#asset_value" },
{ "$ref": "#archive_value" }
]
}
},
"path": false,
"uri": false
},
"required": ["assets"]
},
{
"title": "Local File Archive",
"properties": {
"path": {
"description": "The path to a local file that contains the archive's contents.",
"type": "string"
},
"assets": false,
"uri": false
},
"required": ["path"]
},
{
"title": "URI File Archive",
"properties": {
"uri": {
"description": "The URI of a file that contains the archive's contents.",
"type": "string",
"format": "uri"
},
"assets": false,
"path": false
},
"required": ["uri"]
}
]
},
{
"title": "Secret Property Values",
"type": "object",
"properties": {
"4dabf18193072939515e22adb298388d": {
"description": "Secret signature",
"const": "1b47061264138c4ac30d75fd1eb44270"
}
},
"required": ["4dabf18193072939515e22adb298388d"],
"oneOf": [
{
"title": "Encrypted Secret",
"type": "object",
"properties": {
"ciphertext": {
"description": "The encrypted, JSON-serialized property value",
"type": "string"
},
"plaintext": false
},
"required": ["ciphertext"]
},
{
"title": "Decrypted Secret",
"type": "object",
"properties": {
"plaintext": {
"description": "The decrypted, JSON-serialized property value",
"type": "string"
},
"ciphertext": false
},
"required": ["plaintext"]
}
]
},
{
"title": "Resource reference property values",
"type": "object",
"properties": {
"4dabf18193072939515e22adb298388d": {
"description": "Resource reference signature",
"const": "5cf8f73096256a8f31e491e813e4eb8e"
},
"packageVersion": {
"description": "The package version of the referenced resource.",
"type": "string"
},
"urn": {
"description": "The URN of the referenced resource.",
"type": "string"
},
"id": {
"description": "The ID of the referenced resource.",
"type": "string"
}
},
"required": ["4dabf18193072939515e22adb298388d", "urn"]
}
]
}