Skip to content

Commit

Permalink
Swagger correctness: Mark readonly properties (#12810)
Browse files Browse the repository at this point in the history
* Swagger correctness operations API

* Swagger correctness: Fix readonly properties

* Swagger correctness: Fix readonly properties

* Correcting readonly fields
  • Loading branch information
anponnet authored Feb 3, 2021
1 parent 7c043f3 commit fbd2810
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4634,6 +4634,7 @@
"AzureModularDataCentre"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "DataBoxEdgeDeviceKind",
"modelAsString": true
Expand All @@ -4646,6 +4647,7 @@
"properties": {
"$ref": "#/definitions/DataBoxEdgeDeviceProperties",
"description": "The properties of the Data Box Edge/Gateway device.",
"readOnly": true,
"x-ms-client-flatten": true
}
}
Expand Down Expand Up @@ -4793,11 +4795,13 @@
},
"description": {
"description": "The Description of the Data Box Edge/Gateway device.",
"type": "string"
"type": "string",
"readOnly": true
},
"modelDescription": {
"description": "The description of the Data Box Edge/Gateway device model.",
"type": "string"
"type": "string",
"readOnly": true
},
"deviceType": {
"description": "The type of the Data Box Edge/Gateway device.",
Expand All @@ -4813,7 +4817,8 @@
},
"friendlyName": {
"description": "The Data Box Edge/Gateway device name.",
"type": "string"
"type": "string",
"readOnly": true
},
"culture": {
"description": "The Data Box Edge/Gateway device culture.",
Expand Down Expand Up @@ -4876,11 +4881,13 @@
},
"resourceMoveDetails": {
"$ref": "#/definitions/ResourceMoveDetails",
"description": "The details of the move operation on this resource."
"description": "The details of the move operation on this resource.",
"readOnly": true
},
"edgeProfile": {
"$ref": "#/definitions/EdgeProfile",
"description": "The details of Edge Profile for this resource"
"description": "The details of Edge Profile for this resource",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -6936,7 +6943,8 @@
},
"currentStatus": {
"$ref": "#/definitions/OrderStatus",
"description": "Current status of the order."
"description": "Current status of the order.",
"readOnly": true
},
"orderHistory": {
"description": "List of status changes in the order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4634,6 +4634,7 @@
"AzureModularDataCentre"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "DataBoxEdgeDeviceKind",
"modelAsString": true
Expand All @@ -4646,6 +4647,7 @@
"properties": {
"$ref": "#/definitions/DataBoxEdgeDeviceProperties",
"description": "The properties of the Data Box Edge/Gateway device.",
"readOnly": true,
"x-ms-client-flatten": true
}
}
Expand Down Expand Up @@ -4793,11 +4795,13 @@
},
"description": {
"description": "The Description of the Data Box Edge/Gateway device.",
"type": "string"
"type": "string",
"readOnly": true
},
"modelDescription": {
"description": "The description of the Data Box Edge/Gateway device model.",
"type": "string"
"type": "string",
"readOnly": true
},
"deviceType": {
"description": "The type of the Data Box Edge/Gateway device.",
Expand All @@ -4813,7 +4817,8 @@
},
"friendlyName": {
"description": "The Data Box Edge/Gateway device name.",
"type": "string"
"type": "string",
"readOnly": true
},
"culture": {
"description": "The Data Box Edge/Gateway device culture.",
Expand Down Expand Up @@ -4876,11 +4881,13 @@
},
"resourceMoveDetails": {
"$ref": "#/definitions/ResourceMoveDetails",
"description": "The details of the move operation on this resource."
"description": "The details of the move operation on this resource.",
"readOnly": true
},
"edgeProfile": {
"$ref": "#/definitions/EdgeProfile",
"description": "The details of Edge Profile for this resource"
"description": "The details of Edge Profile for this resource",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -6936,7 +6943,8 @@
},
"currentStatus": {
"$ref": "#/definitions/OrderStatus",
"description": "Current status of the order."
"description": "Current status of the order.",
"readOnly": true
},
"orderHistory": {
"description": "List of status changes in the order.",
Expand Down

0 comments on commit fbd2810

Please sign in to comment.