Skip to content

Commit 8017a09

Browse files
committed
Add 'Resource' definition in common types
1 parent e0624d2 commit 8017a09

File tree

1 file changed

+14
-4
lines changed
  • specification/securityinsights/resource-manager/common/1.0

1 file changed

+14
-4
lines changed

specification/securityinsights/resource-manager/common/1.0/types.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,21 @@
3636
"x-ms-external": true
3737
},
3838
"ResourceWithEtag": {
39+
"allOf": [
40+
{
41+
"$ref": "#/definitions/Resource"
42+
}
43+
],
3944
"description": "An azure resource object with an Etag property",
45+
"properties": {
46+
"etag": {
47+
"description": "Etag of the azure resource",
48+
"type": "string"
49+
}
50+
}
51+
},
52+
"Resource": {
53+
"description": "An azure resource object",
4054
"properties": {
4155
"id": {
4256
"description": "Azure resource Id",
@@ -53,10 +67,6 @@
5367
"readOnly": true,
5468
"type": "string"
5569
},
56-
"etag": {
57-
"description": "Etag of the azure resource",
58-
"type": "string"
59-
},
6070
"systemData": {
6171
"readOnly": true,
6272
"type": "object",

0 commit comments

Comments
 (0)