diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperations.cs index d02e4c18f347..925fb2136d68 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs index 7b8381e996f3..8d0148456750 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperations.cs index 3754c93ca50d..ad2deaed385e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperationsExtensions.cs index 2b897211b53a..e26d1241ca4c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/BackupLongTermRetentionVaultsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperations.cs index 061b197c2962..a89d167ce1af 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperationsExtensions.cs index 5c01f9dfc3b5..9485f73d84e3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/CapabilitiesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperations.cs index 267d83347fc7..a428ee442362 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperationsExtensions.cs index c6b5512116b4..9ef18db47332 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperations.cs index f48ce00f6f88..e73daf744ed7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperationsExtensions.cs index 3b85b0859de4..531cfcc17530 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DataMaskingRulesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs index c28a92c01a3d..79aa0bdfbd0e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs index f28ed193fcde..412d7306e528 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperations.cs index 6bdb64779717..2ef5cbd53604 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperationsExtensions.cs index 6dc5f92e4121..b6a5afbd3ca7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs index 3165a45a76ce..00564efdc504 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs index 48603ac38ee9..18c50c663a90 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperations.cs index 56d29147f43c..3a7c09cb5592 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperationsExtensions.cs index e97146c65afe..c6c2c68f544c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseUsagesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperations.cs index 993a1ea18714..b27b09b25304 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -2386,10 +2386,6 @@ internal DatabasesOperations(SqlManagementClient client) } string apiVersion = "2014-04-01"; string extensionName = "import"; - if (parameters == null) - { - parameters = new ImportExtensionRequest(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperationsExtensions.cs index 7c44ee381c16..55aeee20cc87 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperations.cs index da83ceae4d68..27339da3d513 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperationsExtensions.cs index 5bd921750156..1a1ba60b08cd 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolActivitiesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperations.cs index df347c66ce14..5ed89cf05671 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs index e373f23458c0..ed686787c6bf 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperations.cs index 8e989716371d..3724c3c56237 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs index bff5359e3f5f..f0b17003ce6a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperations.cs index 1967d7d4440b..518467297a8e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperationsExtensions.cs index 69536f16c79d..1b52d0b295c0 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/EncryptionProtectorsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperations.cs index 97e8a9500aad..aea6348dcc43 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperationsExtensions.cs index 039add414d55..131a3fa6aad4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperations.cs index 325fa8fdcce6..b447cfb267e6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperationsExtensions.cs index 347ec6ba6f70..f742b64361e6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/FirewallRulesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperations.cs index c9b22a888ec2..718f77266815 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperationsExtensions.cs index 073dfa634d5e..8f06fd54be49 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/GeoBackupPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionPoliciesOperations.cs index 35e313bad96e..99fee6d1379c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionVaultsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionVaultsOperations.cs index 173ecbb49c60..cb8a17990fea 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionVaultsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IBackupLongTermRetentionVaultsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ICapabilitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ICapabilitiesOperations.cs index 2d3011f85c5f..22dbc8649120 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ICapabilitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ICapabilitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingPoliciesOperations.cs index 5399ff864f8b..12cfc4771a27 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingRulesOperations.cs index 422406be0ffc..f12264829ad4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDataMaskingRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs index c4634f1d626c..637616cc4f27 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseOperations.cs index e5e9f49958bf..403763c6d2ba 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs index 29f8cde3d853..d40ebd0c11b6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseUsagesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseUsagesOperations.cs index d4c2d4f0bc51..bcec0cbe3391 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseUsagesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseUsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabasesOperations.cs index 5738f2c2551d..c32867a4006f 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolActivitiesOperations.cs index b9dbf4eeda4b..dbff0a7219ff 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolDatabaseActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolDatabaseActivitiesOperations.cs index eb09a0d7b217..b0a0c73d3904 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolDatabaseActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolDatabaseActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolsOperations.cs index 7d05246a4a7c..559d71076844 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IElasticPoolsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IEncryptionProtectorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IEncryptionProtectorsOperations.cs index 052338d5ebd4..34c33b97252c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IEncryptionProtectorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IEncryptionProtectorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IFailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IFailoverGroupsOperations.cs index 19ad89d071fb..426f698c75a7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IFailoverGroupsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IFailoverGroupsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IFirewallRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IFirewallRulesOperations.cs index 928ed5927907..a8f402658f93 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IFirewallRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IFirewallRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IGeoBackupPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IGeoBackupPoliciesOperations.cs index 111ddddae44a..c5d989c62ba8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IGeoBackupPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IGeoBackupPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IOperations.cs index 8a5056377218..262a3687ad57 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs index eb51b67e6577..5c67b4626627 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IRecoverableDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IRecoverableDatabasesOperations.cs index 45bd58597224..0cd6b02fd596 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IRecoverableDatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IRecoverableDatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IReplicationLinksOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IReplicationLinksOperations.cs index 53719b9e2c45..7d12e91bed9b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IReplicationLinksOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IReplicationLinksOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorableDroppedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorableDroppedDatabasesOperations.cs index 322c05f49396..5ec52bad2f2c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorableDroppedDatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorableDroppedDatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorePointsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorePointsOperations.cs index 8686d051990f..a2fc398b6afd 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorePointsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IRestorePointsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerAzureADAdministratorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerAzureADAdministratorsOperations.cs index 9396c0a41d19..0997ce6082d3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerAzureADAdministratorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerAzureADAdministratorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerCommunicationLinksOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerCommunicationLinksOperations.cs index dccca610a2a9..fb9c5c458ed5 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerCommunicationLinksOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerCommunicationLinksOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerConnectionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerConnectionPoliciesOperations.cs index ab398642a4a6..83d40613d8a8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerConnectionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerConnectionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerDnsAliasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerDnsAliasesOperations.cs new file mode 100644 index 000000000000..900258bc9aee --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerDnsAliasesOperations.cs @@ -0,0 +1,278 @@ +// +// 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 +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ServerDnsAliasesOperations operations. + /// + public partial interface IServerDnsAliasesOperations + { + /// + /// Gets a server DNS alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// 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 dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task AcquireWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginAcquireWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerKeysOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerKeysOperations.cs index 3a480c90abdc..a64b4dbeb517 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerKeysOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerKeysOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerUsagesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerUsagesOperations.cs index 81ab2c42390e..fc5698db6a3f 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServerUsagesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServerUsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServersOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServersOperations.cs index 63e7f03269d1..771d4eec6490 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServersOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServersOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceObjectivesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceObjectivesOperations.cs index c1b22cf78283..47cb5277bf94 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceObjectivesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceObjectivesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceTierAdvisorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceTierAdvisorsOperations.cs index 4f9bbd04b31c..58bc6e583f64 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceTierAdvisorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IServiceTierAdvisorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs index c5681befd666..e62dea6605a8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -251,5 +251,10 @@ public partial interface ISqlManagementClient : System.IDisposable /// IDatabaseOperations DatabaseOperations { get; } + /// + /// Gets the IServerDnsAliasesOperations. + /// + IServerDnsAliasesOperations ServerDnsAliases { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncAgentsOperations.cs index 09e3ef4b7096..9a16662042ff 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncAgentsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncAgentsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncGroupsOperations.cs index 7d654d5b25b9..62464fd2aace 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncGroupsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncGroupsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncMembersOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncMembersOperations.cs index d56ab64cf9c2..8deed67a5949 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncMembersOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISyncMembersOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionActivitiesOperations.cs index d630a9c80525..c56b71073b48 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionsOperations.cs index e9425858c245..818b21be23d3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ITransparentDataEncryptionsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IVirtualNetworkRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IVirtualNetworkRulesOperations.cs index 269fcf48acdb..d365679e95c6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/IVirtualNetworkRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IVirtualNetworkRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/AuthenticationType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/AuthenticationType.cs index 9fcb12d63641..1735cc6cadf7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/AuthenticationType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/AuthenticationType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum AuthenticationType } internal static class AuthenticationTypeEnumExtension { - internal static string ToSerializedValue(this AuthenticationType? value) => - value == null ? null : ((AuthenticationType)value).ToSerializedValue(); + internal static string ToSerializedValue(this AuthenticationType? value) + { + return value == null ? null : ((AuthenticationType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this AuthenticationType value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicy.cs index 2bc0b3a5502f..1846f3d1e509 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class BackupLongTermRetentionPolicy : ProxyResource /// public BackupLongTermRetentionPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicyState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicyState.cs index dd995140335b..69be75328d31 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicyState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionPolicyState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum BackupLongTermRetentionPolicyState } internal static class BackupLongTermRetentionPolicyStateEnumExtension { - internal static string ToSerializedValue(this BackupLongTermRetentionPolicyState? value) => - value == null ? null : ((BackupLongTermRetentionPolicyState)value).ToSerializedValue(); + internal static string ToSerializedValue(this BackupLongTermRetentionPolicyState? value) + { + return value == null ? null : ((BackupLongTermRetentionPolicyState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this BackupLongTermRetentionPolicyState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionVault.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionVault.cs index 93f02d6682dd..5b92351a621a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionVault.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BackupLongTermRetentionVault.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class BackupLongTermRetentionVault : ProxyResource /// public BackupLongTermRetentionVault() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BlobAuditingPolicyState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BlobAuditingPolicyState.cs index 75e80f5a27fb..996b7023ff6f 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BlobAuditingPolicyState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/BlobAuditingPolicyState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum BlobAuditingPolicyState } internal static class BlobAuditingPolicyStateEnumExtension { - internal static string ToSerializedValue(this BlobAuditingPolicyState? value) => - value == null ? null : ((BlobAuditingPolicyState)value).ToSerializedValue(); + internal static string ToSerializedValue(this BlobAuditingPolicyState? value) + { + return value == null ? null : ((BlobAuditingPolicyState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this BlobAuditingPolicyState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CapabilityStatus.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CapabilityStatus.cs index 7b8a2b08ee38..ea8549085935 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CapabilityStatus.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CapabilityStatus.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -33,8 +32,10 @@ public enum CapabilityStatus } internal static class CapabilityStatusEnumExtension { - internal static string ToSerializedValue(this CapabilityStatus? value) => - value == null ? null : ((CapabilityStatus)value).ToSerializedValue(); + internal static string ToSerializedValue(this CapabilityStatus? value) + { + return value == null ? null : ((CapabilityStatus)value).ToSerializedValue(); + } internal static string ToSerializedValue(this CapabilityStatus value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityReason.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityReason.cs index 0c7e54f3ffa6..2386a1161237 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityReason.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityReason.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum CheckNameAvailabilityReason } internal static class CheckNameAvailabilityReasonEnumExtension { - internal static string ToSerializedValue(this CheckNameAvailabilityReason? value) => - value == null ? null : ((CheckNameAvailabilityReason)value).ToSerializedValue(); + internal static string ToSerializedValue(this CheckNameAvailabilityReason? value) + { + return value == null ? null : ((CheckNameAvailabilityReason)value).ToSerializedValue(); + } internal static string ToSerializedValue(this CheckNameAvailabilityReason value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityRequest.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityRequest.cs index 1e515404d703..707d7cce78c2 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityRequest.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityRequest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -27,7 +26,7 @@ public partial class CheckNameAvailabilityRequest /// public CheckNameAvailabilityRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityResponse.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityResponse.cs index 1ad849580d1e..65a8c5fc01e9 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityResponse.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CheckNameAvailabilityResponse.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -26,7 +25,7 @@ public partial class CheckNameAvailabilityResponse /// public CheckNameAvailabilityResponse() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CreateMode.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CreateMode.cs index c5af6841ab9b..37536fd265df 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CreateMode.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CreateMode.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for CreateMode. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingFunction.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingFunction.cs index bd04b0df8f71..8f3f7ef3192e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingFunction.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingFunction.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -37,8 +36,10 @@ public enum DataMaskingFunction } internal static class DataMaskingFunctionEnumExtension { - internal static string ToSerializedValue(this DataMaskingFunction? value) => - value == null ? null : ((DataMaskingFunction)value).ToSerializedValue(); + internal static string ToSerializedValue(this DataMaskingFunction? value) + { + return value == null ? null : ((DataMaskingFunction)value).ToSerializedValue(); + } internal static string ToSerializedValue(this DataMaskingFunction value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingPolicy.cs index 0b832d2a2e7e..2858a948a68b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class DataMaskingPolicy : ProxyResource /// public DataMaskingPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRule.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRule.cs index 0e8c91f1e2c1..0626129ac7c8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRule.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class DataMaskingRule : ProxyResource /// public DataMaskingRule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRuleState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRuleState.cs index e238af59dd18..d883cf0eaa34 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRuleState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingRuleState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum DataMaskingRuleState } internal static class DataMaskingRuleStateEnumExtension { - internal static string ToSerializedValue(this DataMaskingRuleState? value) => - value == null ? null : ((DataMaskingRuleState)value).ToSerializedValue(); + internal static string ToSerializedValue(this DataMaskingRuleState? value) + { + return value == null ? null : ((DataMaskingRuleState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this DataMaskingRuleState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingState.cs index fa3c16ac6e08..a01f91ea5798 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DataMaskingState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum DataMaskingState } internal static class DataMaskingStateEnumExtension { - internal static string ToSerializedValue(this DataMaskingState? value) => - value == null ? null : ((DataMaskingState)value).ToSerializedValue(); + internal static string ToSerializedValue(this DataMaskingState? value) + { + return value == null ? null : ((DataMaskingState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this DataMaskingState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Database.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Database.cs index 8aee4de5e2ff..038e0037fd8c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Database.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Database.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Database : TrackedResource /// public Database() { - CustomInit(); + CustomInit(); } /// @@ -182,7 +181,10 @@ public Database() /// apply when creating this database. If createMode is not Default, /// this value is ignored. Not supported for DataWarehouse edition. /// Possible values include: 'AdventureWorksLT' - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), System.Guid? databaseId = default(System.Guid?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string recoveryServicesRecoveryPointResourceId = default(string), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), string failoverGroupId = default(string), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) + /// Whether or not this database is zone + /// redundant, which means the replicas of this database will be spread + /// across multiple availability zones. + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), System.Guid? databaseId = default(System.Guid?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string recoveryServicesRecoveryPointResourceId = default(string), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), string failoverGroupId = default(string), ReadScale? readScale = default(ReadScale?), string sampleName = default(string), bool? zoneRedundant = default(bool?)) : base(location, id, name, type, tags) { Kind = kind; @@ -211,6 +213,7 @@ public Database() FailoverGroupId = failoverGroupId; ReadScale = readScale; SampleName = sampleName; + ZoneRedundant = zoneRedundant; CustomInit(); } @@ -477,6 +480,14 @@ public Database() [JsonProperty(PropertyName = "properties.sampleName")] public string SampleName { get; set; } + /// + /// Gets or sets whether or not this database is zone redundant, which + /// means the replicas of this database will be spread across multiple + /// availability zones. + /// + [JsonProperty(PropertyName = "properties.zoneRedundant")] + public bool? ZoneRedundant { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs index 014f286b1ac2..ee9bf07c104c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class DatabaseBlobAuditingPolicy : ProxyResource /// public DatabaseBlobAuditingPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseEdition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseEdition.cs index 81697af2cfbe..d474b6c3fdb4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseEdition.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseEdition.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for DatabaseEdition. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseOperation.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseOperation.cs index 39fc7f6fe888..57b7356b8170 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseOperation.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseOperation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class DatabaseOperation : ProxyResource /// public DatabaseOperation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs index 6af29f732258..a0361a56fd3e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class DatabaseSecurityAlertPolicy : ProxyResource /// public DatabaseSecurityAlertPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUpdate.cs index 529df9aea59d..c439d0ba3e43 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUpdate.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUpdate.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class DatabaseUpdate : Resource /// public DatabaseUpdate() { - CustomInit(); + CustomInit(); } /// @@ -179,7 +178,10 @@ public DatabaseUpdate() /// apply when creating this database. If createMode is not Default, /// this value is ignored. Not supported for DataWarehouse edition. /// Possible values include: 'AdventureWorksLT' - public DatabaseUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), System.Guid? databaseId = default(System.Guid?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string recoveryServicesRecoveryPointResourceId = default(string), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), string failoverGroupId = default(string), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) + /// Whether or not this database is zone + /// redundant, which means the replicas of this database will be spread + /// across multiple availability zones. + public DatabaseUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), System.Guid? databaseId = default(System.Guid?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string recoveryServicesRecoveryPointResourceId = default(string), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), string failoverGroupId = default(string), ReadScale? readScale = default(ReadScale?), string sampleName = default(string), bool? zoneRedundant = default(bool?)) : base(id, name, type) { Tags = tags; @@ -208,6 +210,7 @@ public DatabaseUpdate() FailoverGroupId = failoverGroupId; ReadScale = readScale; SampleName = sampleName; + ZoneRedundant = zoneRedundant; CustomInit(); } @@ -473,5 +476,13 @@ public DatabaseUpdate() [JsonProperty(PropertyName = "properties.sampleName")] public string SampleName { get; set; } + /// + /// Gets or sets whether or not this database is zone redundant, which + /// means the replicas of this database will be spread across multiple + /// availability zones. + /// + [JsonProperty(PropertyName = "properties.zoneRedundant")] + public bool? ZoneRedundant { get; set; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUsage.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUsage.cs index 1ac59071b805..763dcd923f4c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUsage.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseUsage.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DatabaseUsage /// public DatabaseUsage() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EditionCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EditionCapability.cs index 3334f8e70121..fcc6ccb27e9c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EditionCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EditionCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class EditionCapability /// public EditionCapability() { - CustomInit(); + CustomInit(); } /// @@ -37,11 +36,14 @@ public EditionCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The list of supported /// service objectives for the edition. - public EditionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedServiceLevelObjectives = default(IList)) + /// Whether or not zone redundancy is + /// supported for the edition. + public EditionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?)) { Name = name; Status = status; SupportedServiceLevelObjectives = supportedServiceLevelObjectives; + ZoneRedundant = zoneRedundant; CustomInit(); } @@ -69,5 +71,11 @@ public EditionCapability() [JsonProperty(PropertyName = "supportedServiceLevelObjectives")] public IList SupportedServiceLevelObjectives { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the edition. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPool.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPool.cs index bed22eb108e0..5d850a7df85e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPool.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPool.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ElasticPool : TrackedResource /// public ElasticPool() { - CustomInit(); + CustomInit(); } /// @@ -54,9 +53,12 @@ public ElasticPool() /// guaranteed. /// Gets storage limit for the database elastic /// pool in MB. + /// Whether or not this database elastic + /// pool is zone redundant, which means the replicas of this database + /// will be spread across multiple availability zones. /// Kind of elastic pool. This is metadata used for /// the Azure portal experience. - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.DateTime? creationDate = default(System.DateTime?), string state = default(string), string edition = default(string), int? dtu = default(int?), int? databaseDtuMax = default(int?), int? databaseDtuMin = default(int?), int? storageMB = default(int?), string kind = default(string)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.DateTime? creationDate = default(System.DateTime?), string state = default(string), string edition = default(string), int? dtu = default(int?), int? databaseDtuMax = default(int?), int? databaseDtuMin = default(int?), int? storageMB = default(int?), bool? zoneRedundant = default(bool?), string kind = default(string)) : base(location, id, name, type, tags) { CreationDate = creationDate; @@ -66,6 +68,7 @@ public ElasticPool() DatabaseDtuMax = databaseDtuMax; DatabaseDtuMin = databaseDtuMin; StorageMB = storageMB; + ZoneRedundant = zoneRedundant; Kind = kind; CustomInit(); } @@ -119,6 +122,14 @@ public ElasticPool() [JsonProperty(PropertyName = "properties.storageMB")] public int? StorageMB { get; set; } + /// + /// Gets or sets whether or not this database elastic pool is zone + /// redundant, which means the replicas of this database will be spread + /// across multiple availability zones. + /// + [JsonProperty(PropertyName = "properties.zoneRedundant")] + public bool? ZoneRedundant { get; set; } + /// /// Gets kind of elastic pool. This is metadata used for the Azure /// portal experience. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolActivity.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolActivity.cs index 8251afc0fc69..d2ab5c5d8f31 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolActivity.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolActivity.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ElasticPoolActivity : ProxyResource /// public ElasticPoolActivity() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs index 2053bee78f55..2ad2b0f4367c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class ElasticPoolDatabaseActivity : ProxyResource /// public ElasticPoolDatabaseActivity() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDtuCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDtuCapability.cs index f744fb9b7bf6..7ba6ac451739 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDtuCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolDtuCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class ElasticPoolDtuCapability /// public ElasticPoolDtuCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEdition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEdition.cs index 3180bb388642..562c26d49883 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEdition.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEdition.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolEdition. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEditionCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEditionCapability.cs index 481f5992abb2..f2cd4cee87a5 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEditionCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolEditionCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -27,7 +26,7 @@ public partial class ElasticPoolEditionCapability /// public ElasticPoolEditionCapability() { - CustomInit(); + CustomInit(); } /// @@ -40,11 +39,14 @@ public ElasticPoolEditionCapability() /// 'Disabled' /// The list of supported /// elastic pool DTU levels for the edition. - public ElasticPoolEditionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedElasticPoolDtus = default(IList)) + /// Whether or not zone redundancy is + /// supported for the edition. + public ElasticPoolEditionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedElasticPoolDtus = default(IList), bool? zoneRedundant = default(bool?)) { Name = name; Status = status; SupportedElasticPoolDtus = supportedElasticPoolDtus; + ZoneRedundant = zoneRedundant; CustomInit(); } @@ -72,5 +74,11 @@ public ElasticPoolEditionCapability() [JsonProperty(PropertyName = "supportedElasticPoolDtus")] public IList SupportedElasticPoolDtus { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the edition. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMaxDtuCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMaxDtuCapability.cs index bb1dc5ccbe88..9720f6eadce9 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMaxDtuCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMaxDtuCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -27,7 +26,7 @@ public partial class ElasticPoolPerDatabaseMaxDtuCapability /// public ElasticPoolPerDatabaseMaxDtuCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMinDtuCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMinDtuCapability.cs index 8ef51ff33b42..126c88b54041 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMinDtuCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolPerDatabaseMinDtuCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ElasticPoolPerDatabaseMinDtuCapability /// public ElasticPoolPerDatabaseMinDtuCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolState.cs index 3536ed9667a6..5e36b8d12088 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolUpdate.cs index a5c47e7c31f6..af76c8de3178 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolUpdate.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ElasticPoolUpdate.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ElasticPoolUpdate : Resource /// public ElasticPoolUpdate() { - CustomInit(); + CustomInit(); } /// @@ -53,7 +52,10 @@ public ElasticPoolUpdate() /// guaranteed. /// Gets storage limit for the database elastic /// pool in MB. - public ElasticPoolUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.DateTime? creationDate = default(System.DateTime?), string state = default(string), string edition = default(string), int? dtu = default(int?), int? databaseDtuMax = default(int?), int? databaseDtuMin = default(int?), int? storageMB = default(int?)) + /// Whether or not this database elastic + /// pool is zone redundant, which means the replicas of this database + /// will be spread across multiple availability zones. + public ElasticPoolUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.DateTime? creationDate = default(System.DateTime?), string state = default(string), string edition = default(string), int? dtu = default(int?), int? databaseDtuMax = default(int?), int? databaseDtuMin = default(int?), int? storageMB = default(int?), bool? zoneRedundant = default(bool?)) : base(id, name, type) { Tags = tags; @@ -64,6 +66,7 @@ public ElasticPoolUpdate() DatabaseDtuMax = databaseDtuMax; DatabaseDtuMin = databaseDtuMin; StorageMB = storageMB; + ZoneRedundant = zoneRedundant; CustomInit(); } @@ -122,5 +125,13 @@ public ElasticPoolUpdate() [JsonProperty(PropertyName = "properties.storageMB")] public int? StorageMB { get; set; } + /// + /// Gets or sets whether or not this database elastic pool is zone + /// redundant, which means the replicas of this database will be spread + /// across multiple availability zones. + /// + [JsonProperty(PropertyName = "properties.zoneRedundant")] + public bool? ZoneRedundant { get; set; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EncryptionProtector.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EncryptionProtector.cs index 8ec5f1ec10e4..5c371ba1556a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EncryptionProtector.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/EncryptionProtector.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class EncryptionProtector : ProxyResource /// public EncryptionProtector() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExportRequest.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExportRequest.cs index 2f22778e8f57..24d7c5b4fd6b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExportRequest.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExportRequest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ExportRequest /// public ExportRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroup.cs index 3f8904c52ef2..9fe6b90fb1bd 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroup.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroup.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class FailoverGroup : ProxyResource /// public FailoverGroup() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index 8bf21b33c073..161a0d051d5c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class FailoverGroupReadOnlyEndpoint /// public FailoverGroupReadOnlyEndpoint() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadWriteEndpoint.cs index 1fe839c6e908..823617cb01ce 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -26,7 +25,7 @@ public partial class FailoverGroupReadWriteEndpoint /// public FailoverGroupReadWriteEndpoint() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReplicationRole.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReplicationRole.cs index 846b3ca00ac2..380e10a578b4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReplicationRole.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReplicationRole.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for FailoverGroupReplicationRole. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupUpdate.cs index 4ce00ac2aa4f..8f94a7f6f0cb 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupUpdate.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupUpdate.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class FailoverGroupUpdate /// public FailoverGroupUpdate() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FirewallRule.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FirewallRule.cs index b737195c59fe..904ce6567551 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FirewallRule.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/FirewallRule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class FirewallRule : ProxyResource /// public FirewallRule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicy.cs index 59d14220e939..541bd51ae9bc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class GeoBackupPolicy : ProxyResource /// public GeoBackupPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicyState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicyState.cs index 98a363fbed81..bea4eaa01cd6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicyState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/GeoBackupPolicyState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum GeoBackupPolicyState } internal static class GeoBackupPolicyStateEnumExtension { - internal static string ToSerializedValue(this GeoBackupPolicyState? value) => - value == null ? null : ((GeoBackupPolicyState)value).ToSerializedValue(); + internal static string ToSerializedValue(this GeoBackupPolicyState? value) + { + return value == null ? null : ((GeoBackupPolicyState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this GeoBackupPolicyState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/IdentityType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/IdentityType.cs index 85023b5e1fd8..cb7c7a82b81d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/IdentityType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/IdentityType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for IdentityType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExportResponse.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExportResponse.cs index c1aa7c5e1858..d0c551fe42ea 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExportResponse.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExportResponse.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ImportExportResponse : ProxyResource /// public ImportExportResponse() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExtensionRequest.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExtensionRequest.cs index 495353ea867e..7718b700a6b7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExtensionRequest.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportExtensionRequest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ImportExtensionRequest /// public ImportExtensionRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportRequest.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportRequest.cs index 1dae47302e6c..a6dab4f1a5a3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportRequest.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ImportRequest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ImportRequest : ExportRequest /// public ImportRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/LocationCapabilities.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/LocationCapabilities.cs index 565dad7a6d3d..1c477c9b13b5 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/LocationCapabilities.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/LocationCapabilities.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class LocationCapabilities /// public LocationCapabilities() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagementOperationState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagementOperationState.cs index a97fb7d2ed0c..5cc2d5460636 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagementOperationState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagementOperationState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ManagementOperationState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeCapability.cs index 8ef88bc397cb..dd98cab084a0 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class MaxSizeCapability /// public MaxSizeCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeUnits.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeUnits.cs index d0e8559b5eac..18f34102d6cb 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeUnits.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MaxSizeUnits.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -33,8 +32,10 @@ public enum MaxSizeUnits } internal static class MaxSizeUnitsEnumExtension { - internal static string ToSerializedValue(this MaxSizeUnits? value) => - value == null ? null : ((MaxSizeUnits)value).ToSerializedValue(); + internal static string ToSerializedValue(this MaxSizeUnits? value) + { + return value == null ? null : ((MaxSizeUnits)value).ToSerializedValue(); + } internal static string ToSerializedValue(this MaxSizeUnits value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Metric.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Metric.cs index 9e9b9bd40f73..c2f7e0249613 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Metric.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Metric.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class Metric /// public Metric() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricAvailability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricAvailability.cs index 0b008a35cd00..7858019de8a6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricAvailability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricAvailability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class MetricAvailability /// public MetricAvailability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricDefinition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricDefinition.cs index da412c95c82b..420305885e67 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricDefinition.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricDefinition.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class MetricDefinition /// public MetricDefinition() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricName.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricName.cs index 055f14b93d2d..1132e41454bd 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricName.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricName.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class MetricName /// public MetricName() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricValue.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricValue.cs index a1116057f228..21c34da50d51 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricValue.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/MetricValue.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class MetricValue /// public MetricValue() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Operation.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Operation.cs index 1da950a58eeb..fcf0b7b48dbc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Operation.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Operation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class Operation /// public Operation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationDisplay.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationDisplay.cs index 7a24ca8a23a5..9e5d8a395f24 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationDisplay.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class OperationDisplay /// public OperationDisplay() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationImpact.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationImpact.cs index 5ce566f64540..541c766fc0d2 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationImpact.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationImpact.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class OperationImpact /// public OperationImpact() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationOrigin.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationOrigin.cs index 82d703c75cbf..4d779e5b4c1a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationOrigin.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/OperationOrigin.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for OperationOrigin. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page.cs index a2f021053fa0..805972f112b6 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page1.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page1.cs index 4eaffafdd797..640ba4f5fd4f 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page1.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page1.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerInfo.cs index dd23397b4952..440a5d14a763 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerInfo.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerInfo.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class PartnerInfo /// public PartnerInfo() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PerformanceLevelUnit.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PerformanceLevelUnit.cs index 5017a1b3a773..0aa9f6dcda52 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PerformanceLevelUnit.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PerformanceLevelUnit.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -27,8 +26,10 @@ public enum PerformanceLevelUnit } internal static class PerformanceLevelUnitEnumExtension { - internal static string ToSerializedValue(this PerformanceLevelUnit? value) => - value == null ? null : ((PerformanceLevelUnit)value).ToSerializedValue(); + internal static string ToSerializedValue(this PerformanceLevelUnit? value) + { + return value == null ? null : ((PerformanceLevelUnit)value).ToSerializedValue(); + } internal static string ToSerializedValue(this PerformanceLevelUnit value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PrimaryAggregationType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PrimaryAggregationType.cs index 8967c15b2349..d863b177f680 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PrimaryAggregationType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PrimaryAggregationType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for PrimaryAggregationType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProxyResource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProxyResource.cs index 0950f6568f6c..208785119116 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProxyResource.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProxyResource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using System.Linq; /// @@ -23,7 +22,7 @@ public partial class ProxyResource : Resource /// public ProxyResource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index e35d6f37a23c..4d78fadf1980 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadScale.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadScale.cs index c05b2823fbdc..1cdfc4b7ea90 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadScale.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadScale.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum ReadScale } internal static class ReadScaleEnumExtension { - internal static string ToSerializedValue(this ReadScale? value) => - value == null ? null : ((ReadScale)value).ToSerializedValue(); + internal static string ToSerializedValue(this ReadScale? value) + { + return value == null ? null : ((ReadScale)value).ToSerializedValue(); + } internal static string ToSerializedValue(this ReadScale value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 17b844cd965f..1ea812a89b20 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ReadWriteEndpointFailoverPolicy. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPool.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPool.cs index aac7735a1119..7be7b6c9c9e4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPool.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPool.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class RecommendedElasticPool : ProxyResource /// public RecommendedElasticPool() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs index 22455d9ddaa1..b4a124354c27 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class RecommendedElasticPoolMetric /// public RecommendedElasticPoolMetric() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndex.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndex.cs index b13b0e0b5609..7be471795597 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndex.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndex.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class RecommendedIndex : ProxyResource /// public RecommendedIndex() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexAction.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexAction.cs index 9c6a81c64031..f9f90228c098 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexAction.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexAction.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -31,8 +30,10 @@ public enum RecommendedIndexAction } internal static class RecommendedIndexActionEnumExtension { - internal static string ToSerializedValue(this RecommendedIndexAction? value) => - value == null ? null : ((RecommendedIndexAction)value).ToSerializedValue(); + internal static string ToSerializedValue(this RecommendedIndexAction? value) + { + return value == null ? null : ((RecommendedIndexAction)value).ToSerializedValue(); + } internal static string ToSerializedValue(this RecommendedIndexAction value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexState.cs index e452a8394633..528724aa2357 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -47,8 +46,10 @@ public enum RecommendedIndexState } internal static class RecommendedIndexStateEnumExtension { - internal static string ToSerializedValue(this RecommendedIndexState? value) => - value == null ? null : ((RecommendedIndexState)value).ToSerializedValue(); + internal static string ToSerializedValue(this RecommendedIndexState? value) + { + return value == null ? null : ((RecommendedIndexState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this RecommendedIndexState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexType.cs index 4bc3505b7ae3..a84c416068ec 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecommendedIndexType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -33,8 +32,10 @@ public enum RecommendedIndexType } internal static class RecommendedIndexTypeEnumExtension { - internal static string ToSerializedValue(this RecommendedIndexType? value) => - value == null ? null : ((RecommendedIndexType)value).ToSerializedValue(); + internal static string ToSerializedValue(this RecommendedIndexType? value) + { + return value == null ? null : ((RecommendedIndexType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this RecommendedIndexType value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecoverableDatabase.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecoverableDatabase.cs index b64b43033515..cff72abc8bd1 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecoverableDatabase.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RecoverableDatabase.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class RecoverableDatabase : ProxyResource /// public RecoverableDatabase() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationLink.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationLink.cs index 15cddb834c93..0d886828bfad 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationLink.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationLink.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ReplicationLink : ProxyResource /// public ReplicationLink() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationRole.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationRole.cs index 113904085440..f0d74d3f85fb 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationRole.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationRole.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -35,8 +34,10 @@ public enum ReplicationRole } internal static class ReplicationRoleEnumExtension { - internal static string ToSerializedValue(this ReplicationRole? value) => - value == null ? null : ((ReplicationRole)value).ToSerializedValue(); + internal static string ToSerializedValue(this ReplicationRole? value) + { + return value == null ? null : ((ReplicationRole)value).ToSerializedValue(); + } internal static string ToSerializedValue(this ReplicationRole value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationState.cs index a0b7c83d6da1..067c14bdb345 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ReplicationState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ReplicationState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Resource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Resource.cs index 8438a1cb6083..1fefaf8448cb 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Resource.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Resource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -26,7 +25,7 @@ public partial class Resource : IResource /// public Resource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ResourceIdentity.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ResourceIdentity.cs index d2fda4b48a91..d3f9595700d3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ResourceIdentity.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ResourceIdentity.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ResourceIdentity /// public ResourceIdentity() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorableDroppedDatabase.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorableDroppedDatabase.cs index 9ef127ad3b70..58e9491e62c7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorableDroppedDatabase.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorableDroppedDatabase.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class RestorableDroppedDatabase : ProxyResource /// public RestorableDroppedDatabase() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePoint.cs index eca5bfb1014d..aed6f24f4576 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePoint.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePoint.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class RestorePoint : ProxyResource /// public RestorePoint() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePointType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePointType.cs index c73afde44a7a..867b3fbd0f32 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePointType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/RestorePointType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum RestorePointType } internal static class RestorePointTypeEnumExtension { - internal static string ToSerializedValue(this RestorePointType? value) => - value == null ? null : ((RestorePointType)value).ToSerializedValue(); + internal static string ToSerializedValue(this RestorePointType? value) + { + return value == null ? null : ((RestorePointType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this RestorePointType value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SampleName.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SampleName.cs index b4198f6e718e..503690e91e13 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SampleName.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SampleName.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SampleName. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs index 2c9842bf4ec1..0b697a00547d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum SecurityAlertPolicyEmailAccountAdmins } internal static class SecurityAlertPolicyEmailAccountAdminsEnumExtension { - internal static string ToSerializedValue(this SecurityAlertPolicyEmailAccountAdmins? value) => - value == null ? null : ((SecurityAlertPolicyEmailAccountAdmins)value).ToSerializedValue(); + internal static string ToSerializedValue(this SecurityAlertPolicyEmailAccountAdmins? value) + { + return value == null ? null : ((SecurityAlertPolicyEmailAccountAdmins)value).ToSerializedValue(); + } internal static string ToSerializedValue(this SecurityAlertPolicyEmailAccountAdmins value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyState.cs index 73044146a726..e236ae6b8c64 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -31,8 +30,10 @@ public enum SecurityAlertPolicyState } internal static class SecurityAlertPolicyStateEnumExtension { - internal static string ToSerializedValue(this SecurityAlertPolicyState? value) => - value == null ? null : ((SecurityAlertPolicyState)value).ToSerializedValue(); + internal static string ToSerializedValue(this SecurityAlertPolicyState? value) + { + return value == null ? null : ((SecurityAlertPolicyState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this SecurityAlertPolicyState value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs index b478f3542499..f825a9f75249 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum SecurityAlertPolicyUseServerDefault } internal static class SecurityAlertPolicyUseServerDefaultEnumExtension { - internal static string ToSerializedValue(this SecurityAlertPolicyUseServerDefault? value) => - value == null ? null : ((SecurityAlertPolicyUseServerDefault)value).ToSerializedValue(); + internal static string ToSerializedValue(this SecurityAlertPolicyUseServerDefault? value) + { + return value == null ? null : ((SecurityAlertPolicyUseServerDefault)value).ToSerializedValue(); + } internal static string ToSerializedValue(this SecurityAlertPolicyUseServerDefault value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Server.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Server.cs index 1166f384e168..de7d2db1c535 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Server.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Server.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Server : TrackedResource /// public Server() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs index 1e3d10b55c45..4573fed0dd31 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerAzureADAdministrator.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ServerAzureADAdministrator : ProxyResource /// public ServerAzureADAdministrator() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerCommunicationLink.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerCommunicationLink.cs index 08b81a513db8..487917094d84 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerCommunicationLink.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerCommunicationLink.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ServerCommunicationLink : ProxyResource /// public ServerCommunicationLink() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionPolicy.cs index d47d3d86d6f5..3e71ad3d28b3 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ServerConnectionPolicy : ProxyResource /// public ServerConnectionPolicy() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionType.cs index 714bda6dfbd7..ad0ffc408e10 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerConnectionType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -31,8 +30,10 @@ public enum ServerConnectionType } internal static class ServerConnectionTypeEnumExtension { - internal static string ToSerializedValue(this ServerConnectionType? value) => - value == null ? null : ((ServerConnectionType)value).ToSerializedValue(); + internal static string ToSerializedValue(this ServerConnectionType? value) + { + return value == null ? null : ((ServerConnectionType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this ServerConnectionType value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAlias.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAlias.cs new file mode 100644 index 000000000000..cacc97209460 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAlias.cs @@ -0,0 +1,59 @@ +// +// 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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A server DNS alias. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerDnsAlias : ProxyResource + { + /// + /// Initializes a new instance of the ServerDnsAlias class. + /// + public ServerDnsAlias() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerDnsAlias class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The fully qualified DNS record for + /// alias + public ServerDnsAlias(string id = default(string), string name = default(string), string type = default(string), string azureDnsRecord = default(string)) + : base(id, name, type) + { + AzureDnsRecord = azureDnsRecord; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified DNS record for alias + /// + [JsonProperty(PropertyName = "properties.azureDnsRecord")] + public string AzureDnsRecord { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAliasAcquisition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAliasAcquisition.cs new file mode 100644 index 000000000000..4b63f09d11e2 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerDnsAliasAcquisition.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.Linq; + + /// + /// A server DNS alias acquisition request. + /// + public partial class ServerDnsAliasAcquisition + { + /// + /// Initializes a new instance of the ServerDnsAliasAcquisition class. + /// + public ServerDnsAliasAcquisition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerDnsAliasAcquisition class. + /// + /// The id of the server alias that + /// will be acquired to point to this server instead. + public ServerDnsAliasAcquisition(string oldServerDnsAliasId = default(string)) + { + OldServerDnsAliasId = oldServerDnsAliasId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the id of the server alias that will be acquired to + /// point to this server instead. + /// + [JsonProperty(PropertyName = "oldServerDnsAliasId")] + public string OldServerDnsAliasId { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKey.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKey.cs index 90352f4b45c3..75567c92ac7e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKey.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKey.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ServerKey : ProxyResource /// public ServerKey() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKeyType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKeyType.cs index fcfecb5cbad3..3358ddccad1e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKeyType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerKeyType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ServerKeyType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUpdate.cs index 809ae82ba72f..59ee4e9d860e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUpdate.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUpdate.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ServerUpdate /// public ServerUpdate() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUsage.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUsage.cs index bcd074568f23..ccac9aadc55e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUsage.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerUsage.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ServerUsage /// public ServerUsage() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerVersionCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerVersionCapability.cs index 777643f9a7fc..99cf99ec13c8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerVersionCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerVersionCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class ServerVersionCapability /// public ServerVersionCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjective.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjective.cs index 2d533c203e52..b8c2a93d2027 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjective.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjective.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ServiceObjective : ProxyResource /// public ServiceObjective() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveCapability.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveCapability.cs index 1ae2ce6e14a5..20b138b40335 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveCapability.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveCapability.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ServiceObjectiveCapability /// public ServiceObjectiveCapability() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveName.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveName.cs index 6b52b7e7ad6d..50641e5effa1 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveName.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceObjectiveName.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for ServiceObjectiveName. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceTierAdvisor.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceTierAdvisor.cs index 1256eaa5c6fb..1809b4de6261 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceTierAdvisor.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServiceTierAdvisor.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ServiceTierAdvisor : ProxyResource /// public ServiceTierAdvisor() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SloUsageMetric.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SloUsageMetric.cs index fca5c1b2b49d..9a6f84940933 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SloUsageMetric.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SloUsageMetric.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SloUsageMetric /// public SloUsageMetric() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/StorageKeyType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/StorageKeyType.cs index 297347fcf846..b1e639658412 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/StorageKeyType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/StorageKeyType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum StorageKeyType } internal static class StorageKeyTypeEnumExtension { - internal static string ToSerializedValue(this StorageKeyType? value) => - value == null ? null : ((StorageKeyType)value).ToSerializedValue(); + internal static string ToSerializedValue(this StorageKeyType? value) + { + return value == null ? null : ((StorageKeyType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this StorageKeyType value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgent.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgent.cs index 74f4e0054875..dd27b72537d5 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgent.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgent.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class SyncAgent : ProxyResource /// public SyncAgent() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentKeyProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentKeyProperties.cs index 6b2690b9f66d..223dcfcd23a2 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentKeyProperties.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentKeyProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SyncAgentKeyProperties /// public SyncAgentKeyProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentLinkedDatabase.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentLinkedDatabase.cs index c27f5cd9d32b..075a8cd921cc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentLinkedDatabase.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class SyncAgentLinkedDatabase : ProxyResource /// public SyncAgentLinkedDatabase() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentState.cs index d869a886a71a..3c0f38964739 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncAgentState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncAgentState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncConflictResolutionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncConflictResolutionPolicy.cs index 68a867dc3b07..ce499c6de853 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncConflictResolutionPolicy.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncConflictResolutionPolicy. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDatabaseIdProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDatabaseIdProperties.cs index b721d7a9a050..25e4779684b4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDatabaseIdProperties.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDatabaseIdProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SyncDatabaseIdProperties /// public SyncDatabaseIdProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDirection.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDirection.cs index 80a5c40e87d1..67774a8584fd 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDirection.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncDirection.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncDirection. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaProperties.cs index 556488966f3f..5276950be3bc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaProperties.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class SyncFullSchemaProperties /// public SyncFullSchemaProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTable.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTable.cs index c44c662426de..f523ba5f5ddc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTable.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTable.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class SyncFullSchemaTable /// public SyncFullSchemaTable() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTableColumn.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTableColumn.cs index e994bd6797d9..d0bc8a5de194 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTableColumn.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncFullSchemaTableColumn.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SyncFullSchemaTableColumn /// public SyncFullSchemaTableColumn() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroup.cs index 38573b406a49..5c6fc09ec0db 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroup.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroup.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class SyncGroup : ProxyResource /// public SyncGroup() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogProperties.cs index 5b055b618a05..f587146600e2 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogProperties.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SyncGroupLogProperties /// public SyncGroupLogProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogType.cs index 23d120444dc7..fb3ce4637cfc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupLogType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncGroupLogType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchema.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchema.cs index c7abc0672856..ef7196e1a332 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchema.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchema.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class SyncGroupSchema /// public SyncGroupSchema() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTable.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTable.cs index db50f6fc1392..09195ec7b109 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTable.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTable.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class SyncGroupSchemaTable /// public SyncGroupSchemaTable() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTableColumn.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTableColumn.cs index 34abeb2d558b..8b42ecb1b21d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTableColumn.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupSchemaTableColumn.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class SyncGroupSchemaTableColumn /// public SyncGroupSchemaTableColumn() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupState.cs index 46c79f63d274..4367211c97bc 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncGroupState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncGroupState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMember.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMember.cs index 59845dabb711..f59fa180d36a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMember.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMember.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class SyncMember : ProxyResource /// public SyncMember() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberDbType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberDbType.cs index 2b374432d035..62c0d7fda443 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberDbType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberDbType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncMemberDbType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberState.cs index 0de297c522f6..8ef9ca4ac2d1 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/SyncMemberState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for SyncMemberState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TrackedResource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TrackedResource.cs index 1884bd6efd66..613b642a67a7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TrackedResource.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TrackedResource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -27,7 +26,7 @@ public partial class TrackedResource : Resource /// public TrackedResource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryption.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryption.cs index 6f4b2703837a..f9e10892ef90 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryption.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryption.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class TransparentDataEncryption : ProxyResource /// public TransparentDataEncryption() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs index a053cca87baf..ab34253c2b81 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class TransparentDataEncryptionActivity : ProxyResource /// public TransparentDataEncryptionActivity() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 9861712e5cc4..5880bd69d615 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for TransparentDataEncryptionActivityStatus. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionStatus.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionStatus.cs index dbb6b2fe20bd..63f5456de378 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionStatus.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/TransparentDataEncryptionStatus.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum TransparentDataEncryptionStatus } internal static class TransparentDataEncryptionStatusEnumExtension { - internal static string ToSerializedValue(this TransparentDataEncryptionStatus? value) => - value == null ? null : ((TransparentDataEncryptionStatus)value).ToSerializedValue(); + internal static string ToSerializedValue(this TransparentDataEncryptionStatus? value) + { + return value == null ? null : ((TransparentDataEncryptionStatus)value).ToSerializedValue(); + } internal static string ToSerializedValue(this TransparentDataEncryptionStatus value) { diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitDefinitionType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitDefinitionType.cs index 3f34aff5c0a7..1184776ad156 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitDefinitionType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitDefinitionType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for UnitDefinitionType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitType.cs index 79d18700bc1e..ecd9b7388bdf 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitType.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/UnitType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for UnitType. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRule.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRule.cs index f6d5b185ead8..b34438897190 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRule.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class VirtualNetworkRule : ProxyResource /// public VirtualNetworkRule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRuleState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRuleState.cs index f408fd336e07..ef0dd2f70a5b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRuleState.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VirtualNetworkRuleState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Sql; /// /// Defines values for VirtualNetworkRuleState. diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Operations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Operations.cs index 0dbee0a677e4..3880565f9539 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/Operations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Operations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/OperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/OperationsExtensions.cs index 44ab0daa55b1..db51738b80c4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/OperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/OperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperations.cs index c87515a3cc3a..f86c033a4d48 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs index 2b31019f965c..cf79901cae4a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperations.cs index 90e752518e7e..2873e894aff4 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperationsExtensions.cs index edaaa2956a3f..114f36a98396 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RecoverableDatabasesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperations.cs index 09fc53ba90a3..b2581841f766 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperationsExtensions.cs index 24f6c033ed93..87eab086f901 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ReplicationLinksOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperations.cs index c9d93542e85f..166c29c69443 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperationsExtensions.cs index 68ea48b4e76d..1bf3d18ae714 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorableDroppedDatabasesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperations.cs index 8d0b721eac47..b11e207b5d1c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperationsExtensions.cs index b1265a9ded23..06e32f90875c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/RestorePointsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperations.cs index 88d8973a0c61..6efb6e321d1b 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -554,10 +554,6 @@ internal ServerAzureADAdministratorsOperations(SqlManagementClient client) } string apiVersion = "2014-04-01"; string administratorName = "activeDirectory"; - if (properties == null) - { - properties = new ServerAzureADAdministrator(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperationsExtensions.cs index dabfd22a95a9..174ff6abf592 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerAzureADAdministratorsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperations.cs index 15c8abcea527..093cf7c48461 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperationsExtensions.cs index 94ab8d238771..3d897732f85e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerCommunicationLinksOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperations.cs index 4f731f688f4e..4f9dd45213eb 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperationsExtensions.cs index 2e25fefee7d5..35a89c25ce42 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerConnectionPoliciesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperations.cs new file mode 100644 index 000000000000..b627be542d19 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperations.cs @@ -0,0 +1,1307 @@ +// +// 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 +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ServerDnsAliasesOperations operations. + /// + internal partial class ServerDnsAliasesOperations : IServiceOperations, IServerDnsAliasesOperations + { + /// + /// Initializes a new instance of the ServerDnsAliasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ServerDnsAliasesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a server DNS alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (dnsAliasName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsAliasName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("dnsAliasName", dnsAliasName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + 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}/dnsAliases/{dnsAliasName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{dnsAliasName}", System.Uri.EscapeDataString(dnsAliasName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServer", 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}/dnsAliases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task AcquireWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginAcquireWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (dnsAliasName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsAliasName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("dnsAliasName", dnsAliasName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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}/dnsAliases/{dnsAliasName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{dnsAliasName}", System.Uri.EscapeDataString(dnsAliasName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (dnsAliasName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsAliasName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("dnsAliasName", dnsAliasName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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}/dnsAliases/{dnsAliasName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{dnsAliasName}", System.Uri.EscapeDataString(dnsAliasName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginAcquireWithHttpMessagesAsync(string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (dnsAliasName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsAliasName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("dnsAliasName", dnsAliasName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginAcquire", 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}/dnsAliases/{dnsAliasName}/acquire").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{dnsAliasName}", System.Uri.EscapeDataString(dnsAliasName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperationsExtensions.cs new file mode 100644 index 000000000000..d59b5f284a4e --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerDnsAliasesOperationsExtensions.cs @@ -0,0 +1,433 @@ +// +// 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 +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ServerDnsAliasesOperations. + /// + public static partial class ServerDnsAliasesOperationsExtensions + { + /// + /// Gets a server DNS alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + public static ServerDnsAlias Get(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName) + { + return operations.GetAsync(resourceGroupName, serverName, dnsAliasName).GetAwaiter().GetResult(); + } + + /// + /// Gets a server DNS alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + public static ServerDnsAlias CreateOrUpdate(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, dnsAliasName).GetAwaiter().GetResult(); + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + public static void Delete(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName) + { + operations.DeleteAsync(resourceGroupName, serverName, dnsAliasName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// 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 that the alias is pointing to. + /// + public static IPage ListByServer(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName) + { + return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + public static void Acquire(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters) + { + operations.AcquireAsync(resourceGroupName, serverName, dnsAliasName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task AcquireAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.AcquireWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + public static ServerDnsAlias BeginCreateOrUpdate(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, dnsAliasName).GetAwaiter().GetResult(); + } + + /// + /// Creates a server dns alias. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + public static void BeginDelete(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, dnsAliasName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the server DNS alias with the given name. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server DNS alias. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + public static void BeginAcquire(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters) + { + operations.BeginAcquireAsync(resourceGroupName, serverName, dnsAliasName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Acquires server DNS alias from another server. + /// + /// + /// 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 that the alias is pointing to. + /// + /// + /// The name of the server dns alias. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task BeginAcquireAsync(this IServerDnsAliasesOperations operations, string resourceGroupName, string serverName, string dnsAliasName, ServerDnsAliasAcquisition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginAcquireWithHttpMessagesAsync(resourceGroupName, serverName, dnsAliasName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByServerNext(this IServerDnsAliasesOperations operations, string nextPageLink) + { + return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of server DNS aliases for a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerNextAsync(this IServerDnsAliasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperations.cs index 473872f5409d..34adafd8a329 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperationsExtensions.cs index a2bcf3ee0209..600dbf3f8eec 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerKeysOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperations.cs index baa5f80038ec..173bd295dafa 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperationsExtensions.cs index 40ccc0902222..b6b826799f99 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServerUsagesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperations.cs index da94620fb15a..c85d084adf45 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -92,10 +92,6 @@ internal ServersOperations(SqlManagementClient client) parameters.Validate(); } string apiVersion = "2014-04-01"; - if (parameters == null) - { - parameters = new CheckNameAvailabilityRequest(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperationsExtensions.cs index 5562c399667e..5dc737e0ad93 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServersOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperations.cs index 6a1ae4a27eec..bdca61a1d244 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperationsExtensions.cs index fad6e727f312..061a6583b943 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceObjectivesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperations.cs index 7d5e51953427..0ae12e2249e0 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperationsExtensions.cs index dcb0f88c4b94..251b52dc9470 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ServiceTierAdvisorsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 8c66fb373be8..5f2012007252 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; @@ -256,6 +256,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IDatabaseOperations DatabaseOperations { get; private set; } + /// + /// Gets the IServerDnsAliasesOperations. + /// + public virtual IServerDnsAliasesOperations ServerDnsAliases { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -494,6 +499,7 @@ private void Initialize() SyncMembers = new SyncMembersOperations(this); VirtualNetworkRules = new VirtualNetworkRulesOperations(this); DatabaseOperations = new DatabaseOperations(this); + ServerDnsAliases = new ServerDnsAliasesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperations.cs index 0d9dfc2c26eb..7cf34940f814 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperationsExtensions.cs index f4f4e5c4d6d9..124e70dec5b1 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncAgentsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperations.cs index 777e3c12f99d..47a5368545cf 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperationsExtensions.cs index cb6bbdb133dc..46c6de434877 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncGroupsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperations.cs index cc242922e9c8..c87a4afc1d45 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperationsExtensions.cs index 873e4d072724..c536c5d32674 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SyncMembersOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperations.cs index 004e3b465cc3..f6ea310015fe 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperationsExtensions.cs index c215bf57a064..6211972ac38c 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionActivitiesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperations.cs index 6f4d82a2ba0b..5b30e4f81873 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperationsExtensions.cs index 4e920d49b523..af93ae4da712 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/TransparentDataEncryptionsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperations.cs index a115d0324c66..2917b5e6af2d 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperations.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperationsExtensions.cs index 8b20f62768d4..60adc19bde33 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperationsExtensions.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/VirtualNetworkRulesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index 93e0e45fedbd..e1c6595e782a 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -13,6 +13,7 @@ diff --git a/src/SDKs/SqlManagement/Sql.Tests/ServerDnsAliasCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ServerDnsAliasCrudScenarioTests.cs new file mode 100644 index 000000000000..c673d39016c1 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/ServerDnsAliasCrudScenarioTests.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using Xunit; + +namespace Sql.Tests +{ + public class ServerDnsAliasCrudScenarioTests + { + [Fact] + public void TestCrudServerDnsAlias() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + SqlManagementClient sqlClient = context.GetClient(); + + // Create primary and partner servers + // + var sourceServer = context.CreateServer(resourceGroup); + var targetServer = context.CreateServer(resourceGroup, location: TestEnvironmentUtilities.DefaultSecondaryLocationId); + + string serverDnsAliasName = SqlManagementTestUtilities.GenerateName(); + + // Create server dns alias pointing to sourceServer + // + var serverDnsAlias = sqlClient.ServerDnsAliases.CreateOrUpdate(resourceGroup.Name, sourceServer.Name, serverDnsAliasName); + ValidateServerDnsAlias(serverDnsAlias, serverDnsAliasName); + + // List server dns aliases on source server and verify + // + var serverDnsAliases = sqlClient.ServerDnsAliases.ListByServer(resourceGroup.Name, sourceServer.Name); + Assert.NotNull(serverDnsAliases); + Assert.Equal(1, serverDnsAliases.Count()); + Assert.Equal(serverDnsAliasName, serverDnsAliases.Select(a => a.Name).First()); + + // Update server to which alias is pointing + // + var serverDnsAliasAcquisitonParams = new ServerDnsAliasAcquisition(String.Format( + "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/dnsAliases/{3}", + sqlClient.SubscriptionId, + resourceGroup.Name, + sourceServer.Name, + serverDnsAliasName)); + + sqlClient.ServerDnsAliases.Acquire(resourceGroup.Name, targetServer.Name, serverDnsAliasName, serverDnsAliasAcquisitonParams); + + Assert.Throws(() => sqlClient.ServerDnsAliases.Get(resourceGroup.Name, sourceServer.Name, serverDnsAliasName)); + + // Delete server dns alias and verify it got dropped + // + sqlClient.ServerDnsAliases.Delete(resourceGroup.Name, targetServer.Name, serverDnsAliasName); + Assert.Throws(() => sqlClient.ServerDnsAliases.Get(resourceGroup.Name, targetServer.Name, serverDnsAliasName)); + + } + } + + private void ValidateServerDnsAlias(ServerDnsAlias actual, string name) + { + Assert.NotNull(actual); + Assert.NotNull(actual.Id); + Assert.Equal(name, actual.Name); + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerDnsAliasCrudScenarioTests/TestCrudServerDnsAlias.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerDnsAliasCrudScenarioTests/TestCrudServerDnsAlias.json new file mode 100644 index 000000000000..d6f7e99e6798 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ServerDnsAliasCrudScenarioTests/TestCrudServerDnsAlias.json @@ -0,0 +1,1357 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourcegroups/sqlcrudtest-730?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\",\r\n \"tags\": {\r\n \"sqlcrudtest-730\": \"2017-10-19 02:49:29Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "aa85134e-6f75-4f5e-ae27-9f14cf1d5664" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730\",\r\n \"name\": \"sqlcrudtest-730\",\r\n \"location\": \"japaneast\",\r\n \"tags\": {\r\n \"sqlcrudtest-730\": \"2017-10-19 02:49:29Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "236" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:49:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "eeb7282b-e17a-41ca-b272-6aa4fbf3af29" + ], + "x-ms-correlation-request-id": [ + "eeb7282b-e17a-41ca-b272-6aa4fbf3af29" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T024931Z:eeb7282b-e17a-41ca-b272-6aa4fbf3af29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "184" + ], + "x-ms-client-request-id": [ + "c353b0b8-c3e2-4d5e-8360-f50fa1bbe3eb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2017-10-19T02:49:35.437Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:49:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/japaneast/serverOperationResults/3b93885c-809a-4d3b-ba96-f0d76ddc821c?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/japaneast/serverAzureAsyncOperation/3b93885c-809a-4d3b-ba96-f0d76ddc821c?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "3b93885c-809a-4d3b-ba96-f0d76ddc821c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "87b4b417-488c-47bd-93a4-afed153632a4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T024936Z:87b4b417-488c-47bd-93a4-afed153632a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/japaneast/serverAzureAsyncOperation/3b93885c-809a-4d3b-ba96-f0d76ddc821c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvamFwYW5lYXN0L3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vM2I5Mzg4NWMtODA5YS00ZDNiLWJhOTYtZjBkNzZkZGM4MjFjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3b93885c-809a-4d3b-ba96-f0d76ddc821c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2017-10-19T02:49:35.437Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:49:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9fa42a5d-51eb-4208-8ba4-a51c2af58873" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14765" + ], + "x-ms-correlation-request-id": [ + "b80ecfbe-c9de-4009-8790-7c895f78b04c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T024946Z:b80ecfbe-c9de-4009-8790-7c895f78b04c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/japaneast/serverAzureAsyncOperation/3b93885c-809a-4d3b-ba96-f0d76ddc821c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvamFwYW5lYXN0L3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vM2I5Mzg4NWMtODA5YS00ZDNiLWJhOTYtZjBkNzZkZGM4MjFjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3b93885c-809a-4d3b-ba96-f0d76ddc821c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2017-10-19T02:49:35.437Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3515a483-f1a2-4f0c-bb8a-da70891bfe2f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14793" + ], + "x-ms-correlation-request-id": [ + "05b6630a-91cb-4d89-83ed-338b6d4b8028" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025006Z:05b6630a-91cb-4d89-83ed-338b6d4b8028" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/japaneast/serverAzureAsyncOperation/3b93885c-809a-4d3b-ba96-f0d76ddc821c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvamFwYW5lYXN0L3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vM2I5Mzg4NWMtODA5YS00ZDNiLWJhOTYtZjBkNzZkZGM4MjFjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3b93885c-809a-4d3b-ba96-f0d76ddc821c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2017-10-19T02:49:35.437Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "502bc58d-a582-499f-889f-b740f6f0f63e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14790" + ], + "x-ms-correlation-request-id": [ + "da332a90-ab4e-47b2-a8ef-a6c652bf04ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025027Z:da332a90-ab4e-47b2-a8ef-a6c652bf04ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "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-8091.database.windows.net\"\r\n },\r\n \"location\": \"japaneast\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091\",\r\n \"name\": \"sqlcrudtest-8091\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "58aa7c5a-d39f-4dab-b42b-736ec3673f3d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14789" + ], + "x-ms-correlation-request-id": [ + "97ff0bc9-a421-4b44-9912-99ac99828587" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025027Z:97ff0bc9-a421-4b44-9912-99ac99828587" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTUyMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"centralus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "4c357038-a1db-4216-b08d-267a650247e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2017-10-19T02:50:29.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/centralus/serverOperationResults/c6d0a833-6d99-4574-a782-f15609e2b858?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/centralus/serverAzureAsyncOperation/c6d0a833-6d99-4574-a782-f15609e2b858?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "c6d0a833-6d99-4574-a782-f15609e2b858" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a4ef54e7-d030-4226-84bb-938f3c0c2f53" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025029Z:a4ef54e7-d030-4226-84bb-938f3c0c2f53" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/centralus/serverAzureAsyncOperation/c6d0a833-6d99-4574-a782-f15609e2b858?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYzZkMGE4MzMtNmQ5OS00NTc0LWE3ODItZjE1NjA5ZTJiODU4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c6d0a833-6d99-4574-a782-f15609e2b858\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2017-10-19T02:50:29.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4f07e9cd-968a-460e-a3d2-04a210164c6f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14787" + ], + "x-ms-correlation-request-id": [ + "aef02e47-eb43-40b9-91cc-43c4deff481b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025039Z:aef02e47-eb43-40b9-91cc-43c4deff481b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/centralus/serverAzureAsyncOperation/c6d0a833-6d99-4574-a782-f15609e2b858?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYzZkMGE4MzMtNmQ5OS00NTc0LWE3ODItZjE1NjA5ZTJiODU4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c6d0a833-6d99-4574-a782-f15609e2b858\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2017-10-19T02:50:29.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:50:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c4ede56f-e7a3-42d3-b966-742563912da5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14785" + ], + "x-ms-correlation-request-id": [ + "17b84eb9-6709-4387-8dff-298dbcfbfa67" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025059Z:17b84eb9-6709-4387-8dff-298dbcfbfa67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/locations/centralus/serverAzureAsyncOperation/c6d0a833-6d99-4574-a782-f15609e2b858?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvY2VudHJhbHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYzZkMGE4MzMtNmQ5OS00NTc0LWE3ODItZjE1NjA5ZTJiODU4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c6d0a833-6d99-4574-a782-f15609e2b858\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2017-10-19T02:50:29.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "34c776f5-9b9e-44aa-ae0d-bcfe6a4731aa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14784" + ], + "x-ms-correlation-request-id": [ + "92c5db4a-7223-40f4-9248-74696f43f10c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025119Z:92c5db4a-7223-40f4-9248-74696f43f10c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTUyMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "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-521.database.windows.net\"\r\n },\r\n \"location\": \"centralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521\",\r\n \"name\": \"sqlcrudtest-521\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b58c9fcb-4117-49af-a19e-c44e420b3420" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14783" + ], + "x-ms-correlation-request-id": [ + "8841f4f8-cb5c-4a8c-9c71-df950c69df9b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025119Z:8841f4f8-cb5c-4a8c-9c71-df950c69df9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTEvZG5zQWxpYXNlcy9zcWxjcnVkdGVzdC00OTc5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "37f78210-c5a8-442a-8229-4dcf8a9e1a5b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateServerDnsAlias\",\r\n \"startTime\": \"2017-10-19T02:51:20.01Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Japan%20East/dnsAliasOperationResults/973c85e1-601f-48a9-b862-3f925cc3a6c4?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Japan East/dnsAliasAsyncOperation/973c85e1-601f-48a9-b862-3f925cc3a6c4?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "80683eb5-c919-4788-8960-c10051e081e2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "be51e2d0-78bd-478a-bf33-7b820d83bb04" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025122Z:be51e2d0-78bd-478a-bf33-7b820d83bb04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Japan%20East/dnsAliasAsyncOperation/973c85e1-601f-48a9-b862-3f925cc3a6c4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9KYXBhbiUyMEVhc3QvZG5zQWxpYXNBc3luY09wZXJhdGlvbi85NzNjODVlMS02MDFmLTQ4YTktYjg2Mi0zZjkyNWNjM2E2YzQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"973c85e1-601f-48a9-b862-3f925cc3a6c4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2017-10-19T02:51:20.01Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "65e1bfe9-82c3-482b-b30b-0a113ba76b26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14782" + ], + "x-ms-correlation-request-id": [ + "64115521-1916-4422-b664-4b2604c23f6e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025132Z:64115521-1916-4422-b664-4b2604c23f6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTEvZG5zQWxpYXNlcy9zcWxjcnVkdGVzdC00OTc5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"azureDnsRecord\": \"sqlcrudtest-4979.database.windows.net\"\r\n },\r\n \"id\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979\",\r\n \"name\": \"sqlcrudtest-4979\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "58f8baf6-56d9-42bc-b7f6-e3e382824b35" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14781" + ], + "x-ms-correlation-request-id": [ + "abee93e8-725d-47f7-825e-24ab66eb50ac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025132Z:abee93e8-725d-47f7-825e-24ab66eb50ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTEvZG5zQWxpYXNlcy9zcWxjcnVkdGVzdC00OTc5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d7fa6465-70bd-421b-81ba-b93b238d5bba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The requested resource of type 'Microsoft.Sql/servers/dnsAliases' with name 'sqlcrudtest-4979' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "159" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "70fdc499-1026-4f6c-8603-9050d268a34e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14778" + ], + "x-ms-correlation-request-id": [ + "4bdb6ded-fbe0-4911-9413-8f8acb950e1a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025145Z:4bdb6ded-fbe0-4911-9413-8f8acb950e1a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTgwOTEvZG5zQWxpYXNlcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ee724b08-619b-41fd-b32c-ba364dc63a81" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"azureDnsRecord\": \"sqlcrudtest-4979.database.windows.net\"\r\n },\r\n \"id\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979\",\r\n \"name\": \"sqlcrudtest-4979\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e339185d-4262-4994-823b-fa8068b2af95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14780" + ], + "x-ms-correlation-request-id": [ + "c2ccb343-935b-4aff-b31d-a9c25f65cbbd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025132Z:c2ccb343-935b-4aff-b31d-a9c25f65cbbd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521/dnsAliases/sqlcrudtest-4979/acquire?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTUyMS9kbnNBbGlhc2VzL3NxbGNydWR0ZXN0LTQ5NzkvYWNxdWlyZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"oldServerDnsAliasId\": \"/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-8091/dnsAliases/sqlcrudtest-4979\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "192" + ], + "x-ms-client-request-id": [ + "aea5e4fe-967b-4baf-b569-4199c77b52ff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateServerDnsAlias\",\r\n \"startTime\": \"2017-10-19T02:51:32.997Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central%20US/dnsAliasOperationResults/b320db75-afbb-4a19-a280-9d58ec44bbc9?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central US/dnsAliasAsyncOperation/b320db75-afbb-4a19-a280-9d58ec44bbc9?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "1ab7a7bf-2847-42e5-8650-4f75475729b5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "3f125033-1a50-4911-9a72-e73f9cfed86b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025134Z:3f125033-1a50-4911-9a72-e73f9cfed86b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central%20US/dnsAliasAsyncOperation/b320db75-afbb-4a19-a280-9d58ec44bbc9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9DZW50cmFsJTIwVVMvZG5zQWxpYXNBc3luY09wZXJhdGlvbi9iMzIwZGI3NS1hZmJiLTRhMTktYTI4MC05ZDU4ZWM0NGJiYzk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b320db75-afbb-4a19-a280-9d58ec44bbc9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2017-10-19T02:51:32.997Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "04574fd6-7540-4d81-9705-99d3c43d5713" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14779" + ], + "x-ms-correlation-request-id": [ + "e7ae9d02-0046-4a9c-b1af-713ee92d3cd5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025145Z:e7ae9d02-0046-4a9c-b1af-713ee92d3cd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521/dnsAliases/sqlcrudtest-4979?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTUyMS9kbnNBbGlhc2VzL3NxbGNydWR0ZXN0LTQ5Nzk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23c312e9-b338-420e-97e0-c165487cc23f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropServerDnsAlias\",\r\n \"startTime\": \"2017-10-19T02:51:45.653Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central%20US/dnsAliasOperationResults/772a579e-3484-41d4-b1fc-ea16cdd2beb9?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central US/dnsAliasAsyncOperation/772a579e-3484-41d4-b1fc-ea16cdd2beb9?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "a99c8d5b-59ff-4537-8483-d4f916b8921d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "b4985a7a-9964-4484-900f-25666945f498" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025146Z:b4985a7a-9964-4484-900f-25666945f498" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/providers/Microsoft.Sql/locations/Central%20US/dnsAliasAsyncOperation/772a579e-3484-41d4-b1fc-ea16cdd2beb9?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9DZW50cmFsJTIwVVMvZG5zQWxpYXNBc3luY09wZXJhdGlvbi83NzJhNTc5ZS0zNDg0LTQxZDQtYjFmYy1lYTE2Y2RkMmJlYjk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"772a579e-3484-41d4-b1fc-ea16cdd2beb9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2017-10-19T02:51:45.653Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e127980b-e218-41f4-b305-f196759ead48" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14777" + ], + "x-ms-correlation-request-id": [ + "5652199b-ab3b-4643-a205-79f3416e408a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025156Z:5652199b-ab3b-4643-a205-79f3416e408a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourceGroups/sqlcrudtest-730/providers/Microsoft.Sql/servers/sqlcrudtest-521/dnsAliases/sqlcrudtest-4979?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMC9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTUyMS9kbnNBbGlhc2VzL3NxbGNydWR0ZXN0LTQ5Nzk/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8871c435-5a60-46d2-8aa8-42d68f6dbd69" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.8.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The requested resource of type 'Microsoft.Sql/servers/dnsAliases' with name 'sqlcrudtest-4979' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "159" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "43341c43-9d91-4a34-a416-7ebeaf89e2ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14776" + ], + "x-ms-correlation-request-id": [ + "caed1242-2302-450b-bd24-bc65f7587daa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025156Z:caed1242-2302-450b-bd24-bc65f7587daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/resourcegroups/sqlcrudtest-730?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDUxM2UyZTktOTdkYi00MGY2LThkMWEtYWIzYjM0MGNjODFhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aff00091-10c5-459a-92bf-420c157bb567" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 19 Oct 2017 02:51:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/d513e2e9-97db-40f6-8d1a-ab3b340cc81a/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczMC1KQVBBTkVBU1QiLCJqb2JMb2NhdGlvbiI6ImphcGFuZWFzdCJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "6aeec7cc-3a8b-43a2-bc75-38222545f72a" + ], + "x-ms-correlation-request-id": [ + "6aeec7cc-3a8b-43a2-bc75-38222545f72a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171019T025159Z:6aeec7cc-3a8b-43a2-bc75-38222545f72a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-730" + ], + "CreateServer": [ + "sqlcrudtest-8091", + "sqlcrudtest-521" + ], + "TestCrudServerDnsAlias": [ + "sqlcrudtest-4979" + ] + }, + "Variables": { + "SubscriptionId": "d513e2e9-97db-40f6-8d1a-ab3b340cc81a", + "DefaultLocation": "Japan East", + "DefaultSecondaryLocationId": "centralus" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs index 442732ccde6d..81c7aa900594 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs @@ -287,7 +287,7 @@ public static void ValidateVirtualNetworkRule(VirtualNetworkRule expected, Virtu Assert.NotNull(actual.Id); Assert.Equal(expected.VirtualNetworkSubnetId, actual.VirtualNetworkSubnetId); } - + internal static Task CreateDatabasesAsync( SqlManagementClient sqlClient, string resourceGroupName, diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index 37fa1b331a18..c23683039ddb 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,10 +1,9 @@ -2017-09-25 17:05:40 UTC +2017-10-19 02:35:14 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: current -Commit: 2416692e60a12e8fc3b6d7c88272f5fcf5cc93aa +Commit: 7887c455ed73f02299e1585c3549ad28aeab8b54 2) AutoRest information Requested version: latest -Latest version: 1.2.2