Skip to content

Commit c62ce63

Browse files
swatikaswatikanaujia
and
swatikanaujia
authored
Update device discriminator model (#4639)
* Update device discriminator model * Fix lint error. Co-authored-by: swatikanaujia <[email protected]>
1 parent cab3516 commit c62ce63

File tree

2 files changed

+38
-10
lines changed
  • specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork

2 files changed

+38
-10
lines changed

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/device.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,25 @@
391391
],
392392
"description": "Device resource."
393393
},
394+
"AzureStackEdgeFormat": {
395+
"description": "The reference to the Azure stack edge device.",
396+
"required": [
397+
"azureStackEdge"
398+
],
399+
"x-ms-discriminator-value": "AzureStackEdge",
400+
"type": "object",
401+
"allOf": [
402+
{
403+
"$ref": "#/definitions/DevicePropertiesFormat"
404+
}
405+
],
406+
"properties": {
407+
"azureStackEdge": {
408+
"$ref": "./common.json#/definitions/SubResource",
409+
"description": "The reference to the Azure stack edge device."
410+
}
411+
}
412+
},
394413
"DevicePropertiesFormat": {
395414
"description": "Device properties.",
396415
"required": [
@@ -430,11 +449,6 @@
430449
"modelAsString": true
431450
}
432451
},
433-
"azureStackEdge": {
434-
"x-ms-discriminator-value": "AzureStackEdge",
435-
"$ref": "./common.json#/definitions/SubResource",
436-
"description": "The reference to the Azure stack edge device."
437-
},
438452
"networkFunctions": {
439453
"readOnly": true,
440454
"type": "array",

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/stable/2021-05-01/device.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,25 @@
396396
],
397397
"description": "Device resource."
398398
},
399+
"AzureStackEdgeFormat": {
400+
"description": "The reference to the Azure stack edge device.",
401+
"required": [
402+
"azureStackEdge"
403+
],
404+
"x-ms-discriminator-value": "AzureStackEdge",
405+
"type": "object",
406+
"allOf": [
407+
{
408+
"$ref": "#/definitions/DevicePropertiesFormat"
409+
}
410+
],
411+
"properties": {
412+
"azureStackEdge": {
413+
"$ref": "./common.json#/definitions/SubResource",
414+
"description": "The reference to the Azure stack edge device."
415+
}
416+
}
417+
},
399418
"DevicePropertiesFormat": {
400419
"description": "Device properties.",
401420
"required": [
@@ -435,11 +454,6 @@
435454
"modelAsString": true
436455
}
437456
},
438-
"azureStackEdge": {
439-
"x-ms-discriminator-value": "AzureStackEdge",
440-
"$ref": "./common.json#/definitions/SubResource",
441-
"description": "The reference to the Azure stack edge device."
442-
},
443457
"networkFunctions": {
444458
"readOnly": true,
445459
"type": "array",

0 commit comments

Comments
 (0)