Skip to content

Commit

Permalink
[ReleasePR hybridnetwork] Update device discriminator model (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
msftbot[bot] committed Oct 8, 2021
2 parents dd4b309 + a52dbbe commit 078253f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 24 deletions.
44 changes: 32 additions & 12 deletions schemas/2020-01-01-preview/Microsoft.HybridNetwork.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,33 @@
}
},
"definitions": {
"AzureStackEdgeFormat": {
"type": "object",
"properties": {
"azureStackEdge": {
"oneOf": [
{
"$ref": "#/definitions/SubResource"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Reference to another sub resource."
},
"deviceType": {
"type": "string",
"enum": [
"AzureStackEdge"
]
}
},
"required": [
"azureStackEdge",
"deviceType"
],
"description": "The reference to the Azure stack edge device."
},
"CustomProfile": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -342,19 +369,12 @@
},
"DevicePropertiesFormat": {
"type": "object",
"properties": {
"azureStackEdge": {
"oneOf": [
{
"$ref": "#/definitions/SubResource"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Reference to another sub resource."
"oneOf": [
{
"$ref": "#/definitions/AzureStackEdgeFormat"
}
},
],
"properties": {},
"description": "Device properties."
},
"ImageReference": {
Expand Down
44 changes: 32 additions & 12 deletions schemas/2021-05-01/Microsoft.HybridNetwork.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,33 @@
}
},
"definitions": {
"AzureStackEdgeFormat": {
"type": "object",
"properties": {
"azureStackEdge": {
"oneOf": [
{
"$ref": "#/definitions/SubResource"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Reference to another sub resource."
},
"deviceType": {
"type": "string",
"enum": [
"AzureStackEdge"
]
}
},
"required": [
"azureStackEdge",
"deviceType"
],
"description": "The reference to the Azure stack edge device."
},
"CustomProfile": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -354,19 +381,12 @@
},
"DevicePropertiesFormat": {
"type": "object",
"properties": {
"azureStackEdge": {
"oneOf": [
{
"$ref": "#/definitions/SubResource"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Reference to another sub resource."
"oneOf": [
{
"$ref": "#/definitions/AzureStackEdgeFormat"
}
},
],
"properties": {},
"description": "Device properties."
},
"ImageReference": {
Expand Down

0 comments on commit 078253f

Please sign in to comment.