Skip to content

Commit 3970177

Browse files
Update Resources.json (#16996)
* Update Resources.json * Specify additionalProperties type
1 parent b039e63 commit 3970177

File tree

1 file changed

+96
-26
lines changed
  • specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01

1 file changed

+96
-26
lines changed

specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json

Lines changed: 96 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,22 @@
4141
},
4242
"authorization": {
4343
"description": "The requested authorization for the operation.",
44-
"type": "string"
44+
"$ref": "#/definitions/ResourceAuthorization"
4545
},
4646
"claims": {
4747
"description": "The properties of the claims.",
48-
"type": "string"
48+
"type": "object",
49+
"additionalProperties": {
50+
"type": "string"
51+
}
4952
},
5053
"correlationId": {
5154
"description": "An operation ID used for troubleshooting.",
5255
"type": "string"
5356
},
5457
"httpRequest": {
5558
"description": "The details of the operation.",
56-
"type": "string"
59+
"$ref": "#/definitions/ResourceHttpRequest"
5760
}
5861
}
5962
},
@@ -91,19 +94,22 @@
9194
},
9295
"authorization": {
9396
"description": "The requested authorization for the operation.",
94-
"type": "string"
97+
"$ref": "#/definitions/ResourceAuthorization"
9598
},
9699
"claims": {
97100
"description": "The properties of the claims.",
98-
"type": "string"
101+
"type": "object",
102+
"additionalProperties": {
103+
"type": "string"
104+
}
99105
},
100106
"correlationId": {
101107
"description": "An operation ID used for troubleshooting.",
102108
"type": "string"
103109
},
104110
"httpRequest": {
105111
"description": "The details of the operation.",
106-
"type": "string"
112+
"$ref": "#/definitions/ResourceHttpRequest"
107113
}
108114
}
109115
},
@@ -141,19 +147,22 @@
141147
},
142148
"authorization": {
143149
"description": "The requested authorization for the operation.",
144-
"type": "string"
150+
"$ref": "#/definitions/ResourceAuthorization"
145151
},
146152
"claims": {
147153
"description": "The properties of the claims.",
148-
"type": "string"
154+
"type": "object",
155+
"additionalProperties": {
156+
"type": "string"
157+
}
149158
},
150159
"correlationId": {
151160
"description": "An operation ID used for troubleshooting.",
152161
"type": "string"
153162
},
154163
"httpRequest": {
155164
"description": "The details of the operation.",
156-
"type": "string"
165+
"$ref": "#/definitions/ResourceHttpRequest"
157166
}
158167
}
159168
},
@@ -191,19 +200,22 @@
191200
},
192201
"authorization": {
193202
"description": "The requested authorization for the operation.",
194-
"type": "string"
203+
"$ref": "#/definitions/ResourceAuthorization"
195204
},
196205
"claims": {
197206
"description": "The properties of the claims.",
198-
"type": "string"
207+
"type": "object",
208+
"additionalProperties": {
209+
"type": "string"
210+
}
199211
},
200212
"correlationId": {
201213
"description": "An operation ID used for troubleshooting.",
202214
"type": "string"
203215
},
204216
"httpRequest": {
205217
"description": "The details of the operation.",
206-
"type": "string"
218+
"$ref": "#/definitions/ResourceHttpRequest"
207219
}
208220
}
209221
},
@@ -241,19 +253,22 @@
241253
},
242254
"authorization": {
243255
"description": "The requested authorization for the operation.",
244-
"type": "string"
256+
"$ref": "#/definitions/ResourceAuthorization"
245257
},
246258
"claims": {
247259
"description": "The properties of the claims.",
248-
"type": "string"
260+
"type": "object",
261+
"additionalProperties": {
262+
"type": "string"
263+
}
249264
},
250265
"correlationId": {
251266
"description": "An operation ID used for troubleshooting.",
252267
"type": "string"
253268
},
254269
"httpRequest": {
255270
"description": "The details of the operation.",
256-
"type": "string"
271+
"$ref": "#/definitions/ResourceHttpRequest"
257272
}
258273
}
259274
},
@@ -291,19 +306,22 @@
291306
},
292307
"authorization": {
293308
"description": "The requested authorization for the operation.",
294-
"type": "string"
309+
"$ref": "#/definitions/ResourceAuthorization"
295310
},
296311
"claims": {
297312
"description": "The properties of the claims.",
298-
"type": "string"
313+
"type": "object",
314+
"additionalProperties": {
315+
"type": "string"
316+
}
299317
},
300318
"correlationId": {
301319
"description": "An operation ID used for troubleshooting.",
302320
"type": "string"
303321
},
304322
"httpRequest": {
305323
"description": "The details of the operation.",
306-
"type": "string"
324+
"$ref": "#/definitions/ResourceHttpRequest"
307325
}
308326
}
309327
},
@@ -341,19 +359,22 @@
341359
},
342360
"authorization": {
343361
"description": "The requested authorization for the operation.",
344-
"type": "string"
362+
"$ref": "#/definitions/ResourceAuthorization"
345363
},
346364
"claims": {
347365
"description": "The properties of the claims.",
348-
"type": "string"
366+
"type": "object",
367+
"additionalProperties": {
368+
"type": "string"
369+
}
349370
},
350371
"correlationId": {
351372
"description": "An operation ID used for troubleshooting.",
352373
"type": "string"
353374
},
354375
"httpRequest": {
355376
"description": "The details of the operation.",
356-
"type": "string"
377+
"$ref": "#/definitions/ResourceHttpRequest"
357378
}
358379
}
359380
},
@@ -391,19 +412,22 @@
391412
},
392413
"authorization": {
393414
"description": "The requested authorization for the operation.",
394-
"type": "string"
415+
"$ref": "#/definitions/ResourceAuthorization"
395416
},
396417
"claims": {
397418
"description": "The properties of the claims.",
398-
"type": "string"
419+
"type": "object",
420+
"additionalProperties": {
421+
"type": "string"
422+
}
399423
},
400424
"correlationId": {
401425
"description": "An operation ID used for troubleshooting.",
402426
"type": "string"
403427
},
404428
"httpRequest": {
405429
"description": "The details of the operation.",
406-
"type": "string"
430+
"$ref": "#/definitions/ResourceHttpRequest"
407431
}
408432
}
409433
},
@@ -441,19 +465,65 @@
441465
},
442466
"authorization": {
443467
"description": "The requested authorization for the operation.",
444-
"type": "string"
468+
"$ref": "#/definitions/ResourceAuthorization"
445469
},
446470
"claims": {
447471
"description": "The properties of the claims.",
448-
"type": "string"
472+
"type": "object",
473+
"additionalProperties": {
474+
"type": "string"
475+
}
449476
},
450477
"correlationId": {
451478
"description": "An operation ID used for troubleshooting.",
452479
"type": "string"
453480
},
454481
"httpRequest": {
455482
"description": "The details of the operation.",
483+
"$ref": "#/definitions/ResourceHttpRequest"
484+
}
485+
}
486+
},
487+
"ResourceHttpRequest": {
488+
"description": "The details of the HTTP request.",
489+
"type": "object",
490+
"properties": {
491+
"clientRequestId": {
492+
"description": "The client request ID.",
493+
"type": "string"
494+
},
495+
"clientIpAddress": {
496+
"description": "The client IP address.",
497+
"type": "string"
498+
},
499+
"method": {
500+
"description": "The request method.",
456501
"type": "string"
502+
},
503+
"url": {
504+
"description": "The url used in the request.",
505+
"type": "string"
506+
}
507+
}
508+
},
509+
"ResourceAuthorization": {
510+
"description": "The details of the authorization for the resource.",
511+
"type": "object",
512+
"properties": {
513+
"scope": {
514+
"description": "The scope of the authorization.",
515+
"type": "string"
516+
},
517+
"action": {
518+
"description": "The action being requested.",
519+
"type": "string"
520+
},
521+
"evidence": {
522+
"description": "The evidence for the authorization.",
523+
"type": "object",
524+
"additionalProperties": {
525+
"type": "string"
526+
}
457527
}
458528
}
459529
}

0 commit comments

Comments
 (0)