Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger correctness: Mark readonly properties #12810

Merged
merged 5 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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