Skip to content

Commit

Permalink
Make id readonly by bringing properties from shared resource (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilogiacometti authored and jhendrixMSFT committed Apr 19, 2018
1 parent 27805a1 commit d969928
Showing 1 changed file with 29 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,35 @@
},
"definitions": {
"DdosProtectionPlan": {
"description": "A DDoS protection plan in a resource group.",
"x-ms-azure-resource": true,
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource ID."
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type."
},
"location": {
"type": "string",
"description": "Resource location."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags."
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/DdosProtectionPlanPropertiesFormat",
Expand All @@ -269,13 +297,7 @@
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
}
},
"allOf": [
{
"$ref": "./network.json#/definitions/Resource"
}
],
"description": "A DDoS protection plan in a resource group."
}
},
"DdosProtectionPlanPropertiesFormat": {
"properties": {
Expand Down

0 comments on commit d969928

Please sign in to comment.