From d48ca7ed92cbb4f972eb6214bdb3200edaf78369 Mon Sep 17 00:00:00 2001 From: bsomeshekar <99467336+bsomeshekar@users.noreply.github.com> Date: Sun, 10 Apr 2022 21:07:07 -0700 Subject: [PATCH] Swagger correctness: Fix readonly properties & add additional cluster witness properties (#18573) --- .../2021-06-01-preview/databoxedge.json | 41 +++++++++++++++++++ .../stable/2021-06-01/databoxedge.json | 41 +++++++++++++++++++ .../stable/2022-03-01/databoxedge.json | 2 + 3 files changed, 84 insertions(+) diff --git a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/preview/2021-06-01-preview/databoxedge.json b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/preview/2021-06-01-preview/databoxedge.json index 74b362105dec..8ed7068e8712 100644 --- a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/preview/2021-06-01-preview/databoxedge.json +++ b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/preview/2021-06-01-preview/databoxedge.json @@ -4900,6 +4900,7 @@ "AzureModularDataCentre" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceKind", "modelAsString": true @@ -5026,6 +5027,45 @@ "$ref": "#/definitions/Secret" }, "readOnly": true + }, + "clusterWitnessType": { + "description": "Cluster Witness Type", + "enum": [ + "None", + "Cloud", + "FileShare" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ClusterWitnessType", + "modelAsString": true + } + }, + "fileShareWitnessLocation": { + "description": "The witness location of file share.", + "type": "string", + "readOnly": true + }, + "fileShareWitnessUsername": { + "description": "The username of file share.", + "type": "string", + "readOnly": true + }, + "cloudWitnessStorageAccountName": { + "description": "The Cloud Witness Storage account name.", + "type": "string", + "readOnly": true + }, + "cloudWitnessContainerName": { + "description": "The Container for cloud witness in the storage account.", + "type": "string", + "readOnly": true + }, + "cloudWitnessStorageEndpoint": { + "description": "The Azure service endpoint of the cloud witness storage account.", + "type": "string", + "readOnly": true } } }, @@ -5091,6 +5131,7 @@ "Maintenance" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceStatus", "modelAsString": true diff --git a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/databoxedge.json b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/databoxedge.json index b8014238de00..98dd9c906d4c 100644 --- a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/databoxedge.json +++ b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/databoxedge.json @@ -4901,6 +4901,7 @@ "AzureModularDataCentre" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceKind", "modelAsString": true @@ -5027,6 +5028,45 @@ "$ref": "#/definitions/Secret" }, "readOnly": true + }, + "clusterWitnessType": { + "description": "Cluster Witness Type", + "enum": [ + "None", + "Cloud", + "FileShare" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ClusterWitnessType", + "modelAsString": true + } + }, + "fileShareWitnessLocation": { + "description": "The witness location of file share.", + "type": "string", + "readOnly": true + }, + "fileShareWitnessUsername": { + "description": "The username of file share.", + "type": "string", + "readOnly": true + }, + "cloudWitnessStorageAccountName": { + "description": "The Cloud Witness Storage account name.", + "type": "string", + "readOnly": true + }, + "cloudWitnessContainerName": { + "description": "The Container for cloud witness in the storage account.", + "type": "string", + "readOnly": true + }, + "cloudWitnessStorageEndpoint": { + "description": "The Azure service endpoint of the cloud witness storage account.", + "type": "string", + "readOnly": true } } }, @@ -5092,6 +5132,7 @@ "Maintenance" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceStatus", "modelAsString": true diff --git a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2022-03-01/databoxedge.json b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2022-03-01/databoxedge.json index b199e21ba8dc..8a821875f400 100644 --- a/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2022-03-01/databoxedge.json +++ b/specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2022-03-01/databoxedge.json @@ -5148,6 +5148,7 @@ "AzureModularDataCentre" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceKind", "modelAsString": true @@ -5386,6 +5387,7 @@ "Maintenance" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "DataBoxEdgeDeviceStatus", "modelAsString": true