From 1a461af97ab7c63d97195bd0f7389ca891ccf3bd Mon Sep 17 00:00:00 2001 From: Lillian Liu Date: Wed, 9 Jun 2021 17:52:57 -0700 Subject: [PATCH 1/6] draft PR --- ...kupShortTermRetentionPoliciesOperations.cs | 8 +- .../Models/BackupShortTermRetentionPolicy.cs | 16 +- .../Generated/SdkInfo_SqlManagementClient.cs | 24 +- .../src/Microsoft.Azure.Management.Sql.csproj | 5 +- .../src/Properties/AssemblyInfo.cs | 2 +- .../TestShortTermRetentionPolicyOnBasic.json | 1008 +++++++++--- ...rtTermRetentionPolicyOnGeneralPurpose.json | 933 +++++++---- ...entionPolicyOnGeneralPurposeScriptUse.json | 769 ++++----- ...TestShortTermRetentionPolicyOnPremium.json | 958 ++++++++--- ...nPolicyScriptUseWhenFeatureIsDisabled.json | 1399 +++++++++++++++++ .../tests/ShortTermRetentionTests.cs | 179 ++- 11 files changed, 4063 insertions(+), 1238 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs index dc43a012367e..3d801978da1b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs index a3666f867d33..c1f8aa1f2397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -40,10 +40,15 @@ public BackupShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + /// The differential backup + /// interval in hours. This is how many interval hours between each + /// differential backup will be supported. This is only applicable to + /// live databases but not dropped databases. + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?), int? diffBackupIntervalInHours = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; + DiffBackupIntervalInHours = diffBackupIntervalInHours; CustomInit(); } @@ -59,5 +64,14 @@ public BackupShortTermRetentionPolicy() [JsonProperty(PropertyName = "properties.retentionDays")] public int? RetentionDays { get; set; } + /// + /// Gets or sets the differential backup interval in hours. This is how + /// many interval hours between each differential backup will be + /// supported. This is only applicable to live databases but not + /// dropped databases. + /// + [JsonProperty(PropertyName = "properties.diffBackupIntervalInHours")] + public int? DiffBackupIntervalInHours { get; set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 09a622eda8f3..aa309e9961cc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -19,7 +19,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl { return new Tuple[] { - new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-11-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2021-02-01-preview"), new Tuple("Sql", "Capabilities", "2020-11-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), @@ -145,16 +145,16 @@ public static IEnumerable> ApiInfo_SqlManagementCl }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\repos\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "1c801aa70be460b277f1d81f9cced889ca5008fe"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section - } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "v2"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\repos\\azure-sdk-for-net\\sdk"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "1c801aa70be460b277f1d81f9cced889ca5008fe"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj index 190c7563fce8..24e20a633b93 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj @@ -7,13 +7,12 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.53.0-preview + 1.54.0-preview Microsoft Azure SQL Management;SQL;SQL Management; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs index 86bd7e654878..e1eabd9c6f27 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs @@ -22,4 +22,4 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.53.0.0")] +[assembly: AssemblyFileVersion("1.54.0.0")] diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json index 250d424bd4f2..b60cc31449c1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-9356?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkzNTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-652?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9356\": \"2020-11-03 04:18:09Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-652\": \"2021-06-09 22:47:17Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "24106792-6bc8-484c-aa10-05df12139b57" + "f34a3d14-21d1-40d3-901c-fc23c6302ee4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -22,7 +22,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "95" + "94" ] }, "ResponseHeaders": { @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "c06f0520-3ab3-413f-a777-4cbce58527a4" + "56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "x-ms-correlation-request-id": [ - "c06f0520-3ab3-413f-a777-4cbce58527a4" + "56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041811Z:c06f0520-3ab3-413f-a777-4cbce58527a4" + "WESTCENTRALUS:20210609T224718Z:56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:10 GMT" + "Wed, 09 Jun 2021 22:47:18 GMT" ], "Content-Length": [ - "236" + "233" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356\",\r\n \"name\": \"sqlcrudtest-9356\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9356\": \"2020-11-03 04:18:09Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652\",\r\n \"name\": \"sqlcrudtest-652\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-652\": \"2021-06-09 22:47:17Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQ/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "09415e61-fa13-4ff1-b99a-5ec34dd66713" + "304cb9f4-7d74-4c27-823e-a52a8a27a884" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverOperationResults/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverOperationResults/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "d2cec09b-b44d-41db-bce8-26cf3355927d" + "b6223ef0-7e79-430f-a93c-8bc688b90abd" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "adc13a8f-5f3d-4821-8855-a1c30afe763d" + "afbb01d4-6e24-47d8-bc15-ae9aee5ececf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041816Z:adc13a8f-5f3d-4821-8855-a1c30afe763d" + "WESTCENTRALUS:20210609T224720Z:afbb01d4-6e24-47d8-bc15-ae9aee5ececf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:15 GMT" + "Wed, 09 Jun 2021 22:47:19 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "14a01ffb-8eb0-4e19-8359-00a0a32940d0" + "2cabe85a-8a68-48a6-beb6-3c336770bb88" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "d4a2f34e-4a7f-40ba-8765-969e84b2f97d" + "bf890530-bb61-43d3-ab11-584a05030dc4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041817Z:d4a2f34e-4a7f-40ba-8765-969e84b2f97d" + "WESTCENTRALUS:20210609T224721Z:bf890530-bb61-43d3-ab11-584a05030dc4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:16 GMT" + "Wed, 09 Jun 2021 22:47:20 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "97765cfa-eb4a-4339-a347-0f31363af2bb" + "2fe081fd-6515-44c2-969f-7ef7c402f17e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "b7a624a6-4109-48fa-8493-5860186c8b47" + "28ec919e-4cb6-48be-99b5-ec0c7ef2b137" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041818Z:b7a624a6-4109-48fa-8493-5860186c8b47" + "WESTCENTRALUS:20210609T224722Z:28ec919e-4cb6-48be-99b5-ec0c7ef2b137" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:17 GMT" + "Wed, 09 Jun 2021 22:47:21 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -285,10 +285,10 @@ "no-cache" ], "Retry-After": [ - "20" + "1" ], "x-ms-request-id": [ - "7cbd0b88-5383-4b0a-b3f8-c688141eae81" + "2ef43bf8-ce96-4607-9a67-9771ecda96f9" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "867a8e21-b7e4-4863-99c8-166139139bdd" + "6bcc8589-f6f8-42a4-956a-28fd785936af" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041819Z:867a8e21-b7e4-4863-99c8-166139139bdd" + "WESTCENTRALUS:20210609T224723Z:6bcc8589-f6f8-42a4-956a-28fd785936af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:18 GMT" + "Wed, 09 Jun 2021 22:47:22 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -345,10 +345,10 @@ "no-cache" ], "Retry-After": [ - "20" + "1" ], "x-ms-request-id": [ - "f15271b4-3da1-49fd-91d8-e3851357de27" + "6b9a2f4f-ec40-460f-a1ba-d10148d19237" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "b868e60e-b0b4-47f6-a91e-fa8dff551cd7" + "7eb11976-41dd-4e8c-873a-ab97294c9fbf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041839Z:b868e60e-b0b4-47f6-a91e-fa8dff551cd7" + "WESTCENTRALUS:20210609T224724Z:7eb11976-41dd-4e8c-873a-ab97294c9fbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:38 GMT" + "Wed, 09 Jun 2021 22:47:24 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -405,10 +405,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "0c4c5e9c-e9cf-47ec-aa2a-d6908d222f25" + "87767eb7-0a44-4614-b659-c21a3832c3a7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "175c78c9-032e-4c7b-ac46-3bdb5771f216" + "9d407482-38cd-4189-859a-3b6bdc45b362" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041859Z:175c78c9-032e-4c7b-ac46-3bdb5771f216" + "WESTCENTRALUS:20210609T224725Z:9d407482-38cd-4189-859a-3b6bdc45b362" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,10 +429,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:58 GMT" + "Wed, 09 Jun 2021 22:47:25 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -464,8 +464,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "20" + ], "x-ms-request-id": [ - "bcb9d743-14ac-4518-b7af-cad4cdecd939" + "a0a552eb-1c80-41fe-b484-fdc584378bb1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -474,10 +477,130 @@ "11994" ], "x-ms-correlation-request-id": [ - "447d7af8-db8b-4532-a2c3-0a783e9757e3" + "cfe94f81-967d-4c39-b862-12b24e31864a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224745Z:cfe94f81-967d-4c39-b862-12b24e31864a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "a62376e5-7c9d-4923-85ec-05f2187ca368" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "08b8e9a1-bcbd-4519-89fb-4e6bb23476e8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224805Z:08b8e9a1-bcbd-4519-89fb-4e6bb23476e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:48:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a0c31ee1-0532-47ee-aacf-ee35d862864b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "64f94cb4-c786-4c6c-8caf-aa3ed332bd04" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041859Z:447d7af8-db8b-4532-a2c3-0a783e9757e3" + "WESTCENTRALUS:20210609T224826Z:64f94cb4-c786-4c6c-8caf-aa3ed332bd04" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -486,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:58 GMT" + "Wed, 09 Jun 2021 22:48:25 GMT" ], "Content-Length": [ - "456" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -498,26 +621,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7558.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558\",\r\n \"name\": \"sqlcrudtest-7558\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQ/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c68b30f4-42af-4247-bde2-418a2b905cbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "7aa1f49b-4c8b-4ee4-8fb6-512c26367dfb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224826Z:7aa1f49b-4c8b-4ee4-8fb6-512c26367dfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:48:25 GMT" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1954.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954\",\r\n \"name\": \"sqlcrudtest-1954\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTk/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0f498315-62c5-410a-8b1c-776365ab385d" + "e73f5a82-d56b-4267-824a-e718e0451dee" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -534,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "b82b1a1b-8a31-480a-b1da-eeb0008cbb57" + "0e91018b-1147-4715-8443-4e29495b165a" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -552,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "cb141ca4-81b0-4e75-a7a8-7f90ec34e2aa" + "699769b3-3265-45ff-b587-14c593d298ee" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041901Z:cb141ca4-81b0-4e75-a7a8-7f90ec34e2aa" + "WESTCENTRALUS:20210609T224827Z:699769b3-3265-45ff-b587-14c593d298ee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -564,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:00 GMT" + "Wed, 09 Jun 2021 22:48:27 GMT" ], "Content-Length": [ - "74" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -576,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -603,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "cc3604ae-5057-41a1-a343-f35154471652" + "3e2a72fd-baa2-45b0-bdab-3ba5591e2737" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11990" ], "x-ms-correlation-request-id": [ - "470fea30-eed5-4140-8b0e-19ed96170cff" + "4afb9c86-e041-4747-ba65-729ac8c0a701" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041917Z:470fea30-eed5-4140-8b0e-19ed96170cff" + "WESTCENTRALUS:20210609T224842Z:4afb9c86-e041-4747-ba65-729ac8c0a701" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -624,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:16 GMT" + "Wed, 09 Jun 2021 22:48:42 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -636,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -663,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "130cd0d0-1a41-4f0c-97bc-198d9383ea65" + "72c556ba-5e6a-46c9-bf8b-79c2d350f85f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11989" ], "x-ms-correlation-request-id": [ - "2d4fc7af-5dab-4566-a3a4-92e48486b779" + "93f8c557-09d0-4ad2-bcea-612a21149a03" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041932Z:2d4fc7af-5dab-4566-a3a4-92e48486b779" + "WESTCENTRALUS:20210609T224858Z:93f8c557-09d0-4ad2-bcea-612a21149a03" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:32 GMT" + "Wed, 09 Jun 2021 22:48:57 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "59ecdaec-fab6-483f-9bc7-19c4d85e943c" + "f2d960eb-cad3-41ee-a437-e160d78255b4" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11988" ], "x-ms-correlation-request-id": [ - "e2eb2bac-38d4-466e-b47b-f92fe82fe18c" + "25b3d84f-fff0-4e2c-b6ff-87e5a82a79e9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:e2eb2bac-38d4-466e-b47b-f92fe82fe18c" + "WESTCENTRALUS:20210609T224913Z:25b3d84f-fff0-4e2c-b6ff-87e5a82a79e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:12 GMT" ], "Content-Length": [ - "105" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -779,20 +959,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "755256b4-deca-4541-a35c-d82ee0880670" + "8fea58b4-f744-4cc6-b70e-5b33a7b08e17" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11987" ], "x-ms-correlation-request-id": [ - "813e0402-32b1-4143-93f1-02a3528fdecc" + "0a6bf79b-46ce-4338-b4cd-4197d03d1e20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:813e0402-32b1-4143-93f1-02a3528fdecc" + "WESTCENTRALUS:20210609T224929Z:0a6bf79b-46ce-4338-b4cd-4197d03d1e20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -801,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:29 GMT" ], "Content-Length": [ - "865" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -813,26 +996,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"99631717-355f-4b16-b8dd-3d2ff6640279\",\r\n \"creationDate\": \"2020-11-03T04:19:38.557Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:49:38.557Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848\",\r\n \"name\": \"sqlcrudtest-8848\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTk/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "845f4494-36c3-41e3-b26b-c13d55c3a24c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "950fd0bb-1926-4827-a2b2-e2e0d248f77c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224930Z:950fd0bb-1926-4827-a2b2-e2e0d248f77c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:29 GMT" + ], + "Content-Length": [ + "1078" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"36f33606-9ec2-446b-b8c0-732dca54910b\",\r\n \"creationDate\": \"2021-06-09T22:49:17.38Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219\",\r\n \"name\": \"sqlcrudtest-3219\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5cf3587f-e93b-44f4-8b64-91b689a39be9" + "71aaa1bf-9485-47aa-a133-360ddd16cf08" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +1083,19 @@ "no-cache" ], "x-ms-request-id": [ - "8bf11962-7a49-471e-9f33-d0b26d9040db" + "51c8bdae-c6ed-4e89-bd3b-e9bee9e6e0b8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11985" ], "x-ms-correlation-request-id": [ - "9b4443ba-0cb8-40ee-b021-ad6dda6a2e58" + "73612f86-9a13-4d01-b694-18fe2ff72257" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:9b4443ba-0cb8-40ee-b021-ad6dda6a2e58" + "WESTCENTRALUS:20210609T224930Z:73612f86-9a13-4d01-b694-18fe2ff72257" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:29 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,26 +1116,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "12b43294-374c-479b-bd9f-c3412683f848" + "121bb4b2-bd9c-4310-a79e-30b1e0bc0e3d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -906,19 +1146,19 @@ "no-cache" ], "x-ms-request-id": [ - "9549e86b-e445-491f-b733-085a7edcb28d" + "0834a088-2bea-4b48-810f-c0192b8d2a46" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11984" ], "x-ms-correlation-request-id": [ - "169a6a25-52f1-451a-bc0a-abc8a57503d5" + "7950d498-682a-43c0-a702-f1989a8beca9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041950Z:169a6a25-52f1-451a-bc0a-abc8a57503d5" + "WESTCENTRALUS:20210609T224933Z:7950d498-682a-43c0-a702-f1989a8beca9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -927,10 +1167,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:50 GMT" + "Wed, 09 Jun 2021 22:49:32 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -939,26 +1179,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "01ccf8e6-4cdc-4d2f-bb3f-45e061e66c8b" + "3f2852a5-1cac-42ba-bc22-46a1da8b51de" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -969,19 +1209,145 @@ "no-cache" ], "x-ms-request-id": [ - "8334b548-f1dc-468e-b0e9-569fdfd6c8d0" + "9e961634-03e4-42f5-b592-eb884e0503bf" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11983" + ], + "x-ms-correlation-request-id": [ + "7c8cdefd-5f91-4328-b347-4cc528570e5e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224936Z:7c8cdefd-5f91-4328-b347-4cc528570e5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:35 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e353b928-94b1-4a97-a3ad-e9174f719cf9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3516388c-ff38-4f9b-a8d8-200c4d5afc6e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "af84bf24-d741-4013-b370-fdf99c6b6a00" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224939Z:af84bf24-d741-4013-b370-fdf99c6b6a00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:39 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53f6e761-319a-4a26-9470-7fbe415ab34b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "be16cf9e-281b-487e-b54a-ef201c06ce47" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" ], "x-ms-correlation-request-id": [ - "2b235a43-7c91-4aba-9990-bf8aef5c8b90" + "fd30973d-39b6-450e-a182-0b5b7161976e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041953Z:2b235a43-7c91-4aba-9990-bf8aef5c8b90" + "WESTCENTRALUS:20210609T224939Z:fd30973d-39b6-450e-a182-0b5b7161976e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -990,10 +1356,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:53 GMT" + "Wed, 09 Jun 2021 22:49:39 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1002,32 +1368,95 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf420607-8471-4a85-a77a-4abe03af6e4c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c4c38cdb-effc-4845-89bc-2d71207ff3e6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "4d767b7e-44ba-4c99-9278-a6c7d8bbbf21" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224942Z:4d767b7e-44ba-4c99-9278-a6c7d8bbbf21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:42 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f36e483d-1f8d-4491-9b1e-deede0190cec" + "c5f76ffb-555a-49d1-bca8-4fcae9759bb0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "52" + "90" ] }, "ResponseHeaders": { @@ -1038,7 +1467,7 @@ "no-cache" ], "x-ms-request-id": [ - "fd5efa67-e964-4168-909e-ed8d1142c712" + "44f2946b-9309-4ecc-8b83-4ab766d263c2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1047,10 +1476,10 @@ "1197" ], "x-ms-correlation-request-id": [ - "67e83e2b-514c-4750-8f45-70506ed917dd" + "45fd3c06-abb2-43c9-98aa-3a3b9163ee09" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:67e83e2b-514c-4750-8f45-70506ed917dd" + "WESTCENTRALUS:20210609T224930Z:45fd3c06-abb2-43c9-98aa-3a3b9163ee09" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1059,7 +1488,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:30 GMT" ], "Content-Length": [ "170" @@ -1075,28 +1504,97 @@ "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a316de34-cb10-4a7a-9238-329061f76782" + "33748bc4-45ad-4940-934c-4eb868fbe429" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "52" + "89" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d831cf47-d59e-4ac7-85ff-cf66464739df" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "04e03ad1-168e-4695-a8b1-7c3a615e5cf2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224933Z:04e03ad1-168e-4695-a8b1-7c3a615e5cf2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:33 GMT" + ], + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19520573-985c-46b8-8283-6ba91fd7d320" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" ] }, "ResponseHeaders": { @@ -1107,28 +1605,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/6425d7f1-50ea-4ada-bac4-bf4c0c781f97?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/f554f1a1-a160-4739-b3b8-4e38624dce39?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/6425d7f1-50ea-4ada-bac4-bf4c0c781f97?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/f554f1a1-a160-4739-b3b8-4e38624dce39?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "6425d7f1-50ea-4ada-bac4-bf4c0c781f97" + "f554f1a1-a160-4739-b3b8-4e38624dce39" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "1123128c-3f5c-4f4d-9f8e-ebe762642172" + "38c6e56d-bbf0-4aaf-ba26-7c54cc4fa553" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041951Z:1123128c-3f5c-4f4d-9f8e-ebe762642172" + "WESTCENTRALUS:20210609T224936Z:38c6e56d-bbf0-4aaf-ba26-7c54cc4fa553" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1137,7 +1635,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:50 GMT" + "Wed, 09 Jun 2021 22:49:36 GMT" ], "Content-Length": [ "76" @@ -1149,23 +1647,101 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:19:50.853Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:49:36.693Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f79ed23f-9b36-40a4-bfff-ab0546ff5a14" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "52" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/724a8e64-d914-4957-a56a-584ddf3f29c1?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/724a8e64-d914-4957-a56a-584ddf3f29c1?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "724a8e64-d914-4957-a56a-584ddf3f29c1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "49589984-e32b-45e4-9415-1534fca37668" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224940Z:49589984-e32b-45e4-9415-1534fca37668" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:39 GMT" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:49:39.93Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-9356?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkzNTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-652?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f9a351dc-0393-4eae-9767-13059b071b9a" + "85feed03-b550-48a4-a7af-31b9e9b1e657" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1179,7 +1755,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDkzNTYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY1Mi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1188,13 +1764,13 @@ "14999" ], "x-ms-request-id": [ - "24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "x-ms-correlation-request-id": [ - "24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041954Z:24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "WESTUS:20210609T224944Z:75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1203,7 +1779,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:54 GMT" + "Wed, 09 Jun 2021 22:49:43 GMT" ], "Expires": [ "-1" @@ -1218,17 +1794,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-9356" + "sqlcrudtest-652" ], "CreateServer": [ - "sqlcrudtest-7558" + "sqlcrudtest-1954" ], "TestShortTermRetentionPolicyOnBasic": [ - "sqlcrudtest-8848" + "sqlcrudtest-3219" ] }, "Variables": { - "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", - "DefaultLocation": "eastus" + "DefaultLocation": "eastus", + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json index 6c58efc5ef42..744db5438bda 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-87?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6720?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-87\": \"2020-11-03 04:25:11Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6720\": \"2021-06-09 22:44:16Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2671b99c-7c9a-435d-827b-4f736882be4b" + "a21bc24d-e8d9-4a0c-9f4d-bd5c6e259ae4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -22,7 +22,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "93" + "95" ] }, "ResponseHeaders": { @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-request-id": [ - "8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "41963aea-565d-49b9-aff5-d90f656ab8b1" ], "x-ms-correlation-request-id": [ - "8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "41963aea-565d-49b9-aff5-d90f656ab8b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042513Z:8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "WESTCENTRALUS:20210609T224420Z:41963aea-565d-49b9-aff5-d90f656ab8b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:13 GMT" + "Wed, 09 Jun 2021 22:44:19 GMT" ], "Content-Length": [ - "230" + "236" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87\",\r\n \"name\": \"sqlcrudtest-87\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-87\": \"2020-11-03 04:25:11Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720\",\r\n \"name\": \"sqlcrudtest-6720\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6720\": \"2021-06-09 22:44:16Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "33fba39e-013d-460d-8f84-98dc3e080146" + "0b963e8f-6647-426d-9ecc-96c0602b04bd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverOperationResults/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverOperationResults/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "218ad0a1-b418-415e-8f99-afb5f9cefdb8" + "31b6eeae-5217-4a50-bd30-f606f1eb2648" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "aef3600d-4891-4ed3-988f-c7a7dc5496b9" + "e550514f-8ebe-46b9-8e93-675b7ff2f620" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042516Z:aef3600d-4891-4ed3-988f-c7a7dc5496b9" + "WESTUS:20210609T224422Z:e550514f-8ebe-46b9-8e93-675b7ff2f620" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:16 GMT" + "Wed, 09 Jun 2021 22:44:21 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "349eed17-b581-4deb-9f16-a55f9f96fa13" + "c369909c-b0bc-4a6c-bc40-6292b4676a0e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "9c3c6403-0b98-4123-a8df-fa861429efa2" + "c71fb141-4c91-47e5-b83c-f673fe3785fb" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042517Z:9c3c6403-0b98-4123-a8df-fa861429efa2" + "WESTUS:20210609T224423Z:c71fb141-4c91-47e5-b83c-f673fe3785fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:17 GMT" + "Wed, 09 Jun 2021 22:44:22 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "cb864fb2-5d92-44c2-8fbd-9771bbfe5c4a" + "9f7bcf44-d8f1-4d0a-8850-a7c7eccc928e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "b765e0a9-d315-4c1a-883a-5580f86a643e" + "a595ad81-d633-49c7-8a08-44989137255e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042519Z:b765e0a9-d315-4c1a-883a-5580f86a643e" + "WESTUS:20210609T224424Z:a595ad81-d633-49c7-8a08-44989137255e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:18 GMT" + "Wed, 09 Jun 2021 22:44:23 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "8a706919-cdf2-497c-9c11-462234193f0e" + "982e955f-db33-4929-a7f0-f69063ef3b5a" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "3959b50c-9b5b-47a3-87ee-4d721e435372" + "6b391fcb-cf55-4522-a4ed-969f6119a5e9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042520Z:3959b50c-9b5b-47a3-87ee-4d721e435372" + "WESTUS:20210609T224425Z:6b391fcb-cf55-4522-a4ed-969f6119a5e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:19 GMT" + "Wed, 09 Jun 2021 22:44:24 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "82fe1537-4527-411e-a7e5-f6ffc50e8bfa" + "71d4390a-1788-45b7-b2c5-3eb7760aad3d" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "c2a1140b-f194-45f6-9c3a-bb9ea254b766" + "c3c01d2d-d7bf-44f1-8757-152ae817246d" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042521Z:c2a1140b-f194-45f6-9c3a-bb9ea254b766" + "WESTUS:20210609T224426Z:c3c01d2d-d7bf-44f1-8757-152ae817246d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:20 GMT" + "Wed, 09 Jun 2021 22:44:26 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "72456653-03f6-4106-9924-27ba9c8de778" + "faedf5e2-8535-4025-b5cd-5b3d5efa8bf1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "72aab936-b5d8-42ba-b415-97d85e3f780c" + "34a6e77d-fdf9-4935-bf89-f8e7d5421cb2" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042522Z:72aab936-b5d8-42ba-b415-97d85e3f780c" + "WESTUS:20210609T224428Z:34a6e77d-fdf9-4935-bf89-f8e7d5421cb2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,7 +429,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:22 GMT" + "Wed, 09 Jun 2021 22:44:27 GMT" ], "Content-Length": [ "108" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "46c909a3-612a-47ed-9394-5a5e0f0ce095" + "3044e45c-3e7a-470b-9f7d-87143a31e19f" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "bfe8327e-b777-4d01-b734-c83e2678630e" + "268f7896-1eea-4912-8b15-0efac3d7aba9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042542Z:bfe8327e-b777-4d01-b734-c83e2678630e" + "WESTUS:20210609T224448Z:268f7896-1eea-4912-8b15-0efac3d7aba9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,7 +489,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:42 GMT" + "Wed, 09 Jun 2021 22:44:48 GMT" ], "Content-Length": [ "108" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -525,10 +525,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "f4ec3e2a-7c61-4cf2-a646-c368dc53ccae" + "43cc8a1a-cdbb-4bcd-a539-24ece511c237" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "34c2c2f8-8062-4f29-b6ac-f7cbbd94d518" + "77c43140-558a-4a37-bdc7-c5f8fb8a9cb4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042602Z:34c2c2f8-8062-4f29-b6ac-f7cbbd94d518" + "WESTUS:20210609T224508Z:77c43140-558a-4a37-bdc7-c5f8fb8a9cb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:02 GMT" + "Wed, 09 Jun 2021 22:45:08 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -584,8 +584,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "c3a5313d-c3ed-477e-8f3f-007848f0c827" + "87e0b4d5-a461-4325-991e-41f3d3821e29" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -594,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "61aad3f5-78e1-49e7-bb65-42605d2c40d1" + "a2b79464-b059-4478-ac35-628252689dc3" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042602Z:61aad3f5-78e1-49e7-bb65-42605d2c40d1" + "WESTUS:20210609T224528Z:a2b79464-b059-4478-ac35-628252689dc3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -606,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:02 GMT" + "Wed, 09 Jun 2021 22:45:28 GMT" ], "Content-Length": [ - "454" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -618,26 +621,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1159.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159\",\r\n \"name\": \"sqlcrudtest-1159\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OT9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5beb49c5-49f0-48b6-8495-ba8f7e3db083" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "00f23e09-6319-4ae1-9aab-8f2aec648327" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224528Z:00f23e09-6319-4ae1-9aab-8f2aec648327" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:45:28 GMT" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7237.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237\",\r\n \"name\": \"sqlcrudtest-7237\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "cc17585b-cd6f-408a-9648-c3d4cc4a520b" + "be910e13-c59b-49d6-a794-0f229bc653af" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -654,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "df2fe6b7-22ce-4225-81a2-a8d11a546fff" + "9594a04b-fe6e-44a1-acd3-bfeac62d4f1e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -672,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "82b7f820-d63c-4a06-a557-9737bddc6bd8" + "f3e6b635-9b0e-44e4-b10c-69cff1966514" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042604Z:82b7f820-d63c-4a06-a557-9737bddc6bd8" + "WESTUS:20210609T224530Z:f3e6b635-9b0e-44e4-b10c-69cff1966514" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:03 GMT" + "Wed, 09 Jun 2021 22:45:30 GMT" ], "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "2b58e403-62ca-4fa4-b230-87a8a8324272" + "bc9cfb12-167a-42de-ba82-ba2a76db61c3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "0c1c7f8f-ef59-4608-b4c5-b8e757906b67" + "6a4d65dc-18c4-45f5-9027-ef2b67db5799" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042619Z:0c1c7f8f-ef59-4608-b4c5-b8e757906b67" + "WESTUS:20210609T224545Z:6a4d65dc-18c4-45f5-9027-ef2b67db5799" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:18 GMT" + "Wed, 09 Jun 2021 22:45:45 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "fc0e23b8-7616-4322-8c0f-43a451861736" + "2af0af9b-4825-4744-b8a3-b2b51b42a20a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-correlation-request-id": [ - "0203a061-96cb-4488-90e6-3f9c75557c18" + "e640c269-b613-4e16-a9c9-03d5a3294146" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042634Z:0203a061-96cb-4488-90e6-3f9c75557c18" + "WESTUS:20210609T224600Z:e640c269-b613-4e16-a9c9-03d5a3294146" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:33 GMT" + "Wed, 09 Jun 2021 22:46:00 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -816,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "6d872c2d-2211-4aca-9c4f-bbeb5ea60f87" + "28ba0e8e-f133-48b6-b860-eaf9a21f894b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "097182f0-1133-4731-8214-89ecf6081ab9" + "5b03aa9b-83d7-4668-bd2f-ef5f98fbaf50" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042649Z:097182f0-1133-4731-8214-89ecf6081ab9" + "WESTUS:20210609T224616Z:5b03aa9b-83d7-4668-bd2f-ef5f98fbaf50" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:48 GMT" + "Wed, 09 Jun 2021 22:46:15 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,19 +963,19 @@ "15" ], "x-ms-request-id": [ - "c5286212-64b2-4515-a166-e18ddd2dd07d" + "437f231e-03d7-4eec-bd0b-11d4318a0cf7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11987" ], "x-ms-correlation-request-id": [ - "d217af4c-da79-47f1-b9e0-f48bda709d78" + "19881cfd-9abf-4ac5-83d9-9e0c4461baaf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042704Z:d217af4c-da79-47f1-b9e0-f48bda709d78" + "WESTUS:20210609T224631Z:19881cfd-9abf-4ac5-83d9-9e0c4461baaf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:03 GMT" + "Wed, 09 Jun 2021 22:46:30 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -936,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,19 +1023,19 @@ "15" ], "x-ms-request-id": [ - "187c4da1-1ad4-47af-a864-964626e9d924" + "4122d4a0-ba3a-44a3-b773-f2f6ca37bf14" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11986" ], "x-ms-correlation-request-id": [ - "1428aba2-8368-4a04-86dc-6ae1449c1a35" + "63508dfd-18f4-4498-bb54-acedabbd2847" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042719Z:1428aba2-8368-4a04-86dc-6ae1449c1a35" + "WESTUS:20210609T224646Z:63508dfd-18f4-4498-bb54-acedabbd2847" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,7 +1044,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:18 GMT" + "Wed, 09 Jun 2021 22:46:46 GMT" ], "Content-Length": [ "107" @@ -996,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OT9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1019,20 +1079,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "a65fad72-8218-43e5-b278-7e1e1b802ff8" + "f459f99e-4872-4825-8627-b444adbb0791" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11985" ], "x-ms-correlation-request-id": [ - "ccda5aae-ec43-4932-9ad6-952626fe1d6d" + "9dd0cf0b-7584-4f9c-8cb0-0927f6d6240f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042719Z:ccda5aae-ec43-4932-9ad6-952626fe1d6d" + "WESTUS:20210609T224701Z:9dd0cf0b-7584-4f9c-8cb0-0927f6d6240f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1041,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "870" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1053,26 +1116,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"ff8eaf40-edf7-47dd-908f-cae699603043\",\r\n \"creationDate\": \"2020-11-03T04:27:06.457Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:57:06.457Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749\",\r\n \"name\": \"sqlcrudtest-6749\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "a253aa6d-d3b2-4888-8e5f-bce7780ac0db" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,19 +1140,19 @@ "no-cache" ], "x-ms-request-id": [ - "2cd34aa7-595c-486f-981a-bff31002cd12" + "cb04522e-69f3-4993-ab88-6921f26858d3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11984" ], "x-ms-correlation-request-id": [ - "6b30dcc7-18b8-44e2-afde-1c2e284414ec" + "800cc58c-2bbd-4abb-b424-7bf805d29e85" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042720Z:6b30dcc7-18b8-44e2-afde-1c2e284414ec" + "WESTUS:20210609T224701Z:800cc58c-2bbd-4abb-b424-7bf805d29e85" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,10 +1161,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "331" + "1086" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1116,26 +1173,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"158aadef-375f-40a3-ba15-0bbba9445c52\",\r\n \"creationDate\": \"2021-06-09T22:46:55.55Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014\",\r\n \"name\": \"sqlcrudtest-5014\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 40,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fa73c737-63fc-4ff4-8b0f-fd10bbe2f169" + "d9e47406-7370-4e51-8140-82777e1d6876" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1146,19 +1209,19 @@ "no-cache" ], "x-ms-request-id": [ - "aaf352db-cefa-4ebc-a9ad-1cc90c61913d" + "8b6b7eae-8a99-4cd9-8074-8482d2e0a3bc" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "03fdef8e-ec24-4f50-9dd4-0058d652eb2d" + "1f06420b-0a7e-4dfb-aab4-782253b19938" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042723Z:03fdef8e-ec24-4f50-9dd4-0058d652eb2d" + "WESTUS:20210609T224701Z:1f06420b-0a7e-4dfb-aab4-782253b19938" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1167,10 +1230,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:22 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "331" + "172" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1179,26 +1242,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 40 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a281e7a1-a39a-42d3-a3bb-cb6d7973f91a" + "4e03bc32-7383-405c-9691-88ff449171d6" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" ] }, "ResponseHeaders": { @@ -1209,19 +1278,19 @@ "no-cache" ], "x-ms-request-id": [ - "c2b655d2-7bcc-4362-a35f-7071df812995" + "3f7b394d-cd8a-4c58-bb9e-a0dd38b59505" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "5a23a57a-375e-4b02-9feb-0599b50addb1" + "ea60a910-33a3-4d58-9416-83230be7e24f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042726Z:5a23a57a-375e-4b02-9feb-0599b50addb1" + "WESTUS:20210609T224704Z:ea60a910-33a3-4d58-9416-83230be7e24f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1230,10 +1299,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:25 GMT" + "Wed, 09 Jun 2021 22:47:04 GMT" ], "Content-Length": [ - "332" + "196" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,32 +1311,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", + "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 36\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b4483d74-f0bc-4058-ae1e-984e06a78b4f" + "982a95b6-9450-4bd7-8191-5aa912889666" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1277,20 +1346,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/ab183b50-ce5e-485e-8605-7c8e7f0f0110?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/ab183b50-ce5e-485e-8605-7c8e7f0f0110?api-version=2021-02-01-preview" + ], "x-ms-request-id": [ - "c18b3651-93cf-4201-9515-31180d13d3b7" + "ab183b50-ce5e-485e-8605-7c8e7f0f0110" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "74efecf8-ab8c-4775-b2b1-772a58219143" + "8381021f-fa17-4f17-b9f4-21977f27b261" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042720Z:74efecf8-ab8c-4775-b2b1-772a58219143" + "WESTUS:20210609T224708Z:8381021f-fa17-4f17-b9f4-21977f27b261" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1299,10 +1377,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:08 GMT" ], "Content-Length": [ - "172" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1311,26 +1389,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 36 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", - "StatusCode": 400 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:47:08.05Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5770d31f-2ad8-424b-8f03-d26ac6425c44" + "39110ead-f759-40cd-8ce1-3e44e0570bb0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1347,28 +1425,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/574180ae-446a-44fc-904e-889a1c4203e6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/fe887697-4982-417c-8531-b7d6298a348a?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/574180ae-446a-44fc-904e-889a1c4203e6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/fe887697-4982-417c-8531-b7d6298a348a?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "574180ae-446a-44fc-904e-889a1c4203e6" + "fe887697-4982-417c-8531-b7d6298a348a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "caeac368-3fd0-4eb4-a376-de4dee9e71d9" + "68d63f33-a324-4ad9-8de5-6539fae6fa56" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042723Z:caeac368-3fd0-4eb4-a376-de4dee9e71d9" + "WESTUS:20210609T224712Z:68d63f33-a324-4ad9-8de5-6539fae6fa56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1377,7 +1455,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:22 GMT" + "Wed, 09 Jun 2021 22:47:12 GMT" ], "Content-Length": [ "76" @@ -1389,23 +1467,338 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:27:23.427Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:47:12.017Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-87?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "07bb81cd-bc10-4aec-be74-db05a1d095e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d7431efb-9c5e-45f4-9e1e-fae9726d18a8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "806be660-c475-4601-bcf2-e8dc95e4960d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224704Z:806be660-c475-4601-bcf2-e8dc95e4960d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:04 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02188d80-5618-4b9a-b4c2-05b3ed04bf5d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f0edcd38-e32a-4f41-9411-a9add6f7c07b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "a46ab5c9-94d1-4d82-bfb5-963d746df9bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224707Z:a46ab5c9-94d1-4d82-bfb5-963d746df9bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:07 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "72bc35a9-8b2e-4147-9e04-7cb865fec88b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "bf0a3862-9de7-404e-830c-98bc3c979ee0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "018ed9ed-2883-4887-a412-c4610e0361e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224711Z:018ed9ed-2883-4887-a412-c4610e0361e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:11 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a745ccbb-cb0e-4381-935e-7a0e2241e2bd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "98e9bbe4-3054-4bc5-927d-6c0429706649" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "9f16e26a-1d76-41ea-b3c7-3aa1f168e45a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224711Z:9f16e26a-1d76-41ea-b3c7-3aa1f168e45a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:11 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f7acb13-4416-4b3e-ba35-258b9aa56daa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "33b00c56-84e4-4754-b96d-2a4a3513b408" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "f27b2892-37c8-45f2-927c-4391bfb73115" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224714Z:f27b2892-37c8-45f2-927c-4391bfb73115" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:14 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6720?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8ae36c16-4069-4cb3-b7ab-ba6eea1cf668" + "3ac1803b-1fa5-4c35-973c-b7f5463dee8e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1419,7 +1812,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3LUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY3MjAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1428,13 +1821,13 @@ "14999" ], "x-ms-request-id": [ - "e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "x-ms-correlation-request-id": [ - "e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042727Z:e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "WESTCENTRALUS:20210609T224715Z:df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1443,7 +1836,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:26 GMT" + "Wed, 09 Jun 2021 22:47:14 GMT" ], "Expires": [ "-1" @@ -1458,17 +1851,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-87" + "sqlcrudtest-6720" ], "CreateServer": [ - "sqlcrudtest-1159" + "sqlcrudtest-7237" ], "TestShortTermRetentionPolicyOnGeneralPurpose": [ - "sqlcrudtest-6749" + "sqlcrudtest-5014" ] }, "Variables": { - "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", - "DefaultLocation": "eastus" + "DefaultLocation": "eastus", + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json index f10822545e60..8407baa47c17 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-8273?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyNzM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-3062?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwNjI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8273\": \"2020-11-03 05:11:40Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-3062\": \"2021-06-09 23:42:46Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fb2954bd-a357-45be-8369-a3e91f200f22" + "a84c58c4-3b5b-449c-8d31-89b8d6f6365d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "71bf3044-7c32-4394-bfbd-2988074fe98c" + "a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "x-ms-correlation-request-id": [ - "71bf3044-7c32-4394-bfbd-2988074fe98c" + "a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051142Z:71bf3044-7c32-4394-bfbd-2988074fe98c" + "WESTUS:20210609T234248Z:a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:41 GMT" + "Wed, 09 Jun 2021 23:42:47 GMT" ], "Content-Length": [ "236" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273\",\r\n \"name\": \"sqlcrudtest-8273\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8273\": \"2020-11-03 05:11:40Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062\",\r\n \"name\": \"sqlcrudtest-3062\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-3062\": \"2021-06-09 23:42:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "820bd515-86f2-4bac-bfea-6043d2710934" + "aa3a882c-7ffb-42ab-a6cf-100ffa7d162e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverOperationResults/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverOperationResults/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "e2b7bc65-1162-479d-85c2-bba945af2cf2" + "1ecae72a-4660-445b-8f0e-0c99406b6d63" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "daa7d917-ed56-49ec-aada-887e5301e7cd" + "ff277c8f-174c-4204-980e-d9d38569b7fe" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051144Z:daa7d917-ed56-49ec-aada-887e5301e7cd" + "WESTUS:20210609T234251Z:ff277c8f-174c-4204-980e-d9d38569b7fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,10 +129,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:44 GMT" + "Wed, 09 Jun 2021 23:42:51 GMT" ], "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "44d389d7-42a6-47e7-9ee4-45d9edf70626" + "0c53623d-3671-44a9-9984-e47e8bae56ff" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "84da3548-5aaf-47c8-8e35-bfbcc6a89678" + "c0210941-c47e-4bb8-bbdc-ae68d75ddce4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051145Z:84da3548-5aaf-47c8-8e35-bfbcc6a89678" + "WESTUS:20210609T234253Z:c0210941-c47e-4bb8-bbdc-ae68d75ddce4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,10 +189,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:45 GMT" + "Wed, 09 Jun 2021 23:42:52 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "45f4d3f9-0b61-4724-9355-2500c252462c" + "3e721dd1-4e15-4edd-a272-d20f12b15169" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "6fc12aa8-9d28-4cf4-a7af-dda3d772fd35" + "49efde6e-d617-4a06-b320-0bcc4869961a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051147Z:6fc12aa8-9d28-4cf4-a7af-dda3d772fd35" + "WESTUS:20210609T234254Z:49efde6e-d617-4a06-b320-0bcc4869961a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,10 +249,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:46 GMT" + "Wed, 09 Jun 2021 23:42:53 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "b7716733-491c-4ce2-b2bb-5cc21146a51a" + "6eb1bc07-a31c-4e40-aa00-6f506f8923da" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "69381f26-cfe1-4879-bb32-668de80d254c" + "947ecae3-65ce-4cf4-ba88-bb13c00f6819" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051148Z:69381f26-cfe1-4879-bb32-668de80d254c" + "WESTUS:20210609T234255Z:947ecae3-65ce-4cf4-ba88-bb13c00f6819" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,10 +309,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:48 GMT" + "Wed, 09 Jun 2021 23:42:54 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "38cb53a6-b453-42b2-b6e1-9e8deca7a3eb" + "b27365be-bc1a-46d8-9856-6ef4e853efd6" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "3eb207fa-127f-4be8-a368-0dbb2342e3b8" + "b1cc4b7f-3e47-4595-aabf-596c7b9bca2b" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051149Z:3eb207fa-127f-4be8-a368-0dbb2342e3b8" + "WESTUS:20210609T234256Z:b1cc4b7f-3e47-4595-aabf-596c7b9bca2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,10 +369,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:49 GMT" + "Wed, 09 Jun 2021 23:42:56 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "b5d6378c-219e-40f9-bbae-d90c8b0d0773" + "1d051e08-52db-4cf7-b516-4ba788fe6f81" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "74eb237f-1cec-4431-960b-2865bf41d198" + "52504d44-d597-482a-8a4d-451daf0c5696" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051150Z:74eb237f-1cec-4431-960b-2865bf41d198" + "WESTUS:20210609T234257Z:52504d44-d597-482a-8a4d-451daf0c5696" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,10 +429,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:50 GMT" + "Wed, 09 Jun 2021 23:42:57 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "05dc2aa7-a751-4247-bca8-66eaaf809edf" + "efea3d78-34da-4125-92d0-5a8fb7745b47" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "1b2c26bd-5dfe-4a33-8166-7febf17553a9" + "3ba57fab-5282-4a68-a185-852f5daff14f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051210Z:1b2c26bd-5dfe-4a33-8166-7febf17553a9" + "WESTUS:20210609T234317Z:3ba57fab-5282-4a68-a185-852f5daff14f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,10 +489,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:10 GMT" + "Wed, 09 Jun 2021 23:43:17 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -528,7 +528,7 @@ "20" ], "x-ms-request-id": [ - "550ab524-bdfb-4c84-8eac-00d01b12b0c9" + "77b254d4-2ed2-436d-9ed4-445061924599" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "adab5b94-f464-456d-bd3f-94e08087c280" + "31d4f9cb-5963-4ecb-b8d6-d70c3bebc1a8" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051232Z:adab5b94-f464-456d-bd3f-94e08087c280" + "WESTUS:20210609T234337Z:31d4f9cb-5963-4ecb-b8d6-d70c3bebc1a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:32 GMT" + "Wed, 09 Jun 2021 23:43:36 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -588,7 +588,7 @@ "15" ], "x-ms-request-id": [ - "cd394c2c-54c3-459a-8ea0-43a492262d62" + "8eaf0c6e-b4f2-4757-b476-f009855891d0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -597,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "b26bfd91-f446-4da2-a999-c9c9d207bc5a" + "371c9d0b-6b05-4312-9974-86e2949e13f0" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051253Z:b26bfd91-f446-4da2-a999-c9c9d207bc5a" + "WESTUS:20210609T234357Z:371c9d0b-6b05-4312-9974-86e2949e13f0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -609,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:53 GMT" + "Wed, 09 Jun 2021 23:43:57 GMT" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -621,20 +621,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -645,7 +645,7 @@ "no-cache" ], "x-ms-request-id": [ - "31955c9b-6788-4463-a586-03f36293bf5e" + "3b7ffa51-ff89-40e9-ba71-1ef513ea5d07" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -654,10 +654,10 @@ "11991" ], "x-ms-correlation-request-id": [ - "1be1f4b6-7cb9-448f-bef0-34bc03f8b074" + "14ac0156-c1c5-4b88-af4e-97e798c675b5" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051253Z:1be1f4b6-7cb9-448f-bef0-34bc03f8b074" + "WESTUS:20210609T234358Z:14ac0156-c1c5-4b88-af4e-97e798c675b5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -666,7 +666,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:53 GMT" + "Wed, 09 Jun 2021 23:43:57 GMT" ], "Content-Length": [ "456" @@ -678,26 +678,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5849.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849\",\r\n \"name\": \"sqlcrudtest-5849\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9886.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886\",\r\n \"name\": \"sqlcrudtest-9886\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzY/YXBpLXZlcnNpb249MjAyMC0wOC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ca7ab652-a2ee-4ead-8ce3-217c07aadab5" + "9543198d-e121-45f3-938a-fb258c5229d0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -714,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "f44b8b24-4d88-4674-80bf-448be1ebc40c" + "3358b594-4154-4a89-b4ab-f53aaf0d8ae2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -732,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "84ededae-978d-4ced-92aa-f99671f894ea" + "4e870e6b-590c-40cc-8d49-a3b77912237a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051258Z:84ededae-978d-4ced-92aa-f99671f894ea" + "WESTUS:20210609T234400Z:4e870e6b-590c-40cc-8d49-a3b77912237a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,7 +744,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:58 GMT" + "Wed, 09 Jun 2021 23:43:59 GMT" ], "Content-Length": [ "76" @@ -756,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,7 +783,7 @@ "15" ], "x-ms-request-id": [ - "2c0fd1f5-fe0b-4980-a529-0c293672c21c" + "21e4c97a-8726-4a0c-bbbd-e0f6e2c763d2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -792,10 +792,10 @@ "11990" ], "x-ms-correlation-request-id": [ - "7fb18fa4-9b84-43ef-80f9-d1cfbe0da17f" + "92455e61-e483-437b-9e8f-3e1d7f9177bd" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051313Z:7fb18fa4-9b84-43ef-80f9-d1cfbe0da17f" + "WESTUS:20210609T234415Z:92455e61-e483-437b-9e8f-3e1d7f9177bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,7 +804,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:13 GMT" + "Wed, 09 Jun 2021 23:44:15 GMT" ], "Content-Length": [ "108" @@ -816,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,7 +843,7 @@ "15" ], "x-ms-request-id": [ - "aae03a63-9ec2-49d1-8aab-5145bf9b6715" + "98958afd-ec13-4e7a-ab94-73fd5605aaa7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -852,10 +852,10 @@ "11989" ], "x-ms-correlation-request-id": [ - "57ef44d3-faf4-4dfd-b05c-2199b7d53329" + "81de62ae-7d18-4bb0-a0c0-a912623eb6ab" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051328Z:57ef44d3-faf4-4dfd-b05c-2199b7d53329" + "WESTUS:20210609T234430Z:81de62ae-7d18-4bb0-a0c0-a912623eb6ab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,7 +864,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:28 GMT" + "Wed, 09 Jun 2021 23:44:30 GMT" ], "Content-Length": [ "108" @@ -876,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,7 +903,7 @@ "15" ], "x-ms-request-id": [ - "f7037026-9556-4318-86bb-901ed7586bd0" + "71de4538-d51b-4ce3-bc10-f545479a45ab" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -912,10 +912,10 @@ "11988" ], "x-ms-correlation-request-id": [ - "d068abc1-1aaa-4112-8199-742004b137b1" + "e9fe7bc2-3ae3-404c-abf7-88d3360000b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051344Z:d068abc1-1aaa-4112-8199-742004b137b1" + "WESTUS:20210609T234445Z:e9fe7bc2-3ae3-404c-abf7-88d3360000b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,7 +924,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:43 GMT" + "Wed, 09 Jun 2021 23:44:45 GMT" ], "Content-Length": [ "108" @@ -936,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,7 +963,7 @@ "15" ], "x-ms-request-id": [ - "cb9752a9-a95d-4620-bc73-afe0f0601d60" + "bbff2b77-5b75-4c2b-a019-0d56b37cdffa" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -972,10 +972,10 @@ "11987" ], "x-ms-correlation-request-id": [ - "8802784b-76a2-4149-b30b-12d2032c9e5c" + "cdb92f2c-d3ed-4a2e-8608-507ffe8508eb" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051400Z:8802784b-76a2-4149-b30b-12d2032c9e5c" + "WESTUS:20210609T234500Z:cdb92f2c-d3ed-4a2e-8608-507ffe8508eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,7 +984,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:59 GMT" + "Wed, 09 Jun 2021 23:45:00 GMT" ], "Content-Length": [ "108" @@ -996,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1023,7 +1023,7 @@ "15" ], "x-ms-request-id": [ - "ccb6ddfb-bda1-4519-9d83-56e565447149" + "97dd698e-677b-41c1-be6d-4a45d6c20b35" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1032,10 +1032,10 @@ "11986" ], "x-ms-correlation-request-id": [ - "181a12d9-538d-4138-a43f-bbcec23daec2" + "0ff16d92-af96-46f9-9a61-417b22d2304e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051415Z:181a12d9-538d-4138-a43f-bbcec23daec2" + "WESTUS:20210609T234516Z:0ff16d92-af96-46f9-9a61-417b22d2304e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1044,7 +1044,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:15 GMT" + "Wed, 09 Jun 2021 23:45:15 GMT" ], "Content-Length": [ "108" @@ -1056,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,7 +1083,7 @@ "15" ], "x-ms-request-id": [ - "082d295b-a42a-411b-ac56-b898836c3972" + "cfc21252-5065-489e-8451-d55cb3cfd2f4" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1092,10 +1092,10 @@ "11985" ], "x-ms-correlation-request-id": [ - "54e5fab8-f241-4b2a-a637-087f49226c4c" + "ccf05069-f54c-45bd-a9af-5b9164132a02" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051430Z:54e5fab8-f241-4b2a-a637-087f49226c4c" + "WESTUS:20210609T234531Z:ccf05069-f54c-45bd-a9af-5b9164132a02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,7 +1104,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:30 GMT" + "Wed, 09 Jun 2021 23:45:30 GMT" ], "Content-Length": [ "108" @@ -1116,20 +1116,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1143,7 +1143,7 @@ "15" ], "x-ms-request-id": [ - "27b5bf45-706b-4b23-83ff-bbb792d7391c" + "a7f8e6bc-fe70-41cd-953f-e2032cb5ce04" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1152,10 +1152,10 @@ "11984" ], "x-ms-correlation-request-id": [ - "5619123a-a04e-4846-8754-cfe740c4a223" + "64e11145-434d-4195-9a50-fa9d6cd42f60" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051445Z:5619123a-a04e-4846-8754-cfe740c4a223" + "WESTUS:20210609T234546Z:64e11145-434d-4195-9a50-fa9d6cd42f60" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1164,10 +1164,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:45 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1176,20 +1176,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1199,11 +1199,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "8302baa5-e9b5-4ee6-976c-bb100a9cdba8" + "cf9eea78-ef41-4511-93a1-f7af9b214170" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1212,10 +1209,10 @@ "11983" ], "x-ms-correlation-request-id": [ - "2e84b9e8-d930-433d-9d9e-64a6ec1129cc" + "6950dcaf-fc9a-46f3-a7c4-c3175e3dc4d8" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051502Z:2e84b9e8-d930-433d-9d9e-64a6ec1129cc" + "WESTUS:20210609T234546Z:6950dcaf-fc9a-46f3-a7c4-c3175e3dc4d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1224,10 +1221,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:02 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "1086" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1236,20 +1233,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"aed72d18-0805-4c96-9181-757c988aeef9\",\r\n \"creationDate\": \"2021-06-09T23:45:29.48Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405\",\r\n \"name\": \"sqlcrudtest-9405\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "96e9d579-70ec-4f01-9f9b-d22deb409430" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1259,11 +1262,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "619cfa61-ec98-4605-afce-314ba6d0f33e" + "9d00a076-6e73-40ae-b156-a97a78b0b083" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1272,10 +1272,10 @@ "11982" ], "x-ms-correlation-request-id": [ - "3ece7b07-9f72-465d-997d-6e3f914468d5" + "7c7bf03d-2549-4b79-9341-86d1894e51fc" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051517Z:3ece7b07-9f72-465d-997d-6e3f914468d5" + "WESTUS:20210609T234546Z:7c7bf03d-2549-4b79-9341-86d1894e51fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1284,10 +1284,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:17 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1296,20 +1296,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "84dcb56e-9f3a-446b-91ab-06d1b1c49ea3" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1319,11 +1325,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "a32e7785-aef2-4f55-9378-f13b9b285842" + "a7ffb3d7-2f94-4dd2-ac98-f8506fe7e4ab" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1332,10 +1335,10 @@ "11981" ], "x-ms-correlation-request-id": [ - "0504c175-b2de-456a-b2c9-b909a80c0f3e" + "0995aaf4-f127-45ce-bc64-7b00479da931" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051534Z:0504c175-b2de-456a-b2c9-b909a80c0f3e" + "WESTUS:20210609T234547Z:0995aaf4-f127-45ce-bc64-7b00479da931" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1344,10 +1347,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:33 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "108" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1356,140 +1359,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "x-ms-request-id": [ - "2a8b205f-9288-4fc5-85dc-f07a270d0dbb" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-correlation-request-id": [ - "37f171a5-c691-4f21-a4d1-81eef62c583a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051549Z:37f171a5-c691-4f21-a4d1-81eef62c583a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:15:48 GMT" - ], - "Content-Length": [ - "108" + "x-ms-client-request-id": [ + "f4bf3ddf-31c0-4e93-86d0-c04f9eb0a352" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Accept-Language": [ + "en-US" ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "x-ms-request-id": [ - "f27942d8-f083-40a0-956c-a825d5b7d840" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-correlation-request-id": [ - "57bc8bee-4810-4120-80a5-9cd5674061a1" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051604Z:57bc8bee-4810-4120-80a5-9cd5674061a1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:16:03 GMT" - ], - "Content-Length": [ - "108" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1499,80 +1394,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/55594d0f-0c02-4ece-a410-fb1dc3d7fab0?api-version=2021-02-01-preview" + ], "Retry-After": [ "15" ], - "x-ms-request-id": [ - "cbe9a6d3-7a4a-449b-b7f4-2b8f5ad420d0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-correlation-request-id": [ - "f42647dd-3f89-4827-8800-6c3c6b30aedd" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051619Z:f42647dd-3f89-4827-8800-6c3c6b30aedd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzY/YXBpLXZlcnNpb249MjAyMC0wOC0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/55594d0f-0c02-4ece-a410-fb1dc3d7fab0?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "381d6879-7f57-4ee7-ba6f-ce9ad8ed1e79" + "55594d0f-0c02-4ece-a410-fb1dc3d7fab0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "7401f4ea-19f8-47e7-8e95-12048ebb1428" + "b1b4ed02-409e-4565-bd8d-d8cd7c3fa9b3" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051619Z:7401f4ea-19f8-47e7-8e95-12048ebb1428" + "WESTUS:20210609T234547Z:b1b4ed02-409e-4565-bd8d-d8cd7c3fa9b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1581,10 +1425,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "868" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1593,26 +1437,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"39ce02a2-67f4-43c9-beca-fe850008a755\",\r\n \"creationDate\": \"2020-11-03T05:16:08.78Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T05:46:08.78Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576\",\r\n \"name\": \"sqlcrudtest-576\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:46.803Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzYvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "62f9c8cc-69fc-4825-8a38-ff0bf7e99b68" + "ab367eeb-02c5-4600-9eac-856f213949d5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1622,20 +1472,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/4affb0a9-36cf-40b3-aef2-cc11ad092168?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/4affb0a9-36cf-40b3-aef2-cc11ad092168?api-version=2021-02-01-preview" + ], "x-ms-request-id": [ - "4eee979f-803f-41b4-8a5c-b0ea3a77945d" + "4affb0a9-36cf-40b3-aef2-cc11ad092168" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "9fdd48bc-2f40-41d3-ac5d-e632a536c0c4" + "0f0d94d5-9b43-43e7-a8e5-e29dd6949de2" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051620Z:9fdd48bc-2f40-41d3-ac5d-e632a536c0c4" + "WESTUS:20210609T234547Z:0f0d94d5-9b43-43e7-a8e5-e29dd6949de2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1644,10 +1503,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "332" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1656,32 +1515,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:47.257Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzYvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 15,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "396a97cc-6e8f-476d-9a01-9dae89b14afc" + "8c1b2a30-3fbb-4725-8568-e9c03317c068" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1692,28 +1551,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/9c456bea-2bff-470a-ab48-41d085e38533?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/d918b777-ee11-4e6a-b812-eb2935e5878f?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/9c456bea-2bff-470a-ab48-41d085e38533?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/d918b777-ee11-4e6a-b812-eb2935e5878f?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "9c456bea-2bff-470a-ab48-41d085e38533" + "d918b777-ee11-4e6a-b812-eb2935e5878f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "cc405d65-e605-4908-9c57-450b2272f074" + "49356a67-20f6-4d2a-8711-f12bfbb1df20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051620Z:cc405d65-e605-4908-9c57-450b2272f074" + "WESTUS:20210609T234549Z:49356a67-20f6-4d2a-8711-f12bfbb1df20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1722,7 +1581,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:48 GMT" ], "Content-Length": [ "76" @@ -1734,23 +1593,23 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T05:16:20.303Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:49.133Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-8273?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyNzM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-3062?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwNjI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "07352629-ecee-4b15-bc2c-d06d97fdb6e2" + "2d94e1ba-5762-44b4-8840-4af34fc1fe7d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1764,7 +1623,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyNzMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwNjItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1773,13 +1632,13 @@ "14999" ], "x-ms-request-id": [ - "6e86644b-0458-454f-b841-dffa77d6b4d4" + "82afbc76-51da-4866-ae41-8c6195b49bf5" ], "x-ms-correlation-request-id": [ - "6e86644b-0458-454f-b841-dffa77d6b4d4" + "82afbc76-51da-4866-ae41-8c6195b49bf5" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051622Z:6e86644b-0458-454f-b841-dffa77d6b4d4" + "WESTUS:20210609T234550Z:82afbc76-51da-4866-ae41-8c6195b49bf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1788,7 +1647,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:22 GMT" + "Wed, 09 Jun 2021 23:45:50 GMT" ], "Expires": [ "-1" @@ -1803,13 +1662,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8273" + "sqlcrudtest-3062" ], "CreateServer": [ - "sqlcrudtest-5849" + "sqlcrudtest-9886" ], "TestShortTermRetentionPolicyOnGeneralPurposeScriptUse": [ - "sqlcrudtest-576" + "sqlcrudtest-9405" ] }, "Variables": { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json index ac7e7dafc3f0..95a9168b6211 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-4257?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQyNTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6791?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3OTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-4257\": \"2020-11-03 04:27:46Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6791\": \"2021-06-09 22:37:43Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "284e2201-ad06-4e53-a952-00a1a3e27851" + "b4fdc800-7817-4f82-ba95-62d15e5d8630" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "979f3c99-82e4-4138-b92e-6652e002b768" + "0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "x-ms-correlation-request-id": [ - "979f3c99-82e4-4138-b92e-6652e002b768" + "0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042748Z:979f3c99-82e4-4138-b92e-6652e002b768" + "WESTUS:20210609T223745Z:0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:47 GMT" + "Wed, 09 Jun 2021 22:37:45 GMT" ], "Content-Length": [ "236" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257\",\r\n \"name\": \"sqlcrudtest-4257\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-4257\": \"2020-11-03 04:27:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791\",\r\n \"name\": \"sqlcrudtest-6791\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6791\": \"2021-06-09 22:37:43Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e8d5bfe1-3cc8-464c-90a3-ca6824f05227" + "ed1c825e-58a8-49a1-96f9-dc7dbbed1fa3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverOperationResults/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverOperationResults/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "2a50715d-56d9-44c7-9040-18285e64d27f" + "dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "911ad0d5-15a4-4c1e-9fc5-2a3a052286fa" + "3fdfbce8-f868-418a-8e83-e167a0a7ee13" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042750Z:911ad0d5-15a4-4c1e-9fc5-2a3a052286fa" + "WESTUS:20210609T223748Z:3fdfbce8-f868-418a-8e83-e167a0a7ee13" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:49 GMT" + "Wed, 09 Jun 2021 22:37:48 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "5c74cbac-496a-4367-911a-71f0dadd376b" + "20ed5b78-8984-40b8-8eed-60a5e925d3d4" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "09e247c5-468e-4a3c-8d25-aa3e4052b446" + "2ec7201d-f73d-4a56-9168-dfe0c1961289" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042751Z:09e247c5-468e-4a3c-8d25-aa3e4052b446" + "WESTUS:20210609T223749Z:2ec7201d-f73d-4a56-9168-dfe0c1961289" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:50 GMT" + "Wed, 09 Jun 2021 22:37:49 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "8fbb69ec-4cec-4f58-aa89-016b224b17c9" + "1fdf57dc-3715-41b4-bdaa-357a28e28186" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "475bc7f9-2e70-4a06-99da-0b0cc9e718f3" + "dc3741bf-0d89-41c2-bd6a-780452850931" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042753Z:475bc7f9-2e70-4a06-99da-0b0cc9e718f3" + "WESTUS:20210609T223750Z:dc3741bf-0d89-41c2-bd6a-780452850931" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:52 GMT" + "Wed, 09 Jun 2021 22:37:50 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "dd2370b7-ec9a-468b-972a-a6a562d97122" + "e204012c-9ba8-4c11-bc27-92a40aefad09" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "e51400e9-b1b1-4fc6-9994-4f24e6109f81" + "66626e6d-6dfe-445f-a8d4-9afc3412a095" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042754Z:e51400e9-b1b1-4fc6-9994-4f24e6109f81" + "WESTUS:20210609T223751Z:66626e6d-6dfe-445f-a8d4-9afc3412a095" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:53 GMT" + "Wed, 09 Jun 2021 22:37:51 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "8408f5d9-23a2-4e75-97b7-cfbd0aff25cc" + "0c346b46-8b63-4b2c-891a-ed0adc7c51e7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "1db720b1-62ab-4298-b04b-3ccb6915c9a0" + "48dc0ced-1134-449b-9b5f-18a957fd8425" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042755Z:1db720b1-62ab-4298-b04b-3ccb6915c9a0" + "WESTUS:20210609T223752Z:48dc0ced-1134-449b-9b5f-18a957fd8425" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:54 GMT" + "Wed, 09 Jun 2021 22:37:52 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "403cd38b-f4c1-4af5-a853-ec1892433676" + "f954ef9e-fe5d-426f-97f4-ba65c1215b9b" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "9bb4a967-ef22-45e9-846c-a603f28fd970" + "cdb9ad8d-0567-4314-86e9-6f9c744ffd15" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042756Z:9bb4a967-ef22-45e9-846c-a603f28fd970" + "WESTUS:20210609T223753Z:cdb9ad8d-0567-4314-86e9-6f9c744ffd15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,7 +429,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:55 GMT" + "Wed, 09 Jun 2021 22:37:53 GMT" ], "Content-Length": [ "108" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "5ce243ae-af0c-4d04-9257-9d2f458d2710" + "2b3d455c-34bc-449c-ad0c-ad8ab080d5d1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "4581345c-26ed-4fd4-91d0-02d7b4fa4a41" + "71d96f70-5f16-4b25-ba96-a3addbd68b20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042816Z:4581345c-26ed-4fd4-91d0-02d7b4fa4a41" + "WESTUS:20210609T223814Z:71d96f70-5f16-4b25-ba96-a3addbd68b20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,7 +489,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:16 GMT" + "Wed, 09 Jun 2021 22:38:13 GMT" ], "Content-Length": [ "108" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -525,10 +525,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "8e0b736c-b96e-49d9-abc7-19380cc13894" + "251c45de-6d8f-4611-bb45-d824acb8eba1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "2efc1a7a-7a88-484e-a1a5-d8e1074d74f6" + "568840f3-6014-44c6-8609-7c4753708834" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042836Z:2efc1a7a-7a88-484e-a1a5-d8e1074d74f6" + "WESTUS:20210609T223834Z:568840f3-6014-44c6-8609-7c4753708834" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:36 GMT" + "Wed, 09 Jun 2021 22:38:33 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -584,8 +584,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "1265303e-5b47-484a-813a-82514a9e0358" + "dba0eebd-19e2-4ae6-83fc-8853b72dd61d" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -594,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "520c5c36-85b5-4b50-8b47-f8e86228d8af" + "088b1aab-6dc0-4cba-94ba-c5041bf4f170" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042836Z:520c5c36-85b5-4b50-8b47-f8e86228d8af" + "WESTUS:20210609T223854Z:088b1aab-6dc0-4cba-94ba-c5041bf4f170" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -606,7 +609,64 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:36 GMT" + "Wed, 09 Jun 2021 22:38:53 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "71768af9-8dd6-4981-ad79-1a3a8107883f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "2360244b-224a-4517-96f8-698100229175" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T223854Z:2360244b-224a-4517-96f8-698100229175" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:38:53 GMT" ], "Content-Length": [ "456" @@ -618,26 +678,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7893.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893\",\r\n \"name\": \"sqlcrudtest-7893\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4520.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520\",\r\n \"name\": \"sqlcrudtest-4520\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e01e4a38-87c3-4508-9533-b05cf34beeb7" + "3d3d70fc-d800-4c72-8ee2-7957c2b56d0b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -654,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "693b00ef-e6f3-4942-be2f-80a030e2e7c6" + "4a0d1839-4092-4d19-a864-3d7851b37d8c" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -672,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "7d5551db-476c-4f01-964f-660c405a56c6" + "033634a7-e61e-4f19-a643-702076c855e4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042838Z:7d5551db-476c-4f01-964f-660c405a56c6" + "WESTUS:20210609T223856Z:033634a7-e61e-4f19-a643-702076c855e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:37 GMT" + "Wed, 09 Jun 2021 22:38:55 GMT" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "2d6d5926-17a3-4ddd-bdd9-6bf801cf2180" + "714c2625-5ed8-44a8-a7b6-715b3671e1df" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "fb3446b6-3fe9-4745-95b3-d9c40e68856f" + "81277fe9-7d48-4a56-842f-2122004dbb36" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042853Z:fb3446b6-3fe9-4745-95b3-d9c40e68856f" + "WESTUS:20210609T223911Z:81277fe9-7d48-4a56-842f-2122004dbb36" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:52 GMT" + "Wed, 09 Jun 2021 22:39:10 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "bd2942aa-35ec-4af8-865b-450bcd0a6923" + "fbac808a-a903-4f2b-a771-5449d6523101" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-correlation-request-id": [ - "7f2a769b-6006-43dd-a913-81e1bf0de21d" + "59210526-fc54-4ea7-a8d4-819fee9a77a1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042908Z:7f2a769b-6006-43dd-a913-81e1bf0de21d" + "WESTUS:20210609T223926Z:59210526-fc54-4ea7-a8d4-819fee9a77a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:08 GMT" + "Wed, 09 Jun 2021 22:39:26 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -816,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "f538ea9d-a7f4-4c7f-b8ef-683959fd886b" + "06e5b441-2591-46fe-9499-4cbd44b5b333" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "abc388f8-f6e7-4553-a1a1-043795c4f731" + "060c40d7-f36b-4cfe-9014-332ce0ab423e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042923Z:abc388f8-f6e7-4553-a1a1-043795c4f731" + "WESTUS:20210609T223941Z:060c40d7-f36b-4cfe-9014-332ce0ab423e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:23 GMT" + "Wed, 09 Jun 2021 22:39:41 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,19 +963,19 @@ "15" ], "x-ms-request-id": [ - "a4aa7f15-408b-4e3b-b750-fa27d40690c5" + "3226b4c6-988a-45f0-805a-2aecbe28d989" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11987" ], "x-ms-correlation-request-id": [ - "57ecf62e-fde0-4c2e-a87d-8d65b382d356" + "346083ae-72b3-4fd1-8e89-94372a64b5e0" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042938Z:57ecf62e-fde0-4c2e-a87d-8d65b382d356" + "WESTUS:20210609T223957Z:346083ae-72b3-4fd1-8e89-94372a64b5e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:38 GMT" + "Wed, 09 Jun 2021 22:39:56 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -936,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,19 +1023,19 @@ "15" ], "x-ms-request-id": [ - "e8ef6483-7594-4206-958d-31a15d7b5182" + "c0185c21-67f0-4604-b87e-b9573c2bb18b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11986" ], "x-ms-correlation-request-id": [ - "69147bc1-b405-4d1d-963a-4b7a76159597" + "c8192472-65e2-48f3-bd94-524d8465b4fc" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042953Z:69147bc1-b405-4d1d-963a-4b7a76159597" + "WESTUS:20210609T224012Z:c8192472-65e2-48f3-bd94-524d8465b4fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,10 +1044,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:11 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -996,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1019,20 +1079,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "ff525422-f942-43d3-a756-775067ffb600" + "6b8aa3ad-6835-4fd9-9764-a27c3591c13a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11985" ], "x-ms-correlation-request-id": [ - "d12a3965-ac88-4e6d-84f7-e3b941cc9941" + "9e1c4a45-4d90-4ace-9701-8e33263ea854" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:d12a3965-ac88-4e6d-84f7-e3b941cc9941" + "WESTUS:20210609T224027Z:9e1c4a45-4d90-4ace-9701-8e33263ea854" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1041,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:26 GMT" ], "Content-Length": [ - "872" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1053,26 +1116,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d41387d7-de86-43ff-9013-af70a3dc6b66\",\r\n \"creationDate\": \"2020-11-03T04:29:39.383Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:59:39.383Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757\",\r\n \"name\": \"sqlcrudtest-7757\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c8b4e9f6-83c2-467a-a7b8-14c35ba51eea" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "d2db91ae-7e6e-4041-825a-33a4c88f9fbe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224027Z:d2db91ae-7e6e-4041-825a-33a4c88f9fbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:27 GMT" + ], + "Content-Length": [ + "1087" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"47da25e2-8656-4749-802a-30aaf587c496\",\r\n \"creationDate\": \"2021-06-09T22:40:18.953Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978\",\r\n \"name\": \"sqlcrudtest-5978\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "09de3911-cc12-4994-8b8c-fcc2056c7c5d" + "4bdafd7d-88d4-4a40-91a8-425db8462c2a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,19 +1203,19 @@ "no-cache" ], "x-ms-request-id": [ - "72881fdf-699b-4a67-a612-7d41b2bbc6fb" + "9e01485f-d812-45c3-874f-5c8505bb45b3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11983" ], "x-ms-correlation-request-id": [ - "9048300e-5b51-486f-9c33-dd27aa020a69" + "938375ea-bd77-4542-93f9-38b560ffd1fd" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:9048300e-5b51-486f-9c33-dd27aa020a69" + "WESTUS:20210609T224027Z:938375ea-bd77-4542-93f9-38b560ffd1fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,10 +1224,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:27 GMT" ], "Content-Length": [ - "333" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1116,26 +1236,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e63eed5f-98e0-49a6-ac16-02f7d742ce24" + "f6acc4d9-83e6-4535-a2c4-67842485be99" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1146,19 +1266,19 @@ "no-cache" ], "x-ms-request-id": [ - "5bab3bbd-19fd-4dd8-a65f-1b9fc5f860d7" + "b76b5909-894b-481f-b48d-dfe581b437bb" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11982" ], "x-ms-correlation-request-id": [ - "06a4dc2c-2139-4895-9701-183f69aa2683" + "bccf5e79-5efb-4092-a062-01429ff0a3a6" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042957Z:06a4dc2c-2139-4895-9701-183f69aa2683" + "WESTUS:20210609T224030Z:bccf5e79-5efb-4092-a062-01429ff0a3a6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1167,10 +1287,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:56 GMT" + "Wed, 09 Jun 2021 22:40:30 GMT" ], "Content-Length": [ - "333" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1179,26 +1299,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8631ccf7-cd4c-48a0-8d56-e988685ef4cb" + "4499e837-25a0-42f1-b067-4d4d54ec882c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1209,19 +1329,82 @@ "no-cache" ], "x-ms-request-id": [ - "514eb823-3964-4fe5-b963-528aef2e496a" + "91403323-152f-4e3b-b1bd-49f37ba54916" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11981" + ], + "x-ms-correlation-request-id": [ + "1e8be96e-e1a2-4e2f-95ac-2818f9b83cb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224033Z:1e8be96e-e1a2-4e2f-95ac-2818f9b83cb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:33 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d55edbe9-589b-468d-97b9-71856b0570cb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d919f734-2b94-40ec-864c-e1f6519f4a38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" ], "x-ms-correlation-request-id": [ - "e00f7c80-ced7-4826-87f6-1d95276a1093" + "6c953347-99af-44b1-a110-1cd65de34ae6" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T043000Z:e00f7c80-ced7-4826-87f6-1d95276a1093" + "WESTUS:20210609T224037Z:6c953347-99af-44b1-a110-1cd65de34ae6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1230,10 +1413,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:59 GMT" + "Wed, 09 Jun 2021 22:40:36 GMT" ], "Content-Length": [ - "334" + "365" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,32 +1425,158 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "babd26cd-edde-4c29-9042-d463fb8f1c39" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3a7a25a7-cc0b-4012-81d5-fff7ed039790" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "a8c210c7-2129-46b7-888b-da12f6a2fb33" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224037Z:a8c210c7-2129-46b7-888b-da12f6a2fb33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:36 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce803d4e-3a09-45ff-80a8-19cf4001db96" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "378de9c3-e18e-40b2-9cef-0c6f3bd0e40f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "0359cd90-2854-4bec-8991-365c7c4df9ef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224040Z:0359cd90-2854-4bec-8991-365c7c4df9ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:39 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 36\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 40,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "1bfe6ded-ffef-4054-a969-87f1dbe52d3f" + "0ada160b-ced9-4161-bd7e-4f21e002ec47" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1278,7 +1587,7 @@ "no-cache" ], "x-ms-request-id": [ - "ee47b8fe-65d5-4ab9-af07-f80b5523d2c3" + "250529af-6cea-49f5-b987-c5758ee8a6d3" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1287,10 +1596,10 @@ "1197" ], "x-ms-correlation-request-id": [ - "bf5f09d3-07dc-4793-bebc-1814556dea97" + "ec526370-12c6-481d-9616-76389892858a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:bf5f09d3-07dc-4793-bebc-1814556dea97" + "WESTUS:20210609T224027Z:ec526370-12c6-481d-9616-76389892858a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1299,7 +1608,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:27 GMT" ], "Content-Length": [ "172" @@ -1311,26 +1620,173 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 36 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 40 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ab3c5d7-b640-464f-a4b5-34c028ae2df6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1d0c28b5-748e-4711-9dd3-9fb78611fe63" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "281f8d03-e78d-469f-bf4e-36a8322f13e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224031Z:281f8d03-e78d-469f-bf4e-36a8322f13e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:30 GMT" + ], + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a73f3082-e131-4459-8261-a84ecd09eb2b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/8796e160-a78a-475b-a479-9f560c72adc8?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/8796e160-a78a-475b-a479-9f560c72adc8?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "8796e160-a78a-475b-a479-9f560c72adc8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "84fe98d6-7bae-4183-8afb-2bc1ab989b9c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224034Z:84fe98d6-7bae-4183-8afb-2bc1ab989b9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:33 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:40:34.2Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "25a4fd0d-f2c8-4ece-9c13-bef60f88da2f" + "cd130922-86fa-48f4-a8d6-da82a4b1fb8c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1347,28 +1803,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/a8c4b2df-c816-4ffc-864c-b158f4ad1077?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/22373461-db4a-4640-b894-fcd848a7e7b0?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/a8c4b2df-c816-4ffc-864c-b158f4ad1077?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/22373461-db4a-4640-b894-fcd848a7e7b0?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "a8c4b2df-c816-4ffc-864c-b158f4ad1077" + "22373461-db4a-4640-b894-fcd848a7e7b0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "f0af713c-73a9-49bc-9e5d-2281044d92cd" + "fdacbecd-9258-43a8-abc3-4f5dc8c9cb86" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042957Z:f0af713c-73a9-49bc-9e5d-2281044d92cd" + "WESTUS:20210609T224037Z:fdacbecd-9258-43a8-abc3-4f5dc8c9cb86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1377,10 +1833,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:57 GMT" + "Wed, 09 Jun 2021 22:40:37 GMT" ], "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1389,23 +1845,23 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:29:57.493Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:40:37.48Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-4257?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQyNTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6791?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3OTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "28cec983-fed3-4f53-8ddc-6d1ec0fd4d12" + "a50c2a1d-f72e-4ee8-8ead-7f7d3362a496" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1419,22 +1875,22 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDQyNTctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY3OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "8c10d078-50aa-4a76-82ad-06caa60733ae" ], "x-ms-correlation-request-id": [ - "31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "8c10d078-50aa-4a76-82ad-06caa60733ae" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T043002Z:31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "WESTCENTRALUS:20210609T224041Z:8c10d078-50aa-4a76-82ad-06caa60733ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1443,7 +1899,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:30:01 GMT" + "Wed, 09 Jun 2021 22:40:41 GMT" ], "Expires": [ "-1" @@ -1458,13 +1914,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-4257" + "sqlcrudtest-6791" ], "CreateServer": [ - "sqlcrudtest-7893" + "sqlcrudtest-4520" ], "TestShortTermRetentionPolicyOnPremium": [ - "sqlcrudtest-7757" + "sqlcrudtest-5978" ] }, "Variables": { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json new file mode 100644 index 000000000000..417f0cc09449 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json @@ -0,0 +1,1399 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-7899?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc4OTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7899\": \"2021-06-10 00:17:19Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "982bb544-a06a-4ae6-8ba7-2c52cb987952" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "95" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "8d72e54c-2299-4de0-b8e6-313077840134" + ], + "x-ms-correlation-request-id": [ + "8d72e54c-2299-4de0-b8e6-313077840134" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001720Z:8d72e54c-2299-4de0-b8e6-313077840134" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:19 GMT" + ], + "Content-Length": [ + "236" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899\",\r\n \"name\": \"sqlcrudtest-7899\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7899\": \"2021-06-10 00:17:19Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ea793f3-3318-46c1-bb91-ea2afd11f610" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "180" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverOperationResults/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "bc17d2f5-0585-4401-b21e-e35f1d33e3a1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e4f92c41-341f-49ba-9c61-c8e513d79807" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001723Z:e4f92c41-341f-49ba-9c61-c8e513d79807" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:22 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "78c1beac-7ae2-4ccc-b557-dd05cd558e57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "666fa1d7-9092-49ea-9b6f-6793c917abfe" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001724Z:666fa1d7-9092-49ea-9b6f-6793c917abfe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:23 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "0e12bc9b-cbba-4073-8147-de36302aefbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "1f4d3b4e-2ebb-43ac-b91e-3527b393775a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001725Z:1f4d3b4e-2ebb-43ac-b91e-3527b393775a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "649efd6d-6609-494d-ba70-b075574880cc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "90e2c993-9cec-47cb-bfc2-eb08d0e0ad48" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001726Z:90e2c993-9cec-47cb-bfc2-eb08d0e0ad48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:25 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "94e588c7-bae7-4a0b-ba2f-2a4a347e9d3c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "28b6719f-2e78-4bce-bef3-84eeab2e739e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001727Z:28b6719f-2e78-4bce-bef3-84eeab2e739e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:26 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "757ca6b3-3e9f-4c5a-88e6-9817abed195a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "ebddca28-6f0f-477c-92da-213f66fc3eda" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001728Z:ebddca28-6f0f-477c-92da-213f66fc3eda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:27 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "9fb454eb-e8ac-486c-865a-dc0bee7b6ba1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "2d3a1adb-12e9-4958-b244-d1f5f123bd4b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001748Z:2d3a1adb-12e9-4958-b244-d1f5f123bd4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "160fcfe2-271f-4e58-b2cc-217ce059433d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "12e13b6e-e2fd-4773-8306-a06df96f3da5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001808Z:12e13b6e-e2fd-4773-8306-a06df96f3da5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:08 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "086c29f5-f68f-4087-8d47-f7305c15fb87" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "776aa16e-0e3a-4c70-8214-708104e090dc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001829Z:776aa16e-0e3a-4c70-8214-708104e090dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "58f886dd-8cbd-4185-a6d3-b45fb9d75ff2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "9c8bd3e5-47c5-457a-a93e-d5c6973930e8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001829Z:9c8bd3e5-47c5-457a-a93e-d5c6973930e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:29 GMT" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3847.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847\",\r\n \"name\": \"sqlcrudtest-3847\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDU/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "037fc090-ea19-4f60-97b8-67080e46a748" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "64" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "d1ba1e40-70c8-4eef-ade5-8286fb28328c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3a48522b-992a-45fa-be7b-6ef6ea5f7d02" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001831Z:3a48522b-992a-45fa-be7b-6ef6ea5f7d02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:30 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "cf4eaedd-05d7-459a-a209-31cd5eb2854a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "4972f5d6-3bd1-43bd-b7b6-e26e40346c09" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001846Z:4972f5d6-3bd1-43bd-b7b6-e26e40346c09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "cd63f480-ba0c-4844-8425-8dfc552182bc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "bca8b7ac-8f36-4598-8064-6508eb8e3fb8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001901Z:bca8b7ac-8f36-4598-8064-6508eb8e3fb8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:00 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fe698c93-f0a7-46f6-adc7-f8307addf056" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "461e3520-d3b3-442c-adb8-241f7760dae6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001916Z:461e3520-d3b3-442c-adb8-241f7760dae6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "261878fa-9fc8-4488-a672-615ebef48924" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "ba857737-3ff1-474d-a59d-5c9588521183" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001931Z:ba857737-3ff1-474d-a59d-5c9588521183" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9b1779d9-4c0f-47b9-9033-887ac878cc43" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "99b2cb6f-f35c-4d14-a172-af0232dd6455" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001947Z:99b2cb6f-f35c-4d14-a172-af0232dd6455" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f9e50a77-26a4-4f94-a7f9-fd04e8760a83" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "55a64838-4f73-4a4a-a1eb-ed6c164ea11c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:55a64838-4f73-4a4a-a1eb-ed6c164ea11c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDU/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d648b788-6bb3-4566-879a-bfb45e201f82" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "b4088302-05d1-408e-810d-56458c475828" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:b4088302-05d1-408e-810d-56458c475828" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "1085" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"1a38ae46-8191-4f5e-b4bf-b86d939b3aa9\",\r\n \"creationDate\": \"2021-06-10T00:19:58.123Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805\",\r\n \"name\": \"sqlcrudtest-805\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b691b6a1-34e3-43dc-a759-93b8741173e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "21cb93dd-075b-4f88-96da-b2a58b457e85" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "198aedf6-79c9-4a9a-9065-f7e2c8065cfb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:198aedf6-79c9-4a9a-9065-f7e2c8065cfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "332" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47f381fa-a361-4797-a8a1-37db4ca3a4c8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "53" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/d56e1be8-095c-4c4c-9a71-3f954d72f1a4?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/d56e1be8-095c-4c4c-9a71-3f954d72f1a4?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "d56e1be8-095c-4c4c-9a71-3f954d72f1a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d3c7cc7e-4f91-4391-a5a1-82ecee9c9899" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:d3c7cc7e-4f91-4391-a5a1-82ecee9c9899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-10T00:20:02.717Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-7899?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc4OTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2a93d5f-c498-449e-a376-48488108abb7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc4OTktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "x-ms-correlation-request-id": [ + "3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T002004Z:3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7899" + ], + "CreateServer": [ + "sqlcrudtest-3847" + ], + "TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled": [ + "sqlcrudtest-805" + ] + }, + "Variables": { + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", + "DefaultLocation": "eastus" + } +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs index e286d532d527..62d8f7dff088 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs @@ -21,6 +21,8 @@ namespace Sql.Tests { public class ShortTermRetentionTests { + // The new created database's defaultDiffBackupIntervalHours could be null if you re-record this test after 06/20/2021. + [Fact] public void TestShortTermRetentionPolicyOnBasic() { @@ -29,6 +31,9 @@ public void TestShortTermRetentionPolicyOnBasic() // Valid Retention Days for Basic DB is 1 to 7 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a DTU - Basic DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -44,20 +49,44 @@ public void TestShortTermRetentionPolicyOnBasic() // Test GET operation can get default retention days and diffbackupinterval value. BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policyDefault.DiffBackupIntervalInHours); - // Attempt to set retention period to 8 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 8); + // Failure Scenario 1: Attempt to set retention period to 8 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 8, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 6 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 6, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Attempt to set retention period to 6 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 6); + // Success Scenario 1: Attempt to set retention period to 5 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 5, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 7 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 7, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } @@ -69,6 +98,9 @@ public void TestShortTermRetentionPolicyOnPremium() // Valid Retention Days for Basic DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a DTU - Premium DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -84,20 +116,44 @@ public void TestShortTermRetentionPolicyOnPremium() // Test GET operation can get default retention days BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policyDefault.DiffBackupIntervalInHours); - // Attempt to set retention period to 36 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 36); + // Failure Scenario 1: Attempt to set retention period to 40 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 40, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policy.RetentionDays); + BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Increase retention period to 35 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35); + // Success Scenario 1: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 34 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 34, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } @@ -110,6 +166,9 @@ public void TestShortTermRetentionPolicyOnGeneralPurpose() // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a vCore - GeneralPurpose DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -122,26 +181,46 @@ public void TestShortTermRetentionPolicyOnGeneralPurpose() Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) }); - // Test GET operation can get default retention days and diffbackupinterval value. - BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); - - // Attempt to set retention period to 36 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 36); + // Failure Scenario 1: Attempt to set retention period to 40 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 40, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policy.RetentionDays); + BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Increase retention period to 35 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35); + // Success Scenario 1: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 34 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 34, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } + // Test when Feature Configurable Differential Backup (CDB) is ON. [Fact] public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() { @@ -150,6 +229,55 @@ public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + + // Create a vCore - GeneralPurpose DB. + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + Database database = sqlClient.Databases.CreateOrUpdate( + resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), + new Database + { + Location = server.Location, + Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) + }); + + // Senario 1: Test Update operation through GET operation without provide DiffBackupIntervalInHours. + var strPolicy1 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + strPolicy1.RetentionDays = 28; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, strPolicy1.DiffBackupIntervalInHours); + + // Scenario 2: Test Update operation through GET operation without provide RetentionDays. + strPolicy1.DiffBackupIntervalInHours = 24; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); + Assert.Equal(24, strPolicy1.DiffBackupIntervalInHours); + + // Scenario 3: Test Update operation through GET operation. + var strPolicy3 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + Assert.Equal(defaultRetentionDays, strPolicy3.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, strPolicy3.DiffBackupIntervalInHours); + strPolicy3.RetentionDays = 15; + strPolicy3.DiffBackupIntervalInHours = 12; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy3); + Assert.Equal(15, strPolicy3.RetentionDays); + Assert.Equal(12, strPolicy3.DiffBackupIntervalInHours); + } + } + + // Test when Feature Configurable Differential Backup (CDB) is OFF. + [Fact] + public async void TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. + int defaultRetentionDays = 7; + // Create a vCore - GeneralPurpose DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -162,11 +290,12 @@ public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) }); - // Test Update operation through GET operation. - var strPolicy = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); - strPolicy.RetentionDays = 28; - await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy); - Assert.Equal(28, strPolicy.RetentionDays); + // Senario 1: Test Update operation through GET operation when feature CDB is OFF. + var strPolicy1 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + Assert.Equal(defaultRetentionDays, strPolicy1.RetentionDays); + strPolicy1.RetentionDays = 28; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); } } } From 19b2047ae96731d6b32471f8220bbf31b8dd0730 Mon Sep 17 00:00:00 2001 From: Lillian Liu Date: Wed, 16 Jun 2021 17:36:30 -0700 Subject: [PATCH 2/6] add generation metadata --- eng/mgmt/mgmtmetadata/sql_resource-manager.txt | 7 +++---- .../src/Generated/SdkInfo_SqlManagementClient.cs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 2133baad2d88..1a1d16913005 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -4,12 +4,11 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk -Autorest CSharp Version: 2.3.82 -2021-06-07 17:20:29 UTC +2021-06-17 00:11:23 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 10c93ad91d3f44f62f2568a5b480c538a7c15daf +Commit: 2737ef83c687cd61721ece7af713921d0df2485a AutoRest information Requested version: v2 -Bootstrapper version: autorest@2.0.4413 +Bootstrapper version: autorest@2.0.4413 \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 37efadeffd52..1ef022b2fcac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -151,7 +151,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "10c93ad91d3f44f62f2568a5b480c538a7c15daf"; + public static readonly String GithubCommidId = "2737ef83c687cd61721ece7af713921d0df2485a"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section From 26e7c58329a3f3203078275eb0adce5eeb6de4db Mon Sep 17 00:00:00 2001 From: Lillian Liu Date: Wed, 16 Jun 2021 17:47:06 -0700 Subject: [PATCH 3/6] bump sdk version after merged with latest master --- .../src/Microsoft.Azure.Management.Sql.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj index 24e20a633b93..083be2272c95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj @@ -7,7 +7,7 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.54.0-preview + 1.55.0-preview Microsoft Azure SQL Management;SQL;SQL Management; Date: Fri, 18 Jun 2021 13:42:01 -0700 Subject: [PATCH 4/6] Can't manually modify SdkInfo_SqlManagementClient file so does included API ReplicationLink's changes. --- .../mgmtmetadata/sql_resource-manager.txt | 8 +- .../src/Generated/Models/ReplicationLink.cs | 35 ++- .../Generated/Models/ReplicationLinkType.cs | 105 ++++++++ .../Models/ReplicationLinkTypeConverter.cs | 53 ++++ .../src/Generated/Models/ReplicationRole.cs | 78 ++++++ .../src/Generated/Models/ReplicationState.cs | 109 ++++++++ .../Models/ReplicationStateConverter.cs | 53 ++++ .../Generated/ReplicationLinksOperations.cs | 234 +++++++++--------- .../ReplicationLinksOperationsExtensions.cs | 120 ++++----- .../Generated/SdkInfo_SqlManagementClient.cs | 6 +- .../DatabaseReplicationLinkScenarioTests.cs | 10 +- 11 files changed, 609 insertions(+), 202 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationStateConverter.cs diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 1a1d16913005..2b2fe6f24503 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk -2021-06-17 00:11:23 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\Lillian\work\azure-sdk-for-net\sdk +2021-06-18 19:21:12 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 2737ef83c687cd61721ece7af713921d0df2485a +Commit: 0f72d7e8267d012ed7f51107f066217c8bfda9a7 AutoRest information Requested version: v2 -Bootstrapper version: autorest@2.0.4413 \ No newline at end of file +Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs index 915f12daee23..d6c8cfd8221c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs @@ -38,18 +38,24 @@ public ReplicationLink() /// Resource partner server. /// Resource partner database. /// Resource partner location. - /// Local replication role. - /// Partner replication role. + /// Local replication role. Possible values include: + /// 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', + /// 'Copy' + /// Partner replication role. Possible values + /// include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', + /// 'Copy' /// Replication mode. /// Time at which the link was created. /// Seeding completion percentage for the /// link. /// Replication state (PENDING, SEEDING, - /// CATCHUP, SUSPENDED). + /// CATCHUP, SUSPENDED). Possible values include: 'PENDING', 'SEEDING', + /// 'CATCH_UP', 'SUSPENDED' /// Whether the user is currently /// allowed to terminate the link. - /// Link type (GEO, NAMED). - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), string role = default(string), string partnerRole = default(string), string replicationMode = default(string), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string), bool? isTerminationAllowed = default(bool?), string linkType = default(string)) + /// Link type (GEO, NAMED). Possible values + /// include: 'GEO', 'NAMED' + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), string replicationMode = default(string), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), ReplicationState? replicationState = default(ReplicationState?), bool? isTerminationAllowed = default(bool?), ReplicationLinkType? linkType = default(ReplicationLinkType?)) : base(id, name, type) { PartnerServer = partnerServer; @@ -90,16 +96,18 @@ public ReplicationLink() public string PartnerLocation { get; private set; } /// - /// Gets local replication role. + /// Gets local replication role. Possible values include: 'Primary', + /// 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.role")] - public string Role { get; private set; } + public ReplicationRole? Role { get; private set; } /// - /// Gets partner replication role. + /// Gets partner replication role. Possible values include: 'Primary', + /// 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.partnerRole")] - public string PartnerRole { get; private set; } + public ReplicationRole? PartnerRole { get; private set; } /// /// Gets replication mode. @@ -121,9 +129,11 @@ public ReplicationLink() /// /// Gets replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + /// Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', + /// 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public string ReplicationState { get; private set; } + public ReplicationState? ReplicationState { get; private set; } /// /// Gets whether the user is currently allowed to terminate the link. @@ -132,10 +142,11 @@ public ReplicationLink() public bool? IsTerminationAllowed { get; private set; } /// - /// Gets link type (GEO, NAMED). + /// Gets link type (GEO, NAMED). Possible values include: 'GEO', + /// 'NAMED' /// [JsonProperty(PropertyName = "properties.linkType")] - public string LinkType { get; private set; } + public ReplicationLinkType? LinkType { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs new file mode 100644 index 000000000000..9f2807afc491 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for ReplicationLinkType. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicationLinkTypeConverter))] + public struct ReplicationLinkType : System.IEquatable + { + private ReplicationLinkType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicationLinkType GEO = "GEO"; + + public static readonly ReplicationLinkType NAMED = "NAMED"; + + + /// + /// Underlying value of enum ReplicationLinkType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicationLinkType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicationLinkType + /// + public bool Equals(ReplicationLinkType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicationLinkType + /// + public static implicit operator ReplicationLinkType(string value) + { + return new ReplicationLinkType(value); + } + + /// + /// Implicit operator to convert ReplicationLinkType to string + /// + public static implicit operator string(ReplicationLinkType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicationLinkType + /// + public static bool operator == (ReplicationLinkType e1, ReplicationLinkType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicationLinkType + /// + public static bool operator != (ReplicationLinkType e1, ReplicationLinkType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicationLinkType + /// + public override bool Equals(object obj) + { + return obj is ReplicationLinkType && Equals((ReplicationLinkType)obj); + } + + /// + /// Returns for hashCode ReplicationLinkType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkTypeConverter.cs new file mode 100644 index 000000000000..ed9ba82b8bb9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicationLinkType. + /// + public sealed class ReplicationLinkTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicationLinkType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicationLinkType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicationLinkType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicationLinkType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicationLinkType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs new file mode 100644 index 000000000000..f0d74d3f85fb --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ReplicationRole. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ReplicationRole + { + [EnumMember(Value = "Primary")] + Primary, + [EnumMember(Value = "Secondary")] + Secondary, + [EnumMember(Value = "NonReadableSecondary")] + NonReadableSecondary, + [EnumMember(Value = "Source")] + Source, + [EnumMember(Value = "Copy")] + Copy + } + internal static class ReplicationRoleEnumExtension + { + internal static string ToSerializedValue(this ReplicationRole? value) + { + return value == null ? null : ((ReplicationRole)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ReplicationRole value) + { + switch( value ) + { + case ReplicationRole.Primary: + return "Primary"; + case ReplicationRole.Secondary: + return "Secondary"; + case ReplicationRole.NonReadableSecondary: + return "NonReadableSecondary"; + case ReplicationRole.Source: + return "Source"; + case ReplicationRole.Copy: + return "Copy"; + } + return null; + } + + internal static ReplicationRole? ParseReplicationRole(this string value) + { + switch( value ) + { + case "Primary": + return ReplicationRole.Primary; + case "Secondary": + return ReplicationRole.Secondary; + case "NonReadableSecondary": + return ReplicationRole.NonReadableSecondary; + case "Source": + return ReplicationRole.Source; + case "Copy": + return ReplicationRole.Copy; + } + return null; + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs new file mode 100644 index 000000000000..44947f0aaccd --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for ReplicationState. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicationStateConverter))] + public struct ReplicationState : System.IEquatable + { + private ReplicationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicationState PENDING = "PENDING"; + + public static readonly ReplicationState SEEDING = "SEEDING"; + + public static readonly ReplicationState CATCHUP = "CATCH_UP"; + + public static readonly ReplicationState SUSPENDED = "SUSPENDED"; + + + /// + /// Underlying value of enum ReplicationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicationState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicationState + /// + public bool Equals(ReplicationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicationState + /// + public static implicit operator ReplicationState(string value) + { + return new ReplicationState(value); + } + + /// + /// Implicit operator to convert ReplicationState to string + /// + public static implicit operator string(ReplicationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicationState + /// + public static bool operator == (ReplicationState e1, ReplicationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicationState + /// + public static bool operator != (ReplicationState e1, ReplicationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicationState + /// + public override bool Equals(object obj) + { + return obj is ReplicationState && Equals((ReplicationState)obj); + } + + /// + /// Returns for hashCode ReplicationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationStateConverter.cs new file mode 100644 index 000000000000..37a054974228 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicationState. + /// + public sealed class ReplicationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicationState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicationState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs index 5b6868bfcf25..64ddd37e63c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs @@ -243,67 +243,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) } /// - /// Sets which replica database is primary by failing over from the current - /// primary replica database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Sets which replica database is primary by failing over from the current - /// primary replica database. This operation might result in data loss. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes a database replication link in forced or friendly way. + /// Gets a replication link. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -313,39 +253,10 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database that has the replication link to be failed over. + /// The name of the database. /// /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of replication links on database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. + /// The name of the replication link. /// /// /// Headers that will be added to request. @@ -368,7 +279,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -382,11 +293,15 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -397,16 +312,18 @@ internal ReplicationLinksOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("linkId", linkId); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{linkId}", System.Uri.EscapeDataString(linkId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -506,7 +423,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -519,7 +436,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -539,20 +456,109 @@ internal ReplicationLinksOperations(SqlManagementClient client) } /// - /// Gets a replication link. + /// Sets which replica database is primary by failing over from the current + /// primary replica database. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database that has the replication link to be failed over. /// - /// - /// The name of the replication link. + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Sets which replica database is primary by failing over from the current + /// primary replica database. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of replication links on database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. /// /// /// Headers that will be added to request. @@ -575,7 +581,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicationLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -589,15 +595,11 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (replicationLinkName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "replicationLinkName"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -608,18 +610,16 @@ internal ReplicationLinksOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("replicationLinkName", replicationLinkName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{replicationLinkName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{replicationLinkName}", System.Uri.EscapeDataString(replicationLinkName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -719,7 +719,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -732,7 +732,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -759,7 +759,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// Headers that will be added to request. @@ -796,7 +796,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs index 7b89dd57fb38..5cfcc8702823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs @@ -72,6 +72,60 @@ public static void Delete(this IReplicationLinksOperations operations, string re (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Gets a replication link. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the replication link. + /// + public static ReplicationLink Get(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, linkId).GetAwaiter().GetResult(); + } + + /// + /// Gets a replication link. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the replication link. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Sets which replica database is primary by failing over from the current /// primary replica database. @@ -246,10 +300,10 @@ public static void Unlink(this IReplicationLinksOperations operations, string re /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database. /// public static IPage ListByDatabase(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName) { @@ -267,10 +321,10 @@ public static IPage ListByDatabase(this IReplicationLinksOperat /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database. /// /// /// The cancellation token. @@ -283,60 +337,6 @@ public static IPage ListByDatabase(this IReplicationLinksOperat } } - /// - /// Gets a replication link. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. - /// - public static ReplicationLink Get(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string replicationLinkName) - { - return operations.GetAsync(resourceGroupName, serverName, databaseName, replicationLinkName).GetAwaiter().GetResult(); - } - - /// - /// Gets a replication link. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string replicationLinkName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicationLinkName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets a list of replication links. /// @@ -348,7 +348,7 @@ public static ReplicationLink Get(this IReplicationLinksOperations operations, s /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// public static IPage ListByServer(this IReplicationLinksOperations operations, string resourceGroupName, string serverName) { @@ -366,7 +366,7 @@ public static IPage ListByServer(this IReplicationLinksOperatio /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// The cancellation token. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 1ef022b2fcac..706fc1e9dd44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -106,7 +106,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "RecoverableDatabases", "2014-04-01"), new Tuple("Sql", "RecoverableManagedDatabases", "2020-11-01-preview"), new Tuple("Sql", "ReplicationLinks", "2014-04-01"), - new Tuple("Sql", "ReplicationLinks", "2020-11-01-preview"), + new Tuple("Sql", "ReplicationLinks", "2021-02-01-preview"), new Tuple("Sql", "RestorableDroppedDatabases", "2021-02-01-preview"), new Tuple("Sql", "RestorableDroppedManagedDatabases", "2021-02-01-preview"), new Tuple("Sql", "RestorePoints", "2020-11-01-preview"), @@ -148,10 +148,10 @@ public static IEnumerable> ApiInfo_SqlManagementCl // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "v2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Lillian\\work\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "2737ef83c687cd61721ece7af713921d0df2485a"; + public static readonly String GithubCommidId = "0f72d7e8267d012ed7f51107f066217c8bfda9a7"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs index 06711eba3c66..f09af715da27 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs @@ -97,12 +97,10 @@ public void TestGetListFailoverReplicationLink() var replicationLink = sqlClient.ReplicationLinks.Get(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); // Verify that the second database has a replicationLink to the first, with the first being the primary and the second being the secondary - string primaryRole = "Primary"; - string secondaryRole = "Secondary"; Assert.True(replicationLink.PartnerServer == v12Server.Name); Assert.True(replicationLink.PartnerDatabase == databaseName); - Assert.True(replicationLink.PartnerRole == primaryRole); - Assert.True(replicationLink.Role == secondaryRole); + Assert.True(replicationLink.PartnerRole == ReplicationRole.Primary); + Assert.True(replicationLink.Role == ReplicationRole.Secondary); // Failover Replication Link sqlClient.ReplicationLinks.Failover(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); @@ -111,8 +109,8 @@ public void TestGetListFailoverReplicationLink() replicationLink = sqlClient.ReplicationLinks.Get(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); // Verify that Primary and Secondary have switched - Assert.True(replicationLink.PartnerRole == secondaryRole); - Assert.True(replicationLink.Role == primaryRole); + Assert.True(replicationLink.PartnerRole == ReplicationRole.Secondary); + Assert.True(replicationLink.Role == ReplicationRole.Primary); } } } From a9927440ef531abdff32d878bd7fb867eb731f5a Mon Sep 17 00:00:00 2001 From: Lillian Liu Date: Mon, 21 Jun 2021 16:48:43 -0700 Subject: [PATCH 5/6] Merge regenerated files (Swagger doesn't change but it looks the json generator has rule changes) --- .../mgmtmetadata/sql_resource-manager.txt | 4 +- .../src/Generated/CapabilitiesOperations.cs | 4 +- .../CapabilitiesOperationsExtensions.cs | 4 +- .../src/Generated/DatabasesOperations.cs | 6 +- .../DatabasesOperationsExtensions.cs | 8 +- .../src/Generated/ICapabilitiesOperations.cs | 2 +- .../src/Generated/IDatabasesOperations.cs | 4 +- .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- .../IManagedDatabaseQueriesOperations.cs | 2 +- .../Generated/IManagedInstancesOperations.cs | 6 +- .../Generated/IReplicationLinksOperations.cs | 58 ++-- .../src/Generated/ISqlManagementClient.cs | 10 +- .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- .../ManagedDatabaseQueriesOperations.cs | 4 +- ...agedDatabaseQueriesOperationsExtensions.cs | 4 +- .../Generated/ManagedInstancesOperations.cs | 14 +- .../ManagedInstancesOperationsExtensions.cs | 12 +- .../src/Generated/Models/AdministratorType.cs | 86 +++++- .../Models/AdministratorTypeConverter.cs | 53 ++++ .../Models/AggregationFunctionType.cs | 98 +++++- .../AggregationFunctionTypeConverter.cs | 53 ++++ .../Models/AutoPauseDelayTimeRange.cs | 4 +- .../Models/BackupStorageRedundancy.cs | 92 +++++- .../BackupStorageRedundancyConverter.cs | 53 ++++ .../src/Generated/Models/CapabilityGroup.cs | 98 +++++- .../Models/CapabilityGroupConverter.cs | 53 ++++ .../Generated/Models/CatalogCollationType.cs | 89 +++++- .../Models/CatalogCollationTypeConverter.cs | 53 ++++ .../src/Generated/Models/ColumnDataType.cs | 185 +++++++++--- .../Models/ColumnDataTypeConverter.cs | 53 ++++ .../CopyLongTermRetentionBackupParameters.cs | 4 +- .../src/Generated/Models/CreateMode.cs | 113 ++++++- .../Generated/Models/CreateModeConverter.cs | 53 ++++ .../src/Generated/Models/CreatedByType.cs | 95 +++++- .../Models/CreatedByTypeConverter.cs | 53 ++++ .../Models/CurrentBackupStorageRedundancy.cs | 94 +++++- ...CurrentBackupStorageRedundancyConverter.cs | 55 ++++ .../src/Generated/Models/Database.cs | 20 +- .../src/Generated/Models/DatabaseColumn.cs | 6 +- .../Generated/Models/DatabaseExtensions.cs | 8 +- .../Generated/Models/DatabaseLicenseType.cs | 89 +++++- .../Models/DatabaseLicenseTypeConverter.cs | 53 ++++ .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseReadScale.cs | 89 +++++- .../Models/DatabaseReadScaleConverter.cs | 53 ++++ .../src/Generated/Models/DatabaseState.cs | 92 +++++- .../Models/DatabaseStateConverter.cs | 53 ++++ .../src/Generated/Models/DatabaseStatus.cs | 146 +++++++-- .../Models/DatabaseStatusConverter.cs | 53 ++++ .../src/Generated/Models/DatabaseTable.cs | 4 +- .../src/Generated/Models/DatabaseUpdate.cs | 20 +- .../src/Generated/Models/DayOfWeek.cs | 104 ++++++- .../Generated/Models/DayOfWeekConverter.cs | 53 ++++ .../src/Generated/Models/ElasticPool.cs | 6 +- .../Models/ElasticPoolLicenseType.cs | 89 +++++- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 ++++ ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +++++- .../Models/ElasticPoolStateConverter.cs | 53 ++++ .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 8 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +++++- .../FailoverGroupReplicationRoleConverter.cs | 55 ++++ .../src/Generated/Models/IdentityType.cs | 92 +++++- .../Generated/Models/IdentityTypeConverter.cs | 53 ++++ .../ImportExistingDatabaseDefinition.cs | 8 +- .../Models/ImportNewDatabaseDefinition.cs | 8 +- .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +++++- ...ceFailoverGroupReplicationRoleConverter.cs | 55 ++++ .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolLicenseType.cs | 89 +++++- .../InstancePoolLicenseTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +++++- .../Models/JobAgentStateConverter.cs | 53 ++++ .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 ++++++- .../Models/JobExecutionLifecycleConverter.cs | 53 ++++ .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +++++- .../Models/JobStepActionSourceConverter.cs | 53 ++++ .../src/Generated/Models/JobStepActionType.cs | 86 +++++- .../Models/JobStepActionTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +++++- .../Models/JobStepOutputTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +++++- .../Models/JobTargetTypeConverter.cs | 53 ++++ .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +++++- .../Generated/Models/LogSizeUnitConverter.cs | 53 ++++ .../Models/LongTermRetentionBackup.cs | 6 +- .../LongTermRetentionBackupOperationResult.cs | 4 +- .../Models/MaintenanceWindowTimeRange.cs | 4 +- .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +++++- .../ManagedDatabaseCreateModeConverter.cs | 54 ++++ .../Generated/Models/ManagedDatabaseStatus.cs | 104 ++++++- .../Models/ManagedDatabaseStatusConverter.cs | 53 ++++ .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 10 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../ManagedInstanceExternalAdministrator.cs | 6 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +++++- .../ManagedInstanceLicenseTypeConverter.cs | 55 ++++ .../ManagedInstanceLongTermRetentionBackup.cs | 4 +- .../Models/ManagedInstanceOperation.cs | 4 +- .../Models/ManagedInstanceProxyOverride.cs | 92 +++++- .../ManagedInstanceProxyOverrideConverter.cs | 55 ++++ .../Generated/Models/ManagedInstanceUpdate.cs | 10 +- .../Models/ManagedServerCreateMode.cs | 89 +++++- .../ManagedServerCreateModeConverter.cs | 53 ++++ .../Models/ManagementOperationState.cs | 101 ++++++- .../ManagementOperationStateConverter.cs | 54 ++++ .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +++++- .../Generated/Models/MaxSizeUnitConverter.cs | 53 ++++ .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../src/Generated/Models/MetricType.cs | 98 +++++- .../Generated/Models/MetricTypeConverter.cs | 53 ++++ .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +++++- .../Models/OperationOriginConverter.cs | 53 ++++ .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 86 +++++- .../Models/PauseDelayTimeUnitConverter.cs | 53 ++++ .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +++++- .../Models/PerformanceLevelUnitConverter.cs | 53 ++++ .../Models/PrimaryAggregationType.cs | 101 ++++++- .../Models/PrimaryAggregationTypeConverter.cs | 53 ++++ .../src/Generated/Models/PrincipalType.cs | 92 +++++- .../Models/PrincipalTypeConverter.cs | 53 ++++ .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointProvisioningState.cs | 100 ++++++- ...ivateEndpointProvisioningStateConverter.cs | 55 ++++ ...inkServiceConnectionStateActionsRequire.cs | 95 +++++- ...eConnectionStateActionsRequireConverter.cs | 55 ++++ ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 ++++++- ...nkServiceConnectionStateStatusConverter.cs | 55 ++++ .../src/Generated/Models/ProvisioningState.cs | 98 +++++- .../Models/ProvisioningStateConverter.cs | 53 ++++ .../Generated/Models/QueryMetricInterval.cs | 4 +- .../Generated/Models/QueryMetricProperties.cs | 4 +- .../Generated/Models/QueryMetricUnitType.cs | 95 +++++- .../Models/QueryMetricUnitTypeConverter.cs | 53 ++++ .../Generated/Models/QueryTimeGrainType.cs | 89 +++++- .../Models/QueryTimeGrainTypeConverter.cs | 53 ++++ .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +++++- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 ++++ .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +++++- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 ++++ .../Models/RecommendedActionCurrentState.cs | 127 +++++++- .../RecommendedActionCurrentStateConverter.cs | 55 ++++ .../Models/RecommendedActionStateInfo.cs | 11 +- .../src/Generated/Models/ReplicaType.cs | 89 +++++- .../Generated/Models/ReplicaTypeConverter.cs | 53 ++++ .../RequestedBackupStorageRedundancy.cs | 94 +++++- ...questedBackupStorageRedundancyConverter.cs | 55 ++++ .../src/Generated/Models/ResourceIdentity.cs | 4 +- ...ourceIdentityWithUserAssignedIdentities.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +++++- .../Generated/Models/SampleNameConverter.cs | 53 ++++ .../src/Generated/Models/SecondaryType.cs | 89 +++++- .../Models/SecondaryTypeConverter.cs | 53 ++++ .../src/Generated/Models/Server.cs | 8 +- .../Models/ServerExternalAdministrator.cs | 6 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +++++- .../Models/ServerKeyTypeConverter.cs | 53 ++++ .../Models/ServerNetworkAccessFlag.cs | 89 +++++- .../ServerNetworkAccessFlagConverter.cs | 53 ++++ .../src/Generated/Models/ServerOperation.cs | 4 +- .../src/Generated/Models/ServerUpdate.cs | 8 +- .../Models/ServerWorkspaceFeature.cs | 89 +++++- .../Models/ServerWorkspaceFeatureConverter.cs | 53 ++++ .../Generated/Models/ServiceObjectiveName.cs | 278 +++++++++++++----- .../Models/ServiceObjectiveNameConverter.cs | 53 ++++ .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +++++- .../Models/StorageAccountTypeConverter.cs | 53 ++++ .../src/Generated/Models/StorageKeyType.cs | 89 +++++- .../Models/StorageKeyTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +++++- .../Models/SyncAgentStateConverter.cs | 53 ++++ .../Models/SyncConflictResolutionPolicy.cs | 89 +++++- .../SyncConflictResolutionPolicyConverter.cs | 55 ++++ .../src/Generated/Models/SyncDirection.cs | 92 +++++- .../Models/SyncDirectionConverter.cs | 53 ++++ .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +++++- .../Models/SyncGroupLogTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncGroupState.cs | 98 +++++- .../Models/SyncGroupStateConverter.cs | 53 ++++ .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +++++- .../Models/SyncMemberDbTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncMemberState.cs | 137 +++++++-- .../Models/SyncMemberStateConverter.cs | 53 ++++ .../src/Generated/Models/SystemData.cs | 6 +- .../src/Generated/Models/TableTemporalType.cs | 92 +++++- .../Models/TableTemporalTypeConverter.cs | 53 ++++ .../Models/TargetBackupStorageRedundancy.cs | 94 +++++- .../TargetBackupStorageRedundancyConverter.cs | 55 ++++ .../src/Generated/Models/TopQueries.cs | 4 +- .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +++++- ...ntDataEncryptionActivityStatusConverter.cs | 55 ++++ .../Generated/Models/UnitDefinitionType.cs | 101 ++++++- .../Models/UnitDefinitionTypeConverter.cs | 53 ++++ .../src/Generated/Models/UnitType.cs | 101 ++++++- .../src/Generated/Models/UnitTypeConverter.cs | 53 ++++ ...UpdateLongTermRetentionBackupParameters.cs | 4 +- .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 101 ++++++- .../VirtualNetworkRuleStateConverter.cs | 53 ++++ .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +++++- ...lnerabilityAssessmentScanStateConverter.cs | 55 ++++ .../VulnerabilityAssessmentScanTriggerType.cs | 95 +++++- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 ++++ .../Generated/SdkInfo_SqlManagementClient.cs | 2 +- .../src/Generated/SqlManagementClient.cs | 12 +- 245 files changed, 11180 insertions(+), 854 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 2b2fe6f24503..8427baa0bdf5 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -4,11 +4,11 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\Lillian\work\azure-sdk-for-net\sdk -2021-06-18 19:21:12 UTC +2021-06-21 22:15:47 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 0f72d7e8267d012ed7f51107f066217c8bfda9a7 +Commit: 4965f0f5165d99f2f87523d03b243b88afde29d8 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs index 40283bad0a1b..d32b1c57e602 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs @@ -83,7 +83,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -115,7 +115,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs index d9be266e240b..70b9d5389404 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs @@ -36,7 +36,7 @@ public static partial class CapabilitiesOperationsExtensions /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -59,7 +59,7 @@ public static partial class CapabilitiesOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs index 309970e283d2..d2a6a609c859 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs @@ -1187,7 +1187,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -2402,7 +2402,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2446,7 +2446,7 @@ internal DatabasesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs index 46e86c427642..0f7f272795b3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs @@ -440,7 +440,7 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -468,7 +468,7 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -988,7 +988,7 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1016,7 +1016,7 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs index e35700693ec1..ff5ce0000f3f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs @@ -51,6 +51,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs index 277dc9cb311c..79b8a0931d59 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs @@ -299,7 +299,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of inaccessible databases in a logical server /// @@ -633,7 +633,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Pauses a database. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs index 87eada5fc9bc..4787efc4bac3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -185,7 +185,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -215,7 +215,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -248,7 +248,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Copy an existing long term retention backup to a different server. /// @@ -436,7 +436,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -471,7 +471,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -509,7 +509,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Copy an existing long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index 624ead6cd7af..540aeeb3ea0d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs index f7ed60b84147..109d67edd2c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs @@ -96,7 +96,7 @@ public partial interface IManagedDatabaseQueriesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get query execution statistics by query id. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs index 36420cc7522b..422b2d6b5f05 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs @@ -267,7 +267,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Failovers a managed instance. /// @@ -295,7 +295,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// @@ -407,7 +407,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of all managed instances in an instance pool. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs index 0982e58f6068..8e46eb06c69a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs @@ -56,8 +56,7 @@ public partial interface IReplicationLinksOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Sets which replica database is primary by failing over from the - /// current primary replica database. + /// Gets a replication link. /// /// /// The name of the resource group that contains the resource. You can @@ -68,11 +67,10 @@ public partial interface IReplicationLinksOperations /// The name of the server. /// /// - /// The name of the database that has the replication link to be failed - /// over. + /// The name of the database. /// /// - /// The ID of the replication link to be failed over. + /// The name of the replication link. /// /// /// The headers that will be added to request. @@ -83,14 +81,16 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Sets which replica database is primary by failing over from the - /// current primary replica database. This operation might result in - /// data loss. + /// current primary replica database. /// /// /// The name of the resource group that contains the resource. You can @@ -119,9 +119,11 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a database replication link in forced or friendly way. + /// Sets which replica database is primary by failing over from the + /// current primary replica database. This operation might result in + /// data loss. /// /// /// The name of the resource group that contains the resource. You can @@ -138,9 +140,6 @@ public partial interface IReplicationLinksOperations /// /// The ID of the replication link to be failed over. /// - /// - /// The required parameters for unlinking replication link. - /// /// /// The headers that will be added to request. /// @@ -153,9 +152,9 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of replication links on database. + /// Deletes a database replication link in forced or friendly way. /// /// /// The name of the resource group that contains the resource. You can @@ -163,10 +162,17 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. /// /// /// The headers that will be added to request. @@ -177,15 +183,12 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a replication link. + /// Gets a list of replication links on database. /// /// /// The name of the resource group that contains the resource. You can @@ -193,13 +196,10 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. + /// The name of the database. /// /// /// The headers that will be added to request. @@ -216,7 +216,7 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicationLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of replication links. /// @@ -226,7 +226,7 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// The headers that will be added to request. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs index bc688ed524ab..b21c6d120aaa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs @@ -142,11 +142,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IServerUsagesOperations ServerUsages { get; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -622,6 +617,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IWorkloadGroupsOperations WorkloadGroups { get; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the IDatabaseExtensionsOperations. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs index 37c396a655b1..bae3d848d153 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs @@ -392,7 +392,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -441,7 +441,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -606,7 +606,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -643,7 +643,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -811,7 +811,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -854,7 +854,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1353,7 +1353,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1408,7 +1408,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1577,7 +1577,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1620,7 +1620,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1792,7 +1792,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1841,7 +1841,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 2cd514b86c70..836515dfcd84 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -260,7 +260,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -290,7 +290,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -314,7 +314,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -338,7 +338,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -365,7 +365,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -392,7 +392,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -675,7 +675,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -709,7 +709,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -737,7 +737,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -765,7 +765,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -796,7 +796,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -827,7 +827,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index 45b7097649d1..8f02e2307047 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index ff1fd78f3bfb..a80bb2301147 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs index 73627d7d5f6c..16f962735832 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs @@ -308,7 +308,7 @@ internal ManagedDatabaseQueriesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -368,7 +368,7 @@ internal ManagedDatabaseQueriesOperations(SqlManagementClient client) } if (interval != null) { - _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(interval))); + _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(interval, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs index 13a1a4fdad35..516b9f3b6a95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs @@ -101,7 +101,7 @@ public static ManagedInstanceQuery Get(this IManagedDatabaseQueriesOperations op /// The time step to be used to summarize the metric values. Possible values /// include: 'PT1H', 'P1D' /// - public static IPage ListByQuery(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string)) + public static IPage ListByQuery(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?)) { return operations.ListByQueryAsync(resourceGroupName, managedInstanceName, databaseName, queryId, startTime, endTime, interval).GetAwaiter().GetResult(); } @@ -137,7 +137,7 @@ public static ManagedInstanceQuery Get(this IManagedDatabaseQueriesOperations op /// /// The cancellation token. /// - public static async Task> ListByQueryAsync(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByQueryAsync(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByQueryWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, queryId, startTime, endTime, interval, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs index b2b25a5ff195..bcb5dae11db1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs @@ -965,7 +965,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1025,15 +1025,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) } if (interval != null) { - _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(interval))); + _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(interval, Client.SerializationSettings).Trim('"')))); } if (aggregationFunction != null) { - _queryParameters.Add(string.Format("aggregationFunction={0}", System.Uri.EscapeDataString(aggregationFunction))); + _queryParameters.Add(string.Format("aggregationFunction={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(aggregationFunction, Client.SerializationSettings).Trim('"')))); } if (observationMetric != null) { - _queryParameters.Add(string.Format("observationMetric={0}", System.Uri.EscapeDataString(observationMetric))); + _queryParameters.Add(string.Format("observationMetric={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(observationMetric, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1184,7 +1184,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -1837,7 +1837,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1875,7 +1875,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs index 76789c27981b..73ce0ecd59a6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -366,7 +366,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// Metric to be used for ranking top queries. Default is 'cpu'. Possible /// values include: 'cpu', 'io', 'logIo', 'duration', 'dtu' /// - public static IPage ListByManagedInstance(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string)) + public static IPage ListByManagedInstance(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?)) { return operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric).GetAwaiter().GetResult(); } @@ -412,7 +412,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// /// The cancellation token. /// - public static async Task> ListByManagedInstanceAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByManagedInstanceAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByManagedInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric, null, cancellationToken).ConfigureAwait(false)) { @@ -437,7 +437,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -462,7 +462,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -619,7 +619,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -644,7 +644,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs index 46fed52dc35b..361ff0623ebe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for AdministratorType. /// - public static class AdministratorType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(AdministratorTypeConverter))] + public struct AdministratorType : System.IEquatable { - public const string ActiveDirectory = "ActiveDirectory"; + private AdministratorType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly AdministratorType ActiveDirectory = "ActiveDirectory"; + + + /// + /// Underlying value of enum AdministratorType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for AdministratorType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type AdministratorType + /// + public bool Equals(AdministratorType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to AdministratorType + /// + public static implicit operator AdministratorType(string value) + { + return new AdministratorType(value); + } + + /// + /// Implicit operator to convert AdministratorType to string + /// + public static implicit operator string(AdministratorType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum AdministratorType + /// + public static bool operator == (AdministratorType e1, AdministratorType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum AdministratorType + /// + public static bool operator != (AdministratorType e1, AdministratorType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for AdministratorType + /// + public override bool Equals(object obj) + { + return obj is AdministratorType && Equals((AdministratorType)obj); + } + + /// + /// Returns for hashCode AdministratorType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs new file mode 100644 index 000000000000..e86d627a33c1 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for AdministratorType. + /// + public sealed class AdministratorTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to AdministratorType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(AdministratorType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to AdministratorType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (AdministratorType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for AdministratorType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs index 35a7da69340c..8f91074f018e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for AggregationFunctionType. /// - public static class AggregationFunctionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(AggregationFunctionTypeConverter))] + public struct AggregationFunctionType : System.IEquatable { - public const string Avg = "avg"; - public const string Min = "min"; - public const string Max = "max"; - public const string Stdev = "stdev"; - public const string Sum = "sum"; + private AggregationFunctionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly AggregationFunctionType Avg = "avg"; + + public static readonly AggregationFunctionType Min = "min"; + + public static readonly AggregationFunctionType Max = "max"; + + public static readonly AggregationFunctionType Stdev = "stdev"; + + public static readonly AggregationFunctionType Sum = "sum"; + + + /// + /// Underlying value of enum AggregationFunctionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for AggregationFunctionType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type AggregationFunctionType + /// + public bool Equals(AggregationFunctionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to AggregationFunctionType + /// + public static implicit operator AggregationFunctionType(string value) + { + return new AggregationFunctionType(value); + } + + /// + /// Implicit operator to convert AggregationFunctionType to string + /// + public static implicit operator string(AggregationFunctionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum AggregationFunctionType + /// + public static bool operator == (AggregationFunctionType e1, AggregationFunctionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum AggregationFunctionType + /// + public static bool operator != (AggregationFunctionType e1, AggregationFunctionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for AggregationFunctionType + /// + public override bool Equals(object obj) + { + return obj is AggregationFunctionType && Equals((AggregationFunctionType)obj); + } + + /// + /// Returns for hashCode AggregationFunctionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs new file mode 100644 index 000000000000..db8932705523 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for AggregationFunctionType. + /// + public sealed class AggregationFunctionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to AggregationFunctionType + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(AggregationFunctionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to AggregationFunctionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (AggregationFunctionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for AggregationFunctionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs index e516ef733611..4aa00ee16aaf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -39,7 +39,7 @@ public AutoPauseDelayTimeRange() /// Possible values include: 'Minutes' /// Value that is used to not pause /// (infinite delay before pause) - public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), string unit = default(string), int? doNotPauseValue = default(int?)) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) { MinValue = minValue; MaxValue = maxValue; @@ -85,7 +85,7 @@ public AutoPauseDelayTimeRange() /// include: 'Minutes' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PauseDelayTimeUnit? Unit { get; private set; } /// /// Gets value that is used to not pause (infinite delay before pause) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs index 65c4e42a7406..2bcc114c07c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for BackupStorageRedundancy. /// - public static class BackupStorageRedundancy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(BackupStorageRedundancyConverter))] + public struct BackupStorageRedundancy : System.IEquatable { - public const string Geo = "Geo"; - public const string Local = "Local"; - public const string Zone = "Zone"; + private BackupStorageRedundancy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly BackupStorageRedundancy Geo = "Geo"; + + public static readonly BackupStorageRedundancy Local = "Local"; + + public static readonly BackupStorageRedundancy Zone = "Zone"; + + + /// + /// Underlying value of enum BackupStorageRedundancy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for BackupStorageRedundancy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type BackupStorageRedundancy + /// + public bool Equals(BackupStorageRedundancy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to BackupStorageRedundancy + /// + public static implicit operator BackupStorageRedundancy(string value) + { + return new BackupStorageRedundancy(value); + } + + /// + /// Implicit operator to convert BackupStorageRedundancy to string + /// + public static implicit operator string(BackupStorageRedundancy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum BackupStorageRedundancy + /// + public static bool operator == (BackupStorageRedundancy e1, BackupStorageRedundancy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum BackupStorageRedundancy + /// + public static bool operator != (BackupStorageRedundancy e1, BackupStorageRedundancy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for BackupStorageRedundancy + /// + public override bool Equals(object obj) + { + return obj is BackupStorageRedundancy && Equals((BackupStorageRedundancy)obj); + } + + /// + /// Returns for hashCode BackupStorageRedundancy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs new file mode 100644 index 000000000000..19f65835f477 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for BackupStorageRedundancy. + /// + public sealed class BackupStorageRedundancyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to BackupStorageRedundancy + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(BackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to BackupStorageRedundancy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (BackupStorageRedundancy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for BackupStorageRedundancy for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs index b1b3d583cc8f..0435e985b3b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - public static class CapabilityGroup + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CapabilityGroupConverter))] + public struct CapabilityGroup : System.IEquatable { - public const string SupportedEditions = "supportedEditions"; - public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; - public const string SupportedInstancePoolEditions = "supportedInstancePoolEditions"; - public const string SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; + private CapabilityGroup(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; + + public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + + public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; + + + /// + /// Underlying value of enum CapabilityGroup + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CapabilityGroup + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CapabilityGroup + /// + public bool Equals(CapabilityGroup e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CapabilityGroup + /// + public static implicit operator CapabilityGroup(string value) + { + return new CapabilityGroup(value); + } + + /// + /// Implicit operator to convert CapabilityGroup to string + /// + public static implicit operator string(CapabilityGroup e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CapabilityGroup + /// + public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CapabilityGroup + /// + public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CapabilityGroup + /// + public override bool Equals(object obj) + { + return obj is CapabilityGroup && Equals((CapabilityGroup)obj); + } + + /// + /// Returns for hashCode CapabilityGroup + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs new file mode 100644 index 000000000000..b648ba1c90cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CapabilityGroup. + /// + public sealed class CapabilityGroupConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CapabilityGroup by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CapabilityGroup. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CapabilityGroup)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CapabilityGroup for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs index 9f424cc32d9b..9e5a5d531732 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - public static class CatalogCollationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CatalogCollationTypeConverter))] + public struct CatalogCollationType : System.IEquatable { - public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; - public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + private CatalogCollationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; + + public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + + + /// + /// Underlying value of enum CatalogCollationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CatalogCollationType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CatalogCollationType + /// + public bool Equals(CatalogCollationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CatalogCollationType + /// + public static implicit operator CatalogCollationType(string value) + { + return new CatalogCollationType(value); + } + + /// + /// Implicit operator to convert CatalogCollationType to string + /// + public static implicit operator string(CatalogCollationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CatalogCollationType + /// + public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CatalogCollationType + /// + public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CatalogCollationType + /// + public override bool Equals(object obj) + { + return obj is CatalogCollationType && Equals((CatalogCollationType)obj); + } + + /// + /// Returns for hashCode CatalogCollationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs new file mode 100644 index 000000000000..f605382139bd --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CatalogCollationType. + /// + public sealed class CatalogCollationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CatalogCollationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CatalogCollationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CatalogCollationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CatalogCollationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs index b454b0c50604..91e9fdc2e689 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs @@ -10,45 +10,160 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ColumnDataType. /// - public static class ColumnDataType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ColumnDataTypeConverter))] + public struct ColumnDataType : System.IEquatable { - public const string Image = "image"; - public const string Text = "text"; - public const string Uniqueidentifier = "uniqueidentifier"; - public const string Date = "date"; - public const string Time = "time"; - public const string Datetime2 = "datetime2"; - public const string Datetimeoffset = "datetimeoffset"; - public const string Tinyint = "tinyint"; - public const string Smallint = "smallint"; - public const string Int = "int"; - public const string Smalldatetime = "smalldatetime"; - public const string Real = "real"; - public const string Money = "money"; - public const string Datetime = "datetime"; - public const string Float = "float"; - public const string SqlVariant = "sql_variant"; - public const string Ntext = "ntext"; - public const string Bit = "bit"; - public const string Decimal = "decimal"; - public const string Numeric = "numeric"; - public const string Smallmoney = "smallmoney"; - public const string Bigint = "bigint"; - public const string Hierarchyid = "hierarchyid"; - public const string Geometry = "geometry"; - public const string Geography = "geography"; - public const string Varbinary = "varbinary"; - public const string Varchar = "varchar"; - public const string Binary = "binary"; - public const string Char = "char"; - public const string Timestamp = "timestamp"; - public const string Nvarchar = "nvarchar"; - public const string Nchar = "nchar"; - public const string Xml = "xml"; - public const string Sysname = "sysname"; + private ColumnDataType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ColumnDataType Image = "image"; + + public static readonly ColumnDataType Text = "text"; + + public static readonly ColumnDataType Uniqueidentifier = "uniqueidentifier"; + + public static readonly ColumnDataType Date = "date"; + + public static readonly ColumnDataType Time = "time"; + + public static readonly ColumnDataType Datetime2 = "datetime2"; + + public static readonly ColumnDataType Datetimeoffset = "datetimeoffset"; + + public static readonly ColumnDataType Tinyint = "tinyint"; + + public static readonly ColumnDataType Smallint = "smallint"; + + public static readonly ColumnDataType Int = "int"; + + public static readonly ColumnDataType Smalldatetime = "smalldatetime"; + + public static readonly ColumnDataType Real = "real"; + + public static readonly ColumnDataType Money = "money"; + + public static readonly ColumnDataType Datetime = "datetime"; + + public static readonly ColumnDataType Float = "float"; + + public static readonly ColumnDataType SqlVariant = "sql_variant"; + + public static readonly ColumnDataType Ntext = "ntext"; + + public static readonly ColumnDataType Bit = "bit"; + + public static readonly ColumnDataType Decimal = "decimal"; + + public static readonly ColumnDataType Numeric = "numeric"; + + public static readonly ColumnDataType Smallmoney = "smallmoney"; + + public static readonly ColumnDataType Bigint = "bigint"; + + public static readonly ColumnDataType Hierarchyid = "hierarchyid"; + + public static readonly ColumnDataType Geometry = "geometry"; + + public static readonly ColumnDataType Geography = "geography"; + + public static readonly ColumnDataType Varbinary = "varbinary"; + + public static readonly ColumnDataType Varchar = "varchar"; + + public static readonly ColumnDataType Binary = "binary"; + + public static readonly ColumnDataType Char = "char"; + + public static readonly ColumnDataType Timestamp = "timestamp"; + + public static readonly ColumnDataType Nvarchar = "nvarchar"; + + public static readonly ColumnDataType Nchar = "nchar"; + + public static readonly ColumnDataType Xml = "xml"; + + public static readonly ColumnDataType Sysname = "sysname"; + + + /// + /// Underlying value of enum ColumnDataType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ColumnDataType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ColumnDataType + /// + public bool Equals(ColumnDataType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ColumnDataType + /// + public static implicit operator ColumnDataType(string value) + { + return new ColumnDataType(value); + } + + /// + /// Implicit operator to convert ColumnDataType to string + /// + public static implicit operator string(ColumnDataType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ColumnDataType + /// + public static bool operator == (ColumnDataType e1, ColumnDataType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ColumnDataType + /// + public static bool operator != (ColumnDataType e1, ColumnDataType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ColumnDataType + /// + public override bool Equals(object obj) + { + return obj is ColumnDataType && Equals((ColumnDataType)obj); + } + + /// + /// Returns for hashCode ColumnDataType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs new file mode 100644 index 000000000000..1f37633fcecb --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ColumnDataType. + /// + public sealed class ColumnDataTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ColumnDataType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ColumnDataType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ColumnDataType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ColumnDataType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ColumnDataType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs index 76e1849789c0..748dbdc8e602 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs @@ -48,7 +48,7 @@ public CopyLongTermRetentionBackupParameters() /// The storage redundancy /// type of the copied backup. Possible values include: 'Geo', 'Local', /// 'Zone' - public CopyLongTermRetentionBackupParameters(string targetSubscriptionId = default(string), string targetResourceGroup = default(string), string targetServerResourceId = default(string), string targetServerFullyQualifiedDomainName = default(string), string targetDatabaseName = default(string), string targetBackupStorageRedundancy = default(string)) + public CopyLongTermRetentionBackupParameters(string targetSubscriptionId = default(string), string targetResourceGroup = default(string), string targetServerResourceId = default(string), string targetServerFullyQualifiedDomainName = default(string), string targetDatabaseName = default(string), TargetBackupStorageRedundancy? targetBackupStorageRedundancy = default(TargetBackupStorageRedundancy?)) { TargetSubscriptionId = targetSubscriptionId; TargetResourceGroup = targetResourceGroup; @@ -100,7 +100,7 @@ public CopyLongTermRetentionBackupParameters() /// Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.targetBackupStorageRedundancy")] - public string TargetBackupStorageRedundancy { get; set; } + public TargetBackupStorageRedundancy? TargetBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs index e8415a7b5ea0..2f6204f30d9a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - public static class CreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CreateModeConverter))] + public struct CreateMode : System.IEquatable { - public const string Default = "Default"; - public const string Copy = "Copy"; - public const string Secondary = "Secondary"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Restore = "Restore"; - public const string Recovery = "Recovery"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - public const string OnlineSecondary = "OnlineSecondary"; + private CreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CreateMode Default = "Default"; + + public static readonly CreateMode Copy = "Copy"; + + public static readonly CreateMode Secondary = "Secondary"; + + public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly CreateMode Restore = "Restore"; + + public static readonly CreateMode Recovery = "Recovery"; + + public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + + public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; + + + /// + /// Underlying value of enum CreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CreateMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CreateMode + /// + public bool Equals(CreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CreateMode + /// + public static implicit operator CreateMode(string value) + { + return new CreateMode(value); + } + + /// + /// Implicit operator to convert CreateMode to string + /// + public static implicit operator string(CreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CreateMode + /// + public static bool operator == (CreateMode e1, CreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CreateMode + /// + public static bool operator != (CreateMode e1, CreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CreateMode + /// + public override bool Equals(object obj) + { + return obj is CreateMode && Equals((CreateMode)obj); + } + + /// + /// Returns for hashCode CreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs new file mode 100644 index 000000000000..b46c3e6cdda3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CreateMode. + /// + public sealed class CreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CreateMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs index f921107c3754..8a5d880d9837 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CreatedByType. /// - public static class CreatedByType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CreatedByTypeConverter))] + public struct CreatedByType : System.IEquatable { - public const string User = "User"; - public const string Application = "Application"; - public const string ManagedIdentity = "ManagedIdentity"; - public const string Key = "Key"; + private CreatedByType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CreatedByType User = "User"; + + public static readonly CreatedByType Application = "Application"; + + public static readonly CreatedByType ManagedIdentity = "ManagedIdentity"; + + public static readonly CreatedByType Key = "Key"; + + + /// + /// Underlying value of enum CreatedByType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CreatedByType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CreatedByType + /// + public bool Equals(CreatedByType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CreatedByType + /// + public static implicit operator CreatedByType(string value) + { + return new CreatedByType(value); + } + + /// + /// Implicit operator to convert CreatedByType to string + /// + public static implicit operator string(CreatedByType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CreatedByType + /// + public static bool operator == (CreatedByType e1, CreatedByType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CreatedByType + /// + public static bool operator != (CreatedByType e1, CreatedByType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CreatedByType + /// + public override bool Equals(object obj) + { + return obj is CreatedByType && Equals((CreatedByType)obj); + } + + /// + /// Returns for hashCode CreatedByType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs new file mode 100644 index 000000000000..369281f8eff5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CreatedByType. + /// + public sealed class CreatedByTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CreatedByType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CreatedByType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CreatedByType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CreatedByType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CreatedByType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs index 446a823940c5..da748049e479 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs @@ -10,14 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CurrentBackupStorageRedundancy. /// - public static class CurrentBackupStorageRedundancy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CurrentBackupStorageRedundancyConverter))] + public struct CurrentBackupStorageRedundancy : System.IEquatable { - public const string Geo = "Geo"; - public const string Local = "Local"; - public const string Zone = "Zone"; + private CurrentBackupStorageRedundancy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CurrentBackupStorageRedundancy Geo = "Geo"; + + public static readonly CurrentBackupStorageRedundancy Local = "Local"; + + public static readonly CurrentBackupStorageRedundancy Zone = "Zone"; + + + /// + /// Underlying value of enum CurrentBackupStorageRedundancy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CurrentBackupStorageRedundancy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CurrentBackupStorageRedundancy + /// + public bool Equals(CurrentBackupStorageRedundancy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// CurrentBackupStorageRedundancy + /// + public static implicit operator CurrentBackupStorageRedundancy(string value) + { + return new CurrentBackupStorageRedundancy(value); + } + + /// + /// Implicit operator to convert CurrentBackupStorageRedundancy to + /// string + /// + public static implicit operator string(CurrentBackupStorageRedundancy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CurrentBackupStorageRedundancy + /// + public static bool operator == (CurrentBackupStorageRedundancy e1, CurrentBackupStorageRedundancy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CurrentBackupStorageRedundancy + /// + public static bool operator != (CurrentBackupStorageRedundancy e1, CurrentBackupStorageRedundancy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CurrentBackupStorageRedundancy + /// + public override bool Equals(object obj) + { + return obj is CurrentBackupStorageRedundancy && Equals((CurrentBackupStorageRedundancy)obj); + } + + /// + /// Returns for hashCode CurrentBackupStorageRedundancy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs new file mode 100644 index 000000000000..f223e3c43b72 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CurrentBackupStorageRedundancy. + /// + public sealed class CurrentBackupStorageRedundancyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// CurrentBackupStorageRedundancy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CurrentBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// CurrentBackupStorageRedundancy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CurrentBackupStorageRedundancy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CurrentBackupStorageRedundancy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs index d8605dbe2b70..f4bd66a7d9e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs @@ -199,7 +199,7 @@ public Database() /// database has been created. /// Infra encryption is enabled /// for this database. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? highAvailabilityReplicaCount = default(int?), SecondaryType? secondaryType = default(SecondaryType?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), CurrentBackupStorageRedundancy? currentBackupStorageRedundancy = default(CurrentBackupStorageRedundancy?), RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?)) : base(location, id, name, type, tags) { Sku = sku; @@ -327,7 +327,7 @@ public Database() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public CreateMode? CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -347,7 +347,7 @@ public Database() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public string SampleName { get; set; } + public SampleName? SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -373,7 +373,7 @@ public Database() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public DatabaseStatus? Status { get; private set; } /// /// Gets the ID of the database. @@ -458,7 +458,7 @@ public Database() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -475,7 +475,7 @@ public Database() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public DatabaseLicenseType? LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -497,7 +497,7 @@ public Database() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public string ReadScale { get; set; } + public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of secondary replicas associated with the @@ -512,7 +512,7 @@ public Database() /// include: 'Geo', 'Named' /// [JsonProperty(PropertyName = "properties.secondaryType")] - public string SecondaryType { get; set; } + public SecondaryType? SecondaryType { get; set; } /// /// Gets the name and tier of the SKU. @@ -532,14 +532,14 @@ public Database() /// database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.currentBackupStorageRedundancy")] - public string CurrentBackupStorageRedundancy { get; private set; } + public CurrentBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage account type to be used to store backups /// for this database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public string RequestedBackupStorageRedundancy { get; set; } + public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs index 9eadc11e6b27..2e7a89637272 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs @@ -50,7 +50,7 @@ public DatabaseColumn() /// a memory optimized table. /// Whether or not the column is /// computed. - public DatabaseColumn(string id = default(string), string name = default(string), string type = default(string), string columnType = default(string), string temporalType = default(string), bool? memoryOptimized = default(bool?), bool? isComputed = default(bool?)) + public DatabaseColumn(string id = default(string), string name = default(string), string type = default(string), ColumnDataType? columnType = default(ColumnDataType?), TableTemporalType? temporalType = default(TableTemporalType?), bool? memoryOptimized = default(bool?), bool? isComputed = default(bool?)) : base(id, name, type) { ColumnType = columnType; @@ -75,14 +75,14 @@ public DatabaseColumn() /// 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' /// [JsonProperty(PropertyName = "properties.columnType")] - public string ColumnType { get; set; } + public ColumnDataType? ColumnType { get; set; } /// /// Gets or sets the table temporal type. Possible values include: /// 'NonTemporalTable', 'HistoryTable', 'SystemVersionedTemporalTable' /// [JsonProperty(PropertyName = "properties.temporalType")] - public string TemporalType { get; set; } + public TableTemporalType? TemporalType { get; set; } /// /// Gets or sets whether or not the column belongs to a memory diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs index 8d24b91ea7d0..d744d5f5ec07 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs @@ -39,7 +39,7 @@ public DatabaseExtensions() /// Resource ID. /// Resource name. /// Resource type. - public DatabaseExtensions(string storageKeyType, string storageKey, string storageUri, string id = default(string), string name = default(string), string type = default(string)) + public DatabaseExtensions(StorageKeyType storageKeyType, string storageKey, string storageUri, string id = default(string), string name = default(string), string type = default(string)) : base(id, name, type) { StorageKeyType = storageKeyType; @@ -65,7 +65,7 @@ static DatabaseExtensions() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "properties.storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -93,10 +93,6 @@ static DatabaseExtensions() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs index 8fec77be3faf..8843de2b4e73 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - public static class DatabaseLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseLicenseTypeConverter))] + public struct DatabaseLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private DatabaseLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly DatabaseLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum DatabaseLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseLicenseType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseLicenseType + /// + public bool Equals(DatabaseLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseLicenseType + /// + public static implicit operator DatabaseLicenseType(string value) + { + return new DatabaseLicenseType(value); + } + + /// + /// Implicit operator to convert DatabaseLicenseType to string + /// + public static implicit operator string(DatabaseLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseLicenseType + /// + public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseLicenseType + /// + public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseLicenseType + /// + public override bool Equals(object obj) + { + return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); + } + + /// + /// Returns for hashCode DatabaseLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs new file mode 100644 index 000000000000..d72fe3f966be --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseLicenseType. + /// + public sealed class DatabaseLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs index 98d64dc4bfb6..4af090f5ddb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs index be48a34acdcf..4b1ae7eead49 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseReadScale. /// - public static class DatabaseReadScale + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseReadScaleConverter))] + public struct DatabaseReadScale : System.IEquatable { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; + private DatabaseReadScale(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseReadScale Enabled = "Enabled"; + + public static readonly DatabaseReadScale Disabled = "Disabled"; + + + /// + /// Underlying value of enum DatabaseReadScale + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseReadScale + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseReadScale + /// + public bool Equals(DatabaseReadScale e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseReadScale + /// + public static implicit operator DatabaseReadScale(string value) + { + return new DatabaseReadScale(value); + } + + /// + /// Implicit operator to convert DatabaseReadScale to string + /// + public static implicit operator string(DatabaseReadScale e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseReadScale + /// + public static bool operator == (DatabaseReadScale e1, DatabaseReadScale e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseReadScale + /// + public static bool operator != (DatabaseReadScale e1, DatabaseReadScale e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseReadScale + /// + public override bool Equals(object obj) + { + return obj is DatabaseReadScale && Equals((DatabaseReadScale)obj); + } + + /// + /// Returns for hashCode DatabaseReadScale + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs new file mode 100644 index 000000000000..976b4109ab1d --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseReadScale. + /// + public sealed class DatabaseReadScaleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseReadScale by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseReadScale).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseReadScale. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseReadScale)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseReadScale for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs index e0db5559a05c..4d2de4881e41 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState. /// - public static class DatabaseState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseStateConverter))] + public struct DatabaseState : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState All = "All"; + + public static readonly DatabaseState Live = "Live"; + + public static readonly DatabaseState Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState + /// + public bool Equals(DatabaseState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState + /// + public static implicit operator DatabaseState(string value) + { + return new DatabaseState(value); + } + + /// + /// Implicit operator to convert DatabaseState to string + /// + public static implicit operator string(DatabaseState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState + /// + public static bool operator == (DatabaseState e1, DatabaseState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState + /// + public static bool operator != (DatabaseState e1, DatabaseState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState + /// + public override bool Equals(object obj) + { + return obj is DatabaseState && Equals((DatabaseState)obj); + } + + /// + /// Returns for hashCode DatabaseState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs new file mode 100644 index 000000000000..4eb107cdc68e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState. + /// + public sealed class DatabaseStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs index 5caced77f2da..898bb90f71db 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs @@ -10,32 +10,134 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - public static class DatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseStatusConverter))] + public struct DatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Restoring = "Restoring"; - public const string RecoveryPending = "RecoveryPending"; - public const string Recovering = "Recovering"; - public const string Suspect = "Suspect"; - public const string Offline = "Offline"; - public const string Standby = "Standby"; - public const string Shutdown = "Shutdown"; - public const string EmergencyMode = "EmergencyMode"; - public const string AutoClosed = "AutoClosed"; - public const string Copying = "Copying"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string OfflineSecondary = "OfflineSecondary"; - public const string Pausing = "Pausing"; - public const string Paused = "Paused"; - public const string Resuming = "Resuming"; - public const string Scaling = "Scaling"; - public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - public const string Disabled = "Disabled"; + private DatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseStatus Online = "Online"; + + public static readonly DatabaseStatus Restoring = "Restoring"; + + public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; + + public static readonly DatabaseStatus Recovering = "Recovering"; + + public static readonly DatabaseStatus Suspect = "Suspect"; + + public static readonly DatabaseStatus Offline = "Offline"; + + public static readonly DatabaseStatus Standby = "Standby"; + + public static readonly DatabaseStatus Shutdown = "Shutdown"; + + public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; + + public static readonly DatabaseStatus AutoClosed = "AutoClosed"; + + public static readonly DatabaseStatus Copying = "Copying"; + + public static readonly DatabaseStatus Creating = "Creating"; + + public static readonly DatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; + + public static readonly DatabaseStatus Pausing = "Pausing"; + + public static readonly DatabaseStatus Paused = "Paused"; + + public static readonly DatabaseStatus Resuming = "Resuming"; + + public static readonly DatabaseStatus Scaling = "Scaling"; + + public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus Disabled = "Disabled"; + + + /// + /// Underlying value of enum DatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseStatus + /// + public bool Equals(DatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseStatus + /// + public static implicit operator DatabaseStatus(string value) + { + return new DatabaseStatus(value); + } + + /// + /// Implicit operator to convert DatabaseStatus to string + /// + public static implicit operator string(DatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseStatus + /// + public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseStatus + /// + public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is DatabaseStatus && Equals((DatabaseStatus)obj); + } + + /// + /// Returns for hashCode DatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs new file mode 100644 index 000000000000..9e23c1e959c2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseStatus. + /// + public sealed class DatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseStatus by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs index c8476f2a8a48..f39ee59a458f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs @@ -40,7 +40,7 @@ public DatabaseTable() /// 'SystemVersionedTemporalTable' /// Whether or not the table is memory /// optimized. - public DatabaseTable(string id = default(string), string name = default(string), string type = default(string), string temporalType = default(string), bool? memoryOptimized = default(bool?)) + public DatabaseTable(string id = default(string), string name = default(string), string type = default(string), TableTemporalType? temporalType = default(TableTemporalType?), bool? memoryOptimized = default(bool?)) : base(id, name, type) { TemporalType = temporalType; @@ -58,7 +58,7 @@ public DatabaseTable() /// 'NonTemporalTable', 'HistoryTable', 'SystemVersionedTemporalTable' /// [JsonProperty(PropertyName = "properties.temporalType")] - public string TemporalType { get; set; } + public TableTemporalType? TemporalType { get; set; } /// /// Gets or sets whether or not the table is memory optimized. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs index ae0fd44438a1..c2446a14c826 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs @@ -177,7 +177,7 @@ public DatabaseUpdate() /// Infra encryption is enabled /// for this database. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? highAvailabilityReplicaCount = default(int?), SecondaryType? secondaryType = default(SecondaryType?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), CurrentBackupStorageRedundancy? currentBackupStorageRedundancy = default(CurrentBackupStorageRedundancy?), RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -275,7 +275,7 @@ public DatabaseUpdate() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public CreateMode? CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -295,7 +295,7 @@ public DatabaseUpdate() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public string SampleName { get; set; } + public SampleName? SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -321,7 +321,7 @@ public DatabaseUpdate() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public DatabaseStatus? Status { get; private set; } /// /// Gets the ID of the database. @@ -406,7 +406,7 @@ public DatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -423,7 +423,7 @@ public DatabaseUpdate() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public DatabaseLicenseType? LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -445,7 +445,7 @@ public DatabaseUpdate() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public string ReadScale { get; set; } + public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of secondary replicas associated with the @@ -460,7 +460,7 @@ public DatabaseUpdate() /// include: 'Geo', 'Named' /// [JsonProperty(PropertyName = "properties.secondaryType")] - public string SecondaryType { get; set; } + public SecondaryType? SecondaryType { get; set; } /// /// Gets the name and tier of the SKU. @@ -480,14 +480,14 @@ public DatabaseUpdate() /// database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.currentBackupStorageRedundancy")] - public string CurrentBackupStorageRedundancy { get; private set; } + public CurrentBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage account type to be used to store backups /// for this database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public string RequestedBackupStorageRedundancy { get; set; } + public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs index 3cfda63022f9..ce4c3438f27a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs @@ -10,18 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DayOfWeek. /// - public static class DayOfWeek + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DayOfWeekConverter))] + public struct DayOfWeek : System.IEquatable { - public const string Sunday = "Sunday"; - public const string Monday = "Monday"; - public const string Tuesday = "Tuesday"; - public const string Wednesday = "Wednesday"; - public const string Thursday = "Thursday"; - public const string Friday = "Friday"; - public const string Saturday = "Saturday"; + private DayOfWeek(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DayOfWeek Sunday = "Sunday"; + + public static readonly DayOfWeek Monday = "Monday"; + + public static readonly DayOfWeek Tuesday = "Tuesday"; + + public static readonly DayOfWeek Wednesday = "Wednesday"; + + public static readonly DayOfWeek Thursday = "Thursday"; + + public static readonly DayOfWeek Friday = "Friday"; + + public static readonly DayOfWeek Saturday = "Saturday"; + + + /// + /// Underlying value of enum DayOfWeek + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DayOfWeek + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DayOfWeek + /// + public bool Equals(DayOfWeek e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DayOfWeek + /// + public static implicit operator DayOfWeek(string value) + { + return new DayOfWeek(value); + } + + /// + /// Implicit operator to convert DayOfWeek to string + /// + public static implicit operator string(DayOfWeek e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DayOfWeek + /// + public static bool operator == (DayOfWeek e1, DayOfWeek e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DayOfWeek + /// + public static bool operator != (DayOfWeek e1, DayOfWeek e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DayOfWeek + /// + public override bool Equals(object obj) + { + return obj is DayOfWeek && Equals((DayOfWeek)obj); + } + + /// + /// Returns for hashCode DayOfWeek + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs new file mode 100644 index 000000000000..fd78cadb48ca --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DayOfWeek. + /// + public sealed class DayOfWeekConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DayOfWeek by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DayOfWeek).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DayOfWeek. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DayOfWeek)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DayOfWeek for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs index 4ff5f68e841a..1734bf47ec54 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs @@ -70,7 +70,7 @@ public ElasticPool() /// Maintenance configuration /// id assigned to the elastic pool. This configuration defines the /// period when the maintenance updates will will occur. - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), string maintenanceConfigurationId = default(string)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), string maintenanceConfigurationId = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -120,7 +120,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ElasticPoolState? State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -154,7 +154,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Gets or sets maintenance configuration id assigned to the elastic diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs index 91040cda5998..841d92576001 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - public static class ElasticPoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] + public struct ElasticPoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ElasticPoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ElasticPoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolLicenseType + /// + public bool Equals(ElasticPoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolLicenseType + /// + public static implicit operator ElasticPoolLicenseType(string value) + { + return new ElasticPoolLicenseType(value); + } + + /// + /// Implicit operator to convert ElasticPoolLicenseType to string + /// + public static implicit operator string(ElasticPoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolLicenseType + /// + public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolLicenseType + /// + public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); + } + + /// + /// Returns for hashCode ElasticPoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..553f43659d49 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolLicenseType. + /// + public sealed class ElasticPoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index 74af2a056139..f82b6812d740 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 90abdfcd655b..9cea5490a81e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs index 5e36b8d12088..966cca90eb17 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - public static class ElasticPoolState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolStateConverter))] + public struct ElasticPoolState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Disabled = "Disabled"; + private ElasticPoolState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolState Creating = "Creating"; + + public static readonly ElasticPoolState Ready = "Ready"; + + public static readonly ElasticPoolState Disabled = "Disabled"; + + + /// + /// Underlying value of enum ElasticPoolState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolState + /// + public bool Equals(ElasticPoolState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolState + /// + public static implicit operator ElasticPoolState(string value) + { + return new ElasticPoolState(value); + } + + /// + /// Implicit operator to convert ElasticPoolState to string + /// + public static implicit operator string(ElasticPoolState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolState + /// + public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolState + /// + public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolState + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolState && Equals((ElasticPoolState)obj); + } + + /// + /// Returns for hashCode ElasticPoolState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs new file mode 100644 index 000000000000..9eae804ada9b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolState. + /// + public sealed class ElasticPoolStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs index 8f6468917e99..5a9b99150c38 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs @@ -48,7 +48,7 @@ public ElasticPoolUpdate() /// id assigned to the elastic pool. This configuration defines the /// period when the maintenance updates will will occur. /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), string maintenanceConfigurationId = default(string), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), string maintenanceConfigurationId = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -96,7 +96,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Gets or sets maintenance configuration id assigned to the elastic diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs index 60bf35bb1bc9..38cb58d1d466 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs @@ -48,7 +48,7 @@ public EncryptionProtector() /// Thumbprint of the server key. /// Key auto rotation opt-in flag. /// Either true or false. - public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) + public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -98,7 +98,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -126,10 +126,6 @@ public EncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs index 0a98139a22b7..a5fb485f8718 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs @@ -41,7 +41,7 @@ public ExportDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ExportDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -63,7 +63,7 @@ public ExportDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -110,10 +110,6 @@ public ExportDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs index 9fe6b90fb1bd..41197cecd823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index 161a0d051d5c..cc8c1dbf98fe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index 823617cb01ce..f36bd4bfb0d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs index 380e10a578b4..849660da39c4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - public static class FailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] + public struct FailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private FailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly FailoverGroupReplicationRole Primary = "Primary"; + + public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum FailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for FailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type FailoverGroupReplicationRole + /// + public bool Equals(FailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to FailoverGroupReplicationRole + /// + public static implicit operator FailoverGroupReplicationRole(string value) + { + return new FailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert FailoverGroupReplicationRole to string + /// + public static implicit operator string(FailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum FailoverGroupReplicationRole + /// + public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum FailoverGroupReplicationRole + /// + public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for FailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode FailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..80c2d0b338e3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for FailoverGroupReplicationRole. + /// + public sealed class FailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// FailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// FailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (FailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for FailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs index 83b18afcdd7e..d9eb50aa71a3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - public static class IdentityType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(IdentityTypeConverter))] + public struct IdentityType : System.IEquatable { - public const string None = "None"; - public const string SystemAssigned = "SystemAssigned"; - public const string UserAssigned = "UserAssigned"; + private IdentityType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly IdentityType None = "None"; + + public static readonly IdentityType SystemAssigned = "SystemAssigned"; + + public static readonly IdentityType UserAssigned = "UserAssigned"; + + + /// + /// Underlying value of enum IdentityType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for IdentityType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type IdentityType + /// + public bool Equals(IdentityType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to IdentityType + /// + public static implicit operator IdentityType(string value) + { + return new IdentityType(value); + } + + /// + /// Implicit operator to convert IdentityType to string + /// + public static implicit operator string(IdentityType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum IdentityType + /// + public static bool operator == (IdentityType e1, IdentityType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum IdentityType + /// + public static bool operator != (IdentityType e1, IdentityType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for IdentityType + /// + public override bool Equals(object obj) + { + return obj is IdentityType && Equals((IdentityType)obj); + } + + /// + /// Returns for hashCode IdentityType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs new file mode 100644 index 000000000000..f171ba65f248 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for IdentityType. + /// + public sealed class IdentityTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to IdentityType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to IdentityType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (IdentityType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for IdentityType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs index 3cca5ca109c9..0c28b55dd451 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -43,7 +43,7 @@ public ImportExistingDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportExistingDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -65,7 +65,7 @@ public ImportExistingDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -112,10 +112,6 @@ public ImportExistingDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs index db630e00fd92..d13b7f0797b7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -49,7 +49,7 @@ public ImportNewDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { DatabaseName = databaseName; Edition = edition; @@ -99,7 +99,7 @@ public ImportNewDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -146,10 +146,6 @@ public ImportNewDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs index 19f2f6800532..bc3ff7416992 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index c3e7c22f98d0..5a7e6fcac550 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 299752e7bf35..7af96668a660 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index cd4a463d4d89..fab112799efd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,13 +10,101 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - public static class InstanceFailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] + public struct InstanceFailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private InstanceFailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; + + public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum InstanceFailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// InstanceFailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstanceFailoverGroupReplicationRole + /// + public bool Equals(InstanceFailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// InstanceFailoverGroupReplicationRole + /// + public static implicit operator InstanceFailoverGroupReplicationRole(string value) + { + return new InstanceFailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert InstanceFailoverGroupReplicationRole + /// to string + /// + public static implicit operator string(InstanceFailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstanceFailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode InstanceFailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..2caa0100d9f8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstanceFailoverGroupReplicationRole. + /// + public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// InstanceFailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// InstanceFailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs index c174f85c08ac..cf25e3b6c40b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public InstancePoolLicenseType LicenseType { get; set; } /// /// Validate the object. @@ -104,10 +104,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } - if (LicenseType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); - } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs index b4371565f980..c567b70d54d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - public static class InstancePoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] + public struct InstancePoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private InstancePoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum InstancePoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for InstancePoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstancePoolLicenseType + /// + public bool Equals(InstancePoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to InstancePoolLicenseType + /// + public static implicit operator InstancePoolLicenseType(string value) + { + return new InstancePoolLicenseType(value); + } + + /// + /// Implicit operator to convert InstancePoolLicenseType to string + /// + public static implicit operator string(InstancePoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum InstancePoolLicenseType + /// + public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum InstancePoolLicenseType + /// + public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstancePoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); + } + + /// + /// Returns for hashCode InstancePoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..0ebb9e4ee1f4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstancePoolLicenseType. + /// + public sealed class InstancePoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to InstancePoolLicenseType + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to InstancePoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstancePoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstancePoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs index fe6f269eab8a..b82e50f80551 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public JobAgentState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs index b8897f53cb79..6c7d44280031 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - public static class JobAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobAgentStateConverter))] + public struct JobAgentState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Updating = "Updating"; - public const string Deleting = "Deleting"; - public const string Disabled = "Disabled"; + private JobAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobAgentState Creating = "Creating"; + + public static readonly JobAgentState Ready = "Ready"; + + public static readonly JobAgentState Updating = "Updating"; + + public static readonly JobAgentState Deleting = "Deleting"; + + public static readonly JobAgentState Disabled = "Disabled"; + + + /// + /// Underlying value of enum JobAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobAgentState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobAgentState + /// + public bool Equals(JobAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobAgentState + /// + public static implicit operator JobAgentState(string value) + { + return new JobAgentState(value); + } + + /// + /// Implicit operator to convert JobAgentState to string + /// + public static implicit operator string(JobAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobAgentState + /// + public static bool operator == (JobAgentState e1, JobAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobAgentState + /// + public static bool operator != (JobAgentState e1, JobAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobAgentState + /// + public override bool Equals(object obj) + { + return obj is JobAgentState && Equals((JobAgentState)obj); + } + + /// + /// Returns for hashCode JobAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs new file mode 100644 index 000000000000..6c021f921d92 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobAgentState. + /// + public sealed class JobAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs index 39c3e70baf2c..2c2768198736 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public string Lifecycle { get; private set; } + public JobExecutionLifecycle? Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public ProvisioningState? ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs index 37ead7ce7ff5..8b255b021d3a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - public static class JobExecutionLifecycle + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobExecutionLifecycleConverter))] + public struct JobExecutionLifecycle : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - public const string WaitingForRetry = "WaitingForRetry"; - public const string Succeeded = "Succeeded"; - public const string SucceededWithSkipped = "SucceededWithSkipped"; - public const string Failed = "Failed"; - public const string TimedOut = "TimedOut"; - public const string Canceled = "Canceled"; - public const string Skipped = "Skipped"; + private JobExecutionLifecycle(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobExecutionLifecycle Created = "Created"; + + public static readonly JobExecutionLifecycle InProgress = "InProgress"; + + public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + + public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; + + public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; + + public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; + + public static readonly JobExecutionLifecycle Failed = "Failed"; + + public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; + + public static readonly JobExecutionLifecycle Canceled = "Canceled"; + + public static readonly JobExecutionLifecycle Skipped = "Skipped"; + + + /// + /// Underlying value of enum JobExecutionLifecycle + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobExecutionLifecycle + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobExecutionLifecycle + /// + public bool Equals(JobExecutionLifecycle e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobExecutionLifecycle + /// + public static implicit operator JobExecutionLifecycle(string value) + { + return new JobExecutionLifecycle(value); + } + + /// + /// Implicit operator to convert JobExecutionLifecycle to string + /// + public static implicit operator string(JobExecutionLifecycle e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobExecutionLifecycle + /// + public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobExecutionLifecycle + /// + public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobExecutionLifecycle + /// + public override bool Equals(object obj) + { + return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); + } + + /// + /// Returns for hashCode JobExecutionLifecycle + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs new file mode 100644 index 000000000000..4f1114861711 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobExecutionLifecycle. + /// + public sealed class JobExecutionLifecycleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobExecutionLifecycle by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobExecutionLifecycle. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobExecutionLifecycle)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobExecutionLifecycle for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs index 6b7e1dff02e8..bd2989561aef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public JobTargetType? Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs index 51941a310406..e550d8f8b04e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, string type = default(string), string source = default(string)) + public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepActionType? Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public string Source { get; set; } + public JobStepActionSource? Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs index 2f96d3a39604..1941a47db3b2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - public static class JobStepActionSource + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionSourceConverter))] + public struct JobStepActionSource : System.IEquatable { - public const string Inline = "Inline"; + private JobStepActionSource(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionSource Inline = "Inline"; + + + /// + /// Underlying value of enum JobStepActionSource + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionSource + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionSource + /// + public bool Equals(JobStepActionSource e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionSource + /// + public static implicit operator JobStepActionSource(string value) + { + return new JobStepActionSource(value); + } + + /// + /// Implicit operator to convert JobStepActionSource to string + /// + public static implicit operator string(JobStepActionSource e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionSource + /// + public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionSource + /// + public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionSource + /// + public override bool Equals(object obj) + { + return obj is JobStepActionSource && Equals((JobStepActionSource)obj); + } + + /// + /// Returns for hashCode JobStepActionSource + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs new file mode 100644 index 000000000000..241c078ae7fe --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionSource. + /// + public sealed class JobStepActionSourceConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionSource by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionSource. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionSource)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionSource for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs index 6dda291ff321..5226c36d5864 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - public static class JobStepActionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionTypeConverter))] + public struct JobStepActionType : System.IEquatable { - public const string TSql = "TSql"; + private JobStepActionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionType TSql = "TSql"; + + + /// + /// Underlying value of enum JobStepActionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionType + /// + public bool Equals(JobStepActionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionType + /// + public static implicit operator JobStepActionType(string value) + { + return new JobStepActionType(value); + } + + /// + /// Implicit operator to convert JobStepActionType to string + /// + public static implicit operator string(JobStepActionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionType + /// + public static bool operator == (JobStepActionType e1, JobStepActionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionType + /// + public static bool operator != (JobStepActionType e1, JobStepActionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionType + /// + public override bool Equals(object obj) + { + return obj is JobStepActionType && Equals((JobStepActionType)obj); + } + + /// + /// Returns for hashCode JobStepActionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs new file mode 100644 index 000000000000..28ded5cdd872 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionType. + /// + public sealed class JobStepActionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs index cdd0db7bec05..c2f8ba1e4bc0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepOutputType? Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs index bb86c8126657..6a3761de0a61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - public static class JobStepOutputType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepOutputTypeConverter))] + public struct JobStepOutputType : System.IEquatable { - public const string SqlDatabase = "SqlDatabase"; + private JobStepOutputType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; + + + /// + /// Underlying value of enum JobStepOutputType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepOutputType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepOutputType + /// + public bool Equals(JobStepOutputType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepOutputType + /// + public static implicit operator JobStepOutputType(string value) + { + return new JobStepOutputType(value); + } + + /// + /// Implicit operator to convert JobStepOutputType to string + /// + public static implicit operator string(JobStepOutputType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepOutputType + /// + public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepOutputType + /// + public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepOutputType + /// + public override bool Equals(object obj) + { + return obj is JobStepOutputType && Equals((JobStepOutputType)obj); + } + + /// + /// Returns for hashCode JobStepOutputType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs new file mode 100644 index 000000000000..f6e86f9a358b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepOutputType. + /// + public sealed class JobStepOutputTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepOutputType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepOutputType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepOutputType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepOutputType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs index 7d03cc175e67..4d0b124b79da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -44,7 +43,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -74,7 +73,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobTargetType Type { get; set; } /// /// Gets or sets the target server name. @@ -111,15 +110,11 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs index bf3921ce5ec0..2fc7420cfe72 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - public static class JobTargetType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobTargetTypeConverter))] + public struct JobTargetType : System.IEquatable { - public const string TargetGroup = "TargetGroup"; - public const string SqlDatabase = "SqlDatabase"; - public const string SqlElasticPool = "SqlElasticPool"; - public const string SqlShardMap = "SqlShardMap"; - public const string SqlServer = "SqlServer"; + private JobTargetType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobTargetType TargetGroup = "TargetGroup"; + + public static readonly JobTargetType SqlDatabase = "SqlDatabase"; + + public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; + + public static readonly JobTargetType SqlShardMap = "SqlShardMap"; + + public static readonly JobTargetType SqlServer = "SqlServer"; + + + /// + /// Underlying value of enum JobTargetType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobTargetType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobTargetType + /// + public bool Equals(JobTargetType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobTargetType + /// + public static implicit operator JobTargetType(string value) + { + return new JobTargetType(value); + } + + /// + /// Implicit operator to convert JobTargetType to string + /// + public static implicit operator string(JobTargetType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobTargetType + /// + public static bool operator == (JobTargetType e1, JobTargetType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobTargetType + /// + public static bool operator != (JobTargetType e1, JobTargetType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobTargetType + /// + public override bool Equals(object obj) + { + return obj is JobTargetType && Equals((JobTargetType)obj); + } + + /// + /// Returns for hashCode JobTargetType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs new file mode 100644 index 000000000000..8b117d0ea11e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobTargetType. + /// + public sealed class JobTargetTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobTargetType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobTargetType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobTargetType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobTargetType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs index e374ba951793..aaf5d85a541b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), string unit = default(string)) + public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public LogSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs index 1b8c8bfc8596..0ebe2d4337a0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - public static class LogSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(LogSizeUnitConverter))] + public struct LogSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; - public const string Percent = "Percent"; + private LogSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly LogSizeUnit Megabytes = "Megabytes"; + + public static readonly LogSizeUnit Gigabytes = "Gigabytes"; + + public static readonly LogSizeUnit Terabytes = "Terabytes"; + + public static readonly LogSizeUnit Petabytes = "Petabytes"; + + public static readonly LogSizeUnit Percent = "Percent"; + + + /// + /// Underlying value of enum LogSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for LogSizeUnit + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type LogSizeUnit + /// + public bool Equals(LogSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to LogSizeUnit + /// + public static implicit operator LogSizeUnit(string value) + { + return new LogSizeUnit(value); + } + + /// + /// Implicit operator to convert LogSizeUnit to string + /// + public static implicit operator string(LogSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum LogSizeUnit + /// + public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum LogSizeUnit + /// + public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for LogSizeUnit + /// + public override bool Equals(object obj) + { + return obj is LogSizeUnit && Equals((LogSizeUnit)obj); + } + + /// + /// Returns for hashCode LogSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs new file mode 100644 index 000000000000..bb9f436d6278 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for LogSizeUnit. + /// + public sealed class LogSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to LogSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to LogSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (LogSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for LogSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs index 7334f397c608..709f6ee36d2a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs @@ -52,7 +52,7 @@ public LongTermRetentionBackup() /// The storage /// redundancy type of the backup. Possible values include: 'Geo', /// 'Local', 'Zone' - public LongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string serverName = default(string), System.DateTime? serverCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), string backupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string)) + public LongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string serverName = default(string), System.DateTime? serverCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), BackupStorageRedundancy? backupStorageRedundancy = default(BackupStorageRedundancy?), BackupStorageRedundancy? requestedBackupStorageRedundancy = default(BackupStorageRedundancy?)) : base(id, name, type) { ServerName = serverName; @@ -112,14 +112,14 @@ public LongTermRetentionBackup() /// include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.backupStorageRedundancy")] - public string BackupStorageRedundancy { get; private set; } + public BackupStorageRedundancy? BackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage redundancy type of the backup. Possible /// values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public string RequestedBackupStorageRedundancy { get; set; } + public BackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs index af6b35a93dd0..60afb3207116 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs @@ -47,7 +47,7 @@ public LongTermRetentionBackupOperationResult() /// 'Zone' /// Operation status /// Progress message - public LongTermRetentionBackupOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string operationType = default(string), string fromBackupResourceId = default(string), string toBackupResourceId = default(string), string targetBackupStorageRedundancy = default(string), string status = default(string), string message = default(string)) + public LongTermRetentionBackupOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string operationType = default(string), string fromBackupResourceId = default(string), string toBackupResourceId = default(string), BackupStorageRedundancy? targetBackupStorageRedundancy = default(BackupStorageRedundancy?), string status = default(string), string message = default(string)) : base(id, name, type) { RequestId = requestId; @@ -94,7 +94,7 @@ public LongTermRetentionBackupOperationResult() /// values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.targetBackupStorageRedundancy")] - public string TargetBackupStorageRedundancy { get; private set; } + public BackupStorageRedundancy? TargetBackupStorageRedundancy { get; private set; } /// /// Gets operation status diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs index 7facd2eceb7b..88637aaf460f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs @@ -36,7 +36,7 @@ public MaintenanceWindowTimeRange() /// 12am. /// Duration of maintenance window in /// minutes. - public MaintenanceWindowTimeRange(string dayOfWeek = default(string), string startTime = default(string), string duration = default(string)) + public MaintenanceWindowTimeRange(DayOfWeek? dayOfWeek = default(DayOfWeek?), string startTime = default(string), string duration = default(string)) { DayOfWeek = dayOfWeek; StartTime = startTime; @@ -55,7 +55,7 @@ public MaintenanceWindowTimeRange() /// 'Saturday' /// [JsonProperty(PropertyName = "dayOfWeek")] - public string DayOfWeek { get; set; } + public DayOfWeek? DayOfWeek { get; set; } /// /// Gets or sets start time minutes offset from 12am. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs index 097d79ad06b1..d16a278fd6e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs index c7c1e20d8260..813c997673ee 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - public static class ManagedDatabaseCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] + public struct ManagedDatabaseCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Recovery = "Recovery"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + private ManagedDatabaseCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseCreateMode Default = "Default"; + + public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; + + public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + + /// + /// Underlying value of enum ManagedDatabaseCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseCreateMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseCreateMode + /// + public bool Equals(ManagedDatabaseCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseCreateMode + /// + public static implicit operator ManagedDatabaseCreateMode(string value) + { + return new ManagedDatabaseCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseCreateMode to string + /// + public static implicit operator string(ManagedDatabaseCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseCreateMode + /// + public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseCreateMode + /// + public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs new file mode 100644 index 000000000000..bfc490f8b789 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseCreateMode. + /// + public sealed class ManagedDatabaseCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseCreateMode for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs index fb53873a68b4..654dcc3f3e07 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,18 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - public static class ManagedDatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseStatusConverter))] + public struct ManagedDatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string Shutdown = "Shutdown"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string Restoring = "Restoring"; - public const string Updating = "Updating"; + private ManagedDatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseStatus Online = "Online"; + + public static readonly ManagedDatabaseStatus Offline = "Offline"; + + public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; + + public static readonly ManagedDatabaseStatus Creating = "Creating"; + + public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly ManagedDatabaseStatus Restoring = "Restoring"; + + public static readonly ManagedDatabaseStatus Updating = "Updating"; + + + /// + /// Underlying value of enum ManagedDatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseStatus + /// + public bool Equals(ManagedDatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseStatus + /// + public static implicit operator ManagedDatabaseStatus(string value) + { + return new ManagedDatabaseStatus(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseStatus to string + /// + public static implicit operator string(ManagedDatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseStatus + /// + public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseStatus + /// + public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs new file mode 100644 index 000000000000..3478b2db9f0a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseStatus. + /// + public sealed class ManagedDatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseStatus by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs index 4afb5faa70f0..6729a79e652a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs index cdf6d45e295d..dc2b2dbac7f8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs @@ -124,7 +124,7 @@ public ManagedInstance() /// encryption. /// The Azure Active Directory /// administrator of the server. - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator)) : base(location, id, name, type, tags) { Identity = identity; @@ -196,7 +196,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -238,7 +238,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -298,7 +298,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -351,7 +351,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Gets or sets whether or not the multi-az is enabled. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 1900f3a295c5..11875bbccca5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -48,7 +48,7 @@ public ManagedInstanceEncryptionProtector() /// Thumbprint of the server key. /// Key auto rotation opt-in flag. /// Either true or false. - public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) + public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -84,7 +84,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -112,10 +112,6 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs index 687498eceb43..5c44e2f3b198 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs @@ -42,7 +42,7 @@ public ManagedInstanceExternalAdministrator() /// Tenant ID of the administrator. /// Azure Active Directory only /// Authentication enabled. - public ManagedInstanceExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) + public ManagedInstanceExternalAdministrator(AdministratorType? administratorType = default(AdministratorType?), PrincipalType? principalType = default(PrincipalType?), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) { AdministratorType = administratorType; PrincipalType = principalType; @@ -63,14 +63,14 @@ public ManagedInstanceExternalAdministrator() /// include: 'ActiveDirectory' /// [JsonProperty(PropertyName = "administratorType")] - public string AdministratorType { get; set; } + public AdministratorType? AdministratorType { get; set; } /// /// Gets or sets principal Type of the sever administrator. Possible /// values include: 'User', 'Group', 'Application' /// [JsonProperty(PropertyName = "principalType")] - public string PrincipalType { get; set; } + public PrincipalType? PrincipalType { get; set; } /// /// Gets or sets login name of the server administrator. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs index c813629cdbff..91e8d25752d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs @@ -46,7 +46,7 @@ public ManagedInstanceKey() /// The key creation date. /// Key auto rotation opt-in flag. /// Either true or false. - public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) + public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -75,7 +75,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -110,10 +110,6 @@ public ManagedInstanceKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs index 518832b8e90d..715c1133ddb2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - public static class ManagedInstanceLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] + public struct ManagedInstanceLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ManagedInstanceLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ManagedInstanceLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceLicenseType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceLicenseType + /// + public bool Equals(ManagedInstanceLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceLicenseType + /// + public static implicit operator ManagedInstanceLicenseType(string value) + { + return new ManagedInstanceLicenseType(value); + } + + /// + /// Implicit operator to convert ManagedInstanceLicenseType to string + /// + public static implicit operator string(ManagedInstanceLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceLicenseType + /// + public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceLicenseType + /// + public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceLicenseType + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); + } + + /// + /// Returns for hashCode ManagedInstanceLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs new file mode 100644 index 000000000000..3299377a282e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceLicenseType. + /// + public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceLicenseType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceLicenseType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs index d8a0ca93edcf..57f42b2db2d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs @@ -51,7 +51,7 @@ public ManagedInstanceLongTermRetentionBackup() /// The storage redundancy type /// of the backup. Possible values include: 'Geo', 'Local', /// 'Zone' - public ManagedInstanceLongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), System.DateTime? managedInstanceCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), string backupStorageRedundancy = default(string)) + public ManagedInstanceLongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), System.DateTime? managedInstanceCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), BackupStorageRedundancy? backupStorageRedundancy = default(BackupStorageRedundancy?)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -110,7 +110,7 @@ public ManagedInstanceLongTermRetentionBackup() /// include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.backupStorageRedundancy")] - public string BackupStorageRedundancy { get; private set; } + public BackupStorageRedundancy? BackupStorageRedundancy { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs index bcec42027099..9c408ac62043 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs index dd6d2f660269..ede756a7ab27 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - public static class ManagedInstanceProxyOverride + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] + public struct ManagedInstanceProxyOverride : System.IEquatable { - public const string Proxy = "Proxy"; - public const string Redirect = "Redirect"; - public const string Default = "Default"; + private ManagedInstanceProxyOverride(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; + + public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; + + public static readonly ManagedInstanceProxyOverride Default = "Default"; + + + /// + /// Underlying value of enum ManagedInstanceProxyOverride + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceProxyOverride + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceProxyOverride + /// + public bool Equals(ManagedInstanceProxyOverride e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceProxyOverride + /// + public static implicit operator ManagedInstanceProxyOverride(string value) + { + return new ManagedInstanceProxyOverride(value); + } + + /// + /// Implicit operator to convert ManagedInstanceProxyOverride to string + /// + public static implicit operator string(ManagedInstanceProxyOverride e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceProxyOverride + /// + public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceProxyOverride + /// + public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceProxyOverride + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); + } + + /// + /// Returns for hashCode ManagedInstanceProxyOverride + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs new file mode 100644 index 000000000000..bf7fbf0f8b03 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceProxyOverride. + /// + public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceProxyOverride by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceProxyOverride. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceProxyOverride for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs index 79d9ae975e49..dd2349c92832 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs @@ -118,7 +118,7 @@ public ManagedInstanceUpdate() /// The Azure Active Directory /// administrator of the server. /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentity identity = default(ResourceIdentity), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentity identity = default(ResourceIdentity), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), IDictionary tags = default(IDictionary)) { Sku = sku; Identity = identity; @@ -188,7 +188,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -230,7 +230,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -290,7 +290,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -343,7 +343,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Gets or sets whether or not the multi-az is enabled. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs index 141db5dae3f7..5f291af0c8d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - public static class ManagedServerCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedServerCreateModeConverter))] + public struct ManagedServerCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string PointInTimeRestore = "PointInTimeRestore"; + private ManagedServerCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedServerCreateMode Default = "Default"; + + public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; + + + /// + /// Underlying value of enum ManagedServerCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedServerCreateMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedServerCreateMode + /// + public bool Equals(ManagedServerCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedServerCreateMode + /// + public static implicit operator ManagedServerCreateMode(string value) + { + return new ManagedServerCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedServerCreateMode to string + /// + public static implicit operator string(ManagedServerCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedServerCreateMode + /// + public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedServerCreateMode + /// + public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedServerCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedServerCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs new file mode 100644 index 000000000000..a634f8a5f8d9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedServerCreateMode. + /// + public sealed class ManagedServerCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedServerCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedServerCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedServerCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedServerCreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs index 5cc2d5460636..1c4edce2929f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - public static class ManagementOperationState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagementOperationStateConverter))] + public struct ManagementOperationState : System.IEquatable { - public const string Pending = "Pending"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string CancelInProgress = "CancelInProgress"; - public const string Cancelled = "Cancelled"; + private ManagementOperationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagementOperationState Pending = "Pending"; + + public static readonly ManagementOperationState InProgress = "InProgress"; + + public static readonly ManagementOperationState Succeeded = "Succeeded"; + + public static readonly ManagementOperationState Failed = "Failed"; + + public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; + + public static readonly ManagementOperationState Cancelled = "Cancelled"; + + + /// + /// Underlying value of enum ManagementOperationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagementOperationState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagementOperationState + /// + public bool Equals(ManagementOperationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagementOperationState + /// + public static implicit operator ManagementOperationState(string value) + { + return new ManagementOperationState(value); + } + + /// + /// Implicit operator to convert ManagementOperationState to string + /// + public static implicit operator string(ManagementOperationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagementOperationState + /// + public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagementOperationState + /// + public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagementOperationState + /// + public override bool Equals(object obj) + { + return obj is ManagementOperationState && Equals((ManagementOperationState)obj); + } + + /// + /// Returns for hashCode ManagementOperationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs new file mode 100644 index 000000000000..a3d6452f16a0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagementOperationState. + /// + public sealed class ManagementOperationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagementOperationState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagementOperationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagementOperationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagementOperationState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs index e0475eee1066..def373f39d61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) + public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public MaxSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs index cdf8f43bfd5c..b601b8bae06d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - public static class MaxSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(MaxSizeUnitConverter))] + public struct MaxSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; + private MaxSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly MaxSizeUnit Megabytes = "Megabytes"; + + public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; + + public static readonly MaxSizeUnit Terabytes = "Terabytes"; + + public static readonly MaxSizeUnit Petabytes = "Petabytes"; + + + /// + /// Underlying value of enum MaxSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for MaxSizeUnit + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type MaxSizeUnit + /// + public bool Equals(MaxSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to MaxSizeUnit + /// + public static implicit operator MaxSizeUnit(string value) + { + return new MaxSizeUnit(value); + } + + /// + /// Implicit operator to convert MaxSizeUnit to string + /// + public static implicit operator string(MaxSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum MaxSizeUnit + /// + public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum MaxSizeUnit + /// + public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for MaxSizeUnit + /// + public override bool Equals(object obj) + { + return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); + } + + /// + /// Returns for hashCode MaxSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs new file mode 100644 index 000000000000..a63443040350 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for MaxSizeUnit. + /// + public sealed class MaxSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to MaxSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to MaxSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (MaxSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for MaxSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs index c2f7e0249613..f81d6baa6b56 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitType? Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs index 5bd07c0d50f1..dc33003c3588 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public string PrimaryAggregationType { get; private set; } + public PrimaryAggregationType? PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitDefinitionType? Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs index 5133ac0a7af7..f28432f57665 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for MetricType. /// - public static class MetricType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(MetricTypeConverter))] + public struct MetricType : System.IEquatable { - public const string Cpu = "cpu"; - public const string Io = "io"; - public const string LogIo = "logIo"; - public const string Duration = "duration"; - public const string Dtu = "dtu"; + private MetricType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly MetricType Cpu = "cpu"; + + public static readonly MetricType Io = "io"; + + public static readonly MetricType LogIo = "logIo"; + + public static readonly MetricType Duration = "duration"; + + public static readonly MetricType Dtu = "dtu"; + + + /// + /// Underlying value of enum MetricType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for MetricType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type MetricType + /// + public bool Equals(MetricType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to MetricType + /// + public static implicit operator MetricType(string value) + { + return new MetricType(value); + } + + /// + /// Implicit operator to convert MetricType to string + /// + public static implicit operator string(MetricType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum MetricType + /// + public static bool operator == (MetricType e1, MetricType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum MetricType + /// + public static bool operator != (MetricType e1, MetricType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for MetricType + /// + public override bool Equals(object obj) + { + return obj is MetricType && Equals((MetricType)obj); + } + + /// + /// Returns for hashCode MetricType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs new file mode 100644 index 000000000000..8688e2ae9d53 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for MetricType. + /// + public sealed class MetricTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to MetricType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(MetricType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to MetricType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (MetricType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for MetricType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs index fcf0b7b48dbc..d6f75827c8ff 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public string Origin { get; private set; } + public OperationOrigin? Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs index 4d779e5b4c1a..dc538bc4ae61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - public static class OperationOrigin + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(OperationOriginConverter))] + public struct OperationOrigin : System.IEquatable { - public const string User = "user"; - public const string System = "system"; + private OperationOrigin(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly OperationOrigin User = "user"; + + public static readonly OperationOrigin System = "system"; + + + /// + /// Underlying value of enum OperationOrigin + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for OperationOrigin + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type OperationOrigin + /// + public bool Equals(OperationOrigin e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to OperationOrigin + /// + public static implicit operator OperationOrigin(string value) + { + return new OperationOrigin(value); + } + + /// + /// Implicit operator to convert OperationOrigin to string + /// + public static implicit operator string(OperationOrigin e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum OperationOrigin + /// + public static bool operator == (OperationOrigin e1, OperationOrigin e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum OperationOrigin + /// + public static bool operator != (OperationOrigin e1, OperationOrigin e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for OperationOrigin + /// + public override bool Equals(object obj) + { + return obj is OperationOrigin && Equals((OperationOrigin)obj); + } + + /// + /// Returns for hashCode OperationOrigin + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs new file mode 100644 index 000000000000..4375b48232c9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for OperationOrigin. + /// + public sealed class OperationOriginConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to OperationOrigin by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to OperationOrigin. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (OperationOrigin)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for OperationOrigin for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs index 440a5d14a763..e6fe406b738d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) + public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs index 4835389285ef..a816aa9c042f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) + public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs index 3f1dbe1e042c..b53b11e03e9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PauseDelayTimeUnit. /// - public static class PauseDelayTimeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PauseDelayTimeUnitConverter))] + public struct PauseDelayTimeUnit : System.IEquatable { - public const string Minutes = "Minutes"; + private PauseDelayTimeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PauseDelayTimeUnit Minutes = "Minutes"; + + + /// + /// Underlying value of enum PauseDelayTimeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PauseDelayTimeUnit + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PauseDelayTimeUnit + /// + public bool Equals(PauseDelayTimeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PauseDelayTimeUnit + /// + public static implicit operator PauseDelayTimeUnit(string value) + { + return new PauseDelayTimeUnit(value); + } + + /// + /// Implicit operator to convert PauseDelayTimeUnit to string + /// + public static implicit operator string(PauseDelayTimeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PauseDelayTimeUnit + /// + public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PauseDelayTimeUnit + /// + public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PauseDelayTimeUnit + /// + public override bool Equals(object obj) + { + return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); + } + + /// + /// Returns for hashCode PauseDelayTimeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs new file mode 100644 index 000000000000..13ba249919e9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PauseDelayTimeUnit. + /// + public sealed class PauseDelayTimeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PauseDelayTimeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PauseDelayTimeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PauseDelayTimeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PauseDelayTimeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs index 8b04656c9b9c..5e0493983703 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) + public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs index 8eb843ed2bc3..84d3f4d780bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - public static class PerformanceLevelUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PerformanceLevelUnitConverter))] + public struct PerformanceLevelUnit : System.IEquatable { - public const string DTU = "DTU"; - public const string VCores = "VCores"; + private PerformanceLevelUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PerformanceLevelUnit DTU = "DTU"; + + public static readonly PerformanceLevelUnit VCores = "VCores"; + + + /// + /// Underlying value of enum PerformanceLevelUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PerformanceLevelUnit + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PerformanceLevelUnit + /// + public bool Equals(PerformanceLevelUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PerformanceLevelUnit + /// + public static implicit operator PerformanceLevelUnit(string value) + { + return new PerformanceLevelUnit(value); + } + + /// + /// Implicit operator to convert PerformanceLevelUnit to string + /// + public static implicit operator string(PerformanceLevelUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PerformanceLevelUnit + /// + public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PerformanceLevelUnit + /// + public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PerformanceLevelUnit + /// + public override bool Equals(object obj) + { + return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); + } + + /// + /// Returns for hashCode PerformanceLevelUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs new file mode 100644 index 000000000000..3d58b1c585e4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PerformanceLevelUnit. + /// + public sealed class PerformanceLevelUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PerformanceLevelUnit by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PerformanceLevelUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PerformanceLevelUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PerformanceLevelUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs index d863b177f680..8fc9798d2222 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - public static class PrimaryAggregationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrimaryAggregationTypeConverter))] + public struct PrimaryAggregationType : System.IEquatable { - public const string None = "None"; - public const string Average = "Average"; - public const string Count = "Count"; - public const string Minimum = "Minimum"; - public const string Maximum = "Maximum"; - public const string Total = "Total"; + private PrimaryAggregationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrimaryAggregationType None = "None"; + + public static readonly PrimaryAggregationType Average = "Average"; + + public static readonly PrimaryAggregationType Count = "Count"; + + public static readonly PrimaryAggregationType Minimum = "Minimum"; + + public static readonly PrimaryAggregationType Maximum = "Maximum"; + + public static readonly PrimaryAggregationType Total = "Total"; + + + /// + /// Underlying value of enum PrimaryAggregationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrimaryAggregationType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrimaryAggregationType + /// + public bool Equals(PrimaryAggregationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PrimaryAggregationType + /// + public static implicit operator PrimaryAggregationType(string value) + { + return new PrimaryAggregationType(value); + } + + /// + /// Implicit operator to convert PrimaryAggregationType to string + /// + public static implicit operator string(PrimaryAggregationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrimaryAggregationType + /// + public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrimaryAggregationType + /// + public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrimaryAggregationType + /// + public override bool Equals(object obj) + { + return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); + } + + /// + /// Returns for hashCode PrimaryAggregationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs new file mode 100644 index 000000000000..72fcf7333fdf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrimaryAggregationType. + /// + public sealed class PrimaryAggregationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PrimaryAggregationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PrimaryAggregationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrimaryAggregationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrimaryAggregationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs index 79ae75393c7c..e37cf2e600ea 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrincipalType. /// - public static class PrincipalType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrincipalTypeConverter))] + public struct PrincipalType : System.IEquatable { - public const string User = "User"; - public const string Group = "Group"; - public const string Application = "Application"; + private PrincipalType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrincipalType User = "User"; + + public static readonly PrincipalType Group = "Group"; + + public static readonly PrincipalType Application = "Application"; + + + /// + /// Underlying value of enum PrincipalType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrincipalType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrincipalType + /// + public bool Equals(PrincipalType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PrincipalType + /// + public static implicit operator PrincipalType(string value) + { + return new PrincipalType(value); + } + + /// + /// Implicit operator to convert PrincipalType to string + /// + public static implicit operator string(PrincipalType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrincipalType + /// + public static bool operator == (PrincipalType e1, PrincipalType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrincipalType + /// + public static bool operator != (PrincipalType e1, PrincipalType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrincipalType + /// + public override bool Equals(object obj) + { + return obj is PrincipalType && Equals((PrincipalType)obj); + } + + /// + /// Returns for hashCode PrincipalType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs new file mode 100644 index 000000000000..d8ea923ba500 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrincipalType. + /// + public sealed class PrincipalTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PrincipalType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrincipalType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PrincipalType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrincipalType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrincipalType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs index 1e5b5bd72283..7d429e5f86b5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 86d661659397..09f479a5dad3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs index 8b51147cfcf2..9ef001d311a0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,16 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - public static class PrivateEndpointProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] + public struct PrivateEndpointProvisioningState : System.IEquatable { - public const string Approving = "Approving"; - public const string Ready = "Ready"; - public const string Dropping = "Dropping"; - public const string Failed = "Failed"; - public const string Rejecting = "Rejecting"; + private PrivateEndpointProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateEndpointProvisioningState Approving = "Approving"; + + public static readonly PrivateEndpointProvisioningState Ready = "Ready"; + + public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; + + public static readonly PrivateEndpointProvisioningState Failed = "Failed"; + + public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; + + + /// + /// Underlying value of enum PrivateEndpointProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrivateEndpointProvisioningState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateEndpointProvisioningState + /// + public bool Equals(PrivateEndpointProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateEndpointProvisioningState + /// + public static implicit operator PrivateEndpointProvisioningState(string value) + { + return new PrivateEndpointProvisioningState(value); + } + + /// + /// Implicit operator to convert PrivateEndpointProvisioningState to + /// string + /// + public static implicit operator string(PrivateEndpointProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrivateEndpointProvisioningState + /// + public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrivateEndpointProvisioningState + /// + public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrivateEndpointProvisioningState + /// + public override bool Equals(object obj) + { + return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); + } + + /// + /// Returns for hashCode PrivateEndpointProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs new file mode 100644 index 000000000000..4aba156c0b1e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateEndpointProvisioningState. + /// + public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateEndpointProvisioningState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateEndpointProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateEndpointProvisioningState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index 65076ffb9e33..e5f7a162b289 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,12 +10,103 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - public static class PrivateLinkServiceConnectionStateActionsRequire + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] + public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable { - public const string None = "None"; + private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; + + + /// + /// Underlying value of enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) + { + return new PrivateLinkServiceConnectionStateActionsRequire(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateActionsRequire to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); + } + + /// + /// Returns for hashCode + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs new file mode 100644 index 000000000000..11ba9fac5962 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. + /// + public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateActionsRequire by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateActionsRequire. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for + /// PrivateLinkServiceConnectionStateActionsRequire for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index b37af54682f7..35c59ae42bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) + public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public string Status { get; set; } + public PrivateLinkServiceConnectionStateStatus Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public string ActionsRequired { get; private set; } + public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,10 +77,6 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 625f7c0aed92..34bc540aa78d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,15 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - public static class PrivateLinkServiceConnectionStateStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] + public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable { - public const string Approved = "Approved"; - public const string Pending = "Pending"; - public const string Rejected = "Rejected"; - public const string Disconnected = "Disconnected"; + private PrivateLinkServiceConnectionStateStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; + + public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; + + public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; + + public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; + + + /// + /// Underlying value of enum PrivateLinkServiceConnectionStateStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateStatus + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateLinkServiceConnectionStateStatus + /// + public bool Equals(PrivateLinkServiceConnectionStateStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateStatus + /// + public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) + { + return new PrivateLinkServiceConnectionStateStatus(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateStatus to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateStatus + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); + } + + /// + /// Returns for hashCode PrivateLinkServiceConnectionStateStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs new file mode 100644 index 000000000000..5b6c95b39411 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateStatus. + /// + public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs index 86dff5006da9..e8d6fbb8da78 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - public static class ProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ProvisioningStateConverter))] + public struct ProvisioningState : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string Canceled = "Canceled"; + private ProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ProvisioningState Created = "Created"; + + public static readonly ProvisioningState InProgress = "InProgress"; + + public static readonly ProvisioningState Succeeded = "Succeeded"; + + public static readonly ProvisioningState Failed = "Failed"; + + public static readonly ProvisioningState Canceled = "Canceled"; + + + /// + /// Underlying value of enum ProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ProvisioningState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ProvisioningState + /// + public bool Equals(ProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ProvisioningState + /// + public static implicit operator ProvisioningState(string value) + { + return new ProvisioningState(value); + } + + /// + /// Implicit operator to convert ProvisioningState to string + /// + public static implicit operator string(ProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ProvisioningState + /// + public static bool operator == (ProvisioningState e1, ProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ProvisioningState + /// + public static bool operator != (ProvisioningState e1, ProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ProvisioningState + /// + public override bool Equals(object obj) + { + return obj is ProvisioningState && Equals((ProvisioningState)obj); + } + + /// + /// Returns for hashCode ProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs new file mode 100644 index 000000000000..1daf14e3574a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ProvisioningState. + /// + public sealed class ProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ProvisioningState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ProvisioningState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs index 6f5c2866a52c..984b87556cad 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs @@ -39,7 +39,7 @@ public QueryMetricInterval() /// interval. /// List of metric objects for this /// interval - public QueryMetricInterval(string intervalStartTime = default(string), string intervalType = default(string), long? executionCount = default(long?), IList metrics = default(IList)) + public QueryMetricInterval(string intervalStartTime = default(string), QueryTimeGrainType? intervalType = default(QueryTimeGrainType?), long? executionCount = default(long?), IList metrics = default(IList)) { IntervalStartTime = intervalStartTime; IntervalType = intervalType; @@ -63,7 +63,7 @@ public QueryMetricInterval() /// Gets interval type (length). Possible values include: 'PT1H', 'P1D' /// [JsonProperty(PropertyName = "intervalType")] - public string IntervalType { get; private set; } + public QueryTimeGrainType? IntervalType { get; private set; } /// /// Gets execution count of a query in this interval. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs index 37d721a565d9..28854ae5333e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs @@ -45,7 +45,7 @@ public QueryMetricProperties() /// used over the interval. /// Metric value when stdev aggregate function is /// used over the interval. - public QueryMetricProperties(string name = default(string), string displayName = default(string), string unit = default(string), double? value = default(double?), double? min = default(double?), double? max = default(double?), double? avg = default(double?), double? sum = default(double?), double? stdev = default(double?)) + public QueryMetricProperties(string name = default(string), string displayName = default(string), QueryMetricUnitType? unit = default(QueryMetricUnitType?), double? value = default(double?), double? min = default(double?), double? max = default(double?), double? avg = default(double?), double? sum = default(double?), double? stdev = default(double?)) { Name = name; DisplayName = displayName; @@ -81,7 +81,7 @@ public QueryMetricProperties() /// 'KB', 'microseconds', 'count' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public QueryMetricUnitType? Unit { get; private set; } /// /// Gets the value of the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs index e2294cbf8301..8394639819bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for QueryMetricUnitType. /// - public static class QueryMetricUnitType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(QueryMetricUnitTypeConverter))] + public struct QueryMetricUnitType : System.IEquatable { - public const string Percentage = "percentage"; - public const string KB = "KB"; - public const string Microseconds = "microseconds"; - public const string Count = "count"; + private QueryMetricUnitType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly QueryMetricUnitType Percentage = "percentage"; + + public static readonly QueryMetricUnitType KB = "KB"; + + public static readonly QueryMetricUnitType Microseconds = "microseconds"; + + public static readonly QueryMetricUnitType Count = "count"; + + + /// + /// Underlying value of enum QueryMetricUnitType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for QueryMetricUnitType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type QueryMetricUnitType + /// + public bool Equals(QueryMetricUnitType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to QueryMetricUnitType + /// + public static implicit operator QueryMetricUnitType(string value) + { + return new QueryMetricUnitType(value); + } + + /// + /// Implicit operator to convert QueryMetricUnitType to string + /// + public static implicit operator string(QueryMetricUnitType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum QueryMetricUnitType + /// + public static bool operator == (QueryMetricUnitType e1, QueryMetricUnitType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum QueryMetricUnitType + /// + public static bool operator != (QueryMetricUnitType e1, QueryMetricUnitType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for QueryMetricUnitType + /// + public override bool Equals(object obj) + { + return obj is QueryMetricUnitType && Equals((QueryMetricUnitType)obj); + } + + /// + /// Returns for hashCode QueryMetricUnitType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs new file mode 100644 index 000000000000..37fe90532ca1 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for QueryMetricUnitType. + /// + public sealed class QueryMetricUnitTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to QueryMetricUnitType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(QueryMetricUnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to QueryMetricUnitType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (QueryMetricUnitType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for QueryMetricUnitType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs index 287ac8783790..6f8c6d983db0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for QueryTimeGrainType. /// - public static class QueryTimeGrainType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(QueryTimeGrainTypeConverter))] + public struct QueryTimeGrainType : System.IEquatable { - public const string PT1H = "PT1H"; - public const string P1D = "P1D"; + private QueryTimeGrainType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly QueryTimeGrainType PT1H = "PT1H"; + + public static readonly QueryTimeGrainType P1D = "P1D"; + + + /// + /// Underlying value of enum QueryTimeGrainType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for QueryTimeGrainType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type QueryTimeGrainType + /// + public bool Equals(QueryTimeGrainType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to QueryTimeGrainType + /// + public static implicit operator QueryTimeGrainType(string value) + { + return new QueryTimeGrainType(value); + } + + /// + /// Implicit operator to convert QueryTimeGrainType to string + /// + public static implicit operator string(QueryTimeGrainType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum QueryTimeGrainType + /// + public static bool operator == (QueryTimeGrainType e1, QueryTimeGrainType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum QueryTimeGrainType + /// + public static bool operator != (QueryTimeGrainType e1, QueryTimeGrainType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for QueryTimeGrainType + /// + public override bool Equals(object obj) + { + return obj is QueryTimeGrainType && Equals((QueryTimeGrainType)obj); + } + + /// + /// Returns for hashCode QueryTimeGrainType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs new file mode 100644 index 000000000000..c0496d64d18d --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for QueryTimeGrainType. + /// + public sealed class QueryTimeGrainTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to QueryTimeGrainType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(QueryTimeGrainType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to QueryTimeGrainType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (QueryTimeGrainType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for QueryTimeGrainType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 4d78fadf1980..736146c6c40e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - public static class ReadOnlyEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] + public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; + private ReadOnlyEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; + + public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; + + + /// + /// Underlying value of enum ReadOnlyEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadOnlyEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadOnlyEndpointFailoverPolicy + /// + public bool Equals(ReadOnlyEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadOnlyEndpointFailoverPolicy + /// + public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) + { + return new ReadOnlyEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadOnlyEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..f2b2352a5cee --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadOnlyEndpointFailoverPolicy. + /// + public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadOnlyEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadOnlyEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 1ea812a89b20..c3b384a8035e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - public static class ReadWriteEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] + public struct ReadWriteEndpointFailoverPolicy : System.IEquatable { - public const string Manual = "Manual"; - public const string Automatic = "Automatic"; + private ReadWriteEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; + + public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; + + + /// + /// Underlying value of enum ReadWriteEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadWriteEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadWriteEndpointFailoverPolicy + /// + public bool Equals(ReadWriteEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadWriteEndpointFailoverPolicy + /// + public static implicit operator ReadWriteEndpointFailoverPolicy(string value) + { + return new ReadWriteEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadWriteEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadWriteEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..953d3b242b00 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadWriteEndpointFailoverPolicy. + /// + public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadWriteEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadWriteEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs index f507c8111eef..e7056b35d92f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs @@ -10,25 +10,122 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for RecommendedActionCurrentState. /// - public static class RecommendedActionCurrentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(RecommendedActionCurrentStateConverter))] + public struct RecommendedActionCurrentState : System.IEquatable { - public const string Active = "Active"; - public const string Pending = "Pending"; - public const string Executing = "Executing"; - public const string Verifying = "Verifying"; - public const string PendingRevert = "PendingRevert"; - public const string RevertCancelled = "RevertCancelled"; - public const string Reverting = "Reverting"; - public const string Reverted = "Reverted"; - public const string Ignored = "Ignored"; - public const string Expired = "Expired"; - public const string Monitoring = "Monitoring"; - public const string Resolved = "Resolved"; - public const string Success = "Success"; - public const string Error = "Error"; + private RecommendedActionCurrentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly RecommendedActionCurrentState Active = "Active"; + + public static readonly RecommendedActionCurrentState Pending = "Pending"; + + public static readonly RecommendedActionCurrentState Executing = "Executing"; + + public static readonly RecommendedActionCurrentState Verifying = "Verifying"; + + public static readonly RecommendedActionCurrentState PendingRevert = "PendingRevert"; + + public static readonly RecommendedActionCurrentState RevertCancelled = "RevertCancelled"; + + public static readonly RecommendedActionCurrentState Reverting = "Reverting"; + + public static readonly RecommendedActionCurrentState Reverted = "Reverted"; + + public static readonly RecommendedActionCurrentState Ignored = "Ignored"; + + public static readonly RecommendedActionCurrentState Expired = "Expired"; + + public static readonly RecommendedActionCurrentState Monitoring = "Monitoring"; + + public static readonly RecommendedActionCurrentState Resolved = "Resolved"; + + public static readonly RecommendedActionCurrentState Success = "Success"; + + public static readonly RecommendedActionCurrentState Error = "Error"; + + + /// + /// Underlying value of enum RecommendedActionCurrentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for RecommendedActionCurrentState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type RecommendedActionCurrentState + /// + public bool Equals(RecommendedActionCurrentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// RecommendedActionCurrentState + /// + public static implicit operator RecommendedActionCurrentState(string value) + { + return new RecommendedActionCurrentState(value); + } + + /// + /// Implicit operator to convert RecommendedActionCurrentState to + /// string + /// + public static implicit operator string(RecommendedActionCurrentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum RecommendedActionCurrentState + /// + public static bool operator == (RecommendedActionCurrentState e1, RecommendedActionCurrentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum RecommendedActionCurrentState + /// + public static bool operator != (RecommendedActionCurrentState e1, RecommendedActionCurrentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for RecommendedActionCurrentState + /// + public override bool Equals(object obj) + { + return obj is RecommendedActionCurrentState && Equals((RecommendedActionCurrentState)obj); + } + + /// + /// Returns for hashCode RecommendedActionCurrentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs new file mode 100644 index 000000000000..5cb28b1e1a5c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for RecommendedActionCurrentState. + /// + public sealed class RecommendedActionCurrentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// RecommendedActionCurrentState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(RecommendedActionCurrentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// RecommendedActionCurrentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (RecommendedActionCurrentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for RecommendedActionCurrentState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs index 28ee87e2af3c..d4256c704a0a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -58,7 +57,7 @@ public RecommendedActionStateInfo() /// include: 'User', 'System' /// Gets the time when the state was last /// modified - public RecommendedActionStateInfo(string currentValue, RecommendedActionInitiatedBy? actionInitiatedBy = default(RecommendedActionInitiatedBy?), System.DateTime? lastModified = default(System.DateTime?)) + public RecommendedActionStateInfo(RecommendedActionCurrentState currentValue, RecommendedActionInitiatedBy? actionInitiatedBy = default(RecommendedActionInitiatedBy?), System.DateTime? lastModified = default(System.DateTime?)) { CurrentValue = currentValue; ActionInitiatedBy = actionInitiatedBy; @@ -92,7 +91,7 @@ public RecommendedActionStateInfo() /// 'Ignored', 'Expired', 'Monitoring', 'Resolved', 'Success', 'Error' /// [JsonProperty(PropertyName = "currentValue")] - public string CurrentValue { get; set; } + public RecommendedActionCurrentState CurrentValue { get; set; } /// /// Gets who initiated the execution of this recommended action. @@ -114,15 +113,11 @@ public RecommendedActionStateInfo() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (CurrentValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentValue"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs index f7a52812ab85..68174f6becf5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - public static class ReplicaType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicaTypeConverter))] + public struct ReplicaType : System.IEquatable { - public const string Primary = "Primary"; - public const string ReadableSecondary = "ReadableSecondary"; + private ReplicaType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicaType Primary = "Primary"; + + public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; + + + /// + /// Underlying value of enum ReplicaType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicaType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicaType + /// + public bool Equals(ReplicaType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicaType + /// + public static implicit operator ReplicaType(string value) + { + return new ReplicaType(value); + } + + /// + /// Implicit operator to convert ReplicaType to string + /// + public static implicit operator string(ReplicaType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicaType + /// + public static bool operator == (ReplicaType e1, ReplicaType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicaType + /// + public static bool operator != (ReplicaType e1, ReplicaType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicaType + /// + public override bool Equals(object obj) + { + return obj is ReplicaType && Equals((ReplicaType)obj); + } + + /// + /// Returns for hashCode ReplicaType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs new file mode 100644 index 000000000000..2dc81d8fbb2b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicaType. + /// + public sealed class ReplicaTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicaType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicaType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicaType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicaType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs index ec615258eb11..098765f9cdd2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs @@ -10,14 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for RequestedBackupStorageRedundancy. /// - public static class RequestedBackupStorageRedundancy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(RequestedBackupStorageRedundancyConverter))] + public struct RequestedBackupStorageRedundancy : System.IEquatable { - public const string Geo = "Geo"; - public const string Local = "Local"; - public const string Zone = "Zone"; + private RequestedBackupStorageRedundancy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly RequestedBackupStorageRedundancy Geo = "Geo"; + + public static readonly RequestedBackupStorageRedundancy Local = "Local"; + + public static readonly RequestedBackupStorageRedundancy Zone = "Zone"; + + + /// + /// Underlying value of enum RequestedBackupStorageRedundancy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for RequestedBackupStorageRedundancy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type RequestedBackupStorageRedundancy + /// + public bool Equals(RequestedBackupStorageRedundancy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// RequestedBackupStorageRedundancy + /// + public static implicit operator RequestedBackupStorageRedundancy(string value) + { + return new RequestedBackupStorageRedundancy(value); + } + + /// + /// Implicit operator to convert RequestedBackupStorageRedundancy to + /// string + /// + public static implicit operator string(RequestedBackupStorageRedundancy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum RequestedBackupStorageRedundancy + /// + public static bool operator == (RequestedBackupStorageRedundancy e1, RequestedBackupStorageRedundancy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum RequestedBackupStorageRedundancy + /// + public static bool operator != (RequestedBackupStorageRedundancy e1, RequestedBackupStorageRedundancy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for RequestedBackupStorageRedundancy + /// + public override bool Equals(object obj) + { + return obj is RequestedBackupStorageRedundancy && Equals((RequestedBackupStorageRedundancy)obj); + } + + /// + /// Returns for hashCode RequestedBackupStorageRedundancy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs new file mode 100644 index 000000000000..bd88dfd6d84e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for RequestedBackupStorageRedundancy. + /// + public sealed class RequestedBackupStorageRedundancyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// RequestedBackupStorageRedundancy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(RequestedBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// RequestedBackupStorageRedundancy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (RequestedBackupStorageRedundancy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for RequestedBackupStorageRedundancy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs index f1c2678f640b..5cf33f5f468f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs @@ -41,7 +41,7 @@ public ResourceIdentity() /// 'None', 'SystemAssigned', 'UserAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) { UserAssignedIdentities = userAssignedIdentities; PrincipalId = principalId; @@ -75,7 +75,7 @@ public ResourceIdentity() /// 'SystemAssigned', 'UserAssigned' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public IdentityType? Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs index 6df0be98d2ba..34596cb9ee77 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs @@ -43,7 +43,7 @@ public ResourceIdentityWithUserAssignedIdentities() /// 'None', 'SystemAssigned', 'UserAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentityWithUserAssignedIdentities(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentityWithUserAssignedIdentities(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) { UserAssignedIdentities = userAssignedIdentities; PrincipalId = principalId; @@ -77,7 +77,7 @@ public ResourceIdentityWithUserAssignedIdentities() /// 'SystemAssigned', 'UserAssigned' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public IdentityType? Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs index 92a7ff7a1560..d0a024d9e40a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SampleName. /// - public static class SampleName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SampleNameConverter))] + public struct SampleName : System.IEquatable { - public const string AdventureWorksLT = "AdventureWorksLT"; - public const string WideWorldImportersStd = "WideWorldImportersStd"; - public const string WideWorldImportersFull = "WideWorldImportersFull"; + private SampleName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; + + public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; + + public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; + + + /// + /// Underlying value of enum SampleName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SampleName + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SampleName + /// + public bool Equals(SampleName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SampleName + /// + public static implicit operator SampleName(string value) + { + return new SampleName(value); + } + + /// + /// Implicit operator to convert SampleName to string + /// + public static implicit operator string(SampleName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SampleName + /// + public static bool operator == (SampleName e1, SampleName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SampleName + /// + public static bool operator != (SampleName e1, SampleName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SampleName + /// + public override bool Equals(object obj) + { + return obj is SampleName && Equals((SampleName)obj); + } + + /// + /// Returns for hashCode SampleName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs new file mode 100644 index 000000000000..fb7b9b68f517 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SampleName. + /// + public sealed class SampleNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SampleName by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SampleName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SampleName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SampleName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs index b7cbecb59878..47e9bc284337 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SecondaryType. /// - public static class SecondaryType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SecondaryTypeConverter))] + public struct SecondaryType : System.IEquatable { - public const string Geo = "Geo"; - public const string Named = "Named"; + private SecondaryType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SecondaryType Geo = "Geo"; + + public static readonly SecondaryType Named = "Named"; + + + /// + /// Underlying value of enum SecondaryType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SecondaryType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SecondaryType + /// + public bool Equals(SecondaryType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SecondaryType + /// + public static implicit operator SecondaryType(string value) + { + return new SecondaryType(value); + } + + /// + /// Implicit operator to convert SecondaryType to string + /// + public static implicit operator string(SecondaryType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SecondaryType + /// + public static bool operator == (SecondaryType e1, SecondaryType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SecondaryType + /// + public static bool operator != (SecondaryType e1, SecondaryType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SecondaryType + /// + public override bool Equals(object obj) + { + return obj is SecondaryType && Equals((SecondaryType)obj); + } + + /// + /// Returns for hashCode SecondaryType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs new file mode 100644 index 000000000000..a80d05f74028 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SecondaryType. + /// + public sealed class SecondaryTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SecondaryType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SecondaryType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SecondaryType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SecondaryType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SecondaryType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs index cb46c725411e..33bf64adf1d1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs @@ -74,7 +74,7 @@ public Server() /// restrict outbound network access for this server. Value is /// optional but if passed in, must be 'Enabled' or 'Disabled'. /// Possible values include: 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerNetworkAccessFlag? publicNetworkAccess = default(ServerNetworkAccessFlag?), ServerWorkspaceFeature? workspaceFeature = default(ServerWorkspaceFeature?), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), ServerNetworkAccessFlag? restrictOutboundNetworkAccess = default(ServerNetworkAccessFlag?)) : base(location, id, name, type, tags) { Identity = identity; @@ -165,7 +165,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } /// /// Gets whether or not existing server has a workspace created and if @@ -173,7 +173,7 @@ public Server() /// 'Connected', 'Disconnected' /// [JsonProperty(PropertyName = "properties.workspaceFeature")] - public string WorkspaceFeature { get; private set; } + public ServerWorkspaceFeature? WorkspaceFeature { get; private set; } /// /// Gets or sets the resource id of a user assigned identity to be used @@ -206,7 +206,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.restrictOutboundNetworkAccess")] - public string RestrictOutboundNetworkAccess { get; set; } + public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs index 8c8c94543a63..90f0f542a2af 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs @@ -42,7 +42,7 @@ public ServerExternalAdministrator() /// Tenant ID of the administrator. /// Azure Active Directory only /// Authentication enabled. - public ServerExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) + public ServerExternalAdministrator(AdministratorType? administratorType = default(AdministratorType?), PrincipalType? principalType = default(PrincipalType?), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) { AdministratorType = administratorType; PrincipalType = principalType; @@ -63,14 +63,14 @@ public ServerExternalAdministrator() /// include: 'ActiveDirectory' /// [JsonProperty(PropertyName = "administratorType")] - public string AdministratorType { get; set; } + public AdministratorType? AdministratorType { get; set; } /// /// Gets or sets principal Type of the sever administrator. Possible /// values include: 'User', 'Group', 'Application' /// [JsonProperty(PropertyName = "principalType")] - public string PrincipalType { get; set; } + public PrincipalType? PrincipalType { get; set; } /// /// Gets or sets login name of the server administrator. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs index d343d862e29f..ebdf3e84b568 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs @@ -48,7 +48,7 @@ public ServerKey() /// The server key creation date. /// Key auto rotation opt-in flag. /// Either true or false. - public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) + public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -92,7 +92,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. If the ServerKeyType is @@ -127,10 +127,6 @@ public ServerKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs index 3358ddccad1e..23200b653c25 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - public static class ServerKeyType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerKeyTypeConverter))] + public struct ServerKeyType : System.IEquatable { - public const string ServiceManaged = "ServiceManaged"; - public const string AzureKeyVault = "AzureKeyVault"; + private ServerKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; + + public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; + + + /// + /// Underlying value of enum ServerKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerKeyType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerKeyType + /// + public bool Equals(ServerKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerKeyType + /// + public static implicit operator ServerKeyType(string value) + { + return new ServerKeyType(value); + } + + /// + /// Implicit operator to convert ServerKeyType to string + /// + public static implicit operator string(ServerKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerKeyType + /// + public static bool operator == (ServerKeyType e1, ServerKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerKeyType + /// + public static bool operator != (ServerKeyType e1, ServerKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerKeyType + /// + public override bool Equals(object obj) + { + return obj is ServerKeyType && Equals((ServerKeyType)obj); + } + + /// + /// Returns for hashCode ServerKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs new file mode 100644 index 000000000000..eaaa4bf4d7cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerKeyType. + /// + public sealed class ServerKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs index d7c9fb5f6c51..3f14be447a08 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerNetworkAccessFlag. /// - public static class ServerNetworkAccessFlag + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerNetworkAccessFlagConverter))] + public struct ServerNetworkAccessFlag : System.IEquatable { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; + private ServerNetworkAccessFlag(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerNetworkAccessFlag Enabled = "Enabled"; + + public static readonly ServerNetworkAccessFlag Disabled = "Disabled"; + + + /// + /// Underlying value of enum ServerNetworkAccessFlag + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerNetworkAccessFlag + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerNetworkAccessFlag + /// + public bool Equals(ServerNetworkAccessFlag e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerNetworkAccessFlag + /// + public static implicit operator ServerNetworkAccessFlag(string value) + { + return new ServerNetworkAccessFlag(value); + } + + /// + /// Implicit operator to convert ServerNetworkAccessFlag to string + /// + public static implicit operator string(ServerNetworkAccessFlag e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerNetworkAccessFlag + /// + public static bool operator == (ServerNetworkAccessFlag e1, ServerNetworkAccessFlag e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerNetworkAccessFlag + /// + public static bool operator != (ServerNetworkAccessFlag e1, ServerNetworkAccessFlag e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerNetworkAccessFlag + /// + public override bool Equals(object obj) + { + return obj is ServerNetworkAccessFlag && Equals((ServerNetworkAccessFlag)obj); + } + + /// + /// Returns for hashCode ServerNetworkAccessFlag + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs new file mode 100644 index 000000000000..df3bcdae7da8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerNetworkAccessFlag. + /// + public sealed class ServerNetworkAccessFlagConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerNetworkAccessFlag + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerNetworkAccessFlag).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerNetworkAccessFlag. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerNetworkAccessFlag)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerNetworkAccessFlag for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs index fe17244072e8..d518d4fd8e7d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs @@ -56,7 +56,7 @@ public ServerOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public ServerOperation(string id = default(string), string name = default(string), string type = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public ServerOperation(string id = default(string), string name = default(string), string type = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { Operation = operation; @@ -116,7 +116,7 @@ public ServerOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs index b5b5251a2142..b641288de04e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs @@ -67,7 +67,7 @@ public ServerUpdate() /// optional but if passed in, must be 'Enabled' or 'Disabled'. /// Possible values include: 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(ResourceIdentity identity = default(ResourceIdentity), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string), IDictionary tags = default(IDictionary)) + public ServerUpdate(ResourceIdentity identity = default(ResourceIdentity), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerNetworkAccessFlag? publicNetworkAccess = default(ServerNetworkAccessFlag?), ServerWorkspaceFeature? workspaceFeature = default(ServerWorkspaceFeature?), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), ServerNetworkAccessFlag? restrictOutboundNetworkAccess = default(ServerNetworkAccessFlag?), IDictionary tags = default(IDictionary)) { Identity = identity; AdministratorLogin = administratorLogin; @@ -150,7 +150,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } /// /// Gets whether or not existing server has a workspace created and if @@ -158,7 +158,7 @@ public ServerUpdate() /// 'Connected', 'Disconnected' /// [JsonProperty(PropertyName = "properties.workspaceFeature")] - public string WorkspaceFeature { get; private set; } + public ServerWorkspaceFeature? WorkspaceFeature { get; private set; } /// /// Gets or sets the resource id of a user assigned identity to be used @@ -191,7 +191,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.restrictOutboundNetworkAccess")] - public string RestrictOutboundNetworkAccess { get; set; } + public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs index 568b5b9b66f3..e69eae3f06d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerWorkspaceFeature. /// - public static class ServerWorkspaceFeature + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerWorkspaceFeatureConverter))] + public struct ServerWorkspaceFeature : System.IEquatable { - public const string Connected = "Connected"; - public const string Disconnected = "Disconnected"; + private ServerWorkspaceFeature(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerWorkspaceFeature Connected = "Connected"; + + public static readonly ServerWorkspaceFeature Disconnected = "Disconnected"; + + + /// + /// Underlying value of enum ServerWorkspaceFeature + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerWorkspaceFeature + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerWorkspaceFeature + /// + public bool Equals(ServerWorkspaceFeature e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerWorkspaceFeature + /// + public static implicit operator ServerWorkspaceFeature(string value) + { + return new ServerWorkspaceFeature(value); + } + + /// + /// Implicit operator to convert ServerWorkspaceFeature to string + /// + public static implicit operator string(ServerWorkspaceFeature e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerWorkspaceFeature + /// + public static bool operator == (ServerWorkspaceFeature e1, ServerWorkspaceFeature e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerWorkspaceFeature + /// + public static bool operator != (ServerWorkspaceFeature e1, ServerWorkspaceFeature e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerWorkspaceFeature + /// + public override bool Equals(object obj) + { + return obj is ServerWorkspaceFeature && Equals((ServerWorkspaceFeature)obj); + } + + /// + /// Returns for hashCode ServerWorkspaceFeature + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs new file mode 100644 index 000000000000..41d8f4c0c94c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerWorkspaceFeature. + /// + public sealed class ServerWorkspaceFeatureConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerWorkspaceFeature by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerWorkspaceFeature).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerWorkspaceFeature. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerWorkspaceFeature)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerWorkspaceFeature for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs index befe17ba9bbf..311be0af5dd0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs @@ -10,76 +10,222 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - public static class ServiceObjectiveName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServiceObjectiveNameConverter))] + public struct ServiceObjectiveName : System.IEquatable { - public const string System = "System"; - public const string System0 = "System0"; - public const string System1 = "System1"; - public const string System2 = "System2"; - public const string System3 = "System3"; - public const string System4 = "System4"; - public const string System2L = "System2L"; - public const string System3L = "System3L"; - public const string System4L = "System4L"; - public const string Free = "Free"; - public const string Basic = "Basic"; - public const string S0 = "S0"; - public const string S1 = "S1"; - public const string S2 = "S2"; - public const string S3 = "S3"; - public const string S4 = "S4"; - public const string S6 = "S6"; - public const string S7 = "S7"; - public const string S9 = "S9"; - public const string S12 = "S12"; - public const string P1 = "P1"; - public const string P2 = "P2"; - public const string P3 = "P3"; - public const string P4 = "P4"; - public const string P6 = "P6"; - public const string P11 = "P11"; - public const string P15 = "P15"; - public const string PRS1 = "PRS1"; - public const string PRS2 = "PRS2"; - public const string PRS4 = "PRS4"; - public const string PRS6 = "PRS6"; - public const string DW100 = "DW100"; - public const string DW200 = "DW200"; - public const string DW300 = "DW300"; - public const string DW400 = "DW400"; - public const string DW500 = "DW500"; - public const string DW600 = "DW600"; - public const string DW1000 = "DW1000"; - public const string DW1200 = "DW1200"; - public const string DW1000c = "DW1000c"; - public const string DW1500 = "DW1500"; - public const string DW1500c = "DW1500c"; - public const string DW2000 = "DW2000"; - public const string DW2000c = "DW2000c"; - public const string DW3000 = "DW3000"; - public const string DW2500c = "DW2500c"; - public const string DW3000c = "DW3000c"; - public const string DW6000 = "DW6000"; - public const string DW5000c = "DW5000c"; - public const string DW6000c = "DW6000c"; - public const string DW7500c = "DW7500c"; - public const string DW10000c = "DW10000c"; - public const string DW15000c = "DW15000c"; - public const string DW30000c = "DW30000c"; - public const string DS100 = "DS100"; - public const string DS200 = "DS200"; - public const string DS300 = "DS300"; - public const string DS400 = "DS400"; - public const string DS500 = "DS500"; - public const string DS600 = "DS600"; - public const string DS1000 = "DS1000"; - public const string DS1200 = "DS1200"; - public const string DS1500 = "DS1500"; - public const string DS2000 = "DS2000"; - public const string ElasticPool = "ElasticPool"; + private ServiceObjectiveName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServiceObjectiveName System = "System"; + + public static readonly ServiceObjectiveName System0 = "System0"; + + public static readonly ServiceObjectiveName System1 = "System1"; + + public static readonly ServiceObjectiveName System2 = "System2"; + + public static readonly ServiceObjectiveName System3 = "System3"; + + public static readonly ServiceObjectiveName System4 = "System4"; + + public static readonly ServiceObjectiveName System2L = "System2L"; + + public static readonly ServiceObjectiveName System3L = "System3L"; + + public static readonly ServiceObjectiveName System4L = "System4L"; + + public static readonly ServiceObjectiveName Free = "Free"; + + public static readonly ServiceObjectiveName Basic = "Basic"; + + public static readonly ServiceObjectiveName S0 = "S0"; + + public static readonly ServiceObjectiveName S1 = "S1"; + + public static readonly ServiceObjectiveName S2 = "S2"; + + public static readonly ServiceObjectiveName S3 = "S3"; + + public static readonly ServiceObjectiveName S4 = "S4"; + + public static readonly ServiceObjectiveName S6 = "S6"; + + public static readonly ServiceObjectiveName S7 = "S7"; + + public static readonly ServiceObjectiveName S9 = "S9"; + + public static readonly ServiceObjectiveName S12 = "S12"; + + public static readonly ServiceObjectiveName P1 = "P1"; + + public static readonly ServiceObjectiveName P2 = "P2"; + + public static readonly ServiceObjectiveName P3 = "P3"; + + public static readonly ServiceObjectiveName P4 = "P4"; + + public static readonly ServiceObjectiveName P6 = "P6"; + + public static readonly ServiceObjectiveName P11 = "P11"; + + public static readonly ServiceObjectiveName P15 = "P15"; + + public static readonly ServiceObjectiveName PRS1 = "PRS1"; + + public static readonly ServiceObjectiveName PRS2 = "PRS2"; + + public static readonly ServiceObjectiveName PRS4 = "PRS4"; + + public static readonly ServiceObjectiveName PRS6 = "PRS6"; + + public static readonly ServiceObjectiveName DW100 = "DW100"; + + public static readonly ServiceObjectiveName DW200 = "DW200"; + + public static readonly ServiceObjectiveName DW300 = "DW300"; + + public static readonly ServiceObjectiveName DW400 = "DW400"; + + public static readonly ServiceObjectiveName DW500 = "DW500"; + + public static readonly ServiceObjectiveName DW600 = "DW600"; + + public static readonly ServiceObjectiveName DW1000 = "DW1000"; + + public static readonly ServiceObjectiveName DW1200 = "DW1200"; + + public static readonly ServiceObjectiveName DW1000c = "DW1000c"; + + public static readonly ServiceObjectiveName DW1500 = "DW1500"; + + public static readonly ServiceObjectiveName DW1500c = "DW1500c"; + + public static readonly ServiceObjectiveName DW2000 = "DW2000"; + + public static readonly ServiceObjectiveName DW2000c = "DW2000c"; + + public static readonly ServiceObjectiveName DW3000 = "DW3000"; + + public static readonly ServiceObjectiveName DW2500c = "DW2500c"; + + public static readonly ServiceObjectiveName DW3000c = "DW3000c"; + + public static readonly ServiceObjectiveName DW6000 = "DW6000"; + + public static readonly ServiceObjectiveName DW5000c = "DW5000c"; + + public static readonly ServiceObjectiveName DW6000c = "DW6000c"; + + public static readonly ServiceObjectiveName DW7500c = "DW7500c"; + + public static readonly ServiceObjectiveName DW10000c = "DW10000c"; + + public static readonly ServiceObjectiveName DW15000c = "DW15000c"; + + public static readonly ServiceObjectiveName DW30000c = "DW30000c"; + + public static readonly ServiceObjectiveName DS100 = "DS100"; + + public static readonly ServiceObjectiveName DS200 = "DS200"; + + public static readonly ServiceObjectiveName DS300 = "DS300"; + + public static readonly ServiceObjectiveName DS400 = "DS400"; + + public static readonly ServiceObjectiveName DS500 = "DS500"; + + public static readonly ServiceObjectiveName DS600 = "DS600"; + + public static readonly ServiceObjectiveName DS1000 = "DS1000"; + + public static readonly ServiceObjectiveName DS1200 = "DS1200"; + + public static readonly ServiceObjectiveName DS1500 = "DS1500"; + + public static readonly ServiceObjectiveName DS2000 = "DS2000"; + + public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; + + + /// + /// Underlying value of enum ServiceObjectiveName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServiceObjectiveName + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServiceObjectiveName + /// + public bool Equals(ServiceObjectiveName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServiceObjectiveName + /// + public static implicit operator ServiceObjectiveName(string value) + { + return new ServiceObjectiveName(value); + } + + /// + /// Implicit operator to convert ServiceObjectiveName to string + /// + public static implicit operator string(ServiceObjectiveName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServiceObjectiveName + /// + public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServiceObjectiveName + /// + public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServiceObjectiveName + /// + public override bool Equals(object obj) + { + return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); + } + + /// + /// Returns for hashCode ServiceObjectiveName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs new file mode 100644 index 000000000000..a9fcced25ad5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServiceObjectiveName. + /// + public sealed class ServiceObjectiveNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServiceObjectiveName by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServiceObjectiveName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServiceObjectiveName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServiceObjectiveName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs index 0f4b019f4948..e3ff7d022675 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public string ServiceLevelObjective { get; private set; } + public ServiceObjectiveName? ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs index f174ff85775d..4714d226fb1c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - public static class StorageAccountType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageAccountTypeConverter))] + public struct StorageAccountType : System.IEquatable { - public const string GRS = "GRS"; - public const string LRS = "LRS"; - public const string ZRS = "ZRS"; + private StorageAccountType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageAccountType GRS = "GRS"; + + public static readonly StorageAccountType LRS = "LRS"; + + public static readonly StorageAccountType ZRS = "ZRS"; + + + /// + /// Underlying value of enum StorageAccountType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageAccountType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageAccountType + /// + public bool Equals(StorageAccountType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageAccountType + /// + public static implicit operator StorageAccountType(string value) + { + return new StorageAccountType(value); + } + + /// + /// Implicit operator to convert StorageAccountType to string + /// + public static implicit operator string(StorageAccountType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageAccountType + /// + public static bool operator == (StorageAccountType e1, StorageAccountType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageAccountType + /// + public static bool operator != (StorageAccountType e1, StorageAccountType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageAccountType + /// + public override bool Equals(object obj) + { + return obj is StorageAccountType && Equals((StorageAccountType)obj); + } + + /// + /// Returns for hashCode StorageAccountType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs new file mode 100644 index 000000000000..64f6d37618d0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageAccountType. + /// + public sealed class StorageAccountTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageAccountType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageAccountType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageAccountType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageAccountType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs index ccbd48d44a48..c014207318b7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for StorageKeyType. /// - public static class StorageKeyType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageKeyTypeConverter))] + public struct StorageKeyType : System.IEquatable { - public const string SharedAccessKey = "SharedAccessKey"; - public const string StorageAccessKey = "StorageAccessKey"; + private StorageKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; + + public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; + + + /// + /// Underlying value of enum StorageKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageKeyType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageKeyType + /// + public bool Equals(StorageKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageKeyType + /// + public static implicit operator StorageKeyType(string value) + { + return new StorageKeyType(value); + } + + /// + /// Implicit operator to convert StorageKeyType to string + /// + public static implicit operator string(StorageKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageKeyType + /// + public static bool operator == (StorageKeyType e1, StorageKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageKeyType + /// + public static bool operator != (StorageKeyType e1, StorageKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageKeyType + /// + public override bool Equals(object obj) + { + return obj is StorageKeyType && Equals((StorageKeyType)obj); + } + + /// + /// Returns for hashCode StorageKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs new file mode 100644 index 000000000000..b1a7b808de9a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageKeyType. + /// + public sealed class StorageKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs index dd27b72537d5..2f810854b151 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public SyncAgentState? State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs index 075a8cd921cc..b9993a161b2e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; private set; } + public SyncMemberDbType? DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs index 3c0f38964739..3b0db8266163 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - public static class SyncAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncAgentStateConverter))] + public struct SyncAgentState : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string NeverConnected = "NeverConnected"; + private SyncAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncAgentState Online = "Online"; + + public static readonly SyncAgentState Offline = "Offline"; + + public static readonly SyncAgentState NeverConnected = "NeverConnected"; + + + /// + /// Underlying value of enum SyncAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncAgentState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncAgentState + /// + public bool Equals(SyncAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncAgentState + /// + public static implicit operator SyncAgentState(string value) + { + return new SyncAgentState(value); + } + + /// + /// Implicit operator to convert SyncAgentState to string + /// + public static implicit operator string(SyncAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncAgentState + /// + public static bool operator == (SyncAgentState e1, SyncAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncAgentState + /// + public static bool operator != (SyncAgentState e1, SyncAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncAgentState + /// + public override bool Equals(object obj) + { + return obj is SyncAgentState && Equals((SyncAgentState)obj); + } + + /// + /// Returns for hashCode SyncAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs new file mode 100644 index 000000000000..1aa815ca2c27 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncAgentState. + /// + public sealed class SyncAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs index ce499c6de853..d4109ae9cfb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - public static class SyncConflictResolutionPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] + public struct SyncConflictResolutionPolicy : System.IEquatable { - public const string HubWin = "HubWin"; - public const string MemberWin = "MemberWin"; + private SyncConflictResolutionPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; + + public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; + + + /// + /// Underlying value of enum SyncConflictResolutionPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncConflictResolutionPolicy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncConflictResolutionPolicy + /// + public bool Equals(SyncConflictResolutionPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncConflictResolutionPolicy + /// + public static implicit operator SyncConflictResolutionPolicy(string value) + { + return new SyncConflictResolutionPolicy(value); + } + + /// + /// Implicit operator to convert SyncConflictResolutionPolicy to string + /// + public static implicit operator string(SyncConflictResolutionPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncConflictResolutionPolicy + /// + public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncConflictResolutionPolicy + /// + public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncConflictResolutionPolicy + /// + public override bool Equals(object obj) + { + return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); + } + + /// + /// Returns for hashCode SyncConflictResolutionPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs new file mode 100644 index 000000000000..b412bdc31b29 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncConflictResolutionPolicy. + /// + public sealed class SyncConflictResolutionPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// SyncConflictResolutionPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// SyncConflictResolutionPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncConflictResolutionPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs index 67774a8584fd..cc19507a9657 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - public static class SyncDirection + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncDirectionConverter))] + public struct SyncDirection : System.IEquatable { - public const string Bidirectional = "Bidirectional"; - public const string OneWayMemberToHub = "OneWayMemberToHub"; - public const string OneWayHubToMember = "OneWayHubToMember"; + private SyncDirection(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncDirection Bidirectional = "Bidirectional"; + + public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; + + public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; + + + /// + /// Underlying value of enum SyncDirection + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncDirection + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncDirection + /// + public bool Equals(SyncDirection e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncDirection + /// + public static implicit operator SyncDirection(string value) + { + return new SyncDirection(value); + } + + /// + /// Implicit operator to convert SyncDirection to string + /// + public static implicit operator string(SyncDirection e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncDirection + /// + public static bool operator == (SyncDirection e1, SyncDirection e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncDirection + /// + public static bool operator != (SyncDirection e1, SyncDirection e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncDirection + /// + public override bool Equals(object obj) + { + return obj is SyncDirection && Equals((SyncDirection)obj); + } + + /// + /// Returns for hashCode SyncDirection + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs new file mode 100644 index 000000000000..8b3d0ea72510 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncDirection. + /// + public sealed class SyncDirectionConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncDirection by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncDirection. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncDirection)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncDirection for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs index fa9f57608078..a9143597977d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs @@ -60,7 +60,7 @@ public SyncGroup() /// connection is enabled. /// Private endpoint name of the sync /// group if use private link connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), Sku sku = default(Sku), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? enableConflictLogging = default(bool?), int? conflictLoggingRetentionInDays = default(int?), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), Sku sku = default(Sku), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? enableConflictLogging = default(bool?), int? conflictLoggingRetentionInDays = default(int?), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string)) : base(id, name, type) { Sku = sku; @@ -107,7 +107,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public string ConflictResolutionPolicy { get; set; } + public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -133,7 +133,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncGroupState? SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs index f587146600e2..b2a7136b00fb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public SyncGroupLogType? Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs index fb3ce4637cfc..091c9807c72e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - public static class SyncGroupLogType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupLogTypeConverter))] + public struct SyncGroupLogType : System.IEquatable { - public const string All = "All"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Success = "Success"; + private SyncGroupLogType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupLogType All = "All"; + + public static readonly SyncGroupLogType Error = "Error"; + + public static readonly SyncGroupLogType Warning = "Warning"; + + public static readonly SyncGroupLogType Success = "Success"; + + + /// + /// Underlying value of enum SyncGroupLogType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupLogType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupLogType + /// + public bool Equals(SyncGroupLogType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupLogType + /// + public static implicit operator SyncGroupLogType(string value) + { + return new SyncGroupLogType(value); + } + + /// + /// Implicit operator to convert SyncGroupLogType to string + /// + public static implicit operator string(SyncGroupLogType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupLogType + /// + public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupLogType + /// + public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupLogType + /// + public override bool Equals(object obj) + { + return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); + } + + /// + /// Returns for hashCode SyncGroupLogType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs new file mode 100644 index 000000000000..224fd4dfab5f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupLogType. + /// + public sealed class SyncGroupLogTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupLogType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupLogType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupLogType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupLogType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs index 4367211c97bc..9eddb525e19b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - public static class SyncGroupState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupStateConverter))] + public struct SyncGroupState : System.IEquatable { - public const string NotReady = "NotReady"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Progressing = "Progressing"; - public const string Good = "Good"; + private SyncGroupState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupState NotReady = "NotReady"; + + public static readonly SyncGroupState Error = "Error"; + + public static readonly SyncGroupState Warning = "Warning"; + + public static readonly SyncGroupState Progressing = "Progressing"; + + public static readonly SyncGroupState Good = "Good"; + + + /// + /// Underlying value of enum SyncGroupState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupState + /// + public bool Equals(SyncGroupState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupState + /// + public static implicit operator SyncGroupState(string value) + { + return new SyncGroupState(value); + } + + /// + /// Implicit operator to convert SyncGroupState to string + /// + public static implicit operator string(SyncGroupState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupState + /// + public static bool operator == (SyncGroupState e1, SyncGroupState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupState + /// + public static bool operator != (SyncGroupState e1, SyncGroupState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupState + /// + public override bool Equals(object obj) + { + return obj is SyncGroupState && Equals((SyncGroupState)obj); + } + + /// + /// Returns for hashCode SyncGroupState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs new file mode 100644 index 000000000000..b9183c88b750 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupState. + /// + public sealed class SyncGroupStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs index 12c71b71f183..58682e494e66 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs @@ -68,7 +68,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) : base(id, name, type) { DatabaseType = databaseType; @@ -96,7 +96,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; set; } + public SyncMemberDbType? DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -160,7 +160,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public string SyncDirection { get; set; } + public SyncDirection? SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -172,7 +172,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncMemberState? SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs index 62c0d7fda443..331639c348ac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - public static class SyncMemberDbType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberDbTypeConverter))] + public struct SyncMemberDbType : System.IEquatable { - public const string AzureSqlDatabase = "AzureSqlDatabase"; - public const string SqlServerDatabase = "SqlServerDatabase"; + private SyncMemberDbType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; + + public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; + + + /// + /// Underlying value of enum SyncMemberDbType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberDbType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberDbType + /// + public bool Equals(SyncMemberDbType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberDbType + /// + public static implicit operator SyncMemberDbType(string value) + { + return new SyncMemberDbType(value); + } + + /// + /// Implicit operator to convert SyncMemberDbType to string + /// + public static implicit operator string(SyncMemberDbType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberDbType + /// + public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberDbType + /// + public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberDbType + /// + public override bool Equals(object obj) + { + return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); + } + + /// + /// Returns for hashCode SyncMemberDbType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs new file mode 100644 index 000000000000..a7be8e6b7c67 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberDbType. + /// + public sealed class SyncMemberDbTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberDbType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberDbType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberDbType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberDbType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs index 8ef9ca4ac2d1..b7a42ae40765 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs @@ -10,29 +10,128 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - public static class SyncMemberState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberStateConverter))] + public struct SyncMemberState : System.IEquatable { - public const string SyncInProgress = "SyncInProgress"; - public const string SyncSucceeded = "SyncSucceeded"; - public const string SyncFailed = "SyncFailed"; - public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - public const string DisabledBackupRestore = "DisabledBackupRestore"; - public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - public const string SyncCancelling = "SyncCancelling"; - public const string SyncCancelled = "SyncCancelled"; - public const string UnProvisioned = "UnProvisioned"; - public const string Provisioning = "Provisioning"; - public const string Provisioned = "Provisioned"; - public const string ProvisionFailed = "ProvisionFailed"; - public const string DeProvisioning = "DeProvisioning"; - public const string DeProvisioned = "DeProvisioned"; - public const string DeProvisionFailed = "DeProvisionFailed"; - public const string Reprovisioning = "Reprovisioning"; - public const string ReprovisionFailed = "ReprovisionFailed"; - public const string UnReprovisioned = "UnReprovisioned"; + private SyncMemberState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; + + public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; + + public static readonly SyncMemberState SyncFailed = "SyncFailed"; + + public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + + public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; + + public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + + public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; + + public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; + + public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; + + public static readonly SyncMemberState Provisioning = "Provisioning"; + + public static readonly SyncMemberState Provisioned = "Provisioned"; + + public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; + + public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; + + public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; + + public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; + + public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; + + public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; + + public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; + + + /// + /// Underlying value of enum SyncMemberState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberState + /// + public bool Equals(SyncMemberState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberState + /// + public static implicit operator SyncMemberState(string value) + { + return new SyncMemberState(value); + } + + /// + /// Implicit operator to convert SyncMemberState to string + /// + public static implicit operator string(SyncMemberState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberState + /// + public static bool operator == (SyncMemberState e1, SyncMemberState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberState + /// + public static bool operator != (SyncMemberState e1, SyncMemberState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberState + /// + public override bool Equals(object obj) + { + return obj is SyncMemberState && Equals((SyncMemberState)obj); + } + + /// + /// Returns for hashCode SyncMemberState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs new file mode 100644 index 000000000000..6e26b4d585bc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberState. + /// + public sealed class SyncMemberStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs index 5215a566c46e..0626ef49cc71 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs @@ -43,7 +43,7 @@ public SystemData() /// 'Application', 'ManagedIdentity', 'Key' /// The timestamp of resource last /// modification (UTC) - public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) + public SystemData(string createdBy = default(string), CreatedByType? createdByType = default(CreatedByType?), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), CreatedByType? lastModifiedByType = default(CreatedByType?), System.DateTime? lastModifiedAt = default(System.DateTime?)) { CreatedBy = createdBy; CreatedByType = createdByType; @@ -71,7 +71,7 @@ public SystemData() /// 'Key' /// [JsonProperty(PropertyName = "createdByType")] - public string CreatedByType { get; set; } + public CreatedByType? CreatedByType { get; set; } /// /// Gets or sets the timestamp of resource creation (UTC). @@ -91,7 +91,7 @@ public SystemData() /// 'Key' /// [JsonProperty(PropertyName = "lastModifiedByType")] - public string LastModifiedByType { get; set; } + public CreatedByType? LastModifiedByType { get; set; } /// /// Gets or sets the timestamp of resource last modification (UTC) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs index 471655c7bbfa..47f191b5cc61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for TableTemporalType. /// - public static class TableTemporalType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TableTemporalTypeConverter))] + public struct TableTemporalType : System.IEquatable { - public const string NonTemporalTable = "NonTemporalTable"; - public const string HistoryTable = "HistoryTable"; - public const string SystemVersionedTemporalTable = "SystemVersionedTemporalTable"; + private TableTemporalType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly TableTemporalType NonTemporalTable = "NonTemporalTable"; + + public static readonly TableTemporalType HistoryTable = "HistoryTable"; + + public static readonly TableTemporalType SystemVersionedTemporalTable = "SystemVersionedTemporalTable"; + + + /// + /// Underlying value of enum TableTemporalType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for TableTemporalType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TableTemporalType + /// + public bool Equals(TableTemporalType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to TableTemporalType + /// + public static implicit operator TableTemporalType(string value) + { + return new TableTemporalType(value); + } + + /// + /// Implicit operator to convert TableTemporalType to string + /// + public static implicit operator string(TableTemporalType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum TableTemporalType + /// + public static bool operator == (TableTemporalType e1, TableTemporalType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum TableTemporalType + /// + public static bool operator != (TableTemporalType e1, TableTemporalType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for TableTemporalType + /// + public override bool Equals(object obj) + { + return obj is TableTemporalType && Equals((TableTemporalType)obj); + } + + /// + /// Returns for hashCode TableTemporalType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs new file mode 100644 index 000000000000..b394b778735e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for TableTemporalType. + /// + public sealed class TableTemporalTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to TableTemporalType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TableTemporalType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to TableTemporalType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TableTemporalType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TableTemporalType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs index 3f5dea96219a..98b4e6f0c2d4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs @@ -10,14 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for TargetBackupStorageRedundancy. /// - public static class TargetBackupStorageRedundancy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TargetBackupStorageRedundancyConverter))] + public struct TargetBackupStorageRedundancy : System.IEquatable { - public const string Geo = "Geo"; - public const string Local = "Local"; - public const string Zone = "Zone"; + private TargetBackupStorageRedundancy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly TargetBackupStorageRedundancy Geo = "Geo"; + + public static readonly TargetBackupStorageRedundancy Local = "Local"; + + public static readonly TargetBackupStorageRedundancy Zone = "Zone"; + + + /// + /// Underlying value of enum TargetBackupStorageRedundancy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for TargetBackupStorageRedundancy + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TargetBackupStorageRedundancy + /// + public bool Equals(TargetBackupStorageRedundancy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// TargetBackupStorageRedundancy + /// + public static implicit operator TargetBackupStorageRedundancy(string value) + { + return new TargetBackupStorageRedundancy(value); + } + + /// + /// Implicit operator to convert TargetBackupStorageRedundancy to + /// string + /// + public static implicit operator string(TargetBackupStorageRedundancy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum TargetBackupStorageRedundancy + /// + public static bool operator == (TargetBackupStorageRedundancy e1, TargetBackupStorageRedundancy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum TargetBackupStorageRedundancy + /// + public static bool operator != (TargetBackupStorageRedundancy e1, TargetBackupStorageRedundancy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for TargetBackupStorageRedundancy + /// + public override bool Equals(object obj) + { + return obj is TargetBackupStorageRedundancy && Equals((TargetBackupStorageRedundancy)obj); + } + + /// + /// Returns for hashCode TargetBackupStorageRedundancy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs new file mode 100644 index 000000000000..b1b6bef62322 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for TargetBackupStorageRedundancy. + /// + public sealed class TargetBackupStorageRedundancyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// TargetBackupStorageRedundancy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TargetBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// TargetBackupStorageRedundancy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TargetBackupStorageRedundancy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TargetBackupStorageRedundancy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs index e499e90eebd1..db446224dc01 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs @@ -42,7 +42,7 @@ public TopQueries() /// format). /// List of top resource consuming queries with /// appropriate metric data - public TopQueries(int? numberOfQueries = default(int?), string aggregationFunction = default(string), string observationMetric = default(string), string intervalType = default(string), string startTime = default(string), string endTime = default(string), IList queries = default(IList)) + public TopQueries(int? numberOfQueries = default(int?), string aggregationFunction = default(string), string observationMetric = default(string), QueryTimeGrainType? intervalType = default(QueryTimeGrainType?), string startTime = default(string), string endTime = default(string), IList queries = default(IList)) { NumberOfQueries = numberOfQueries; AggregationFunction = aggregationFunction; @@ -81,7 +81,7 @@ public TopQueries() /// Gets interval type (length). Possible values include: 'PT1H', 'P1D' /// [JsonProperty(PropertyName = "intervalType")] - public string IntervalType { get; private set; } + public QueryTimeGrainType? IntervalType { get; private set; } /// /// Gets the start time for the metric (ISO-8601 format). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs index ab34253c2b81..910daceaab5d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public TransparentDataEncryptionActivityStatus? Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 5880bd69d615..174adafd3d9d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - public static class TransparentDataEncryptionActivityStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] + public struct TransparentDataEncryptionActivityStatus : System.IEquatable { - public const string Encrypting = "Encrypting"; - public const string Decrypting = "Decrypting"; + private TransparentDataEncryptionActivityStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; + + public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; + + + /// + /// Underlying value of enum TransparentDataEncryptionActivityStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// TransparentDataEncryptionActivityStatus + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TransparentDataEncryptionActivityStatus + /// + public bool Equals(TransparentDataEncryptionActivityStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// TransparentDataEncryptionActivityStatus + /// + public static implicit operator TransparentDataEncryptionActivityStatus(string value) + { + return new TransparentDataEncryptionActivityStatus(value); + } + + /// + /// Implicit operator to convert + /// TransparentDataEncryptionActivityStatus to string + /// + public static implicit operator string(TransparentDataEncryptionActivityStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// TransparentDataEncryptionActivityStatus + /// + public override bool Equals(object obj) + { + return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); + } + + /// + /// Returns for hashCode TransparentDataEncryptionActivityStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs new file mode 100644 index 000000000000..4a694506acac --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for TransparentDataEncryptionActivityStatus. + /// + public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// TransparentDataEncryptionActivityStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// TransparentDataEncryptionActivityStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TransparentDataEncryptionActivityStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs index 1184776ad156..03ff873d52a1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - public static class UnitDefinitionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitDefinitionTypeConverter))] + public struct UnitDefinitionType : System.IEquatable { - public const string Count = "Count"; - public const string Bytes = "Bytes"; - public const string Seconds = "Seconds"; - public const string Percent = "Percent"; - public const string CountPerSecond = "CountPerSecond"; - public const string BytesPerSecond = "BytesPerSecond"; + private UnitDefinitionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitDefinitionType Count = "Count"; + + public static readonly UnitDefinitionType Bytes = "Bytes"; + + public static readonly UnitDefinitionType Seconds = "Seconds"; + + public static readonly UnitDefinitionType Percent = "Percent"; + + public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; + + public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; + + + /// + /// Underlying value of enum UnitDefinitionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitDefinitionType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitDefinitionType + /// + public bool Equals(UnitDefinitionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitDefinitionType + /// + public static implicit operator UnitDefinitionType(string value) + { + return new UnitDefinitionType(value); + } + + /// + /// Implicit operator to convert UnitDefinitionType to string + /// + public static implicit operator string(UnitDefinitionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitDefinitionType + /// + public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitDefinitionType + /// + public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitDefinitionType + /// + public override bool Equals(object obj) + { + return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); + } + + /// + /// Returns for hashCode UnitDefinitionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs new file mode 100644 index 000000000000..dda3dfcf2386 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitDefinitionType. + /// + public sealed class UnitDefinitionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitDefinitionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitDefinitionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitDefinitionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitDefinitionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs index ecd9b7388bdf..d4f9bc715325 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitType. /// - public static class UnitType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitTypeConverter))] + public struct UnitType : System.IEquatable { - public const string Count = "count"; - public const string Bytes = "bytes"; - public const string Seconds = "seconds"; - public const string Percent = "percent"; - public const string CountPerSecond = "countPerSecond"; - public const string BytesPerSecond = "bytesPerSecond"; + private UnitType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitType Count = "count"; + + public static readonly UnitType Bytes = "bytes"; + + public static readonly UnitType Seconds = "seconds"; + + public static readonly UnitType Percent = "percent"; + + public static readonly UnitType CountPerSecond = "countPerSecond"; + + public static readonly UnitType BytesPerSecond = "bytesPerSecond"; + + + /// + /// Underlying value of enum UnitType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitType + /// + public bool Equals(UnitType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitType + /// + public static implicit operator UnitType(string value) + { + return new UnitType(value); + } + + /// + /// Implicit operator to convert UnitType to string + /// + public static implicit operator string(UnitType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitType + /// + public static bool operator == (UnitType e1, UnitType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitType + /// + public static bool operator != (UnitType e1, UnitType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitType + /// + public override bool Equals(object obj) + { + return obj is UnitType && Equals((UnitType)obj); + } + + /// + /// Returns for hashCode UnitType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs new file mode 100644 index 000000000000..a0e37419629f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitType. + /// + public sealed class UnitTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs index 61a4903dada7..1ef03efe5737 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs @@ -38,7 +38,7 @@ public UpdateLongTermRetentionBackupParameters() /// The storage /// redundancy type of the copied backup. Possible values include: /// 'Geo', 'Local', 'Zone' - public UpdateLongTermRetentionBackupParameters(string requestedBackupStorageRedundancy = default(string)) + public UpdateLongTermRetentionBackupParameters(RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?)) { RequestedBackupStorageRedundancy = requestedBackupStorageRedundancy; CustomInit(); @@ -54,7 +54,7 @@ public UpdateLongTermRetentionBackupParameters() /// Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public string RequestedBackupStorageRedundancy { get; set; } + public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs index 7ad4863674ce..cc400b831784 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Failed', /// 'Deleting', 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -76,7 +76,7 @@ public VirtualNetworkRule() /// 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VirtualNetworkRuleState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs index 1b0e17f64db1..c38c934a4779 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - public static class VirtualNetworkRuleState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] + public struct VirtualNetworkRuleState : System.IEquatable { - public const string Initializing = "Initializing"; - public const string InProgress = "InProgress"; - public const string Ready = "Ready"; - public const string Failed = "Failed"; - public const string Deleting = "Deleting"; - public const string Unknown = "Unknown"; + private VirtualNetworkRuleState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VirtualNetworkRuleState Initializing = "Initializing"; + + public static readonly VirtualNetworkRuleState InProgress = "InProgress"; + + public static readonly VirtualNetworkRuleState Ready = "Ready"; + + public static readonly VirtualNetworkRuleState Failed = "Failed"; + + public static readonly VirtualNetworkRuleState Deleting = "Deleting"; + + public static readonly VirtualNetworkRuleState Unknown = "Unknown"; + + + /// + /// Underlying value of enum VirtualNetworkRuleState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VirtualNetworkRuleState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VirtualNetworkRuleState + /// + public bool Equals(VirtualNetworkRuleState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to VirtualNetworkRuleState + /// + public static implicit operator VirtualNetworkRuleState(string value) + { + return new VirtualNetworkRuleState(value); + } + + /// + /// Implicit operator to convert VirtualNetworkRuleState to string + /// + public static implicit operator string(VirtualNetworkRuleState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VirtualNetworkRuleState + /// + public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VirtualNetworkRuleState + /// + public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VirtualNetworkRuleState + /// + public override bool Equals(object obj) + { + return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); + } + + /// + /// Returns for hashCode VirtualNetworkRuleState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs new file mode 100644 index 000000000000..337961087a9c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VirtualNetworkRuleState. + /// + public sealed class VirtualNetworkRuleStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to VirtualNetworkRuleState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to VirtualNetworkRuleState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VirtualNetworkRuleState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VirtualNetworkRuleState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index 298f1c24a1f8..ca8eac5a1248 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public string TriggerType { get; private set; } + public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VulnerabilityAssessmentScanState? State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 503c61895227..48f67debea0d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,15 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - public static class VulnerabilityAssessmentScanState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] + public struct VulnerabilityAssessmentScanState : System.IEquatable { - public const string Passed = "Passed"; - public const string Failed = "Failed"; - public const string FailedToRun = "FailedToRun"; - public const string InProgress = "InProgress"; + private VulnerabilityAssessmentScanState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; + + public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; + + public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; + + public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VulnerabilityAssessmentScanState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanState + /// + public bool Equals(VulnerabilityAssessmentScanState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanState + /// + public static implicit operator VulnerabilityAssessmentScanState(string value) + { + return new VulnerabilityAssessmentScanState(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanState to + /// string + /// + public static implicit operator string(VulnerabilityAssessmentScanState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VulnerabilityAssessmentScanState + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs new file mode 100644 index 000000000000..a54163f7d51f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanState. + /// + public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index 252a76bff40a..a642a96a9e4f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - public static class VulnerabilityAssessmentScanTriggerType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] + public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable { - public const string OnDemand = "OnDemand"; - public const string Recurring = "Recurring"; + private VulnerabilityAssessmentScanTriggerType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; + + public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanTriggerType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// VulnerabilityAssessmentScanTriggerType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanTriggerType + /// + public bool Equals(VulnerabilityAssessmentScanTriggerType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanTriggerType + /// + public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) + { + return new VulnerabilityAssessmentScanTriggerType(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType + /// to string + /// + public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// VulnerabilityAssessmentScanTriggerType + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanTriggerType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs new file mode 100644 index 000000000000..38737f84fae4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanTriggerType. + /// + public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanTriggerType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanTriggerType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 706fc1e9dd44..063a27528f9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -151,7 +151,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Lillian\\work\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "0f72d7e8267d012ed7f51107f066217c8bfda9a7"; + public static readonly String GithubCommidId = "4965f0f5165d99f2f87523d03b243b88afde29d8"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs index c4bd489f9788..acf04682292d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs @@ -147,11 +147,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerUsagesOperations ServerUsages { get; private set; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -627,6 +622,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the IDatabaseExtensionsOperations. /// @@ -928,7 +928,6 @@ private void Initialize() TransparentDataEncryptions = new TransparentDataEncryptionsOperations(this); TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this); ServerUsages = new ServerUsagesOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ExtendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesOperations(this); ExtendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesOperations(this); ServerBlobAuditingPolicies = new ServerBlobAuditingPoliciesOperations(this); @@ -1024,6 +1023,7 @@ private void Initialize() VirtualNetworkRules = new VirtualNetworkRulesOperations(this); WorkloadClassifiers = new WorkloadClassifiersOperations(this); WorkloadGroups = new WorkloadGroupsOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); DatabaseExtensions = new DatabaseExtensionsOperations(this); DatabaseOperations = new DatabaseOperations(this); DatabaseUsages = new DatabaseUsagesOperations(this); From 61b43dd0339879bc071efe056a2149bb7e21465a Mon Sep 17 00:00:00 2001 From: Lillian Liu Date: Mon, 21 Jun 2021 23:38:36 -0700 Subject: [PATCH 6/6] Revert "Merge regenerated files (Swagger doesn't change but it looks the json generator has rule changes)" This reverts commit a9927440ef531abdff32d878bd7fb867eb731f5a. --- .../mgmtmetadata/sql_resource-manager.txt | 4 +- .../src/Generated/CapabilitiesOperations.cs | 4 +- .../CapabilitiesOperationsExtensions.cs | 4 +- .../src/Generated/DatabasesOperations.cs | 6 +- .../DatabasesOperationsExtensions.cs | 8 +- .../src/Generated/ICapabilitiesOperations.cs | 2 +- .../src/Generated/IDatabasesOperations.cs | 4 +- .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- .../IManagedDatabaseQueriesOperations.cs | 2 +- .../Generated/IManagedInstancesOperations.cs | 6 +- .../Generated/IReplicationLinksOperations.cs | 58 ++-- .../src/Generated/ISqlManagementClient.cs | 10 +- .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- .../ManagedDatabaseQueriesOperations.cs | 4 +- ...agedDatabaseQueriesOperationsExtensions.cs | 4 +- .../Generated/ManagedInstancesOperations.cs | 14 +- .../ManagedInstancesOperationsExtensions.cs | 12 +- .../src/Generated/Models/AdministratorType.cs | 86 +----- .../Models/AdministratorTypeConverter.cs | 53 ---- .../Models/AggregationFunctionType.cs | 98 +----- .../AggregationFunctionTypeConverter.cs | 53 ---- .../Models/AutoPauseDelayTimeRange.cs | 4 +- .../Models/BackupStorageRedundancy.cs | 92 +----- .../BackupStorageRedundancyConverter.cs | 53 ---- .../src/Generated/Models/CapabilityGroup.cs | 98 +----- .../Models/CapabilityGroupConverter.cs | 53 ---- .../Generated/Models/CatalogCollationType.cs | 89 +----- .../Models/CatalogCollationTypeConverter.cs | 53 ---- .../src/Generated/Models/ColumnDataType.cs | 185 +++--------- .../Models/ColumnDataTypeConverter.cs | 53 ---- .../CopyLongTermRetentionBackupParameters.cs | 4 +- .../src/Generated/Models/CreateMode.cs | 113 +------ .../Generated/Models/CreateModeConverter.cs | 53 ---- .../src/Generated/Models/CreatedByType.cs | 95 +----- .../Models/CreatedByTypeConverter.cs | 53 ---- .../Models/CurrentBackupStorageRedundancy.cs | 94 +----- ...CurrentBackupStorageRedundancyConverter.cs | 55 ---- .../src/Generated/Models/Database.cs | 20 +- .../src/Generated/Models/DatabaseColumn.cs | 6 +- .../Generated/Models/DatabaseExtensions.cs | 8 +- .../Generated/Models/DatabaseLicenseType.cs | 89 +----- .../Models/DatabaseLicenseTypeConverter.cs | 53 ---- .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseReadScale.cs | 89 +----- .../Models/DatabaseReadScaleConverter.cs | 53 ---- .../src/Generated/Models/DatabaseState.cs | 92 +----- .../Models/DatabaseStateConverter.cs | 53 ---- .../src/Generated/Models/DatabaseStatus.cs | 146 ++------- .../Models/DatabaseStatusConverter.cs | 53 ---- .../src/Generated/Models/DatabaseTable.cs | 4 +- .../src/Generated/Models/DatabaseUpdate.cs | 20 +- .../src/Generated/Models/DayOfWeek.cs | 104 +------ .../Generated/Models/DayOfWeekConverter.cs | 53 ---- .../src/Generated/Models/ElasticPool.cs | 6 +- .../Models/ElasticPoolLicenseType.cs | 89 +----- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 ---- ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +----- .../Models/ElasticPoolStateConverter.cs | 53 ---- .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 8 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +----- .../FailoverGroupReplicationRoleConverter.cs | 55 ---- .../src/Generated/Models/IdentityType.cs | 92 +----- .../Generated/Models/IdentityTypeConverter.cs | 53 ---- .../ImportExistingDatabaseDefinition.cs | 8 +- .../Models/ImportNewDatabaseDefinition.cs | 8 +- .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +----- ...ceFailoverGroupReplicationRoleConverter.cs | 55 ---- .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolLicenseType.cs | 89 +----- .../InstancePoolLicenseTypeConverter.cs | 53 ---- .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +----- .../Models/JobAgentStateConverter.cs | 53 ---- .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 +------ .../Models/JobExecutionLifecycleConverter.cs | 53 ---- .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +----- .../Models/JobStepActionSourceConverter.cs | 53 ---- .../src/Generated/Models/JobStepActionType.cs | 86 +----- .../Models/JobStepActionTypeConverter.cs | 53 ---- .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +----- .../Models/JobStepOutputTypeConverter.cs | 53 ---- .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +----- .../Models/JobTargetTypeConverter.cs | 53 ---- .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +----- .../Generated/Models/LogSizeUnitConverter.cs | 53 ---- .../Models/LongTermRetentionBackup.cs | 6 +- .../LongTermRetentionBackupOperationResult.cs | 4 +- .../Models/MaintenanceWindowTimeRange.cs | 4 +- .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +----- .../ManagedDatabaseCreateModeConverter.cs | 54 ---- .../Generated/Models/ManagedDatabaseStatus.cs | 104 +------ .../Models/ManagedDatabaseStatusConverter.cs | 53 ---- .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 10 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../ManagedInstanceExternalAdministrator.cs | 6 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +----- .../ManagedInstanceLicenseTypeConverter.cs | 55 ---- .../ManagedInstanceLongTermRetentionBackup.cs | 4 +- .../Models/ManagedInstanceOperation.cs | 4 +- .../Models/ManagedInstanceProxyOverride.cs | 92 +----- .../ManagedInstanceProxyOverrideConverter.cs | 55 ---- .../Generated/Models/ManagedInstanceUpdate.cs | 10 +- .../Models/ManagedServerCreateMode.cs | 89 +----- .../ManagedServerCreateModeConverter.cs | 53 ---- .../Models/ManagementOperationState.cs | 101 +------ .../ManagementOperationStateConverter.cs | 54 ---- .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +----- .../Generated/Models/MaxSizeUnitConverter.cs | 53 ---- .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../src/Generated/Models/MetricType.cs | 98 +----- .../Generated/Models/MetricTypeConverter.cs | 53 ---- .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +----- .../Models/OperationOriginConverter.cs | 53 ---- .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 86 +----- .../Models/PauseDelayTimeUnitConverter.cs | 53 ---- .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +----- .../Models/PerformanceLevelUnitConverter.cs | 53 ---- .../Models/PrimaryAggregationType.cs | 101 +------ .../Models/PrimaryAggregationTypeConverter.cs | 53 ---- .../src/Generated/Models/PrincipalType.cs | 92 +----- .../Models/PrincipalTypeConverter.cs | 53 ---- .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointProvisioningState.cs | 100 +------ ...ivateEndpointProvisioningStateConverter.cs | 55 ---- ...inkServiceConnectionStateActionsRequire.cs | 95 +----- ...eConnectionStateActionsRequireConverter.cs | 55 ---- ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 +------ ...nkServiceConnectionStateStatusConverter.cs | 55 ---- .../src/Generated/Models/ProvisioningState.cs | 98 +----- .../Models/ProvisioningStateConverter.cs | 53 ---- .../Generated/Models/QueryMetricInterval.cs | 4 +- .../Generated/Models/QueryMetricProperties.cs | 4 +- .../Generated/Models/QueryMetricUnitType.cs | 95 +----- .../Models/QueryMetricUnitTypeConverter.cs | 53 ---- .../Generated/Models/QueryTimeGrainType.cs | 89 +----- .../Models/QueryTimeGrainTypeConverter.cs | 53 ---- .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +----- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 ---- .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +----- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 ---- .../Models/RecommendedActionCurrentState.cs | 127 +------- .../RecommendedActionCurrentStateConverter.cs | 55 ---- .../Models/RecommendedActionStateInfo.cs | 11 +- .../src/Generated/Models/ReplicaType.cs | 89 +----- .../Generated/Models/ReplicaTypeConverter.cs | 53 ---- .../RequestedBackupStorageRedundancy.cs | 94 +----- ...questedBackupStorageRedundancyConverter.cs | 55 ---- .../src/Generated/Models/ResourceIdentity.cs | 4 +- ...ourceIdentityWithUserAssignedIdentities.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +----- .../Generated/Models/SampleNameConverter.cs | 53 ---- .../src/Generated/Models/SecondaryType.cs | 89 +----- .../Models/SecondaryTypeConverter.cs | 53 ---- .../src/Generated/Models/Server.cs | 8 +- .../Models/ServerExternalAdministrator.cs | 6 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +----- .../Models/ServerKeyTypeConverter.cs | 53 ---- .../Models/ServerNetworkAccessFlag.cs | 89 +----- .../ServerNetworkAccessFlagConverter.cs | 53 ---- .../src/Generated/Models/ServerOperation.cs | 4 +- .../src/Generated/Models/ServerUpdate.cs | 8 +- .../Models/ServerWorkspaceFeature.cs | 89 +----- .../Models/ServerWorkspaceFeatureConverter.cs | 53 ---- .../Generated/Models/ServiceObjectiveName.cs | 278 +++++------------- .../Models/ServiceObjectiveNameConverter.cs | 53 ---- .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +----- .../Models/StorageAccountTypeConverter.cs | 53 ---- .../src/Generated/Models/StorageKeyType.cs | 89 +----- .../Models/StorageKeyTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +----- .../Models/SyncAgentStateConverter.cs | 53 ---- .../Models/SyncConflictResolutionPolicy.cs | 89 +----- .../SyncConflictResolutionPolicyConverter.cs | 55 ---- .../src/Generated/Models/SyncDirection.cs | 92 +----- .../Models/SyncDirectionConverter.cs | 53 ---- .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +----- .../Models/SyncGroupLogTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncGroupState.cs | 98 +----- .../Models/SyncGroupStateConverter.cs | 53 ---- .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +----- .../Models/SyncMemberDbTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncMemberState.cs | 137 ++------- .../Models/SyncMemberStateConverter.cs | 53 ---- .../src/Generated/Models/SystemData.cs | 6 +- .../src/Generated/Models/TableTemporalType.cs | 92 +----- .../Models/TableTemporalTypeConverter.cs | 53 ---- .../Models/TargetBackupStorageRedundancy.cs | 94 +----- .../TargetBackupStorageRedundancyConverter.cs | 55 ---- .../src/Generated/Models/TopQueries.cs | 4 +- .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +----- ...ntDataEncryptionActivityStatusConverter.cs | 55 ---- .../Generated/Models/UnitDefinitionType.cs | 101 +------ .../Models/UnitDefinitionTypeConverter.cs | 53 ---- .../src/Generated/Models/UnitType.cs | 101 +------ .../src/Generated/Models/UnitTypeConverter.cs | 53 ---- ...UpdateLongTermRetentionBackupParameters.cs | 4 +- .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 101 +------ .../VirtualNetworkRuleStateConverter.cs | 53 ---- .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +----- ...lnerabilityAssessmentScanStateConverter.cs | 55 ---- .../VulnerabilityAssessmentScanTriggerType.cs | 95 +----- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 ---- .../Generated/SdkInfo_SqlManagementClient.cs | 2 +- .../src/Generated/SqlManagementClient.cs | 12 +- 245 files changed, 854 insertions(+), 11180 deletions(-) delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 8427baa0bdf5..2b2fe6f24503 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -4,11 +4,11 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\Lillian\work\azure-sdk-for-net\sdk -2021-06-21 22:15:47 UTC +2021-06-18 19:21:12 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 4965f0f5165d99f2f87523d03b243b88afde29d8 +Commit: 0f72d7e8267d012ed7f51107f066217c8bfda9a7 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs index d32b1c57e602..40283bad0a1b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs @@ -83,7 +83,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -115,7 +115,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs index 70b9d5389404..d9be266e240b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs @@ -36,7 +36,7 @@ public static partial class CapabilitiesOperationsExtensions /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -59,7 +59,7 @@ public static partial class CapabilitiesOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs index d2a6a609c859..309970e283d2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs @@ -1187,7 +1187,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -2402,7 +2402,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2446,7 +2446,7 @@ internal DatabasesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs index 0f7f272795b3..46e86c427642 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs @@ -440,7 +440,7 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -468,7 +468,7 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -988,7 +988,7 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1016,7 +1016,7 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs index ff5ce0000f3f..e35700693ec1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs @@ -51,6 +51,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs index 79b8a0931d59..277dc9cb311c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs @@ -299,7 +299,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of inaccessible databases in a logical server /// @@ -633,7 +633,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Pauses a database. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs index 4787efc4bac3..87eada5fc9bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -185,7 +185,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -215,7 +215,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -248,7 +248,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Copy an existing long term retention backup to a different server. /// @@ -436,7 +436,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -471,7 +471,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -509,7 +509,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Copy an existing long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index 540aeeb3ea0d..624ead6cd7af 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs index 109d67edd2c9..f7ed60b84147 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseQueriesOperations.cs @@ -96,7 +96,7 @@ public partial interface IManagedDatabaseQueriesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get query execution statistics by query id. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs index 422b2d6b5f05..36420cc7522b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs @@ -267,7 +267,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Failovers a managed instance. /// @@ -295,7 +295,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// @@ -407,7 +407,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of all managed instances in an instance pool. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs index 8e46eb06c69a..0982e58f6068 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs @@ -56,7 +56,8 @@ public partial interface IReplicationLinksOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a replication link. + /// Sets which replica database is primary by failing over from the + /// current primary replica database. /// /// /// The name of the resource group that contains the resource. You can @@ -67,10 +68,11 @@ public partial interface IReplicationLinksOperations /// The name of the server. /// /// - /// The name of the database. + /// The name of the database that has the replication link to be failed + /// over. /// /// - /// The name of the replication link. + /// The ID of the replication link to be failed over. /// /// /// The headers that will be added to request. @@ -81,16 +83,14 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Sets which replica database is primary by failing over from the - /// current primary replica database. + /// current primary replica database. This operation might result in + /// data loss. /// /// /// The name of the resource group that contains the resource. You can @@ -119,11 +119,9 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Sets which replica database is primary by failing over from the - /// current primary replica database. This operation might result in - /// data loss. + /// Deletes a database replication link in forced or friendly way. /// /// /// The name of the resource group that contains the resource. You can @@ -140,6 +138,9 @@ public partial interface IReplicationLinksOperations /// /// The ID of the replication link to be failed over. /// + /// + /// The required parameters for unlinking replication link. + /// /// /// The headers that will be added to request. /// @@ -152,9 +153,9 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a database replication link in forced or friendly way. + /// Gets a list of replication links on database. /// /// /// The name of the resource group that contains the resource. You can @@ -162,17 +163,10 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server. + /// The name of the server containing the replication link. /// /// - /// The name of the database that has the replication link to be failed - /// over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. + /// The name of the database containing the replication link. /// /// /// The headers that will be added to request. @@ -183,12 +177,15 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of replication links on database. + /// Gets a replication link. /// /// /// The name of the resource group that contains the resource. You can @@ -196,10 +193,13 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server. + /// The name of the server containing the replication link. /// /// - /// The name of the database. + /// The name of the database containing the replication link. + /// + /// + /// The name of the replication link. /// /// /// The headers that will be added to request. @@ -216,7 +216,7 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicationLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of replication links. /// @@ -226,7 +226,7 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server. + /// The name of the server containing the replication link. /// /// /// The headers that will be added to request. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs index b21c6d120aaa..bc688ed524ab 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs @@ -142,6 +142,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IServerUsagesOperations ServerUsages { get; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -617,11 +622,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IWorkloadGroupsOperations WorkloadGroups { get; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the IDatabaseExtensionsOperations. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs index bae3d848d153..37c396a655b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs @@ -392,7 +392,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -441,7 +441,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -606,7 +606,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -643,7 +643,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -811,7 +811,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -854,7 +854,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1353,7 +1353,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1408,7 +1408,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1577,7 +1577,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1620,7 +1620,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1792,7 +1792,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1841,7 +1841,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 836515dfcd84..2cd514b86c70 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -260,7 +260,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -290,7 +290,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -314,7 +314,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -338,7 +338,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -365,7 +365,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -392,7 +392,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -675,7 +675,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -709,7 +709,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -737,7 +737,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -765,7 +765,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -796,7 +796,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -827,7 +827,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index 8f02e2307047..45b7097649d1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index a80bb2301147..ff1fd78f3bfb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState? databaseState = default(DatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs index 16f962735832..73627d7d5f6c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperations.cs @@ -308,7 +308,7 @@ internal ManagedDatabaseQueriesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByQueryWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -368,7 +368,7 @@ internal ManagedDatabaseQueriesOperations(SqlManagementClient client) } if (interval != null) { - _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(interval, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(interval))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs index 516b9f3b6a95..13a1a4fdad35 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseQueriesOperationsExtensions.cs @@ -101,7 +101,7 @@ public static ManagedInstanceQuery Get(this IManagedDatabaseQueriesOperations op /// The time step to be used to summarize the metric values. Possible values /// include: 'PT1H', 'P1D' /// - public static IPage ListByQuery(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?)) + public static IPage ListByQuery(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string)) { return operations.ListByQueryAsync(resourceGroupName, managedInstanceName, databaseName, queryId, startTime, endTime, interval).GetAwaiter().GetResult(); } @@ -137,7 +137,7 @@ public static ManagedInstanceQuery Get(this IManagedDatabaseQueriesOperations op /// /// The cancellation token. /// - public static async Task> ListByQueryAsync(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByQueryAsync(this IManagedDatabaseQueriesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string queryId, string startTime = default(string), string endTime = default(string), string interval = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByQueryWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, queryId, startTime, endTime, interval, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs index bcb5dae11db1..b2b25a5ff195 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs @@ -965,7 +965,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1025,15 +1025,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) } if (interval != null) { - _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(interval, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(interval))); } if (aggregationFunction != null) { - _queryParameters.Add(string.Format("aggregationFunction={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(aggregationFunction, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("aggregationFunction={0}", System.Uri.EscapeDataString(aggregationFunction))); } if (observationMetric != null) { - _queryParameters.Add(string.Format("observationMetric={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(observationMetric, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("observationMetric={0}", System.Uri.EscapeDataString(observationMetric))); } if (apiVersion != null) { @@ -1184,7 +1184,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -1837,7 +1837,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1875,7 +1875,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs index 73ce0ecd59a6..76789c27981b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -366,7 +366,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// Metric to be used for ranking top queries. Default is 'cpu'. Possible /// values include: 'cpu', 'io', 'logIo', 'duration', 'dtu' /// - public static IPage ListByManagedInstance(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?)) + public static IPage ListByManagedInstance(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string)) { return operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric).GetAwaiter().GetResult(); } @@ -412,7 +412,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// /// The cancellation token. /// - public static async Task> ListByManagedInstanceAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), QueryTimeGrainType? interval = default(QueryTimeGrainType?), AggregationFunctionType? aggregationFunction = default(AggregationFunctionType?), MetricType? observationMetric = default(MetricType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByManagedInstanceAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByManagedInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric, null, cancellationToken).ConfigureAwait(false)) { @@ -437,7 +437,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -462,7 +462,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -619,7 +619,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -644,7 +644,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs index 361ff0623ebe..46fed52dc35b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for AdministratorType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(AdministratorTypeConverter))] - public struct AdministratorType : System.IEquatable + public static class AdministratorType { - private AdministratorType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly AdministratorType ActiveDirectory = "ActiveDirectory"; - - - /// - /// Underlying value of enum AdministratorType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for AdministratorType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type AdministratorType - /// - public bool Equals(AdministratorType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to AdministratorType - /// - public static implicit operator AdministratorType(string value) - { - return new AdministratorType(value); - } - - /// - /// Implicit operator to convert AdministratorType to string - /// - public static implicit operator string(AdministratorType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum AdministratorType - /// - public static bool operator == (AdministratorType e1, AdministratorType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum AdministratorType - /// - public static bool operator != (AdministratorType e1, AdministratorType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for AdministratorType - /// - public override bool Equals(object obj) - { - return obj is AdministratorType && Equals((AdministratorType)obj); - } - - /// - /// Returns for hashCode AdministratorType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string ActiveDirectory = "ActiveDirectory"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs deleted file mode 100644 index e86d627a33c1..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for AdministratorType. - /// - public sealed class AdministratorTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to AdministratorType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(AdministratorType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to AdministratorType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (AdministratorType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for AdministratorType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs index 8f91074f018e..35a7da69340c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for AggregationFunctionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(AggregationFunctionTypeConverter))] - public struct AggregationFunctionType : System.IEquatable + public static class AggregationFunctionType { - private AggregationFunctionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly AggregationFunctionType Avg = "avg"; - - public static readonly AggregationFunctionType Min = "min"; - - public static readonly AggregationFunctionType Max = "max"; - - public static readonly AggregationFunctionType Stdev = "stdev"; - - public static readonly AggregationFunctionType Sum = "sum"; - - - /// - /// Underlying value of enum AggregationFunctionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for AggregationFunctionType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type AggregationFunctionType - /// - public bool Equals(AggregationFunctionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to AggregationFunctionType - /// - public static implicit operator AggregationFunctionType(string value) - { - return new AggregationFunctionType(value); - } - - /// - /// Implicit operator to convert AggregationFunctionType to string - /// - public static implicit operator string(AggregationFunctionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum AggregationFunctionType - /// - public static bool operator == (AggregationFunctionType e1, AggregationFunctionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum AggregationFunctionType - /// - public static bool operator != (AggregationFunctionType e1, AggregationFunctionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for AggregationFunctionType - /// - public override bool Equals(object obj) - { - return obj is AggregationFunctionType && Equals((AggregationFunctionType)obj); - } - - /// - /// Returns for hashCode AggregationFunctionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Avg = "avg"; + public const string Min = "min"; + public const string Max = "max"; + public const string Stdev = "stdev"; + public const string Sum = "sum"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs deleted file mode 100644 index db8932705523..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for AggregationFunctionType. - /// - public sealed class AggregationFunctionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to AggregationFunctionType - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(AggregationFunctionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to AggregationFunctionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (AggregationFunctionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for AggregationFunctionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs index 4aa00ee16aaf..e516ef733611 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -39,7 +39,7 @@ public AutoPauseDelayTimeRange() /// Possible values include: 'Minutes' /// Value that is used to not pause /// (infinite delay before pause) - public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), string unit = default(string), int? doNotPauseValue = default(int?)) { MinValue = minValue; MaxValue = maxValue; @@ -85,7 +85,7 @@ public AutoPauseDelayTimeRange() /// include: 'Minutes' /// [JsonProperty(PropertyName = "unit")] - public PauseDelayTimeUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets value that is used to not pause (infinite delay before pause) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs index 2bcc114c07c9..65c4e42a7406 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancy.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for BackupStorageRedundancy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(BackupStorageRedundancyConverter))] - public struct BackupStorageRedundancy : System.IEquatable + public static class BackupStorageRedundancy { - private BackupStorageRedundancy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly BackupStorageRedundancy Geo = "Geo"; - - public static readonly BackupStorageRedundancy Local = "Local"; - - public static readonly BackupStorageRedundancy Zone = "Zone"; - - - /// - /// Underlying value of enum BackupStorageRedundancy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for BackupStorageRedundancy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type BackupStorageRedundancy - /// - public bool Equals(BackupStorageRedundancy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to BackupStorageRedundancy - /// - public static implicit operator BackupStorageRedundancy(string value) - { - return new BackupStorageRedundancy(value); - } - - /// - /// Implicit operator to convert BackupStorageRedundancy to string - /// - public static implicit operator string(BackupStorageRedundancy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum BackupStorageRedundancy - /// - public static bool operator == (BackupStorageRedundancy e1, BackupStorageRedundancy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum BackupStorageRedundancy - /// - public static bool operator != (BackupStorageRedundancy e1, BackupStorageRedundancy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for BackupStorageRedundancy - /// - public override bool Equals(object obj) - { - return obj is BackupStorageRedundancy && Equals((BackupStorageRedundancy)obj); - } - - /// - /// Returns for hashCode BackupStorageRedundancy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Geo = "Geo"; + public const string Local = "Local"; + public const string Zone = "Zone"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs deleted file mode 100644 index 19f65835f477..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupStorageRedundancyConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for BackupStorageRedundancy. - /// - public sealed class BackupStorageRedundancyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to BackupStorageRedundancy - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(BackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to BackupStorageRedundancy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (BackupStorageRedundancy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for BackupStorageRedundancy for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs index 0435e985b3b1..b1b3d583cc8f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CapabilityGroupConverter))] - public struct CapabilityGroup : System.IEquatable + public static class CapabilityGroup { - private CapabilityGroup(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; - - public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; - - public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; - - - /// - /// Underlying value of enum CapabilityGroup - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CapabilityGroup - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CapabilityGroup - /// - public bool Equals(CapabilityGroup e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CapabilityGroup - /// - public static implicit operator CapabilityGroup(string value) - { - return new CapabilityGroup(value); - } - - /// - /// Implicit operator to convert CapabilityGroup to string - /// - public static implicit operator string(CapabilityGroup e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CapabilityGroup - /// - public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CapabilityGroup - /// - public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CapabilityGroup - /// - public override bool Equals(object obj) - { - return obj is CapabilityGroup && Equals((CapabilityGroup)obj); - } - - /// - /// Returns for hashCode CapabilityGroup - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SupportedEditions = "supportedEditions"; + public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + public const string SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + public const string SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs deleted file mode 100644 index b648ba1c90cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroupConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CapabilityGroup. - /// - public sealed class CapabilityGroupConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CapabilityGroup by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CapabilityGroup. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CapabilityGroup)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CapabilityGroup for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs index 9e5a5d531732..9f424cc32d9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CatalogCollationTypeConverter))] - public struct CatalogCollationType : System.IEquatable + public static class CatalogCollationType { - private CatalogCollationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; - - public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; - - - /// - /// Underlying value of enum CatalogCollationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CatalogCollationType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CatalogCollationType - /// - public bool Equals(CatalogCollationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CatalogCollationType - /// - public static implicit operator CatalogCollationType(string value) - { - return new CatalogCollationType(value); - } - - /// - /// Implicit operator to convert CatalogCollationType to string - /// - public static implicit operator string(CatalogCollationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CatalogCollationType - /// - public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CatalogCollationType - /// - public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CatalogCollationType - /// - public override bool Equals(object obj) - { - return obj is CatalogCollationType && Equals((CatalogCollationType)obj); - } - - /// - /// Returns for hashCode CatalogCollationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; + public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs deleted file mode 100644 index f605382139bd..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CatalogCollationType. - /// - public sealed class CatalogCollationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CatalogCollationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CatalogCollationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CatalogCollationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CatalogCollationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs index 91e9fdc2e689..b454b0c50604 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataType.cs @@ -10,160 +10,45 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ColumnDataType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ColumnDataTypeConverter))] - public struct ColumnDataType : System.IEquatable + public static class ColumnDataType { - private ColumnDataType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ColumnDataType Image = "image"; - - public static readonly ColumnDataType Text = "text"; - - public static readonly ColumnDataType Uniqueidentifier = "uniqueidentifier"; - - public static readonly ColumnDataType Date = "date"; - - public static readonly ColumnDataType Time = "time"; - - public static readonly ColumnDataType Datetime2 = "datetime2"; - - public static readonly ColumnDataType Datetimeoffset = "datetimeoffset"; - - public static readonly ColumnDataType Tinyint = "tinyint"; - - public static readonly ColumnDataType Smallint = "smallint"; - - public static readonly ColumnDataType Int = "int"; - - public static readonly ColumnDataType Smalldatetime = "smalldatetime"; - - public static readonly ColumnDataType Real = "real"; - - public static readonly ColumnDataType Money = "money"; - - public static readonly ColumnDataType Datetime = "datetime"; - - public static readonly ColumnDataType Float = "float"; - - public static readonly ColumnDataType SqlVariant = "sql_variant"; - - public static readonly ColumnDataType Ntext = "ntext"; - - public static readonly ColumnDataType Bit = "bit"; - - public static readonly ColumnDataType Decimal = "decimal"; - - public static readonly ColumnDataType Numeric = "numeric"; - - public static readonly ColumnDataType Smallmoney = "smallmoney"; - - public static readonly ColumnDataType Bigint = "bigint"; - - public static readonly ColumnDataType Hierarchyid = "hierarchyid"; - - public static readonly ColumnDataType Geometry = "geometry"; - - public static readonly ColumnDataType Geography = "geography"; - - public static readonly ColumnDataType Varbinary = "varbinary"; - - public static readonly ColumnDataType Varchar = "varchar"; - - public static readonly ColumnDataType Binary = "binary"; - - public static readonly ColumnDataType Char = "char"; - - public static readonly ColumnDataType Timestamp = "timestamp"; - - public static readonly ColumnDataType Nvarchar = "nvarchar"; - - public static readonly ColumnDataType Nchar = "nchar"; - - public static readonly ColumnDataType Xml = "xml"; - - public static readonly ColumnDataType Sysname = "sysname"; - - - /// - /// Underlying value of enum ColumnDataType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ColumnDataType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ColumnDataType - /// - public bool Equals(ColumnDataType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ColumnDataType - /// - public static implicit operator ColumnDataType(string value) - { - return new ColumnDataType(value); - } - - /// - /// Implicit operator to convert ColumnDataType to string - /// - public static implicit operator string(ColumnDataType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ColumnDataType - /// - public static bool operator == (ColumnDataType e1, ColumnDataType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ColumnDataType - /// - public static bool operator != (ColumnDataType e1, ColumnDataType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ColumnDataType - /// - public override bool Equals(object obj) - { - return obj is ColumnDataType && Equals((ColumnDataType)obj); - } - - /// - /// Returns for hashCode ColumnDataType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Image = "image"; + public const string Text = "text"; + public const string Uniqueidentifier = "uniqueidentifier"; + public const string Date = "date"; + public const string Time = "time"; + public const string Datetime2 = "datetime2"; + public const string Datetimeoffset = "datetimeoffset"; + public const string Tinyint = "tinyint"; + public const string Smallint = "smallint"; + public const string Int = "int"; + public const string Smalldatetime = "smalldatetime"; + public const string Real = "real"; + public const string Money = "money"; + public const string Datetime = "datetime"; + public const string Float = "float"; + public const string SqlVariant = "sql_variant"; + public const string Ntext = "ntext"; + public const string Bit = "bit"; + public const string Decimal = "decimal"; + public const string Numeric = "numeric"; + public const string Smallmoney = "smallmoney"; + public const string Bigint = "bigint"; + public const string Hierarchyid = "hierarchyid"; + public const string Geometry = "geometry"; + public const string Geography = "geography"; + public const string Varbinary = "varbinary"; + public const string Varchar = "varchar"; + public const string Binary = "binary"; + public const string Char = "char"; + public const string Timestamp = "timestamp"; + public const string Nvarchar = "nvarchar"; + public const string Nchar = "nchar"; + public const string Xml = "xml"; + public const string Sysname = "sysname"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs deleted file mode 100644 index 1f37633fcecb..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ColumnDataTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ColumnDataType. - /// - public sealed class ColumnDataTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ColumnDataType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ColumnDataType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ColumnDataType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ColumnDataType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ColumnDataType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs index 748dbdc8e602..76e1849789c0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CopyLongTermRetentionBackupParameters.cs @@ -48,7 +48,7 @@ public CopyLongTermRetentionBackupParameters() /// The storage redundancy /// type of the copied backup. Possible values include: 'Geo', 'Local', /// 'Zone' - public CopyLongTermRetentionBackupParameters(string targetSubscriptionId = default(string), string targetResourceGroup = default(string), string targetServerResourceId = default(string), string targetServerFullyQualifiedDomainName = default(string), string targetDatabaseName = default(string), TargetBackupStorageRedundancy? targetBackupStorageRedundancy = default(TargetBackupStorageRedundancy?)) + public CopyLongTermRetentionBackupParameters(string targetSubscriptionId = default(string), string targetResourceGroup = default(string), string targetServerResourceId = default(string), string targetServerFullyQualifiedDomainName = default(string), string targetDatabaseName = default(string), string targetBackupStorageRedundancy = default(string)) { TargetSubscriptionId = targetSubscriptionId; TargetResourceGroup = targetResourceGroup; @@ -100,7 +100,7 @@ public CopyLongTermRetentionBackupParameters() /// Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.targetBackupStorageRedundancy")] - public TargetBackupStorageRedundancy? TargetBackupStorageRedundancy { get; set; } + public string TargetBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs index 2f6204f30d9a..e8415a7b5ea0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CreateModeConverter))] - public struct CreateMode : System.IEquatable + public static class CreateMode { - private CreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CreateMode Default = "Default"; - - public static readonly CreateMode Copy = "Copy"; - - public static readonly CreateMode Secondary = "Secondary"; - - public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly CreateMode Restore = "Restore"; - - public static readonly CreateMode Recovery = "Recovery"; - - public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - - public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; - - - /// - /// Underlying value of enum CreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CreateMode - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CreateMode - /// - public bool Equals(CreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CreateMode - /// - public static implicit operator CreateMode(string value) - { - return new CreateMode(value); - } - - /// - /// Implicit operator to convert CreateMode to string - /// - public static implicit operator string(CreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CreateMode - /// - public static bool operator == (CreateMode e1, CreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CreateMode - /// - public static bool operator != (CreateMode e1, CreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CreateMode - /// - public override bool Equals(object obj) - { - return obj is CreateMode && Equals((CreateMode)obj); - } - - /// - /// Returns for hashCode CreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string Copy = "Copy"; + public const string Secondary = "Secondary"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Restore = "Restore"; + public const string Recovery = "Recovery"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + public const string OnlineSecondary = "OnlineSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs deleted file mode 100644 index b46c3e6cdda3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CreateMode. - /// - public sealed class CreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CreateMode by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs index 8a5d880d9837..f921107c3754 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CreatedByType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CreatedByTypeConverter))] - public struct CreatedByType : System.IEquatable + public static class CreatedByType { - private CreatedByType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CreatedByType User = "User"; - - public static readonly CreatedByType Application = "Application"; - - public static readonly CreatedByType ManagedIdentity = "ManagedIdentity"; - - public static readonly CreatedByType Key = "Key"; - - - /// - /// Underlying value of enum CreatedByType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CreatedByType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CreatedByType - /// - public bool Equals(CreatedByType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CreatedByType - /// - public static implicit operator CreatedByType(string value) - { - return new CreatedByType(value); - } - - /// - /// Implicit operator to convert CreatedByType to string - /// - public static implicit operator string(CreatedByType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CreatedByType - /// - public static bool operator == (CreatedByType e1, CreatedByType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CreatedByType - /// - public static bool operator != (CreatedByType e1, CreatedByType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CreatedByType - /// - public override bool Equals(object obj) - { - return obj is CreatedByType && Equals((CreatedByType)obj); - } - - /// - /// Returns for hashCode CreatedByType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs deleted file mode 100644 index 369281f8eff5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CreatedByType. - /// - public sealed class CreatedByTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CreatedByType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CreatedByType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CreatedByType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CreatedByType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CreatedByType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs index da748049e479..446a823940c5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancy.cs @@ -10,100 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CurrentBackupStorageRedundancy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CurrentBackupStorageRedundancyConverter))] - public struct CurrentBackupStorageRedundancy : System.IEquatable + public static class CurrentBackupStorageRedundancy { - private CurrentBackupStorageRedundancy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CurrentBackupStorageRedundancy Geo = "Geo"; - - public static readonly CurrentBackupStorageRedundancy Local = "Local"; - - public static readonly CurrentBackupStorageRedundancy Zone = "Zone"; - - - /// - /// Underlying value of enum CurrentBackupStorageRedundancy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CurrentBackupStorageRedundancy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CurrentBackupStorageRedundancy - /// - public bool Equals(CurrentBackupStorageRedundancy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// CurrentBackupStorageRedundancy - /// - public static implicit operator CurrentBackupStorageRedundancy(string value) - { - return new CurrentBackupStorageRedundancy(value); - } - - /// - /// Implicit operator to convert CurrentBackupStorageRedundancy to - /// string - /// - public static implicit operator string(CurrentBackupStorageRedundancy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CurrentBackupStorageRedundancy - /// - public static bool operator == (CurrentBackupStorageRedundancy e1, CurrentBackupStorageRedundancy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CurrentBackupStorageRedundancy - /// - public static bool operator != (CurrentBackupStorageRedundancy e1, CurrentBackupStorageRedundancy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CurrentBackupStorageRedundancy - /// - public override bool Equals(object obj) - { - return obj is CurrentBackupStorageRedundancy && Equals((CurrentBackupStorageRedundancy)obj); - } - - /// - /// Returns for hashCode CurrentBackupStorageRedundancy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Geo = "Geo"; + public const string Local = "Local"; + public const string Zone = "Zone"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs deleted file mode 100644 index f223e3c43b72..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CurrentBackupStorageRedundancyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CurrentBackupStorageRedundancy. - /// - public sealed class CurrentBackupStorageRedundancyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// CurrentBackupStorageRedundancy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CurrentBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// CurrentBackupStorageRedundancy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CurrentBackupStorageRedundancy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CurrentBackupStorageRedundancy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs index f4bd66a7d9e2..d8605dbe2b70 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs @@ -199,7 +199,7 @@ public Database() /// database has been created. /// Infra encryption is enabled /// for this database. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? highAvailabilityReplicaCount = default(int?), SecondaryType? secondaryType = default(SecondaryType?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), CurrentBackupStorageRedundancy? currentBackupStorageRedundancy = default(CurrentBackupStorageRedundancy?), RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?)) : base(location, id, name, type, tags) { Sku = sku; @@ -327,7 +327,7 @@ public Database() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public CreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -347,7 +347,7 @@ public Database() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public SampleName? SampleName { get; set; } + public string SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -373,7 +373,7 @@ public Database() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public DatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the ID of the database. @@ -458,7 +458,7 @@ public Database() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -475,7 +475,7 @@ public Database() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public DatabaseLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -497,7 +497,7 @@ public Database() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public DatabaseReadScale? ReadScale { get; set; } + public string ReadScale { get; set; } /// /// Gets or sets the number of secondary replicas associated with the @@ -512,7 +512,7 @@ public Database() /// include: 'Geo', 'Named' /// [JsonProperty(PropertyName = "properties.secondaryType")] - public SecondaryType? SecondaryType { get; set; } + public string SecondaryType { get; set; } /// /// Gets the name and tier of the SKU. @@ -532,14 +532,14 @@ public Database() /// database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.currentBackupStorageRedundancy")] - public CurrentBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; private set; } + public string CurrentBackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage account type to be used to store backups /// for this database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } + public string RequestedBackupStorageRedundancy { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs index 2e7a89637272..9eadc11e6b27 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseColumn.cs @@ -50,7 +50,7 @@ public DatabaseColumn() /// a memory optimized table. /// Whether or not the column is /// computed. - public DatabaseColumn(string id = default(string), string name = default(string), string type = default(string), ColumnDataType? columnType = default(ColumnDataType?), TableTemporalType? temporalType = default(TableTemporalType?), bool? memoryOptimized = default(bool?), bool? isComputed = default(bool?)) + public DatabaseColumn(string id = default(string), string name = default(string), string type = default(string), string columnType = default(string), string temporalType = default(string), bool? memoryOptimized = default(bool?), bool? isComputed = default(bool?)) : base(id, name, type) { ColumnType = columnType; @@ -75,14 +75,14 @@ public DatabaseColumn() /// 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' /// [JsonProperty(PropertyName = "properties.columnType")] - public ColumnDataType? ColumnType { get; set; } + public string ColumnType { get; set; } /// /// Gets or sets the table temporal type. Possible values include: /// 'NonTemporalTable', 'HistoryTable', 'SystemVersionedTemporalTable' /// [JsonProperty(PropertyName = "properties.temporalType")] - public TableTemporalType? TemporalType { get; set; } + public string TemporalType { get; set; } /// /// Gets or sets whether or not the column belongs to a memory diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs index d744d5f5ec07..8d24b91ea7d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseExtensions.cs @@ -39,7 +39,7 @@ public DatabaseExtensions() /// Resource ID. /// Resource name. /// Resource type. - public DatabaseExtensions(StorageKeyType storageKeyType, string storageKey, string storageUri, string id = default(string), string name = default(string), string type = default(string)) + public DatabaseExtensions(string storageKeyType, string storageKey, string storageUri, string id = default(string), string name = default(string), string type = default(string)) : base(id, name, type) { StorageKeyType = storageKeyType; @@ -65,7 +65,7 @@ static DatabaseExtensions() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "properties.storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -93,6 +93,10 @@ static DatabaseExtensions() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs index 8843de2b4e73..8fec77be3faf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseLicenseTypeConverter))] - public struct DatabaseLicenseType : System.IEquatable + public static class DatabaseLicenseType { - private DatabaseLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly DatabaseLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum DatabaseLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseLicenseType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseLicenseType - /// - public bool Equals(DatabaseLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseLicenseType - /// - public static implicit operator DatabaseLicenseType(string value) - { - return new DatabaseLicenseType(value); - } - - /// - /// Implicit operator to convert DatabaseLicenseType to string - /// - public static implicit operator string(DatabaseLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseLicenseType - /// - public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseLicenseType - /// - public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseLicenseType - /// - public override bool Equals(object obj) - { - return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); - } - - /// - /// Returns for hashCode DatabaseLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs deleted file mode 100644 index d72fe3f966be..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseLicenseType. - /// - public sealed class DatabaseLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs index 4af090f5ddb6..98d64dc4bfb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs index 4b1ae7eead49..be48a34acdcf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseReadScale. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseReadScaleConverter))] - public struct DatabaseReadScale : System.IEquatable + public static class DatabaseReadScale { - private DatabaseReadScale(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseReadScale Enabled = "Enabled"; - - public static readonly DatabaseReadScale Disabled = "Disabled"; - - - /// - /// Underlying value of enum DatabaseReadScale - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseReadScale - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseReadScale - /// - public bool Equals(DatabaseReadScale e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseReadScale - /// - public static implicit operator DatabaseReadScale(string value) - { - return new DatabaseReadScale(value); - } - - /// - /// Implicit operator to convert DatabaseReadScale to string - /// - public static implicit operator string(DatabaseReadScale e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseReadScale - /// - public static bool operator == (DatabaseReadScale e1, DatabaseReadScale e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseReadScale - /// - public static bool operator != (DatabaseReadScale e1, DatabaseReadScale e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseReadScale - /// - public override bool Equals(object obj) - { - return obj is DatabaseReadScale && Equals((DatabaseReadScale)obj); - } - - /// - /// Returns for hashCode DatabaseReadScale - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs deleted file mode 100644 index 976b4109ab1d..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScaleConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseReadScale. - /// - public sealed class DatabaseReadScaleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseReadScale by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseReadScale).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseReadScale. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseReadScale)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseReadScale for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs index 4d2de4881e41..e0db5559a05c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseStateConverter))] - public struct DatabaseState : System.IEquatable + public static class DatabaseState { - private DatabaseState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState All = "All"; - - public static readonly DatabaseState Live = "Live"; - - public static readonly DatabaseState Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState - /// - public bool Equals(DatabaseState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState - /// - public static implicit operator DatabaseState(string value) - { - return new DatabaseState(value); - } - - /// - /// Implicit operator to convert DatabaseState to string - /// - public static implicit operator string(DatabaseState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState - /// - public static bool operator == (DatabaseState e1, DatabaseState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState - /// - public static bool operator != (DatabaseState e1, DatabaseState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState - /// - public override bool Equals(object obj) - { - return obj is DatabaseState && Equals((DatabaseState)obj); - } - - /// - /// Returns for hashCode DatabaseState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs deleted file mode 100644 index 4eb107cdc68e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState. - /// - public sealed class DatabaseStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs index 898bb90f71db..5caced77f2da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs @@ -10,134 +10,32 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseStatusConverter))] - public struct DatabaseStatus : System.IEquatable + public static class DatabaseStatus { - private DatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseStatus Online = "Online"; - - public static readonly DatabaseStatus Restoring = "Restoring"; - - public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; - - public static readonly DatabaseStatus Recovering = "Recovering"; - - public static readonly DatabaseStatus Suspect = "Suspect"; - - public static readonly DatabaseStatus Offline = "Offline"; - - public static readonly DatabaseStatus Standby = "Standby"; - - public static readonly DatabaseStatus Shutdown = "Shutdown"; - - public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; - - public static readonly DatabaseStatus AutoClosed = "AutoClosed"; - - public static readonly DatabaseStatus Copying = "Copying"; - - public static readonly DatabaseStatus Creating = "Creating"; - - public static readonly DatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; - - public static readonly DatabaseStatus Pausing = "Pausing"; - - public static readonly DatabaseStatus Paused = "Paused"; - - public static readonly DatabaseStatus Resuming = "Resuming"; - - public static readonly DatabaseStatus Scaling = "Scaling"; - - public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum DatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseStatus - /// - public bool Equals(DatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseStatus - /// - public static implicit operator DatabaseStatus(string value) - { - return new DatabaseStatus(value); - } - - /// - /// Implicit operator to convert DatabaseStatus to string - /// - public static implicit operator string(DatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseStatus - /// - public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseStatus - /// - public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is DatabaseStatus && Equals((DatabaseStatus)obj); - } - - /// - /// Returns for hashCode DatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Restoring = "Restoring"; + public const string RecoveryPending = "RecoveryPending"; + public const string Recovering = "Recovering"; + public const string Suspect = "Suspect"; + public const string Offline = "Offline"; + public const string Standby = "Standby"; + public const string Shutdown = "Shutdown"; + public const string EmergencyMode = "EmergencyMode"; + public const string AutoClosed = "AutoClosed"; + public const string Copying = "Copying"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string OfflineSecondary = "OfflineSecondary"; + public const string Pausing = "Pausing"; + public const string Paused = "Paused"; + public const string Resuming = "Resuming"; + public const string Scaling = "Scaling"; + public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs deleted file mode 100644 index 9e23c1e959c2..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseStatus. - /// - public sealed class DatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseStatus by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs index f39ee59a458f..c8476f2a8a48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseTable.cs @@ -40,7 +40,7 @@ public DatabaseTable() /// 'SystemVersionedTemporalTable' /// Whether or not the table is memory /// optimized. - public DatabaseTable(string id = default(string), string name = default(string), string type = default(string), TableTemporalType? temporalType = default(TableTemporalType?), bool? memoryOptimized = default(bool?)) + public DatabaseTable(string id = default(string), string name = default(string), string type = default(string), string temporalType = default(string), bool? memoryOptimized = default(bool?)) : base(id, name, type) { TemporalType = temporalType; @@ -58,7 +58,7 @@ public DatabaseTable() /// 'NonTemporalTable', 'HistoryTable', 'SystemVersionedTemporalTable' /// [JsonProperty(PropertyName = "properties.temporalType")] - public TableTemporalType? TemporalType { get; set; } + public string TemporalType { get; set; } /// /// Gets or sets whether or not the table is memory optimized. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs index c2446a14c826..ae0fd44438a1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs @@ -177,7 +177,7 @@ public DatabaseUpdate() /// Infra encryption is enabled /// for this database. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? highAvailabilityReplicaCount = default(int?), SecondaryType? secondaryType = default(SecondaryType?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), CurrentBackupStorageRedundancy? currentBackupStorageRedundancy = default(CurrentBackupStorageRedundancy?), RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), bool? isLedgerOn = default(bool?), bool? isInfraEncryptionEnabled = default(bool?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -275,7 +275,7 @@ public DatabaseUpdate() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public CreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -295,7 +295,7 @@ public DatabaseUpdate() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public SampleName? SampleName { get; set; } + public string SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -321,7 +321,7 @@ public DatabaseUpdate() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public DatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the ID of the database. @@ -406,7 +406,7 @@ public DatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -423,7 +423,7 @@ public DatabaseUpdate() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public DatabaseLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -445,7 +445,7 @@ public DatabaseUpdate() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public DatabaseReadScale? ReadScale { get; set; } + public string ReadScale { get; set; } /// /// Gets or sets the number of secondary replicas associated with the @@ -460,7 +460,7 @@ public DatabaseUpdate() /// include: 'Geo', 'Named' /// [JsonProperty(PropertyName = "properties.secondaryType")] - public SecondaryType? SecondaryType { get; set; } + public string SecondaryType { get; set; } /// /// Gets the name and tier of the SKU. @@ -480,14 +480,14 @@ public DatabaseUpdate() /// database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.currentBackupStorageRedundancy")] - public CurrentBackupStorageRedundancy? CurrentBackupStorageRedundancy { get; private set; } + public string CurrentBackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage account type to be used to store backups /// for this database. Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } + public string RequestedBackupStorageRedundancy { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs index ce4c3438f27a..3cfda63022f9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeek.cs @@ -10,106 +10,18 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DayOfWeek. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DayOfWeekConverter))] - public struct DayOfWeek : System.IEquatable + public static class DayOfWeek { - private DayOfWeek(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DayOfWeek Sunday = "Sunday"; - - public static readonly DayOfWeek Monday = "Monday"; - - public static readonly DayOfWeek Tuesday = "Tuesday"; - - public static readonly DayOfWeek Wednesday = "Wednesday"; - - public static readonly DayOfWeek Thursday = "Thursday"; - - public static readonly DayOfWeek Friday = "Friday"; - - public static readonly DayOfWeek Saturday = "Saturday"; - - - /// - /// Underlying value of enum DayOfWeek - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DayOfWeek - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DayOfWeek - /// - public bool Equals(DayOfWeek e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DayOfWeek - /// - public static implicit operator DayOfWeek(string value) - { - return new DayOfWeek(value); - } - - /// - /// Implicit operator to convert DayOfWeek to string - /// - public static implicit operator string(DayOfWeek e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DayOfWeek - /// - public static bool operator == (DayOfWeek e1, DayOfWeek e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DayOfWeek - /// - public static bool operator != (DayOfWeek e1, DayOfWeek e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DayOfWeek - /// - public override bool Equals(object obj) - { - return obj is DayOfWeek && Equals((DayOfWeek)obj); - } - - /// - /// Returns for hashCode DayOfWeek - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Sunday = "Sunday"; + public const string Monday = "Monday"; + public const string Tuesday = "Tuesday"; + public const string Wednesday = "Wednesday"; + public const string Thursday = "Thursday"; + public const string Friday = "Friday"; + public const string Saturday = "Saturday"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs deleted file mode 100644 index fd78cadb48ca..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DayOfWeekConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DayOfWeek. - /// - public sealed class DayOfWeekConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DayOfWeek by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DayOfWeek).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DayOfWeek. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DayOfWeek)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DayOfWeek for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs index 1734bf47ec54..4ff5f68e841a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs @@ -70,7 +70,7 @@ public ElasticPool() /// Maintenance configuration /// id assigned to the elastic pool. This configuration defines the /// period when the maintenance updates will will occur. - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), string maintenanceConfigurationId = default(string)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), string maintenanceConfigurationId = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -120,7 +120,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public ElasticPoolState? State { get; private set; } + public string State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -154,7 +154,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets maintenance configuration id assigned to the elastic diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs index 841d92576001..91040cda5998 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] - public struct ElasticPoolLicenseType : System.IEquatable + public static class ElasticPoolLicenseType { - private ElasticPoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ElasticPoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolLicenseType - /// - public bool Equals(ElasticPoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolLicenseType - /// - public static implicit operator ElasticPoolLicenseType(string value) - { - return new ElasticPoolLicenseType(value); - } - - /// - /// Implicit operator to convert ElasticPoolLicenseType to string - /// - public static implicit operator string(ElasticPoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolLicenseType - /// - public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolLicenseType - /// - public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); - } - - /// - /// Returns for hashCode ElasticPoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs deleted file mode 100644 index 553f43659d49..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolLicenseType. - /// - public sealed class ElasticPoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index f82b6812d740..74af2a056139 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 9cea5490a81e..90abdfcd655b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs index 966cca90eb17..5e36b8d12088 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolStateConverter))] - public struct ElasticPoolState : System.IEquatable + public static class ElasticPoolState { - private ElasticPoolState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolState Creating = "Creating"; - - public static readonly ElasticPoolState Ready = "Ready"; - - public static readonly ElasticPoolState Disabled = "Disabled"; - - - /// - /// Underlying value of enum ElasticPoolState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolState - /// - public bool Equals(ElasticPoolState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolState - /// - public static implicit operator ElasticPoolState(string value) - { - return new ElasticPoolState(value); - } - - /// - /// Implicit operator to convert ElasticPoolState to string - /// - public static implicit operator string(ElasticPoolState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolState - /// - public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolState - /// - public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolState - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolState && Equals((ElasticPoolState)obj); - } - - /// - /// Returns for hashCode ElasticPoolState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs deleted file mode 100644 index 9eae804ada9b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolState. - /// - public sealed class ElasticPoolStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs index 5a9b99150c38..8f6468917e99 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolUpdate.cs @@ -48,7 +48,7 @@ public ElasticPoolUpdate() /// id assigned to the elastic pool. This configuration defines the /// period when the maintenance updates will will occur. /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), string maintenanceConfigurationId = default(string), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), string maintenanceConfigurationId = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -96,7 +96,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets maintenance configuration id assigned to the elastic diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs index 38cb58d1d466..60bf35bb1bc9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs @@ -48,7 +48,7 @@ public EncryptionProtector() /// Thumbprint of the server key. /// Key auto rotation opt-in flag. /// Either true or false. - public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) + public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -98,7 +98,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -126,6 +126,10 @@ public EncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs index a5fb485f8718..0a98139a22b7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ExportDatabaseDefinition.cs @@ -41,7 +41,7 @@ public ExportDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ExportDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -63,7 +63,7 @@ public ExportDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -110,6 +110,10 @@ public ExportDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs index 41197cecd823..9fe6b90fb1bd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index cc8c1dbf98fe..161a0d051d5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index f36bd4bfb0d8..823617cb01ce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs index 849660da39c4..380e10a578b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] - public struct FailoverGroupReplicationRole : System.IEquatable + public static class FailoverGroupReplicationRole { - private FailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly FailoverGroupReplicationRole Primary = "Primary"; - - public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum FailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for FailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type FailoverGroupReplicationRole - /// - public bool Equals(FailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to FailoverGroupReplicationRole - /// - public static implicit operator FailoverGroupReplicationRole(string value) - { - return new FailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert FailoverGroupReplicationRole to string - /// - public static implicit operator string(FailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum FailoverGroupReplicationRole - /// - public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum FailoverGroupReplicationRole - /// - public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for FailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode FailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 80c2d0b338e3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for FailoverGroupReplicationRole. - /// - public sealed class FailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// FailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// FailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (FailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for FailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs index d9eb50aa71a3..83b18afcdd7e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(IdentityTypeConverter))] - public struct IdentityType : System.IEquatable + public static class IdentityType { - private IdentityType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly IdentityType None = "None"; - - public static readonly IdentityType SystemAssigned = "SystemAssigned"; - - public static readonly IdentityType UserAssigned = "UserAssigned"; - - - /// - /// Underlying value of enum IdentityType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for IdentityType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type IdentityType - /// - public bool Equals(IdentityType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to IdentityType - /// - public static implicit operator IdentityType(string value) - { - return new IdentityType(value); - } - - /// - /// Implicit operator to convert IdentityType to string - /// - public static implicit operator string(IdentityType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum IdentityType - /// - public static bool operator == (IdentityType e1, IdentityType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum IdentityType - /// - public static bool operator != (IdentityType e1, IdentityType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for IdentityType - /// - public override bool Equals(object obj) - { - return obj is IdentityType && Equals((IdentityType)obj); - } - - /// - /// Returns for hashCode IdentityType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; + public const string SystemAssigned = "SystemAssigned"; + public const string UserAssigned = "UserAssigned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs deleted file mode 100644 index f171ba65f248..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/IdentityTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for IdentityType. - /// - public sealed class IdentityTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to IdentityType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to IdentityType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (IdentityType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for IdentityType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs index 0c28b55dd451..3cca5ca109c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -43,7 +43,7 @@ public ImportExistingDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportExistingDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -65,7 +65,7 @@ public ImportExistingDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -112,6 +112,10 @@ public ImportExistingDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs index d13b7f0797b7..db630e00fd92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -49,7 +49,7 @@ public ImportNewDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { DatabaseName = databaseName; Edition = edition; @@ -99,7 +99,7 @@ public ImportNewDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -146,6 +146,10 @@ public ImportNewDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs index bc3ff7416992..19f2f6800532 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index 5a7e6fcac550..c3e7c22f98d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 7af96668a660..299752e7bf35 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index fab112799efd..cd4a463d4d89 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,101 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] - public struct InstanceFailoverGroupReplicationRole : System.IEquatable + public static class InstanceFailoverGroupReplicationRole { - private InstanceFailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; - - public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum InstanceFailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// InstanceFailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstanceFailoverGroupReplicationRole - /// - public bool Equals(InstanceFailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// InstanceFailoverGroupReplicationRole - /// - public static implicit operator InstanceFailoverGroupReplicationRole(string value) - { - return new InstanceFailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert InstanceFailoverGroupReplicationRole - /// to string - /// - public static implicit operator string(InstanceFailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstanceFailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode InstanceFailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 2caa0100d9f8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstanceFailoverGroupReplicationRole. - /// - public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// InstanceFailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// InstanceFailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs index cf25e3b6c40b..c174f85c08ac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public InstancePoolLicenseType LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Validate the object. @@ -104,6 +104,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } + if (LicenseType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); + } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs index c567b70d54d0..b4371565f980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] - public struct InstancePoolLicenseType : System.IEquatable + public static class InstancePoolLicenseType { - private InstancePoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum InstancePoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for InstancePoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstancePoolLicenseType - /// - public bool Equals(InstancePoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to InstancePoolLicenseType - /// - public static implicit operator InstancePoolLicenseType(string value) - { - return new InstancePoolLicenseType(value); - } - - /// - /// Implicit operator to convert InstancePoolLicenseType to string - /// - public static implicit operator string(InstancePoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum InstancePoolLicenseType - /// - public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum InstancePoolLicenseType - /// - public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstancePoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); - } - - /// - /// Returns for hashCode InstancePoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs deleted file mode 100644 index 0ebb9e4ee1f4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/InstancePoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstancePoolLicenseType. - /// - public sealed class InstancePoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to InstancePoolLicenseType - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to InstancePoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstancePoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstancePoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs index b82e50f80551..fe6f269eab8a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public JobAgentState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs index 6c7d44280031..b8897f53cb79 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobAgentStateConverter))] - public struct JobAgentState : System.IEquatable + public static class JobAgentState { - private JobAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobAgentState Creating = "Creating"; - - public static readonly JobAgentState Ready = "Ready"; - - public static readonly JobAgentState Updating = "Updating"; - - public static readonly JobAgentState Deleting = "Deleting"; - - public static readonly JobAgentState Disabled = "Disabled"; - - - /// - /// Underlying value of enum JobAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobAgentState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobAgentState - /// - public bool Equals(JobAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobAgentState - /// - public static implicit operator JobAgentState(string value) - { - return new JobAgentState(value); - } - - /// - /// Implicit operator to convert JobAgentState to string - /// - public static implicit operator string(JobAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobAgentState - /// - public static bool operator == (JobAgentState e1, JobAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobAgentState - /// - public static bool operator != (JobAgentState e1, JobAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobAgentState - /// - public override bool Equals(object obj) - { - return obj is JobAgentState && Equals((JobAgentState)obj); - } - - /// - /// Returns for hashCode JobAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs deleted file mode 100644 index 6c021f921d92..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobAgentState. - /// - public sealed class JobAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs index 2c2768198736..39c3e70baf2c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public JobExecutionLifecycle? Lifecycle { get; private set; } + public string Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs index 8b255b021d3a..37ead7ce7ff5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobExecutionLifecycleConverter))] - public struct JobExecutionLifecycle : System.IEquatable + public static class JobExecutionLifecycle { - private JobExecutionLifecycle(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobExecutionLifecycle Created = "Created"; - - public static readonly JobExecutionLifecycle InProgress = "InProgress"; - - public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - - public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; - - public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; - - public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; - - public static readonly JobExecutionLifecycle Failed = "Failed"; - - public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; - - public static readonly JobExecutionLifecycle Canceled = "Canceled"; - - public static readonly JobExecutionLifecycle Skipped = "Skipped"; - - - /// - /// Underlying value of enum JobExecutionLifecycle - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobExecutionLifecycle - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobExecutionLifecycle - /// - public bool Equals(JobExecutionLifecycle e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobExecutionLifecycle - /// - public static implicit operator JobExecutionLifecycle(string value) - { - return new JobExecutionLifecycle(value); - } - - /// - /// Implicit operator to convert JobExecutionLifecycle to string - /// - public static implicit operator string(JobExecutionLifecycle e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobExecutionLifecycle - /// - public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobExecutionLifecycle - /// - public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobExecutionLifecycle - /// - public override bool Equals(object obj) - { - return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); - } - - /// - /// Returns for hashCode JobExecutionLifecycle - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + public const string WaitingForRetry = "WaitingForRetry"; + public const string Succeeded = "Succeeded"; + public const string SucceededWithSkipped = "SucceededWithSkipped"; + public const string Failed = "Failed"; + public const string TimedOut = "TimedOut"; + public const string Canceled = "Canceled"; + public const string Skipped = "Skipped"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs deleted file mode 100644 index 4f1114861711..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionLifecycleConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobExecutionLifecycle. - /// - public sealed class JobExecutionLifecycleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobExecutionLifecycle by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobExecutionLifecycle. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobExecutionLifecycle)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobExecutionLifecycle for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs index bd2989561aef..6b7e1dff02e8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs index e550d8f8b04e..51941a310406 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) + public JobStepAction(string value, string type = default(string), string source = default(string)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public JobStepActionType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public JobStepActionSource? Source { get; set; } + public string Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs index 1941a47db3b2..2f96d3a39604 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSource.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionSourceConverter))] - public struct JobStepActionSource : System.IEquatable + public static class JobStepActionSource { - private JobStepActionSource(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionSource Inline = "Inline"; - - - /// - /// Underlying value of enum JobStepActionSource - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionSource - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionSource - /// - public bool Equals(JobStepActionSource e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionSource - /// - public static implicit operator JobStepActionSource(string value) - { - return new JobStepActionSource(value); - } - - /// - /// Implicit operator to convert JobStepActionSource to string - /// - public static implicit operator string(JobStepActionSource e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionSource - /// - public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionSource - /// - public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionSource - /// - public override bool Equals(object obj) - { - return obj is JobStepActionSource && Equals((JobStepActionSource)obj); - } - - /// - /// Returns for hashCode JobStepActionSource - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Inline = "Inline"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs deleted file mode 100644 index 241c078ae7fe..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionSourceConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionSource. - /// - public sealed class JobStepActionSourceConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionSource by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionSource. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionSource)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionSource for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs index 5226c36d5864..6dda291ff321 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionTypeConverter))] - public struct JobStepActionType : System.IEquatable + public static class JobStepActionType { - private JobStepActionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionType TSql = "TSql"; - - - /// - /// Underlying value of enum JobStepActionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionType - /// - public bool Equals(JobStepActionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionType - /// - public static implicit operator JobStepActionType(string value) - { - return new JobStepActionType(value); - } - - /// - /// Implicit operator to convert JobStepActionType to string - /// - public static implicit operator string(JobStepActionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionType - /// - public static bool operator == (JobStepActionType e1, JobStepActionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionType - /// - public static bool operator != (JobStepActionType e1, JobStepActionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionType - /// - public override bool Equals(object obj) - { - return obj is JobStepActionType && Equals((JobStepActionType)obj); - } - - /// - /// Returns for hashCode JobStepActionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TSql = "TSql"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs deleted file mode 100644 index 28ded5cdd872..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepActionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionType. - /// - public sealed class JobStepActionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs index c2f8ba1e4bc0..cdd0db7bec05 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public JobStepOutputType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs index 6a3761de0a61..bb86c8126657 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepOutputTypeConverter))] - public struct JobStepOutputType : System.IEquatable + public static class JobStepOutputType { - private JobStepOutputType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; - - - /// - /// Underlying value of enum JobStepOutputType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepOutputType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepOutputType - /// - public bool Equals(JobStepOutputType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepOutputType - /// - public static implicit operator JobStepOutputType(string value) - { - return new JobStepOutputType(value); - } - - /// - /// Implicit operator to convert JobStepOutputType to string - /// - public static implicit operator string(JobStepOutputType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepOutputType - /// - public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepOutputType - /// - public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepOutputType - /// - public override bool Equals(object obj) - { - return obj is JobStepOutputType && Equals((JobStepOutputType)obj); - } - - /// - /// Returns for hashCode JobStepOutputType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SqlDatabase = "SqlDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs deleted file mode 100644 index f6e86f9a358b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobStepOutputTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepOutputType. - /// - public sealed class JobStepOutputTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepOutputType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepOutputType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepOutputType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepOutputType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs index 4d0b124b79da..7d03cc175e67 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTarget.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -43,7 +44,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -73,7 +74,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the target server name. @@ -110,11 +111,15 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs index 2fc7420cfe72..bf3921ce5ec0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetType.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobTargetTypeConverter))] - public struct JobTargetType : System.IEquatable + public static class JobTargetType { - private JobTargetType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobTargetType TargetGroup = "TargetGroup"; - - public static readonly JobTargetType SqlDatabase = "SqlDatabase"; - - public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; - - public static readonly JobTargetType SqlShardMap = "SqlShardMap"; - - public static readonly JobTargetType SqlServer = "SqlServer"; - - - /// - /// Underlying value of enum JobTargetType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobTargetType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobTargetType - /// - public bool Equals(JobTargetType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobTargetType - /// - public static implicit operator JobTargetType(string value) - { - return new JobTargetType(value); - } - - /// - /// Implicit operator to convert JobTargetType to string - /// - public static implicit operator string(JobTargetType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobTargetType - /// - public static bool operator == (JobTargetType e1, JobTargetType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobTargetType - /// - public static bool operator != (JobTargetType e1, JobTargetType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobTargetType - /// - public override bool Equals(object obj) - { - return obj is JobTargetType && Equals((JobTargetType)obj); - } - - /// - /// Returns for hashCode JobTargetType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TargetGroup = "TargetGroup"; + public const string SqlDatabase = "SqlDatabase"; + public const string SqlElasticPool = "SqlElasticPool"; + public const string SqlShardMap = "SqlShardMap"; + public const string SqlServer = "SqlServer"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs deleted file mode 100644 index 8b117d0ea11e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/JobTargetTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobTargetType. - /// - public sealed class JobTargetTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobTargetType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobTargetType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobTargetType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobTargetType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs index aaf5d85a541b..e374ba951793 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) + public LogSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public LogSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs index 0ebe2d4337a0..1b8c8bfc8596 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnit.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(LogSizeUnitConverter))] - public struct LogSizeUnit : System.IEquatable + public static class LogSizeUnit { - private LogSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly LogSizeUnit Megabytes = "Megabytes"; - - public static readonly LogSizeUnit Gigabytes = "Gigabytes"; - - public static readonly LogSizeUnit Terabytes = "Terabytes"; - - public static readonly LogSizeUnit Petabytes = "Petabytes"; - - public static readonly LogSizeUnit Percent = "Percent"; - - - /// - /// Underlying value of enum LogSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for LogSizeUnit - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type LogSizeUnit - /// - public bool Equals(LogSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to LogSizeUnit - /// - public static implicit operator LogSizeUnit(string value) - { - return new LogSizeUnit(value); - } - - /// - /// Implicit operator to convert LogSizeUnit to string - /// - public static implicit operator string(LogSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum LogSizeUnit - /// - public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum LogSizeUnit - /// - public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for LogSizeUnit - /// - public override bool Equals(object obj) - { - return obj is LogSizeUnit && Equals((LogSizeUnit)obj); - } - - /// - /// Returns for hashCode LogSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; + public const string Percent = "Percent"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs deleted file mode 100644 index bb9f436d6278..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LogSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for LogSizeUnit. - /// - public sealed class LogSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to LogSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to LogSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (LogSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for LogSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs index 709f6ee36d2a..7334f397c608 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackup.cs @@ -52,7 +52,7 @@ public LongTermRetentionBackup() /// The storage /// redundancy type of the backup. Possible values include: 'Geo', /// 'Local', 'Zone' - public LongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string serverName = default(string), System.DateTime? serverCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), BackupStorageRedundancy? backupStorageRedundancy = default(BackupStorageRedundancy?), BackupStorageRedundancy? requestedBackupStorageRedundancy = default(BackupStorageRedundancy?)) + public LongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string serverName = default(string), System.DateTime? serverCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), string backupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string)) : base(id, name, type) { ServerName = serverName; @@ -112,14 +112,14 @@ public LongTermRetentionBackup() /// include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.backupStorageRedundancy")] - public BackupStorageRedundancy? BackupStorageRedundancy { get; private set; } + public string BackupStorageRedundancy { get; private set; } /// /// Gets or sets the storage redundancy type of the backup. Possible /// values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public BackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } + public string RequestedBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs index 60afb3207116..af6b35a93dd0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/LongTermRetentionBackupOperationResult.cs @@ -47,7 +47,7 @@ public LongTermRetentionBackupOperationResult() /// 'Zone' /// Operation status /// Progress message - public LongTermRetentionBackupOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string operationType = default(string), string fromBackupResourceId = default(string), string toBackupResourceId = default(string), BackupStorageRedundancy? targetBackupStorageRedundancy = default(BackupStorageRedundancy?), string status = default(string), string message = default(string)) + public LongTermRetentionBackupOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string operationType = default(string), string fromBackupResourceId = default(string), string toBackupResourceId = default(string), string targetBackupStorageRedundancy = default(string), string status = default(string), string message = default(string)) : base(id, name, type) { RequestId = requestId; @@ -94,7 +94,7 @@ public LongTermRetentionBackupOperationResult() /// values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.targetBackupStorageRedundancy")] - public BackupStorageRedundancy? TargetBackupStorageRedundancy { get; private set; } + public string TargetBackupStorageRedundancy { get; private set; } /// /// Gets operation status diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs index 88637aaf460f..7facd2eceb7b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaintenanceWindowTimeRange.cs @@ -36,7 +36,7 @@ public MaintenanceWindowTimeRange() /// 12am. /// Duration of maintenance window in /// minutes. - public MaintenanceWindowTimeRange(DayOfWeek? dayOfWeek = default(DayOfWeek?), string startTime = default(string), string duration = default(string)) + public MaintenanceWindowTimeRange(string dayOfWeek = default(string), string startTime = default(string), string duration = default(string)) { DayOfWeek = dayOfWeek; StartTime = startTime; @@ -55,7 +55,7 @@ public MaintenanceWindowTimeRange() /// 'Saturday' /// [JsonProperty(PropertyName = "dayOfWeek")] - public DayOfWeek? DayOfWeek { get; set; } + public string DayOfWeek { get; set; } /// /// Gets or sets start time minutes offset from 12am. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs index d16a278fd6e2..097d79ad06b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs index 813c997673ee..c7c1e20d8260 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] - public struct ManagedDatabaseCreateMode : System.IEquatable + public static class ManagedDatabaseCreateMode { - private ManagedDatabaseCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseCreateMode Default = "Default"; - - public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; - - public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - - /// - /// Underlying value of enum ManagedDatabaseCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseCreateMode - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseCreateMode - /// - public bool Equals(ManagedDatabaseCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseCreateMode - /// - public static implicit operator ManagedDatabaseCreateMode(string value) - { - return new ManagedDatabaseCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseCreateMode to string - /// - public static implicit operator string(ManagedDatabaseCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseCreateMode - /// - public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseCreateMode - /// - public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Recovery = "Recovery"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs deleted file mode 100644 index bfc490f8b789..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseCreateMode. - /// - public sealed class ManagedDatabaseCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseCreateMode for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs index 654dcc3f3e07..fb53873a68b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,106 +10,18 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseStatusConverter))] - public struct ManagedDatabaseStatus : System.IEquatable + public static class ManagedDatabaseStatus { - private ManagedDatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseStatus Online = "Online"; - - public static readonly ManagedDatabaseStatus Offline = "Offline"; - - public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; - - public static readonly ManagedDatabaseStatus Creating = "Creating"; - - public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly ManagedDatabaseStatus Restoring = "Restoring"; - - public static readonly ManagedDatabaseStatus Updating = "Updating"; - - - /// - /// Underlying value of enum ManagedDatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseStatus - /// - public bool Equals(ManagedDatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseStatus - /// - public static implicit operator ManagedDatabaseStatus(string value) - { - return new ManagedDatabaseStatus(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseStatus to string - /// - public static implicit operator string(ManagedDatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseStatus - /// - public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseStatus - /// - public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string Shutdown = "Shutdown"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string Restoring = "Restoring"; + public const string Updating = "Updating"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs deleted file mode 100644 index 3478b2db9f0a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseStatus. - /// - public sealed class ManagedDatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseStatus by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs index 6729a79e652a..4afb5faa70f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs index dc2b2dbac7f8..cdf6d45e295d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs @@ -124,7 +124,7 @@ public ManagedInstance() /// encryption. /// The Azure Active Directory /// administrator of the server. - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator)) : base(location, id, name, type, tags) { Identity = identity; @@ -196,7 +196,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -238,7 +238,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -298,7 +298,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -351,7 +351,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets whether or not the multi-az is enabled. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 11875bbccca5..1900f3a295c5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -48,7 +48,7 @@ public ManagedInstanceEncryptionProtector() /// Thumbprint of the server key. /// Key auto rotation opt-in flag. /// Either true or false. - public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) + public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -84,7 +84,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -112,6 +112,10 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs index 5c44e2f3b198..687498eceb43 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs @@ -42,7 +42,7 @@ public ManagedInstanceExternalAdministrator() /// Tenant ID of the administrator. /// Azure Active Directory only /// Authentication enabled. - public ManagedInstanceExternalAdministrator(AdministratorType? administratorType = default(AdministratorType?), PrincipalType? principalType = default(PrincipalType?), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) + public ManagedInstanceExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) { AdministratorType = administratorType; PrincipalType = principalType; @@ -63,14 +63,14 @@ public ManagedInstanceExternalAdministrator() /// include: 'ActiveDirectory' /// [JsonProperty(PropertyName = "administratorType")] - public AdministratorType? AdministratorType { get; set; } + public string AdministratorType { get; set; } /// /// Gets or sets principal Type of the sever administrator. Possible /// values include: 'User', 'Group', 'Application' /// [JsonProperty(PropertyName = "principalType")] - public PrincipalType? PrincipalType { get; set; } + public string PrincipalType { get; set; } /// /// Gets or sets login name of the server administrator. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs index 91e8d25752d8..c813629cdbff 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs @@ -46,7 +46,7 @@ public ManagedInstanceKey() /// The key creation date. /// Key auto rotation opt-in flag. /// Either true or false. - public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) + public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -75,7 +75,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -110,6 +110,10 @@ public ManagedInstanceKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs index 715c1133ddb2..518832b8e90d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] - public struct ManagedInstanceLicenseType : System.IEquatable + public static class ManagedInstanceLicenseType { - private ManagedInstanceLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ManagedInstanceLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceLicenseType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceLicenseType - /// - public bool Equals(ManagedInstanceLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceLicenseType - /// - public static implicit operator ManagedInstanceLicenseType(string value) - { - return new ManagedInstanceLicenseType(value); - } - - /// - /// Implicit operator to convert ManagedInstanceLicenseType to string - /// - public static implicit operator string(ManagedInstanceLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceLicenseType - /// - public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceLicenseType - /// - public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceLicenseType - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); - } - - /// - /// Returns for hashCode ManagedInstanceLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs deleted file mode 100644 index 3299377a282e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceLicenseType. - /// - public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceLicenseType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceLicenseType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs index 57f42b2db2d0..d8a0ca93edcf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackup.cs @@ -51,7 +51,7 @@ public ManagedInstanceLongTermRetentionBackup() /// The storage redundancy type /// of the backup. Possible values include: 'Geo', 'Local', /// 'Zone' - public ManagedInstanceLongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), System.DateTime? managedInstanceCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), BackupStorageRedundancy? backupStorageRedundancy = default(BackupStorageRedundancy?)) + public ManagedInstanceLongTermRetentionBackup(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), System.DateTime? managedInstanceCreateTime = default(System.DateTime?), string databaseName = default(string), System.DateTime? databaseDeletionTime = default(System.DateTime?), System.DateTime? backupTime = default(System.DateTime?), System.DateTime? backupExpirationTime = default(System.DateTime?), string backupStorageRedundancy = default(string)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -110,7 +110,7 @@ public ManagedInstanceLongTermRetentionBackup() /// include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.backupStorageRedundancy")] - public BackupStorageRedundancy? BackupStorageRedundancy { get; private set; } + public string BackupStorageRedundancy { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs index 9c408ac62043..bcec42027099 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs index ede756a7ab27..dd6d2f660269 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] - public struct ManagedInstanceProxyOverride : System.IEquatable + public static class ManagedInstanceProxyOverride { - private ManagedInstanceProxyOverride(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; - - public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; - - public static readonly ManagedInstanceProxyOverride Default = "Default"; - - - /// - /// Underlying value of enum ManagedInstanceProxyOverride - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceProxyOverride - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceProxyOverride - /// - public bool Equals(ManagedInstanceProxyOverride e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceProxyOverride - /// - public static implicit operator ManagedInstanceProxyOverride(string value) - { - return new ManagedInstanceProxyOverride(value); - } - - /// - /// Implicit operator to convert ManagedInstanceProxyOverride to string - /// - public static implicit operator string(ManagedInstanceProxyOverride e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceProxyOverride - /// - public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceProxyOverride - /// - public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceProxyOverride - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); - } - - /// - /// Returns for hashCode ManagedInstanceProxyOverride - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Proxy = "Proxy"; + public const string Redirect = "Redirect"; + public const string Default = "Default"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs deleted file mode 100644 index bf7fbf0f8b03..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceProxyOverride. - /// - public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceProxyOverride by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceProxyOverride. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceProxyOverride for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs index dd2349c92832..79d9ae975e49 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs @@ -118,7 +118,7 @@ public ManagedInstanceUpdate() /// The Azure Active Directory /// administrator of the server. /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentity identity = default(ResourceIdentity), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentity identity = default(ResourceIdentity), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), IDictionary tags = default(IDictionary)) { Sku = sku; Identity = identity; @@ -188,7 +188,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -230,7 +230,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -290,7 +290,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -343,7 +343,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets whether or not the multi-az is enabled. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs index 5f291af0c8d8..141db5dae3f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedServerCreateModeConverter))] - public struct ManagedServerCreateMode : System.IEquatable + public static class ManagedServerCreateMode { - private ManagedServerCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedServerCreateMode Default = "Default"; - - public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; - - - /// - /// Underlying value of enum ManagedServerCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedServerCreateMode - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedServerCreateMode - /// - public bool Equals(ManagedServerCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedServerCreateMode - /// - public static implicit operator ManagedServerCreateMode(string value) - { - return new ManagedServerCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedServerCreateMode to string - /// - public static implicit operator string(ManagedServerCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedServerCreateMode - /// - public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedServerCreateMode - /// - public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedServerCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedServerCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string PointInTimeRestore = "PointInTimeRestore"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs deleted file mode 100644 index a634f8a5f8d9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedServerCreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedServerCreateMode. - /// - public sealed class ManagedServerCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedServerCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedServerCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedServerCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedServerCreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs index 1c4edce2929f..5cc2d5460636 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationState.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagementOperationStateConverter))] - public struct ManagementOperationState : System.IEquatable + public static class ManagementOperationState { - private ManagementOperationState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagementOperationState Pending = "Pending"; - - public static readonly ManagementOperationState InProgress = "InProgress"; - - public static readonly ManagementOperationState Succeeded = "Succeeded"; - - public static readonly ManagementOperationState Failed = "Failed"; - - public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; - - public static readonly ManagementOperationState Cancelled = "Cancelled"; - - - /// - /// Underlying value of enum ManagementOperationState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagementOperationState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagementOperationState - /// - public bool Equals(ManagementOperationState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagementOperationState - /// - public static implicit operator ManagementOperationState(string value) - { - return new ManagementOperationState(value); - } - - /// - /// Implicit operator to convert ManagementOperationState to string - /// - public static implicit operator string(ManagementOperationState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagementOperationState - /// - public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagementOperationState - /// - public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagementOperationState - /// - public override bool Equals(object obj) - { - return obj is ManagementOperationState && Equals((ManagementOperationState)obj); - } - - /// - /// Returns for hashCode ManagementOperationState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Pending = "Pending"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string CancelInProgress = "CancelInProgress"; + public const string Cancelled = "Cancelled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs deleted file mode 100644 index a3d6452f16a0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagementOperationStateConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagementOperationState. - /// - public sealed class ManagementOperationStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagementOperationState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagementOperationState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagementOperationState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagementOperationState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs index def373f39d61..e0475eee1066 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) + public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public MaxSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs index b601b8bae06d..cdf8f43bfd5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnit.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(MaxSizeUnitConverter))] - public struct MaxSizeUnit : System.IEquatable + public static class MaxSizeUnit { - private MaxSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly MaxSizeUnit Megabytes = "Megabytes"; - - public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; - - public static readonly MaxSizeUnit Terabytes = "Terabytes"; - - public static readonly MaxSizeUnit Petabytes = "Petabytes"; - - - /// - /// Underlying value of enum MaxSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for MaxSizeUnit - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type MaxSizeUnit - /// - public bool Equals(MaxSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to MaxSizeUnit - /// - public static implicit operator MaxSizeUnit(string value) - { - return new MaxSizeUnit(value); - } - - /// - /// Implicit operator to convert MaxSizeUnit to string - /// - public static implicit operator string(MaxSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum MaxSizeUnit - /// - public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum MaxSizeUnit - /// - public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for MaxSizeUnit - /// - public override bool Equals(object obj) - { - return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); - } - - /// - /// Returns for hashCode MaxSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs deleted file mode 100644 index a63443040350..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MaxSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for MaxSizeUnit. - /// - public sealed class MaxSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to MaxSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to MaxSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (MaxSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for MaxSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs index f81d6baa6b56..c2f7e0249613 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs index dc33003c3588..5bd07c0d50f1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public PrimaryAggregationType? PrimaryAggregationType { get; private set; } + public string PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitDefinitionType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs index f28432f57665..5133ac0a7af7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricType.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for MetricType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(MetricTypeConverter))] - public struct MetricType : System.IEquatable + public static class MetricType { - private MetricType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly MetricType Cpu = "cpu"; - - public static readonly MetricType Io = "io"; - - public static readonly MetricType LogIo = "logIo"; - - public static readonly MetricType Duration = "duration"; - - public static readonly MetricType Dtu = "dtu"; - - - /// - /// Underlying value of enum MetricType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for MetricType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type MetricType - /// - public bool Equals(MetricType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to MetricType - /// - public static implicit operator MetricType(string value) - { - return new MetricType(value); - } - - /// - /// Implicit operator to convert MetricType to string - /// - public static implicit operator string(MetricType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum MetricType - /// - public static bool operator == (MetricType e1, MetricType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum MetricType - /// - public static bool operator != (MetricType e1, MetricType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for MetricType - /// - public override bool Equals(object obj) - { - return obj is MetricType && Equals((MetricType)obj); - } - - /// - /// Returns for hashCode MetricType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Cpu = "cpu"; + public const string Io = "io"; + public const string LogIo = "logIo"; + public const string Duration = "duration"; + public const string Dtu = "dtu"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs deleted file mode 100644 index 8688e2ae9d53..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/MetricTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for MetricType. - /// - public sealed class MetricTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to MetricType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(MetricType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to MetricType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (MetricType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for MetricType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs index d6f75827c8ff..fcf0b7b48dbc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public OperationOrigin? Origin { get; private set; } + public string Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs index dc538bc4ae61..4d779e5b4c1a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOrigin.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(OperationOriginConverter))] - public struct OperationOrigin : System.IEquatable + public static class OperationOrigin { - private OperationOrigin(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly OperationOrigin User = "user"; - - public static readonly OperationOrigin System = "system"; - - - /// - /// Underlying value of enum OperationOrigin - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for OperationOrigin - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type OperationOrigin - /// - public bool Equals(OperationOrigin e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to OperationOrigin - /// - public static implicit operator OperationOrigin(string value) - { - return new OperationOrigin(value); - } - - /// - /// Implicit operator to convert OperationOrigin to string - /// - public static implicit operator string(OperationOrigin e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum OperationOrigin - /// - public static bool operator == (OperationOrigin e1, OperationOrigin e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum OperationOrigin - /// - public static bool operator != (OperationOrigin e1, OperationOrigin e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for OperationOrigin - /// - public override bool Equals(object obj) - { - return obj is OperationOrigin && Equals((OperationOrigin)obj); - } - - /// - /// Returns for hashCode OperationOrigin - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string User = "user"; + public const string System = "system"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs deleted file mode 100644 index 4375b48232c9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/OperationOriginConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for OperationOrigin. - /// - public sealed class OperationOriginConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to OperationOrigin by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to OperationOrigin. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (OperationOrigin)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for OperationOrigin for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs index e6fe406b738d..440a5d14a763 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) + public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs index a816aa9c042f..4835389285ef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) + public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs index b53b11e03e9b..3f1dbe1e042c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnit.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PauseDelayTimeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PauseDelayTimeUnitConverter))] - public struct PauseDelayTimeUnit : System.IEquatable + public static class PauseDelayTimeUnit { - private PauseDelayTimeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PauseDelayTimeUnit Minutes = "Minutes"; - - - /// - /// Underlying value of enum PauseDelayTimeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PauseDelayTimeUnit - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PauseDelayTimeUnit - /// - public bool Equals(PauseDelayTimeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PauseDelayTimeUnit - /// - public static implicit operator PauseDelayTimeUnit(string value) - { - return new PauseDelayTimeUnit(value); - } - - /// - /// Implicit operator to convert PauseDelayTimeUnit to string - /// - public static implicit operator string(PauseDelayTimeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PauseDelayTimeUnit - /// - public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PauseDelayTimeUnit - /// - public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PauseDelayTimeUnit - /// - public override bool Equals(object obj) - { - return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); - } - - /// - /// Returns for hashCode PauseDelayTimeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Minutes = "Minutes"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs deleted file mode 100644 index 13ba249919e9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PauseDelayTimeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PauseDelayTimeUnit. - /// - public sealed class PauseDelayTimeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PauseDelayTimeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PauseDelayTimeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PauseDelayTimeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PauseDelayTimeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs index 5e0493983703..8b04656c9b9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) + public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs index 84d3f4d780bc..8eb843ed2bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PerformanceLevelUnitConverter))] - public struct PerformanceLevelUnit : System.IEquatable + public static class PerformanceLevelUnit { - private PerformanceLevelUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PerformanceLevelUnit DTU = "DTU"; - - public static readonly PerformanceLevelUnit VCores = "VCores"; - - - /// - /// Underlying value of enum PerformanceLevelUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PerformanceLevelUnit - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PerformanceLevelUnit - /// - public bool Equals(PerformanceLevelUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PerformanceLevelUnit - /// - public static implicit operator PerformanceLevelUnit(string value) - { - return new PerformanceLevelUnit(value); - } - - /// - /// Implicit operator to convert PerformanceLevelUnit to string - /// - public static implicit operator string(PerformanceLevelUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PerformanceLevelUnit - /// - public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PerformanceLevelUnit - /// - public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PerformanceLevelUnit - /// - public override bool Equals(object obj) - { - return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); - } - - /// - /// Returns for hashCode PerformanceLevelUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DTU = "DTU"; + public const string VCores = "VCores"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs deleted file mode 100644 index 3d58b1c585e4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PerformanceLevelUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PerformanceLevelUnit. - /// - public sealed class PerformanceLevelUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PerformanceLevelUnit by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PerformanceLevelUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PerformanceLevelUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PerformanceLevelUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs index 8fc9798d2222..d863b177f680 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrimaryAggregationTypeConverter))] - public struct PrimaryAggregationType : System.IEquatable + public static class PrimaryAggregationType { - private PrimaryAggregationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrimaryAggregationType None = "None"; - - public static readonly PrimaryAggregationType Average = "Average"; - - public static readonly PrimaryAggregationType Count = "Count"; - - public static readonly PrimaryAggregationType Minimum = "Minimum"; - - public static readonly PrimaryAggregationType Maximum = "Maximum"; - - public static readonly PrimaryAggregationType Total = "Total"; - - - /// - /// Underlying value of enum PrimaryAggregationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrimaryAggregationType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrimaryAggregationType - /// - public bool Equals(PrimaryAggregationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PrimaryAggregationType - /// - public static implicit operator PrimaryAggregationType(string value) - { - return new PrimaryAggregationType(value); - } - - /// - /// Implicit operator to convert PrimaryAggregationType to string - /// - public static implicit operator string(PrimaryAggregationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrimaryAggregationType - /// - public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrimaryAggregationType - /// - public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrimaryAggregationType - /// - public override bool Equals(object obj) - { - return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); - } - - /// - /// Returns for hashCode PrimaryAggregationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; + public const string Average = "Average"; + public const string Count = "Count"; + public const string Minimum = "Minimum"; + public const string Maximum = "Maximum"; + public const string Total = "Total"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs deleted file mode 100644 index 72fcf7333fdf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrimaryAggregationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrimaryAggregationType. - /// - public sealed class PrimaryAggregationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PrimaryAggregationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PrimaryAggregationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrimaryAggregationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrimaryAggregationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs index e37cf2e600ea..79ae75393c7c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrincipalType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrincipalTypeConverter))] - public struct PrincipalType : System.IEquatable + public static class PrincipalType { - private PrincipalType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrincipalType User = "User"; - - public static readonly PrincipalType Group = "Group"; - - public static readonly PrincipalType Application = "Application"; - - - /// - /// Underlying value of enum PrincipalType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrincipalType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrincipalType - /// - public bool Equals(PrincipalType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PrincipalType - /// - public static implicit operator PrincipalType(string value) - { - return new PrincipalType(value); - } - - /// - /// Implicit operator to convert PrincipalType to string - /// - public static implicit operator string(PrincipalType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrincipalType - /// - public static bool operator == (PrincipalType e1, PrincipalType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrincipalType - /// - public static bool operator != (PrincipalType e1, PrincipalType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrincipalType - /// - public override bool Equals(object obj) - { - return obj is PrincipalType && Equals((PrincipalType)obj); - } - - /// - /// Returns for hashCode PrincipalType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string User = "User"; + public const string Group = "Group"; + public const string Application = "Application"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs deleted file mode 100644 index d8ea923ba500..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrincipalType. - /// - public sealed class PrincipalTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PrincipalType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrincipalType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PrincipalType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrincipalType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrincipalType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs index 7d429e5f86b5..1e5b5bd72283 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 09f479a5dad3..86d661659397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs index 9ef001d311a0..8b51147cfcf2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,104 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] - public struct PrivateEndpointProvisioningState : System.IEquatable + public static class PrivateEndpointProvisioningState { - private PrivateEndpointProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateEndpointProvisioningState Approving = "Approving"; - - public static readonly PrivateEndpointProvisioningState Ready = "Ready"; - - public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; - - public static readonly PrivateEndpointProvisioningState Failed = "Failed"; - - public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; - - - /// - /// Underlying value of enum PrivateEndpointProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrivateEndpointProvisioningState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateEndpointProvisioningState - /// - public bool Equals(PrivateEndpointProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateEndpointProvisioningState - /// - public static implicit operator PrivateEndpointProvisioningState(string value) - { - return new PrivateEndpointProvisioningState(value); - } - - /// - /// Implicit operator to convert PrivateEndpointProvisioningState to - /// string - /// - public static implicit operator string(PrivateEndpointProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrivateEndpointProvisioningState - /// - public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrivateEndpointProvisioningState - /// - public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrivateEndpointProvisioningState - /// - public override bool Equals(object obj) - { - return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); - } - - /// - /// Returns for hashCode PrivateEndpointProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approving = "Approving"; + public const string Ready = "Ready"; + public const string Dropping = "Dropping"; + public const string Failed = "Failed"; + public const string Rejecting = "Rejecting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs deleted file mode 100644 index 4aba156c0b1e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateEndpointProvisioningState. - /// - public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateEndpointProvisioningState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateEndpointProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateEndpointProvisioningState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index e5f7a162b289..65076ffb9e33 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,103 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] - public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable + public static class PrivateLinkServiceConnectionStateActionsRequire { - private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; - - - /// - /// Underlying value of enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) - { - return new PrivateLinkServiceConnectionStateActionsRequire(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateActionsRequire to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); - } - - /// - /// Returns for hashCode - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs deleted file mode 100644 index 11ba9fac5962..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. - /// - public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateActionsRequire by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateActionsRequire. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for - /// PrivateLinkServiceConnectionStateActionsRequire for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index 35c59ae42bc3..b37af54682f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) + public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public PrivateLinkServiceConnectionStateStatus Status { get; set; } + public string Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } + public string ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,6 +77,10 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 34bc540aa78d..625f7c0aed92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,106 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] - public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable + public static class PrivateLinkServiceConnectionStateStatus { - private PrivateLinkServiceConnectionStateStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; - - public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; - - public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; - - public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; - - - /// - /// Underlying value of enum PrivateLinkServiceConnectionStateStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateLinkServiceConnectionStateStatus - /// - public bool Equals(PrivateLinkServiceConnectionStateStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateStatus - /// - public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) - { - return new PrivateLinkServiceConnectionStateStatus(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateStatus to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateStatus - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); - } - - /// - /// Returns for hashCode PrivateLinkServiceConnectionStateStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approved = "Approved"; + public const string Pending = "Pending"; + public const string Rejected = "Rejected"; + public const string Disconnected = "Disconnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs deleted file mode 100644 index 5b6c95b39411..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateStatus. - /// - public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs index e8d6fbb8da78..86dff5006da9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ProvisioningStateConverter))] - public struct ProvisioningState : System.IEquatable + public static class ProvisioningState { - private ProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ProvisioningState Created = "Created"; - - public static readonly ProvisioningState InProgress = "InProgress"; - - public static readonly ProvisioningState Succeeded = "Succeeded"; - - public static readonly ProvisioningState Failed = "Failed"; - - public static readonly ProvisioningState Canceled = "Canceled"; - - - /// - /// Underlying value of enum ProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ProvisioningState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ProvisioningState - /// - public bool Equals(ProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ProvisioningState - /// - public static implicit operator ProvisioningState(string value) - { - return new ProvisioningState(value); - } - - /// - /// Implicit operator to convert ProvisioningState to string - /// - public static implicit operator string(ProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ProvisioningState - /// - public static bool operator == (ProvisioningState e1, ProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ProvisioningState - /// - public static bool operator != (ProvisioningState e1, ProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ProvisioningState - /// - public override bool Equals(object obj) - { - return obj is ProvisioningState && Equals((ProvisioningState)obj); - } - - /// - /// Returns for hashCode ProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs deleted file mode 100644 index 1daf14e3574a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ProvisioningStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ProvisioningState. - /// - public sealed class ProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ProvisioningState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ProvisioningState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs index 984b87556cad..6f5c2866a52c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricInterval.cs @@ -39,7 +39,7 @@ public QueryMetricInterval() /// interval. /// List of metric objects for this /// interval - public QueryMetricInterval(string intervalStartTime = default(string), QueryTimeGrainType? intervalType = default(QueryTimeGrainType?), long? executionCount = default(long?), IList metrics = default(IList)) + public QueryMetricInterval(string intervalStartTime = default(string), string intervalType = default(string), long? executionCount = default(long?), IList metrics = default(IList)) { IntervalStartTime = intervalStartTime; IntervalType = intervalType; @@ -63,7 +63,7 @@ public QueryMetricInterval() /// Gets interval type (length). Possible values include: 'PT1H', 'P1D' /// [JsonProperty(PropertyName = "intervalType")] - public QueryTimeGrainType? IntervalType { get; private set; } + public string IntervalType { get; private set; } /// /// Gets execution count of a query in this interval. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs index 28854ae5333e..37d721a565d9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricProperties.cs @@ -45,7 +45,7 @@ public QueryMetricProperties() /// used over the interval. /// Metric value when stdev aggregate function is /// used over the interval. - public QueryMetricProperties(string name = default(string), string displayName = default(string), QueryMetricUnitType? unit = default(QueryMetricUnitType?), double? value = default(double?), double? min = default(double?), double? max = default(double?), double? avg = default(double?), double? sum = default(double?), double? stdev = default(double?)) + public QueryMetricProperties(string name = default(string), string displayName = default(string), string unit = default(string), double? value = default(double?), double? min = default(double?), double? max = default(double?), double? avg = default(double?), double? sum = default(double?), double? stdev = default(double?)) { Name = name; DisplayName = displayName; @@ -81,7 +81,7 @@ public QueryMetricProperties() /// 'KB', 'microseconds', 'count' /// [JsonProperty(PropertyName = "unit")] - public QueryMetricUnitType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the value of the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs index 8394639819bf..e2294cbf8301 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitType.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for QueryMetricUnitType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(QueryMetricUnitTypeConverter))] - public struct QueryMetricUnitType : System.IEquatable + public static class QueryMetricUnitType { - private QueryMetricUnitType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly QueryMetricUnitType Percentage = "percentage"; - - public static readonly QueryMetricUnitType KB = "KB"; - - public static readonly QueryMetricUnitType Microseconds = "microseconds"; - - public static readonly QueryMetricUnitType Count = "count"; - - - /// - /// Underlying value of enum QueryMetricUnitType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for QueryMetricUnitType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type QueryMetricUnitType - /// - public bool Equals(QueryMetricUnitType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to QueryMetricUnitType - /// - public static implicit operator QueryMetricUnitType(string value) - { - return new QueryMetricUnitType(value); - } - - /// - /// Implicit operator to convert QueryMetricUnitType to string - /// - public static implicit operator string(QueryMetricUnitType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum QueryMetricUnitType - /// - public static bool operator == (QueryMetricUnitType e1, QueryMetricUnitType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum QueryMetricUnitType - /// - public static bool operator != (QueryMetricUnitType e1, QueryMetricUnitType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for QueryMetricUnitType - /// - public override bool Equals(object obj) - { - return obj is QueryMetricUnitType && Equals((QueryMetricUnitType)obj); - } - - /// - /// Returns for hashCode QueryMetricUnitType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Percentage = "percentage"; + public const string KB = "KB"; + public const string Microseconds = "microseconds"; + public const string Count = "count"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs deleted file mode 100644 index 37fe90532ca1..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryMetricUnitTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for QueryMetricUnitType. - /// - public sealed class QueryMetricUnitTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to QueryMetricUnitType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(QueryMetricUnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to QueryMetricUnitType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (QueryMetricUnitType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for QueryMetricUnitType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs index 6f8c6d983db0..287ac8783790 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for QueryTimeGrainType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(QueryTimeGrainTypeConverter))] - public struct QueryTimeGrainType : System.IEquatable + public static class QueryTimeGrainType { - private QueryTimeGrainType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly QueryTimeGrainType PT1H = "PT1H"; - - public static readonly QueryTimeGrainType P1D = "P1D"; - - - /// - /// Underlying value of enum QueryTimeGrainType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for QueryTimeGrainType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type QueryTimeGrainType - /// - public bool Equals(QueryTimeGrainType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to QueryTimeGrainType - /// - public static implicit operator QueryTimeGrainType(string value) - { - return new QueryTimeGrainType(value); - } - - /// - /// Implicit operator to convert QueryTimeGrainType to string - /// - public static implicit operator string(QueryTimeGrainType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum QueryTimeGrainType - /// - public static bool operator == (QueryTimeGrainType e1, QueryTimeGrainType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum QueryTimeGrainType - /// - public static bool operator != (QueryTimeGrainType e1, QueryTimeGrainType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for QueryTimeGrainType - /// - public override bool Equals(object obj) - { - return obj is QueryTimeGrainType && Equals((QueryTimeGrainType)obj); - } - - /// - /// Returns for hashCode QueryTimeGrainType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string PT1H = "PT1H"; + public const string P1D = "P1D"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs deleted file mode 100644 index c0496d64d18d..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/QueryTimeGrainTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for QueryTimeGrainType. - /// - public sealed class QueryTimeGrainTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to QueryTimeGrainType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(QueryTimeGrainType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to QueryTimeGrainType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (QueryTimeGrainType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for QueryTimeGrainType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 736146c6c40e..4d78fadf1980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] - public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable + public static class ReadOnlyEndpointFailoverPolicy { - private ReadOnlyEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; - - public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; - - - /// - /// Underlying value of enum ReadOnlyEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadOnlyEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadOnlyEndpointFailoverPolicy - /// - public bool Equals(ReadOnlyEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadOnlyEndpointFailoverPolicy - /// - public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) - { - return new ReadOnlyEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadOnlyEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs deleted file mode 100644 index f2b2352a5cee..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadOnlyEndpointFailoverPolicy. - /// - public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadOnlyEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadOnlyEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index c3b384a8035e..1ea812a89b20 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] - public struct ReadWriteEndpointFailoverPolicy : System.IEquatable + public static class ReadWriteEndpointFailoverPolicy { - private ReadWriteEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; - - public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; - - - /// - /// Underlying value of enum ReadWriteEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadWriteEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadWriteEndpointFailoverPolicy - /// - public bool Equals(ReadWriteEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadWriteEndpointFailoverPolicy - /// - public static implicit operator ReadWriteEndpointFailoverPolicy(string value) - { - return new ReadWriteEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadWriteEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadWriteEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Manual = "Manual"; + public const string Automatic = "Automatic"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs deleted file mode 100644 index 953d3b242b00..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadWriteEndpointFailoverPolicy. - /// - public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadWriteEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadWriteEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs index e7056b35d92f..f507c8111eef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentState.cs @@ -10,122 +10,25 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for RecommendedActionCurrentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(RecommendedActionCurrentStateConverter))] - public struct RecommendedActionCurrentState : System.IEquatable + public static class RecommendedActionCurrentState { - private RecommendedActionCurrentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly RecommendedActionCurrentState Active = "Active"; - - public static readonly RecommendedActionCurrentState Pending = "Pending"; - - public static readonly RecommendedActionCurrentState Executing = "Executing"; - - public static readonly RecommendedActionCurrentState Verifying = "Verifying"; - - public static readonly RecommendedActionCurrentState PendingRevert = "PendingRevert"; - - public static readonly RecommendedActionCurrentState RevertCancelled = "RevertCancelled"; - - public static readonly RecommendedActionCurrentState Reverting = "Reverting"; - - public static readonly RecommendedActionCurrentState Reverted = "Reverted"; - - public static readonly RecommendedActionCurrentState Ignored = "Ignored"; - - public static readonly RecommendedActionCurrentState Expired = "Expired"; - - public static readonly RecommendedActionCurrentState Monitoring = "Monitoring"; - - public static readonly RecommendedActionCurrentState Resolved = "Resolved"; - - public static readonly RecommendedActionCurrentState Success = "Success"; - - public static readonly RecommendedActionCurrentState Error = "Error"; - - - /// - /// Underlying value of enum RecommendedActionCurrentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for RecommendedActionCurrentState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type RecommendedActionCurrentState - /// - public bool Equals(RecommendedActionCurrentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// RecommendedActionCurrentState - /// - public static implicit operator RecommendedActionCurrentState(string value) - { - return new RecommendedActionCurrentState(value); - } - - /// - /// Implicit operator to convert RecommendedActionCurrentState to - /// string - /// - public static implicit operator string(RecommendedActionCurrentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum RecommendedActionCurrentState - /// - public static bool operator == (RecommendedActionCurrentState e1, RecommendedActionCurrentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum RecommendedActionCurrentState - /// - public static bool operator != (RecommendedActionCurrentState e1, RecommendedActionCurrentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for RecommendedActionCurrentState - /// - public override bool Equals(object obj) - { - return obj is RecommendedActionCurrentState && Equals((RecommendedActionCurrentState)obj); - } - - /// - /// Returns for hashCode RecommendedActionCurrentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Active = "Active"; + public const string Pending = "Pending"; + public const string Executing = "Executing"; + public const string Verifying = "Verifying"; + public const string PendingRevert = "PendingRevert"; + public const string RevertCancelled = "RevertCancelled"; + public const string Reverting = "Reverting"; + public const string Reverted = "Reverted"; + public const string Ignored = "Ignored"; + public const string Expired = "Expired"; + public const string Monitoring = "Monitoring"; + public const string Resolved = "Resolved"; + public const string Success = "Success"; + public const string Error = "Error"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs deleted file mode 100644 index 5cb28b1e1a5c..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionCurrentStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for RecommendedActionCurrentState. - /// - public sealed class RecommendedActionCurrentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// RecommendedActionCurrentState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(RecommendedActionCurrentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// RecommendedActionCurrentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (RecommendedActionCurrentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for RecommendedActionCurrentState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs index d4256c704a0a..28ee87e2af3c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RecommendedActionStateInfo.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -57,7 +58,7 @@ public RecommendedActionStateInfo() /// include: 'User', 'System' /// Gets the time when the state was last /// modified - public RecommendedActionStateInfo(RecommendedActionCurrentState currentValue, RecommendedActionInitiatedBy? actionInitiatedBy = default(RecommendedActionInitiatedBy?), System.DateTime? lastModified = default(System.DateTime?)) + public RecommendedActionStateInfo(string currentValue, RecommendedActionInitiatedBy? actionInitiatedBy = default(RecommendedActionInitiatedBy?), System.DateTime? lastModified = default(System.DateTime?)) { CurrentValue = currentValue; ActionInitiatedBy = actionInitiatedBy; @@ -91,7 +92,7 @@ public RecommendedActionStateInfo() /// 'Ignored', 'Expired', 'Monitoring', 'Resolved', 'Success', 'Error' /// [JsonProperty(PropertyName = "currentValue")] - public RecommendedActionCurrentState CurrentValue { get; set; } + public string CurrentValue { get; set; } /// /// Gets who initiated the execution of this recommended action. @@ -113,11 +114,15 @@ public RecommendedActionStateInfo() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (CurrentValue == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "CurrentValue"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs index 68174f6becf5..f7a52812ab85 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReplicaTypeConverter))] - public struct ReplicaType : System.IEquatable + public static class ReplicaType { - private ReplicaType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReplicaType Primary = "Primary"; - - public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; - - - /// - /// Underlying value of enum ReplicaType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReplicaType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReplicaType - /// - public bool Equals(ReplicaType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ReplicaType - /// - public static implicit operator ReplicaType(string value) - { - return new ReplicaType(value); - } - - /// - /// Implicit operator to convert ReplicaType to string - /// - public static implicit operator string(ReplicaType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReplicaType - /// - public static bool operator == (ReplicaType e1, ReplicaType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReplicaType - /// - public static bool operator != (ReplicaType e1, ReplicaType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReplicaType - /// - public override bool Equals(object obj) - { - return obj is ReplicaType && Equals((ReplicaType)obj); - } - - /// - /// Returns for hashCode ReplicaType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string ReadableSecondary = "ReadableSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs deleted file mode 100644 index 2dc81d8fbb2b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicaTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReplicaType. - /// - public sealed class ReplicaTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ReplicaType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ReplicaType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReplicaType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReplicaType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs index 098765f9cdd2..ec615258eb11 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancy.cs @@ -10,100 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for RequestedBackupStorageRedundancy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(RequestedBackupStorageRedundancyConverter))] - public struct RequestedBackupStorageRedundancy : System.IEquatable + public static class RequestedBackupStorageRedundancy { - private RequestedBackupStorageRedundancy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly RequestedBackupStorageRedundancy Geo = "Geo"; - - public static readonly RequestedBackupStorageRedundancy Local = "Local"; - - public static readonly RequestedBackupStorageRedundancy Zone = "Zone"; - - - /// - /// Underlying value of enum RequestedBackupStorageRedundancy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for RequestedBackupStorageRedundancy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type RequestedBackupStorageRedundancy - /// - public bool Equals(RequestedBackupStorageRedundancy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// RequestedBackupStorageRedundancy - /// - public static implicit operator RequestedBackupStorageRedundancy(string value) - { - return new RequestedBackupStorageRedundancy(value); - } - - /// - /// Implicit operator to convert RequestedBackupStorageRedundancy to - /// string - /// - public static implicit operator string(RequestedBackupStorageRedundancy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum RequestedBackupStorageRedundancy - /// - public static bool operator == (RequestedBackupStorageRedundancy e1, RequestedBackupStorageRedundancy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum RequestedBackupStorageRedundancy - /// - public static bool operator != (RequestedBackupStorageRedundancy e1, RequestedBackupStorageRedundancy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for RequestedBackupStorageRedundancy - /// - public override bool Equals(object obj) - { - return obj is RequestedBackupStorageRedundancy && Equals((RequestedBackupStorageRedundancy)obj); - } - - /// - /// Returns for hashCode RequestedBackupStorageRedundancy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Geo = "Geo"; + public const string Local = "Local"; + public const string Zone = "Zone"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs deleted file mode 100644 index bd88dfd6d84e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/RequestedBackupStorageRedundancyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for RequestedBackupStorageRedundancy. - /// - public sealed class RequestedBackupStorageRedundancyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// RequestedBackupStorageRedundancy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(RequestedBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// RequestedBackupStorageRedundancy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (RequestedBackupStorageRedundancy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for RequestedBackupStorageRedundancy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs index 5cf33f5f468f..f1c2678f640b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentity.cs @@ -41,7 +41,7 @@ public ResourceIdentity() /// 'None', 'SystemAssigned', 'UserAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) { UserAssignedIdentities = userAssignedIdentities; PrincipalId = principalId; @@ -75,7 +75,7 @@ public ResourceIdentity() /// 'SystemAssigned', 'UserAssigned' /// [JsonProperty(PropertyName = "type")] - public IdentityType? Type { get; set; } + public string Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs index 34596cb9ee77..6df0be98d2ba 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs @@ -43,7 +43,7 @@ public ResourceIdentityWithUserAssignedIdentities() /// 'None', 'SystemAssigned', 'UserAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentityWithUserAssignedIdentities(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentityWithUserAssignedIdentities(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) { UserAssignedIdentities = userAssignedIdentities; PrincipalId = principalId; @@ -77,7 +77,7 @@ public ResourceIdentityWithUserAssignedIdentities() /// 'SystemAssigned', 'UserAssigned' /// [JsonProperty(PropertyName = "type")] - public IdentityType? Type { get; set; } + public string Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs index d0a024d9e40a..92a7ff7a1560 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleName.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SampleName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SampleNameConverter))] - public struct SampleName : System.IEquatable + public static class SampleName { - private SampleName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; - - public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; - - public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; - - - /// - /// Underlying value of enum SampleName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SampleName - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SampleName - /// - public bool Equals(SampleName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SampleName - /// - public static implicit operator SampleName(string value) - { - return new SampleName(value); - } - - /// - /// Implicit operator to convert SampleName to string - /// - public static implicit operator string(SampleName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SampleName - /// - public static bool operator == (SampleName e1, SampleName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SampleName - /// - public static bool operator != (SampleName e1, SampleName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SampleName - /// - public override bool Equals(object obj) - { - return obj is SampleName && Equals((SampleName)obj); - } - - /// - /// Returns for hashCode SampleName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AdventureWorksLT = "AdventureWorksLT"; + public const string WideWorldImportersStd = "WideWorldImportersStd"; + public const string WideWorldImportersFull = "WideWorldImportersFull"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs deleted file mode 100644 index fb7b9b68f517..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SampleNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SampleName. - /// - public sealed class SampleNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SampleName by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SampleName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SampleName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SampleName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs index 47e9bc284337..b7cbecb59878 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SecondaryType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SecondaryTypeConverter))] - public struct SecondaryType : System.IEquatable + public static class SecondaryType { - private SecondaryType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SecondaryType Geo = "Geo"; - - public static readonly SecondaryType Named = "Named"; - - - /// - /// Underlying value of enum SecondaryType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SecondaryType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SecondaryType - /// - public bool Equals(SecondaryType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SecondaryType - /// - public static implicit operator SecondaryType(string value) - { - return new SecondaryType(value); - } - - /// - /// Implicit operator to convert SecondaryType to string - /// - public static implicit operator string(SecondaryType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SecondaryType - /// - public static bool operator == (SecondaryType e1, SecondaryType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SecondaryType - /// - public static bool operator != (SecondaryType e1, SecondaryType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SecondaryType - /// - public override bool Equals(object obj) - { - return obj is SecondaryType && Equals((SecondaryType)obj); - } - - /// - /// Returns for hashCode SecondaryType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Geo = "Geo"; + public const string Named = "Named"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs deleted file mode 100644 index a80d05f74028..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SecondaryTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SecondaryType. - /// - public sealed class SecondaryTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SecondaryType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SecondaryType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SecondaryType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SecondaryType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SecondaryType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs index 33bf64adf1d1..cb46c725411e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs @@ -74,7 +74,7 @@ public Server() /// restrict outbound network access for this server. Value is /// optional but if passed in, must be 'Enabled' or 'Disabled'. /// Possible values include: 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerNetworkAccessFlag? publicNetworkAccess = default(ServerNetworkAccessFlag?), ServerWorkspaceFeature? workspaceFeature = default(ServerWorkspaceFeature?), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), ServerNetworkAccessFlag? restrictOutboundNetworkAccess = default(ServerNetworkAccessFlag?)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string)) : base(location, id, name, type, tags) { Identity = identity; @@ -165,7 +165,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Gets whether or not existing server has a workspace created and if @@ -173,7 +173,7 @@ public Server() /// 'Connected', 'Disconnected' /// [JsonProperty(PropertyName = "properties.workspaceFeature")] - public ServerWorkspaceFeature? WorkspaceFeature { get; private set; } + public string WorkspaceFeature { get; private set; } /// /// Gets or sets the resource id of a user assigned identity to be used @@ -206,7 +206,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.restrictOutboundNetworkAccess")] - public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } + public string RestrictOutboundNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs index 90f0f542a2af..8c8c94543a63 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs @@ -42,7 +42,7 @@ public ServerExternalAdministrator() /// Tenant ID of the administrator. /// Azure Active Directory only /// Authentication enabled. - public ServerExternalAdministrator(AdministratorType? administratorType = default(AdministratorType?), PrincipalType? principalType = default(PrincipalType?), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) + public ServerExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?)) { AdministratorType = administratorType; PrincipalType = principalType; @@ -63,14 +63,14 @@ public ServerExternalAdministrator() /// include: 'ActiveDirectory' /// [JsonProperty(PropertyName = "administratorType")] - public AdministratorType? AdministratorType { get; set; } + public string AdministratorType { get; set; } /// /// Gets or sets principal Type of the sever administrator. Possible /// values include: 'User', 'Group', 'Application' /// [JsonProperty(PropertyName = "principalType")] - public PrincipalType? PrincipalType { get; set; } + public string PrincipalType { get; set; } /// /// Gets or sets login name of the server administrator. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs index ebdf3e84b568..d343d862e29f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs @@ -48,7 +48,7 @@ public ServerKey() /// The server key creation date. /// Key auto rotation opt-in flag. /// Either true or false. - public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) + public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?)) : base(id, name, type) { Kind = kind; @@ -92,7 +92,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. If the ServerKeyType is @@ -127,6 +127,10 @@ public ServerKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs index 23200b653c25..3358ddccad1e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerKeyTypeConverter))] - public struct ServerKeyType : System.IEquatable + public static class ServerKeyType { - private ServerKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; - - public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; - - - /// - /// Underlying value of enum ServerKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerKeyType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerKeyType - /// - public bool Equals(ServerKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerKeyType - /// - public static implicit operator ServerKeyType(string value) - { - return new ServerKeyType(value); - } - - /// - /// Implicit operator to convert ServerKeyType to string - /// - public static implicit operator string(ServerKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerKeyType - /// - public static bool operator == (ServerKeyType e1, ServerKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerKeyType - /// - public static bool operator != (ServerKeyType e1, ServerKeyType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerKeyType - /// - public override bool Equals(object obj) - { - return obj is ServerKeyType && Equals((ServerKeyType)obj); - } - - /// - /// Returns for hashCode ServerKeyType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string ServiceManaged = "ServiceManaged"; + public const string AzureKeyVault = "AzureKeyVault"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs deleted file mode 100644 index eaaa4bf4d7cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerKeyType. - /// - public sealed class ServerKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs index 3f14be447a08..d7c9fb5f6c51 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlag.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerNetworkAccessFlag. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerNetworkAccessFlagConverter))] - public struct ServerNetworkAccessFlag : System.IEquatable + public static class ServerNetworkAccessFlag { - private ServerNetworkAccessFlag(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerNetworkAccessFlag Enabled = "Enabled"; - - public static readonly ServerNetworkAccessFlag Disabled = "Disabled"; - - - /// - /// Underlying value of enum ServerNetworkAccessFlag - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerNetworkAccessFlag - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerNetworkAccessFlag - /// - public bool Equals(ServerNetworkAccessFlag e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerNetworkAccessFlag - /// - public static implicit operator ServerNetworkAccessFlag(string value) - { - return new ServerNetworkAccessFlag(value); - } - - /// - /// Implicit operator to convert ServerNetworkAccessFlag to string - /// - public static implicit operator string(ServerNetworkAccessFlag e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerNetworkAccessFlag - /// - public static bool operator == (ServerNetworkAccessFlag e1, ServerNetworkAccessFlag e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerNetworkAccessFlag - /// - public static bool operator != (ServerNetworkAccessFlag e1, ServerNetworkAccessFlag e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerNetworkAccessFlag - /// - public override bool Equals(object obj) - { - return obj is ServerNetworkAccessFlag && Equals((ServerNetworkAccessFlag)obj); - } - - /// - /// Returns for hashCode ServerNetworkAccessFlag - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs deleted file mode 100644 index df3bcdae7da8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerNetworkAccessFlagConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerNetworkAccessFlag. - /// - public sealed class ServerNetworkAccessFlagConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerNetworkAccessFlag - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerNetworkAccessFlag).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerNetworkAccessFlag. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerNetworkAccessFlag)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerNetworkAccessFlag for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs index d518d4fd8e7d..fe17244072e8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs @@ -56,7 +56,7 @@ public ServerOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public ServerOperation(string id = default(string), string name = default(string), string type = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public ServerOperation(string id = default(string), string name = default(string), string type = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { Operation = operation; @@ -116,7 +116,7 @@ public ServerOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs index b641288de04e..b5b5251a2142 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs @@ -67,7 +67,7 @@ public ServerUpdate() /// optional but if passed in, must be 'Enabled' or 'Disabled'. /// Possible values include: 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(ResourceIdentity identity = default(ResourceIdentity), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerNetworkAccessFlag? publicNetworkAccess = default(ServerNetworkAccessFlag?), ServerWorkspaceFeature? workspaceFeature = default(ServerWorkspaceFeature?), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), ServerNetworkAccessFlag? restrictOutboundNetworkAccess = default(ServerNetworkAccessFlag?), IDictionary tags = default(IDictionary)) + public ServerUpdate(ResourceIdentity identity = default(ResourceIdentity), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string), IDictionary tags = default(IDictionary)) { Identity = identity; AdministratorLogin = administratorLogin; @@ -150,7 +150,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerNetworkAccessFlag? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Gets whether or not existing server has a workspace created and if @@ -158,7 +158,7 @@ public ServerUpdate() /// 'Connected', 'Disconnected' /// [JsonProperty(PropertyName = "properties.workspaceFeature")] - public ServerWorkspaceFeature? WorkspaceFeature { get; private set; } + public string WorkspaceFeature { get; private set; } /// /// Gets or sets the resource id of a user assigned identity to be used @@ -191,7 +191,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.restrictOutboundNetworkAccess")] - public ServerNetworkAccessFlag? RestrictOutboundNetworkAccess { get; set; } + public string RestrictOutboundNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs index e69eae3f06d0..568b5b9b66f3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeature.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerWorkspaceFeature. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerWorkspaceFeatureConverter))] - public struct ServerWorkspaceFeature : System.IEquatable + public static class ServerWorkspaceFeature { - private ServerWorkspaceFeature(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerWorkspaceFeature Connected = "Connected"; - - public static readonly ServerWorkspaceFeature Disconnected = "Disconnected"; - - - /// - /// Underlying value of enum ServerWorkspaceFeature - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerWorkspaceFeature - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerWorkspaceFeature - /// - public bool Equals(ServerWorkspaceFeature e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerWorkspaceFeature - /// - public static implicit operator ServerWorkspaceFeature(string value) - { - return new ServerWorkspaceFeature(value); - } - - /// - /// Implicit operator to convert ServerWorkspaceFeature to string - /// - public static implicit operator string(ServerWorkspaceFeature e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerWorkspaceFeature - /// - public static bool operator == (ServerWorkspaceFeature e1, ServerWorkspaceFeature e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerWorkspaceFeature - /// - public static bool operator != (ServerWorkspaceFeature e1, ServerWorkspaceFeature e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerWorkspaceFeature - /// - public override bool Equals(object obj) - { - return obj is ServerWorkspaceFeature && Equals((ServerWorkspaceFeature)obj); - } - - /// - /// Returns for hashCode ServerWorkspaceFeature - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Connected = "Connected"; + public const string Disconnected = "Disconnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs deleted file mode 100644 index 41d8f4c0c94c..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerWorkspaceFeatureConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerWorkspaceFeature. - /// - public sealed class ServerWorkspaceFeatureConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerWorkspaceFeature by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerWorkspaceFeature).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerWorkspaceFeature. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerWorkspaceFeature)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerWorkspaceFeature for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs index 311be0af5dd0..befe17ba9bbf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveName.cs @@ -10,222 +10,76 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServiceObjectiveNameConverter))] - public struct ServiceObjectiveName : System.IEquatable + public static class ServiceObjectiveName { - private ServiceObjectiveName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServiceObjectiveName System = "System"; - - public static readonly ServiceObjectiveName System0 = "System0"; - - public static readonly ServiceObjectiveName System1 = "System1"; - - public static readonly ServiceObjectiveName System2 = "System2"; - - public static readonly ServiceObjectiveName System3 = "System3"; - - public static readonly ServiceObjectiveName System4 = "System4"; - - public static readonly ServiceObjectiveName System2L = "System2L"; - - public static readonly ServiceObjectiveName System3L = "System3L"; - - public static readonly ServiceObjectiveName System4L = "System4L"; - - public static readonly ServiceObjectiveName Free = "Free"; - - public static readonly ServiceObjectiveName Basic = "Basic"; - - public static readonly ServiceObjectiveName S0 = "S0"; - - public static readonly ServiceObjectiveName S1 = "S1"; - - public static readonly ServiceObjectiveName S2 = "S2"; - - public static readonly ServiceObjectiveName S3 = "S3"; - - public static readonly ServiceObjectiveName S4 = "S4"; - - public static readonly ServiceObjectiveName S6 = "S6"; - - public static readonly ServiceObjectiveName S7 = "S7"; - - public static readonly ServiceObjectiveName S9 = "S9"; - - public static readonly ServiceObjectiveName S12 = "S12"; - - public static readonly ServiceObjectiveName P1 = "P1"; - - public static readonly ServiceObjectiveName P2 = "P2"; - - public static readonly ServiceObjectiveName P3 = "P3"; - - public static readonly ServiceObjectiveName P4 = "P4"; - - public static readonly ServiceObjectiveName P6 = "P6"; - - public static readonly ServiceObjectiveName P11 = "P11"; - - public static readonly ServiceObjectiveName P15 = "P15"; - - public static readonly ServiceObjectiveName PRS1 = "PRS1"; - - public static readonly ServiceObjectiveName PRS2 = "PRS2"; - - public static readonly ServiceObjectiveName PRS4 = "PRS4"; - - public static readonly ServiceObjectiveName PRS6 = "PRS6"; - - public static readonly ServiceObjectiveName DW100 = "DW100"; - - public static readonly ServiceObjectiveName DW200 = "DW200"; - - public static readonly ServiceObjectiveName DW300 = "DW300"; - - public static readonly ServiceObjectiveName DW400 = "DW400"; - - public static readonly ServiceObjectiveName DW500 = "DW500"; - - public static readonly ServiceObjectiveName DW600 = "DW600"; - - public static readonly ServiceObjectiveName DW1000 = "DW1000"; - - public static readonly ServiceObjectiveName DW1200 = "DW1200"; - - public static readonly ServiceObjectiveName DW1000c = "DW1000c"; - - public static readonly ServiceObjectiveName DW1500 = "DW1500"; - - public static readonly ServiceObjectiveName DW1500c = "DW1500c"; - - public static readonly ServiceObjectiveName DW2000 = "DW2000"; - - public static readonly ServiceObjectiveName DW2000c = "DW2000c"; - - public static readonly ServiceObjectiveName DW3000 = "DW3000"; - - public static readonly ServiceObjectiveName DW2500c = "DW2500c"; - - public static readonly ServiceObjectiveName DW3000c = "DW3000c"; - - public static readonly ServiceObjectiveName DW6000 = "DW6000"; - - public static readonly ServiceObjectiveName DW5000c = "DW5000c"; - - public static readonly ServiceObjectiveName DW6000c = "DW6000c"; - - public static readonly ServiceObjectiveName DW7500c = "DW7500c"; - - public static readonly ServiceObjectiveName DW10000c = "DW10000c"; - - public static readonly ServiceObjectiveName DW15000c = "DW15000c"; - - public static readonly ServiceObjectiveName DW30000c = "DW30000c"; - - public static readonly ServiceObjectiveName DS100 = "DS100"; - - public static readonly ServiceObjectiveName DS200 = "DS200"; - - public static readonly ServiceObjectiveName DS300 = "DS300"; - - public static readonly ServiceObjectiveName DS400 = "DS400"; - - public static readonly ServiceObjectiveName DS500 = "DS500"; - - public static readonly ServiceObjectiveName DS600 = "DS600"; - - public static readonly ServiceObjectiveName DS1000 = "DS1000"; - - public static readonly ServiceObjectiveName DS1200 = "DS1200"; - - public static readonly ServiceObjectiveName DS1500 = "DS1500"; - - public static readonly ServiceObjectiveName DS2000 = "DS2000"; - - public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; - - - /// - /// Underlying value of enum ServiceObjectiveName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServiceObjectiveName - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServiceObjectiveName - /// - public bool Equals(ServiceObjectiveName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServiceObjectiveName - /// - public static implicit operator ServiceObjectiveName(string value) - { - return new ServiceObjectiveName(value); - } - - /// - /// Implicit operator to convert ServiceObjectiveName to string - /// - public static implicit operator string(ServiceObjectiveName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServiceObjectiveName - /// - public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServiceObjectiveName - /// - public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServiceObjectiveName - /// - public override bool Equals(object obj) - { - return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); - } - - /// - /// Returns for hashCode ServiceObjectiveName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string System = "System"; + public const string System0 = "System0"; + public const string System1 = "System1"; + public const string System2 = "System2"; + public const string System3 = "System3"; + public const string System4 = "System4"; + public const string System2L = "System2L"; + public const string System3L = "System3L"; + public const string System4L = "System4L"; + public const string Free = "Free"; + public const string Basic = "Basic"; + public const string S0 = "S0"; + public const string S1 = "S1"; + public const string S2 = "S2"; + public const string S3 = "S3"; + public const string S4 = "S4"; + public const string S6 = "S6"; + public const string S7 = "S7"; + public const string S9 = "S9"; + public const string S12 = "S12"; + public const string P1 = "P1"; + public const string P2 = "P2"; + public const string P3 = "P3"; + public const string P4 = "P4"; + public const string P6 = "P6"; + public const string P11 = "P11"; + public const string P15 = "P15"; + public const string PRS1 = "PRS1"; + public const string PRS2 = "PRS2"; + public const string PRS4 = "PRS4"; + public const string PRS6 = "PRS6"; + public const string DW100 = "DW100"; + public const string DW200 = "DW200"; + public const string DW300 = "DW300"; + public const string DW400 = "DW400"; + public const string DW500 = "DW500"; + public const string DW600 = "DW600"; + public const string DW1000 = "DW1000"; + public const string DW1200 = "DW1200"; + public const string DW1000c = "DW1000c"; + public const string DW1500 = "DW1500"; + public const string DW1500c = "DW1500c"; + public const string DW2000 = "DW2000"; + public const string DW2000c = "DW2000c"; + public const string DW3000 = "DW3000"; + public const string DW2500c = "DW2500c"; + public const string DW3000c = "DW3000c"; + public const string DW6000 = "DW6000"; + public const string DW5000c = "DW5000c"; + public const string DW6000c = "DW6000c"; + public const string DW7500c = "DW7500c"; + public const string DW10000c = "DW10000c"; + public const string DW15000c = "DW15000c"; + public const string DW30000c = "DW30000c"; + public const string DS100 = "DS100"; + public const string DS200 = "DS200"; + public const string DS300 = "DS300"; + public const string DS400 = "DS400"; + public const string DS500 = "DS500"; + public const string DS600 = "DS600"; + public const string DS1000 = "DS1000"; + public const string DS1200 = "DS1200"; + public const string DS1500 = "DS1500"; + public const string DS2000 = "DS2000"; + public const string ElasticPool = "ElasticPool"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs deleted file mode 100644 index a9fcced25ad5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServiceObjectiveNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServiceObjectiveName. - /// - public sealed class ServiceObjectiveNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServiceObjectiveName by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServiceObjectiveName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServiceObjectiveName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServiceObjectiveName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs index e3ff7d022675..0f4b019f4948 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public ServiceObjectiveName? ServiceLevelObjective { get; private set; } + public string ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs index 4714d226fb1c..f174ff85775d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageAccountTypeConverter))] - public struct StorageAccountType : System.IEquatable + public static class StorageAccountType { - private StorageAccountType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageAccountType GRS = "GRS"; - - public static readonly StorageAccountType LRS = "LRS"; - - public static readonly StorageAccountType ZRS = "ZRS"; - - - /// - /// Underlying value of enum StorageAccountType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageAccountType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageAccountType - /// - public bool Equals(StorageAccountType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageAccountType - /// - public static implicit operator StorageAccountType(string value) - { - return new StorageAccountType(value); - } - - /// - /// Implicit operator to convert StorageAccountType to string - /// - public static implicit operator string(StorageAccountType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageAccountType - /// - public static bool operator == (StorageAccountType e1, StorageAccountType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageAccountType - /// - public static bool operator != (StorageAccountType e1, StorageAccountType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for StorageAccountType - /// - public override bool Equals(object obj) - { - return obj is StorageAccountType && Equals((StorageAccountType)obj); - } - - /// - /// Returns for hashCode StorageAccountType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string GRS = "GRS"; + public const string LRS = "LRS"; + public const string ZRS = "ZRS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs deleted file mode 100644 index 64f6d37618d0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageAccountTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageAccountType. - /// - public sealed class StorageAccountTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageAccountType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageAccountType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageAccountType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageAccountType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs index c014207318b7..ccbd48d44a48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for StorageKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageKeyTypeConverter))] - public struct StorageKeyType : System.IEquatable + public static class StorageKeyType { - private StorageKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; - - public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; - - - /// - /// Underlying value of enum StorageKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageKeyType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageKeyType - /// - public bool Equals(StorageKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageKeyType - /// - public static implicit operator StorageKeyType(string value) - { - return new StorageKeyType(value); - } - - /// - /// Implicit operator to convert StorageKeyType to string - /// - public static implicit operator string(StorageKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageKeyType - /// - public static bool operator == (StorageKeyType e1, StorageKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageKeyType - /// - public static bool operator != (StorageKeyType e1, StorageKeyType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for StorageKeyType - /// - public override bool Equals(object obj) - { - return obj is StorageKeyType && Equals((StorageKeyType)obj); - } - - /// - /// Returns for hashCode StorageKeyType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SharedAccessKey = "SharedAccessKey"; + public const string StorageAccessKey = "StorageAccessKey"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs deleted file mode 100644 index b1a7b808de9a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/StorageKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageKeyType. - /// - public sealed class StorageKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs index 2f810854b151..dd27b72537d5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public SyncAgentState? State { get; private set; } + public string State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs index b9993a161b2e..075a8cd921cc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; private set; } + public string DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs index 3b0db8266163..3c0f38964739 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncAgentStateConverter))] - public struct SyncAgentState : System.IEquatable + public static class SyncAgentState { - private SyncAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncAgentState Online = "Online"; - - public static readonly SyncAgentState Offline = "Offline"; - - public static readonly SyncAgentState NeverConnected = "NeverConnected"; - - - /// - /// Underlying value of enum SyncAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncAgentState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncAgentState - /// - public bool Equals(SyncAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncAgentState - /// - public static implicit operator SyncAgentState(string value) - { - return new SyncAgentState(value); - } - - /// - /// Implicit operator to convert SyncAgentState to string - /// - public static implicit operator string(SyncAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncAgentState - /// - public static bool operator == (SyncAgentState e1, SyncAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncAgentState - /// - public static bool operator != (SyncAgentState e1, SyncAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncAgentState - /// - public override bool Equals(object obj) - { - return obj is SyncAgentState && Equals((SyncAgentState)obj); - } - - /// - /// Returns for hashCode SyncAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string NeverConnected = "NeverConnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs deleted file mode 100644 index 1aa815ca2c27..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncAgentState. - /// - public sealed class SyncAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs index d4109ae9cfb6..ce499c6de853 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] - public struct SyncConflictResolutionPolicy : System.IEquatable + public static class SyncConflictResolutionPolicy { - private SyncConflictResolutionPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; - - public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; - - - /// - /// Underlying value of enum SyncConflictResolutionPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncConflictResolutionPolicy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncConflictResolutionPolicy - /// - public bool Equals(SyncConflictResolutionPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncConflictResolutionPolicy - /// - public static implicit operator SyncConflictResolutionPolicy(string value) - { - return new SyncConflictResolutionPolicy(value); - } - - /// - /// Implicit operator to convert SyncConflictResolutionPolicy to string - /// - public static implicit operator string(SyncConflictResolutionPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncConflictResolutionPolicy - /// - public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncConflictResolutionPolicy - /// - public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncConflictResolutionPolicy - /// - public override bool Equals(object obj) - { - return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); - } - - /// - /// Returns for hashCode SyncConflictResolutionPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string HubWin = "HubWin"; + public const string MemberWin = "MemberWin"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs deleted file mode 100644 index b412bdc31b29..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncConflictResolutionPolicy. - /// - public sealed class SyncConflictResolutionPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// SyncConflictResolutionPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// SyncConflictResolutionPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncConflictResolutionPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs index cc19507a9657..67774a8584fd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirection.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncDirectionConverter))] - public struct SyncDirection : System.IEquatable + public static class SyncDirection { - private SyncDirection(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncDirection Bidirectional = "Bidirectional"; - - public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; - - public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; - - - /// - /// Underlying value of enum SyncDirection - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncDirection - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncDirection - /// - public bool Equals(SyncDirection e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncDirection - /// - public static implicit operator SyncDirection(string value) - { - return new SyncDirection(value); - } - - /// - /// Implicit operator to convert SyncDirection to string - /// - public static implicit operator string(SyncDirection e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncDirection - /// - public static bool operator == (SyncDirection e1, SyncDirection e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncDirection - /// - public static bool operator != (SyncDirection e1, SyncDirection e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncDirection - /// - public override bool Equals(object obj) - { - return obj is SyncDirection && Equals((SyncDirection)obj); - } - - /// - /// Returns for hashCode SyncDirection - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Bidirectional = "Bidirectional"; + public const string OneWayMemberToHub = "OneWayMemberToHub"; + public const string OneWayHubToMember = "OneWayHubToMember"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs deleted file mode 100644 index 8b3d0ea72510..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncDirectionConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncDirection. - /// - public sealed class SyncDirectionConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncDirection by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncDirection. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncDirection)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncDirection for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs index a9143597977d..fa9f57608078 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs @@ -60,7 +60,7 @@ public SyncGroup() /// connection is enabled. /// Private endpoint name of the sync /// group if use private link connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), Sku sku = default(Sku), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? enableConflictLogging = default(bool?), int? conflictLoggingRetentionInDays = default(int?), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), Sku sku = default(Sku), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? enableConflictLogging = default(bool?), int? conflictLoggingRetentionInDays = default(int?), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string)) : base(id, name, type) { Sku = sku; @@ -107,7 +107,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } + public string ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -133,7 +133,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncGroupState? SyncState { get; private set; } + public string SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs index b2a7136b00fb..f587146600e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public SyncGroupLogType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs index 091c9807c72e..fb3ce4637cfc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogType.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupLogTypeConverter))] - public struct SyncGroupLogType : System.IEquatable + public static class SyncGroupLogType { - private SyncGroupLogType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupLogType All = "All"; - - public static readonly SyncGroupLogType Error = "Error"; - - public static readonly SyncGroupLogType Warning = "Warning"; - - public static readonly SyncGroupLogType Success = "Success"; - - - /// - /// Underlying value of enum SyncGroupLogType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupLogType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupLogType - /// - public bool Equals(SyncGroupLogType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupLogType - /// - public static implicit operator SyncGroupLogType(string value) - { - return new SyncGroupLogType(value); - } - - /// - /// Implicit operator to convert SyncGroupLogType to string - /// - public static implicit operator string(SyncGroupLogType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupLogType - /// - public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupLogType - /// - public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupLogType - /// - public override bool Equals(object obj) - { - return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); - } - - /// - /// Returns for hashCode SyncGroupLogType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Success = "Success"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs deleted file mode 100644 index 224fd4dfab5f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupLogTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupLogType. - /// - public sealed class SyncGroupLogTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupLogType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupLogType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupLogType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupLogType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs index 9eddb525e19b..4367211c97bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupStateConverter))] - public struct SyncGroupState : System.IEquatable + public static class SyncGroupState { - private SyncGroupState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupState NotReady = "NotReady"; - - public static readonly SyncGroupState Error = "Error"; - - public static readonly SyncGroupState Warning = "Warning"; - - public static readonly SyncGroupState Progressing = "Progressing"; - - public static readonly SyncGroupState Good = "Good"; - - - /// - /// Underlying value of enum SyncGroupState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupState - /// - public bool Equals(SyncGroupState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupState - /// - public static implicit operator SyncGroupState(string value) - { - return new SyncGroupState(value); - } - - /// - /// Implicit operator to convert SyncGroupState to string - /// - public static implicit operator string(SyncGroupState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupState - /// - public static bool operator == (SyncGroupState e1, SyncGroupState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupState - /// - public static bool operator != (SyncGroupState e1, SyncGroupState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupState - /// - public override bool Equals(object obj) - { - return obj is SyncGroupState && Equals((SyncGroupState)obj); - } - - /// - /// Returns for hashCode SyncGroupState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string NotReady = "NotReady"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Progressing = "Progressing"; + public const string Good = "Good"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs deleted file mode 100644 index b9183c88b750..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroupStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupState. - /// - public sealed class SyncGroupStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs index 58682e494e66..12c71b71f183 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMember.cs @@ -68,7 +68,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -96,7 +96,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; set; } + public string DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -160,7 +160,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public SyncDirection? SyncDirection { get; set; } + public string SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -172,7 +172,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncMemberState? SyncState { get; private set; } + public string SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs index 331639c348ac..62c0d7fda443 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberDbTypeConverter))] - public struct SyncMemberDbType : System.IEquatable + public static class SyncMemberDbType { - private SyncMemberDbType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; - - public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; - - - /// - /// Underlying value of enum SyncMemberDbType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberDbType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberDbType - /// - public bool Equals(SyncMemberDbType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberDbType - /// - public static implicit operator SyncMemberDbType(string value) - { - return new SyncMemberDbType(value); - } - - /// - /// Implicit operator to convert SyncMemberDbType to string - /// - public static implicit operator string(SyncMemberDbType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberDbType - /// - public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberDbType - /// - public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberDbType - /// - public override bool Equals(object obj) - { - return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); - } - - /// - /// Returns for hashCode SyncMemberDbType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AzureSqlDatabase = "AzureSqlDatabase"; + public const string SqlServerDatabase = "SqlServerDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs deleted file mode 100644 index a7be8e6b7c67..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberDbTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberDbType. - /// - public sealed class SyncMemberDbTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberDbType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberDbType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberDbType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberDbType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs index b7a42ae40765..8ef9ca4ac2d1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberState.cs @@ -10,128 +10,29 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberStateConverter))] - public struct SyncMemberState : System.IEquatable + public static class SyncMemberState { - private SyncMemberState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; - - public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; - - public static readonly SyncMemberState SyncFailed = "SyncFailed"; - - public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - - public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; - - public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - - public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; - - public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; - - public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; - - public static readonly SyncMemberState Provisioning = "Provisioning"; - - public static readonly SyncMemberState Provisioned = "Provisioned"; - - public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; - - public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; - - public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; - - public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; - - public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; - - public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; - - public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; - - - /// - /// Underlying value of enum SyncMemberState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberState - /// - public bool Equals(SyncMemberState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberState - /// - public static implicit operator SyncMemberState(string value) - { - return new SyncMemberState(value); - } - - /// - /// Implicit operator to convert SyncMemberState to string - /// - public static implicit operator string(SyncMemberState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberState - /// - public static bool operator == (SyncMemberState e1, SyncMemberState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberState - /// - public static bool operator != (SyncMemberState e1, SyncMemberState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberState - /// - public override bool Equals(object obj) - { - return obj is SyncMemberState && Equals((SyncMemberState)obj); - } - - /// - /// Returns for hashCode SyncMemberState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SyncInProgress = "SyncInProgress"; + public const string SyncSucceeded = "SyncSucceeded"; + public const string SyncFailed = "SyncFailed"; + public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + public const string DisabledBackupRestore = "DisabledBackupRestore"; + public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + public const string SyncCancelling = "SyncCancelling"; + public const string SyncCancelled = "SyncCancelled"; + public const string UnProvisioned = "UnProvisioned"; + public const string Provisioning = "Provisioning"; + public const string Provisioned = "Provisioned"; + public const string ProvisionFailed = "ProvisionFailed"; + public const string DeProvisioning = "DeProvisioning"; + public const string DeProvisioned = "DeProvisioned"; + public const string DeProvisionFailed = "DeProvisionFailed"; + public const string Reprovisioning = "Reprovisioning"; + public const string ReprovisionFailed = "ReprovisionFailed"; + public const string UnReprovisioned = "UnReprovisioned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs deleted file mode 100644 index 6e26b4d585bc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncMemberStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberState. - /// - public sealed class SyncMemberStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs index 0626ef49cc71..5215a566c46e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SystemData.cs @@ -43,7 +43,7 @@ public SystemData() /// 'Application', 'ManagedIdentity', 'Key' /// The timestamp of resource last /// modification (UTC) - public SystemData(string createdBy = default(string), CreatedByType? createdByType = default(CreatedByType?), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), CreatedByType? lastModifiedByType = default(CreatedByType?), System.DateTime? lastModifiedAt = default(System.DateTime?)) + public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) { CreatedBy = createdBy; CreatedByType = createdByType; @@ -71,7 +71,7 @@ public SystemData() /// 'Key' /// [JsonProperty(PropertyName = "createdByType")] - public CreatedByType? CreatedByType { get; set; } + public string CreatedByType { get; set; } /// /// Gets or sets the timestamp of resource creation (UTC). @@ -91,7 +91,7 @@ public SystemData() /// 'Key' /// [JsonProperty(PropertyName = "lastModifiedByType")] - public CreatedByType? LastModifiedByType { get; set; } + public string LastModifiedByType { get; set; } /// /// Gets or sets the timestamp of resource last modification (UTC) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs index 47f191b5cc61..471655c7bbfa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for TableTemporalType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TableTemporalTypeConverter))] - public struct TableTemporalType : System.IEquatable + public static class TableTemporalType { - private TableTemporalType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TableTemporalType NonTemporalTable = "NonTemporalTable"; - - public static readonly TableTemporalType HistoryTable = "HistoryTable"; - - public static readonly TableTemporalType SystemVersionedTemporalTable = "SystemVersionedTemporalTable"; - - - /// - /// Underlying value of enum TableTemporalType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for TableTemporalType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TableTemporalType - /// - public bool Equals(TableTemporalType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to TableTemporalType - /// - public static implicit operator TableTemporalType(string value) - { - return new TableTemporalType(value); - } - - /// - /// Implicit operator to convert TableTemporalType to string - /// - public static implicit operator string(TableTemporalType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum TableTemporalType - /// - public static bool operator == (TableTemporalType e1, TableTemporalType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum TableTemporalType - /// - public static bool operator != (TableTemporalType e1, TableTemporalType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for TableTemporalType - /// - public override bool Equals(object obj) - { - return obj is TableTemporalType && Equals((TableTemporalType)obj); - } - - /// - /// Returns for hashCode TableTemporalType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string NonTemporalTable = "NonTemporalTable"; + public const string HistoryTable = "HistoryTable"; + public const string SystemVersionedTemporalTable = "SystemVersionedTemporalTable"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs deleted file mode 100644 index b394b778735e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TableTemporalTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TableTemporalType. - /// - public sealed class TableTemporalTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to TableTemporalType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TableTemporalType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to TableTemporalType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TableTemporalType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TableTemporalType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs index 98b4e6f0c2d4..3f5dea96219a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancy.cs @@ -10,100 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for TargetBackupStorageRedundancy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TargetBackupStorageRedundancyConverter))] - public struct TargetBackupStorageRedundancy : System.IEquatable + public static class TargetBackupStorageRedundancy { - private TargetBackupStorageRedundancy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TargetBackupStorageRedundancy Geo = "Geo"; - - public static readonly TargetBackupStorageRedundancy Local = "Local"; - - public static readonly TargetBackupStorageRedundancy Zone = "Zone"; - - - /// - /// Underlying value of enum TargetBackupStorageRedundancy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for TargetBackupStorageRedundancy - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TargetBackupStorageRedundancy - /// - public bool Equals(TargetBackupStorageRedundancy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// TargetBackupStorageRedundancy - /// - public static implicit operator TargetBackupStorageRedundancy(string value) - { - return new TargetBackupStorageRedundancy(value); - } - - /// - /// Implicit operator to convert TargetBackupStorageRedundancy to - /// string - /// - public static implicit operator string(TargetBackupStorageRedundancy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum TargetBackupStorageRedundancy - /// - public static bool operator == (TargetBackupStorageRedundancy e1, TargetBackupStorageRedundancy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum TargetBackupStorageRedundancy - /// - public static bool operator != (TargetBackupStorageRedundancy e1, TargetBackupStorageRedundancy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for TargetBackupStorageRedundancy - /// - public override bool Equals(object obj) - { - return obj is TargetBackupStorageRedundancy && Equals((TargetBackupStorageRedundancy)obj); - } - - /// - /// Returns for hashCode TargetBackupStorageRedundancy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Geo = "Geo"; + public const string Local = "Local"; + public const string Zone = "Zone"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs deleted file mode 100644 index b1b6bef62322..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TargetBackupStorageRedundancyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TargetBackupStorageRedundancy. - /// - public sealed class TargetBackupStorageRedundancyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// TargetBackupStorageRedundancy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TargetBackupStorageRedundancy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// TargetBackupStorageRedundancy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TargetBackupStorageRedundancy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TargetBackupStorageRedundancy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs index db446224dc01..e499e90eebd1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TopQueries.cs @@ -42,7 +42,7 @@ public TopQueries() /// format). /// List of top resource consuming queries with /// appropriate metric data - public TopQueries(int? numberOfQueries = default(int?), string aggregationFunction = default(string), string observationMetric = default(string), QueryTimeGrainType? intervalType = default(QueryTimeGrainType?), string startTime = default(string), string endTime = default(string), IList queries = default(IList)) + public TopQueries(int? numberOfQueries = default(int?), string aggregationFunction = default(string), string observationMetric = default(string), string intervalType = default(string), string startTime = default(string), string endTime = default(string), IList queries = default(IList)) { NumberOfQueries = numberOfQueries; AggregationFunction = aggregationFunction; @@ -81,7 +81,7 @@ public TopQueries() /// Gets interval type (length). Possible values include: 'PT1H', 'P1D' /// [JsonProperty(PropertyName = "intervalType")] - public QueryTimeGrainType? IntervalType { get; private set; } + public string IntervalType { get; private set; } /// /// Gets the start time for the metric (ISO-8601 format). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs index 910daceaab5d..ab34253c2b81 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public TransparentDataEncryptionActivityStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 174adafd3d9d..5880bd69d615 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] - public struct TransparentDataEncryptionActivityStatus : System.IEquatable + public static class TransparentDataEncryptionActivityStatus { - private TransparentDataEncryptionActivityStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; - - public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; - - - /// - /// Underlying value of enum TransparentDataEncryptionActivityStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// TransparentDataEncryptionActivityStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TransparentDataEncryptionActivityStatus - /// - public bool Equals(TransparentDataEncryptionActivityStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// TransparentDataEncryptionActivityStatus - /// - public static implicit operator TransparentDataEncryptionActivityStatus(string value) - { - return new TransparentDataEncryptionActivityStatus(value); - } - - /// - /// Implicit operator to convert - /// TransparentDataEncryptionActivityStatus to string - /// - public static implicit operator string(TransparentDataEncryptionActivityStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// TransparentDataEncryptionActivityStatus - /// - public override bool Equals(object obj) - { - return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); - } - - /// - /// Returns for hashCode TransparentDataEncryptionActivityStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Encrypting = "Encrypting"; + public const string Decrypting = "Decrypting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs deleted file mode 100644 index 4a694506acac..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TransparentDataEncryptionActivityStatus. - /// - public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// TransparentDataEncryptionActivityStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// TransparentDataEncryptionActivityStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TransparentDataEncryptionActivityStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs index 03ff873d52a1..1184776ad156 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitDefinitionTypeConverter))] - public struct UnitDefinitionType : System.IEquatable + public static class UnitDefinitionType { - private UnitDefinitionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitDefinitionType Count = "Count"; - - public static readonly UnitDefinitionType Bytes = "Bytes"; - - public static readonly UnitDefinitionType Seconds = "Seconds"; - - public static readonly UnitDefinitionType Percent = "Percent"; - - public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; - - public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; - - - /// - /// Underlying value of enum UnitDefinitionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitDefinitionType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitDefinitionType - /// - public bool Equals(UnitDefinitionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitDefinitionType - /// - public static implicit operator UnitDefinitionType(string value) - { - return new UnitDefinitionType(value); - } - - /// - /// Implicit operator to convert UnitDefinitionType to string - /// - public static implicit operator string(UnitDefinitionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitDefinitionType - /// - public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitDefinitionType - /// - public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitDefinitionType - /// - public override bool Equals(object obj) - { - return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); - } - - /// - /// Returns for hashCode UnitDefinitionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "Count"; + public const string Bytes = "Bytes"; + public const string Seconds = "Seconds"; + public const string Percent = "Percent"; + public const string CountPerSecond = "CountPerSecond"; + public const string BytesPerSecond = "BytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs deleted file mode 100644 index dda3dfcf2386..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitDefinitionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitDefinitionType. - /// - public sealed class UnitDefinitionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitDefinitionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitDefinitionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitDefinitionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitDefinitionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs index d4f9bc715325..ecd9b7388bdf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitTypeConverter))] - public struct UnitType : System.IEquatable + public static class UnitType { - private UnitType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitType Count = "count"; - - public static readonly UnitType Bytes = "bytes"; - - public static readonly UnitType Seconds = "seconds"; - - public static readonly UnitType Percent = "percent"; - - public static readonly UnitType CountPerSecond = "countPerSecond"; - - public static readonly UnitType BytesPerSecond = "bytesPerSecond"; - - - /// - /// Underlying value of enum UnitType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitType - /// - public bool Equals(UnitType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitType - /// - public static implicit operator UnitType(string value) - { - return new UnitType(value); - } - - /// - /// Implicit operator to convert UnitType to string - /// - public static implicit operator string(UnitType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitType - /// - public static bool operator == (UnitType e1, UnitType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitType - /// - public static bool operator != (UnitType e1, UnitType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitType - /// - public override bool Equals(object obj) - { - return obj is UnitType && Equals((UnitType)obj); - } - - /// - /// Returns for hashCode UnitType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "count"; + public const string Bytes = "bytes"; + public const string Seconds = "seconds"; + public const string Percent = "percent"; + public const string CountPerSecond = "countPerSecond"; + public const string BytesPerSecond = "bytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs deleted file mode 100644 index a0e37419629f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UnitTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitType. - /// - public sealed class UnitTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs index 1ef03efe5737..61a4903dada7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UpdateLongTermRetentionBackupParameters.cs @@ -38,7 +38,7 @@ public UpdateLongTermRetentionBackupParameters() /// The storage /// redundancy type of the copied backup. Possible values include: /// 'Geo', 'Local', 'Zone' - public UpdateLongTermRetentionBackupParameters(RequestedBackupStorageRedundancy? requestedBackupStorageRedundancy = default(RequestedBackupStorageRedundancy?)) + public UpdateLongTermRetentionBackupParameters(string requestedBackupStorageRedundancy = default(string)) { RequestedBackupStorageRedundancy = requestedBackupStorageRedundancy; CustomInit(); @@ -54,7 +54,7 @@ public UpdateLongTermRetentionBackupParameters() /// Possible values include: 'Geo', 'Local', 'Zone' /// [JsonProperty(PropertyName = "properties.requestedBackupStorageRedundancy")] - public RequestedBackupStorageRedundancy? RequestedBackupStorageRedundancy { get; set; } + public string RequestedBackupStorageRedundancy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs index cc400b831784..7ad4863674ce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Failed', /// 'Deleting', 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -76,7 +76,7 @@ public VirtualNetworkRule() /// 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public VirtualNetworkRuleState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs index c38c934a4779..1b0e17f64db1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] - public struct VirtualNetworkRuleState : System.IEquatable + public static class VirtualNetworkRuleState { - private VirtualNetworkRuleState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VirtualNetworkRuleState Initializing = "Initializing"; - - public static readonly VirtualNetworkRuleState InProgress = "InProgress"; - - public static readonly VirtualNetworkRuleState Ready = "Ready"; - - public static readonly VirtualNetworkRuleState Failed = "Failed"; - - public static readonly VirtualNetworkRuleState Deleting = "Deleting"; - - public static readonly VirtualNetworkRuleState Unknown = "Unknown"; - - - /// - /// Underlying value of enum VirtualNetworkRuleState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VirtualNetworkRuleState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VirtualNetworkRuleState - /// - public bool Equals(VirtualNetworkRuleState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to VirtualNetworkRuleState - /// - public static implicit operator VirtualNetworkRuleState(string value) - { - return new VirtualNetworkRuleState(value); - } - - /// - /// Implicit operator to convert VirtualNetworkRuleState to string - /// - public static implicit operator string(VirtualNetworkRuleState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VirtualNetworkRuleState - /// - public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VirtualNetworkRuleState - /// - public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VirtualNetworkRuleState - /// - public override bool Equals(object obj) - { - return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); - } - - /// - /// Returns for hashCode VirtualNetworkRuleState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Initializing = "Initializing"; + public const string InProgress = "InProgress"; + public const string Ready = "Ready"; + public const string Failed = "Failed"; + public const string Deleting = "Deleting"; + public const string Unknown = "Unknown"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs deleted file mode 100644 index 337961087a9c..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VirtualNetworkRuleStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VirtualNetworkRuleState. - /// - public sealed class VirtualNetworkRuleStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to VirtualNetworkRuleState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to VirtualNetworkRuleState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VirtualNetworkRuleState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VirtualNetworkRuleState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index ca8eac5a1248..298f1c24a1f8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } + public string TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public VulnerabilityAssessmentScanState? State { get; private set; } + public string State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 48f67debea0d..503c61895227 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,102 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] - public struct VulnerabilityAssessmentScanState : System.IEquatable + public static class VulnerabilityAssessmentScanState { - private VulnerabilityAssessmentScanState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; - - public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; - - public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; - - public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VulnerabilityAssessmentScanState - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanState - /// - public bool Equals(VulnerabilityAssessmentScanState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanState - /// - public static implicit operator VulnerabilityAssessmentScanState(string value) - { - return new VulnerabilityAssessmentScanState(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanState to - /// string - /// - public static implicit operator string(VulnerabilityAssessmentScanState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VulnerabilityAssessmentScanState - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Passed = "Passed"; + public const string Failed = "Failed"; + public const string FailedToRun = "FailedToRun"; + public const string InProgress = "InProgress"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs deleted file mode 100644 index a54163f7d51f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanState. - /// - public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index a642a96a9e4f..252a76bff40a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] - public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable + public static class VulnerabilityAssessmentScanTriggerType { - private VulnerabilityAssessmentScanTriggerType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; - - public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanTriggerType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// VulnerabilityAssessmentScanTriggerType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanTriggerType - /// - public bool Equals(VulnerabilityAssessmentScanTriggerType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanTriggerType - /// - public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) - { - return new VulnerabilityAssessmentScanTriggerType(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType - /// to string - /// - public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// VulnerabilityAssessmentScanTriggerType - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanTriggerType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string OnDemand = "OnDemand"; + public const string Recurring = "Recurring"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs deleted file mode 100644 index 38737f84fae4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanTriggerType. - /// - public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanTriggerType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanTriggerType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 063a27528f9b..706fc1e9dd44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -151,7 +151,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Lillian\\work\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "4965f0f5165d99f2f87523d03b243b88afde29d8"; + public static readonly String GithubCommidId = "0f72d7e8267d012ed7f51107f066217c8bfda9a7"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs index acf04682292d..c4bd489f9788 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs @@ -147,6 +147,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerUsagesOperations ServerUsages { get; private set; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -622,11 +627,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the IDatabaseExtensionsOperations. /// @@ -928,6 +928,7 @@ private void Initialize() TransparentDataEncryptions = new TransparentDataEncryptionsOperations(this); TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this); ServerUsages = new ServerUsagesOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ExtendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesOperations(this); ExtendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesOperations(this); ServerBlobAuditingPolicies = new ServerBlobAuditingPoliciesOperations(this); @@ -1023,7 +1024,6 @@ private void Initialize() VirtualNetworkRules = new VirtualNetworkRulesOperations(this); WorkloadClassifiers = new WorkloadClassifiersOperations(this); WorkloadGroups = new WorkloadGroupsOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); DatabaseExtensions = new DatabaseExtensionsOperations(this); DatabaseOperations = new DatabaseOperations(this); DatabaseUsages = new DatabaseUsagesOperations(this);