From 25a6ac1bd3c32cc3c33291149edf6f08173de2a7 Mon Sep 17 00:00:00 2001 From: navba-MSFT <57353862+navba-MSFT@users.noreply.github.com> Date: Mon, 27 Feb 2023 14:59:30 +0530 Subject: [PATCH 1/3] {AzureSQLVM} fixes Azure/azure-rest-api-specs#22768 Fix the enums under AgReplica fixes Azure/azure-rest-api-specs#22768 The casing seems not correct in Swagger compared to Service. e.g.: After setting SYNCHRONOUS_COMMIT as swagger said, the value returned by Get response is Synchronous_Commit Similar issue happens for other properties in AgReplica --- .../stable/2022-02-01/sqlvm.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json index 9b46d56dcae0..2ac185cfb560 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json @@ -1123,8 +1123,8 @@ "role": { "description": "Replica Role in availability group.", "enum": [ - "PRIMARY", - "SECONDARY" + "Primary", + "Secondary" ], "type": "string", "x-ms-enum": { @@ -1135,8 +1135,8 @@ "commit": { "description": "Replica commit mode in availability group.", "enum": [ - "SYNCHRONOUS_COMMIT", - "ASYNCHRONOUS_COMMIT" + "Synchronous_Commit", + "Asynchronous_Commit" ], "type": "string", "x-ms-enum": { @@ -1147,8 +1147,8 @@ "failover": { "description": "Replica failover mode in availability group.", "enum": [ - "AUTOMATIC", - "MANUAL" + "Automatic", + "Manual" ], "type": "string", "x-ms-enum": { From 535531053ad93b726bebb37626c070f49c4d72c4 Mon Sep 17 00:00:00 2001 From: navba-MSFT <57353862+navba-MSFT@users.noreply.github.com> Date: Tue, 28 Feb 2023 10:10:13 +0530 Subject: [PATCH 2/3] Update sqlvm.json --- .../stable/2022-02-01/sqlvm.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json index 2ac185cfb560..6127dd84b575 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json @@ -1159,9 +1159,9 @@ "readableSecondary": { "description": "Replica readable secondary mode in availability group.", "enum": [ - "NO", - "ALL", - "READ_ONLY" + "N0", + "All", + "Read_Only" ], "type": "string", "x-ms-enum": { From c6cfcca472a62d030b068143dd2cb613a5db4b52 Mon Sep 17 00:00:00 2001 From: navba-MSFT <57353862+navba-MSFT@users.noreply.github.com> Date: Wed, 1 Mar 2023 11:38:58 +0530 Subject: [PATCH 3/3] Update sqlvm.json --- .../Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json index 6127dd84b575..8b4fcc2862a9 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2022-02-01/sqlvm.json @@ -1159,7 +1159,7 @@ "readableSecondary": { "description": "Replica readable secondary mode in availability group.", "enum": [ - "N0", + "No", "All", "Read_Only" ],