Skip to content

Commit fbd2810

Browse files
authored
Swagger correctness: Mark readonly properties (#12810)
* Swagger correctness operations API * Swagger correctness: Fix readonly properties * Swagger correctness: Fix readonly properties * Correcting readonly fields
1 parent 7c043f3 commit fbd2810

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/preview/2020-09-01-preview/databoxedge.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4634,6 +4634,7 @@
46344634
"AzureModularDataCentre"
46354635
],
46364636
"type": "string",
4637+
"readOnly": true,
46374638
"x-ms-enum": {
46384639
"name": "DataBoxEdgeDeviceKind",
46394640
"modelAsString": true
@@ -4646,6 +4647,7 @@
46464647
"properties": {
46474648
"$ref": "#/definitions/DataBoxEdgeDeviceProperties",
46484649
"description": "The properties of the Data Box Edge/Gateway device.",
4650+
"readOnly": true,
46494651
"x-ms-client-flatten": true
46504652
}
46514653
}
@@ -4793,11 +4795,13 @@
47934795
},
47944796
"description": {
47954797
"description": "The Description of the Data Box Edge/Gateway device.",
4796-
"type": "string"
4798+
"type": "string",
4799+
"readOnly": true
47974800
},
47984801
"modelDescription": {
47994802
"description": "The description of the Data Box Edge/Gateway device model.",
4800-
"type": "string"
4803+
"type": "string",
4804+
"readOnly": true
48014805
},
48024806
"deviceType": {
48034807
"description": "The type of the Data Box Edge/Gateway device.",
@@ -4813,7 +4817,8 @@
48134817
},
48144818
"friendlyName": {
48154819
"description": "The Data Box Edge/Gateway device name.",
4816-
"type": "string"
4820+
"type": "string",
4821+
"readOnly": true
48174822
},
48184823
"culture": {
48194824
"description": "The Data Box Edge/Gateway device culture.",
@@ -4876,11 +4881,13 @@
48764881
},
48774882
"resourceMoveDetails": {
48784883
"$ref": "#/definitions/ResourceMoveDetails",
4879-
"description": "The details of the move operation on this resource."
4884+
"description": "The details of the move operation on this resource.",
4885+
"readOnly": true
48804886
},
48814887
"edgeProfile": {
48824888
"$ref": "#/definitions/EdgeProfile",
4883-
"description": "The details of Edge Profile for this resource"
4889+
"description": "The details of Edge Profile for this resource",
4890+
"readOnly": true
48844891
}
48854892
}
48864893
},
@@ -6936,7 +6943,8 @@
69366943
},
69376944
"currentStatus": {
69386945
"$ref": "#/definitions/OrderStatus",
6939-
"description": "Current status of the order."
6946+
"description": "Current status of the order.",
6947+
"readOnly": true
69406948
},
69416949
"orderHistory": {
69426950
"description": "List of status changes in the order.",

specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2020-09-01/databoxedge.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4634,6 +4634,7 @@
46344634
"AzureModularDataCentre"
46354635
],
46364636
"type": "string",
4637+
"readOnly": true,
46374638
"x-ms-enum": {
46384639
"name": "DataBoxEdgeDeviceKind",
46394640
"modelAsString": true
@@ -4646,6 +4647,7 @@
46464647
"properties": {
46474648
"$ref": "#/definitions/DataBoxEdgeDeviceProperties",
46484649
"description": "The properties of the Data Box Edge/Gateway device.",
4650+
"readOnly": true,
46494651
"x-ms-client-flatten": true
46504652
}
46514653
}
@@ -4793,11 +4795,13 @@
47934795
},
47944796
"description": {
47954797
"description": "The Description of the Data Box Edge/Gateway device.",
4796-
"type": "string"
4798+
"type": "string",
4799+
"readOnly": true
47974800
},
47984801
"modelDescription": {
47994802
"description": "The description of the Data Box Edge/Gateway device model.",
4800-
"type": "string"
4803+
"type": "string",
4804+
"readOnly": true
48014805
},
48024806
"deviceType": {
48034807
"description": "The type of the Data Box Edge/Gateway device.",
@@ -4813,7 +4817,8 @@
48134817
},
48144818
"friendlyName": {
48154819
"description": "The Data Box Edge/Gateway device name.",
4816-
"type": "string"
4820+
"type": "string",
4821+
"readOnly": true
48174822
},
48184823
"culture": {
48194824
"description": "The Data Box Edge/Gateway device culture.",
@@ -4876,11 +4881,13 @@
48764881
},
48774882
"resourceMoveDetails": {
48784883
"$ref": "#/definitions/ResourceMoveDetails",
4879-
"description": "The details of the move operation on this resource."
4884+
"description": "The details of the move operation on this resource.",
4885+
"readOnly": true
48804886
},
48814887
"edgeProfile": {
48824888
"$ref": "#/definitions/EdgeProfile",
4883-
"description": "The details of Edge Profile for this resource"
4889+
"description": "The details of Edge Profile for this resource",
4890+
"readOnly": true
48844891
}
48854892
}
48864893
},
@@ -6936,7 +6943,8 @@
69366943
},
69376944
"currentStatus": {
69386945
"$ref": "#/definitions/OrderStatus",
6939-
"description": "Current status of the order."
6946+
"description": "Current status of the order.",
6947+
"readOnly": true
69406948
},
69416949
"orderHistory": {
69426950
"description": "List of status changes in the order.",

0 commit comments

Comments
 (0)