From 732d2fd331cdaf033247b9c9fb258e50bf8418e2 Mon Sep 17 00:00:00 2001 From: Wan Yang Date: Fri, 8 Oct 2021 18:32:28 +0800 Subject: [PATCH 1/2] Oct. release --- .../mgmtmetadata/synapse_resource-manager.txt | 6 +- .../src/Generated/IKustoOperations.cs | 70 + ...ttachedDatabaseConfigurationsOperations.cs | 211 + .../IKustoPoolChildResourceOperations.cs | 59 + .../IKustoPoolDataConnectionsOperations.cs | 410 ++ ...lDatabasePrincipalAssignmentsOperations.cs | 265 + .../IKustoPoolDatabasesOperations.cs | 278 + .../src/Generated/IKustoPoolOperations.cs | 46 + ...KustoPoolPrincipalAssignmentsOperations.cs | 244 + .../src/Generated/IKustoPoolsOperations.cs | 668 ++ .../src/Generated/ISynapseManagementClient.cs | 45 + .../src/Generated/KustoOperations.cs | 384 ++ .../Generated/KustoOperationsExtensions.cs | 91 + ...ttachedDatabaseConfigurationsOperations.cs | 1038 +++ ...abaseConfigurationsOperationsExtensions.cs | 341 + .../KustoPoolChildResourceOperations.cs | 289 + ...toPoolChildResourceOperationsExtensions.cs | 79 + .../KustoPoolDataConnectionsOperations.cs | 1870 +++++ ...PoolDataConnectionsOperationsExtensions.cs | 677 ++ ...lDatabasePrincipalAssignmentsOperations.cs | 1305 ++++ ...rincipalAssignmentsOperationsExtensions.cs | 435 ++ .../Generated/KustoPoolDatabasesOperations.cs | 1303 ++++ .../KustoPoolDatabasesOperationsExtensions.cs | 455 ++ .../src/Generated/KustoPoolOperations.cs | 232 + .../KustoPoolOperationsExtensions.cs | 55 + ...KustoPoolPrincipalAssignmentsOperations.cs | 1254 ++++ ...rincipalAssignmentsOperationsExtensions.cs | 393 ++ .../src/Generated/KustoPoolsOperations.cs | 3329 +++++++++ .../KustoPoolsOperationsExtensions.cs | 1119 +++ .../Models/AttachedDatabaseConfiguration.cs | 161 + .../src/Generated/Models/AzureCapacity.cs | 92 + .../src/Generated/Models/AzureResourceSku.cs | 85 + .../src/Generated/Models/AzureScaleType.cs | 23 + .../src/Generated/Models/AzureSku.cs | 90 + .../Generated/Models/BlobStorageEventType.cs | 22 + .../src/Generated/Models/CheckNameResult.cs | 83 + .../Models/ClusterPrincipalAssignment.cs | 151 + ...sterPrincipalAssignmentCheckNameRequest.cs | 82 + .../Generated/Models/ClusterPrincipalRole.cs | 22 + .../src/Generated/Models/Compression.cs | 22 + .../src/Generated/Models/CreatedByType.cs | 24 + .../src/Generated/Models/DataConnection.cs | 68 + .../Models/DataConnectionCheckNameRequest.cs | 81 + .../Models/DataConnectionValidation.cs | 61 + .../DataConnectionValidationListResult.cs | 56 + .../Models/DataConnectionValidationResult.cs | 55 + .../src/Generated/Models/Database.cs | 68 + .../Models/DatabaseCheckNameRequest.cs | 79 + .../Models/DatabasePrincipalAssignment.cs | 155 + ...basePrincipalAssignmentCheckNameRequest.cs | 82 + .../Generated/Models/DatabasePrincipalRole.cs | 26 + .../Generated/Models/DatabaseStatistics.cs | 53 + .../src/Generated/Models/DatabaseStatus.cs | 41 + .../DefaultPrincipalsModificationKind.cs | 23 + .../Models/EventGridDataConnection.cs | 180 + .../Generated/Models/EventGridDataFormat.cs | 36 + .../Models/EventHubDataConnection.cs | 163 + .../Generated/Models/EventHubDataFormat.cs | 36 + .../Models/FollowerDatabaseDefinition.cs | 92 + .../Generated/Models/IotHubDataConnection.cs | 166 + .../src/Generated/Models/IotHubDataFormat.cs | 36 + .../src/Generated/Models/KustoPool.cs | 204 + .../Models/KustoPoolCheckNameRequest.cs | 78 + .../Generated/Models/KustoPoolListResult.cs | 53 + .../src/Generated/Models/KustoPoolUpdate.cs | 184 + .../src/Generated/Models/LanguageExtension.cs | 53 + .../Generated/Models/LanguageExtensionName.cs | 22 + .../Models/LanguageExtensionsList.cs | 53 + .../src/Generated/Models/Operation.cs | 80 + .../src/Generated/Models/OperationDisplay.cs | 81 + .../Generated/Models/OptimizedAutoscale.cs | 88 + .../src/Generated/Models/PrincipalType.cs | 23 + .../src/Generated/Models/ReadWriteDatabase.cs | 106 + .../src/Generated/Models/Reason.cs | 22 + .../Models/ResourceProvisioningState.cs | 27 + .../src/Generated/Models/SkuDescription.cs | 95 + .../Generated/Models/SkuLocationInfoItem.cs | 75 + .../src/Generated/Models/SkuName.cs | 22 + .../src/Generated/Models/SkuSize.cs | 24 + .../src/Generated/Models/SqlDatabase.cs | 53 +- .../Models/SqlDatabaseDataRetention.cs | 62 + .../src/Generated/Models/SqlDatabaseUpdate.cs | 53 +- .../src/Generated/Models/State.cs | 29 + ...RedundancyType.cs => StorageRedundancy.cs} | 8 +- .../Models/TableLevelSharingProperties.cs | 105 + .../src/Generated/Models/Type.cs | 60 + .../SdkInfo_SynapseManagementClient.cs | 16 +- .../src/Generated/SynapseManagementClient.cs | 58 + .../Microsoft.Azure.Management.Synapse.csproj | 4 +- .../src/Properties/AssemblyInfo.cs | 2 +- .../ScenarioTests/KustopoolOperationTests.cs | 185 + .../TestKustoPoolDatabaseLifeCycle.json | 3984 +++++++++++ .../TestKustoPoolLifeCycle.json | 6126 +++++++++++++++++ .../tests/TestHelpers/CommonTestsFixture.cs | 46 + .../SynapseManagementTestUtilities.cs | 24 + 95 files changed, 31425 insertions(+), 45 deletions(-) create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolAttachedDatabaseConfigurationsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolChildResourceOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDataConnectionsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasePrincipalAssignmentsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasesOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolPrincipalAssignmentsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AttachedDatabaseConfiguration.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureCapacity.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureResourceSku.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureScaleType.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureSku.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BlobStorageEventType.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CheckNameResult.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignment.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignmentCheckNameRequest.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalRole.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Compression.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreatedByType.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnection.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionCheckNameRequest.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidation.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationListResult.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationResult.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Database.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseCheckNameRequest.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignment.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignmentCheckNameRequest.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalRole.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatistics.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatus.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DefaultPrincipalsModificationKind.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataConnection.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataFormat.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataConnection.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataFormat.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/FollowerDatabaseDefinition.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataConnection.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataFormat.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPool.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolCheckNameRequest.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolListResult.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolUpdate.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtension.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionName.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionsList.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Operation.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OperationDisplay.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OptimizedAutoscale.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/PrincipalType.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ReadWriteDatabase.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Reason.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceProvisioningState.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuDescription.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuLocationInfoItem.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuName.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuSize.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseDataRetention.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/State.cs rename sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/{SqlDatabaseStorageRedundancyType.cs => StorageRedundancy.cs} (84%) create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/TableLevelSharingProperties.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Type.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json diff --git a/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt b/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt index 3bf8bf56b83a7..1dd1e64d9a072 100644 --- a/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt @@ -3,13 +3,13 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\ZeshiLuo\azure-sdk-for-net-1\sdk +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\code\azure-sdk-for-net\sdk Autorest CSharp Version: 2.3.82 -2021-09-03 08:58:59 UTC +2021-09-30 09:50:13 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: main -Commit: 5d09c12c024fa7efbaca6a95b9741a46a886fe6f +Commit: ce4ba4d08f249b9e469095572d3dc48b23ab7de9 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoOperations.cs new file mode 100644 index 0000000000000..91ebdffd4158a --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoOperations.cs @@ -0,0 +1,70 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoOperations operations. + /// + public partial interface IKustoOperations + { + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolAttachedDatabaseConfigurationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolAttachedDatabaseConfigurationsOperations.cs new file mode 100644 index 0000000000000..2c624ab44922c --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolAttachedDatabaseConfigurationsOperations.cs @@ -0,0 +1,211 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolAttachedDatabaseConfigurationsOperations operations. + /// + public partial interface IKustoPoolAttachedDatabaseConfigurationsOperations + { + /// + /// Returns the list of attached database configurations of the given + /// Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListByKustoPoolWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolChildResourceOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolChildResourceOperations.cs new file mode 100644 index 0000000000000..3f096a6c59477 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolChildResourceOperations.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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolChildResourceOperations operations. + /// + public partial interface IKustoPoolChildResourceOperations + { + /// + /// Checks that the Kusto Pool child resource name is valid and is not + /// already in use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto Pool child resource. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDataConnectionsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDataConnectionsOperations.cs new file mode 100644 index 0000000000000..e1bc2f53397cd --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDataConnectionsOperations.cs @@ -0,0 +1,410 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolDataConnectionsOperations operations. + /// + public partial interface IKustoPoolDataConnectionsOperations + { + /// + /// Checks that the data connection name is valid and is not already in + /// use. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate + /// 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> DataConnectionValidationMethodWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns the list of data connections of the given Kusto pool + /// database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the data connection with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate + /// 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> BeginDataConnectionValidationMethodWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the data connection with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasePrincipalAssignmentsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasePrincipalAssignmentsOperations.cs new file mode 100644 index 0000000000000..cf04d8c80afa1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasePrincipalAssignmentsOperations.cs @@ -0,0 +1,265 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolDatabasePrincipalAssignmentsOperations operations. + /// + public partial interface IKustoPoolDatabasePrincipalAssignmentsOperations + { + /// + /// Checks that the database principal assignment is valid and is not + /// already in use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the resource. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Kusto pool database principalAssignments. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the + /// 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> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasesOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasesOperations.cs new file mode 100644 index 0000000000000..de25affdc6cf1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolDatabasesOperations.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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolDatabasesOperations operations. + /// + public partial interface IKustoPoolDatabasesOperations + { + /// + /// Returns the list of databases of the given Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// 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>> ListByKustoPoolWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the database with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the database with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolOperations.cs new file mode 100644 index 0000000000000..7d800643f9143 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolOperations.cs @@ -0,0 +1,46 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolOperations operations. + /// + public partial interface IKustoPoolOperations + { + /// + /// Lists eligible SKUs for Kusto Pool resource. + /// + /// + /// 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>> ListSkusWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolPrincipalAssignmentsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolPrincipalAssignmentsOperations.cs new file mode 100644 index 0000000000000..ba128ad8a547b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolPrincipalAssignmentsOperations.cs @@ -0,0 +1,244 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolPrincipalAssignmentsOperations operations. + /// + public partial interface IKustoPoolPrincipalAssignmentsOperations + { + /// + /// Checks that the principal assignment name is valid and is not + /// already in use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the principal assignment. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Kusto pool principalAssignments. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the + /// 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> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolsOperations.cs new file mode 100644 index 0000000000000..04cd80cdc3be9 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IKustoPoolsOperations.cs @@ -0,0 +1,668 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// KustoPoolsOperations operations. + /// + public partial interface IKustoPoolsOperations + { + /// + /// Checks that the kusto pool name is valid and is not already in use. + /// + /// + /// The name of Azure region. + /// + /// + /// The name of the cluster. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string location, KustoPoolCheckNameRequest kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List Kusto pools + /// + /// + /// List all Kusto pools + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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> ListByWorkspaceWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the + /// current Kusto Pool. Specify the last-seen ETag value to prevent + /// accidentally overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent + /// updating an existing Kusto Pool. Other values will result in a 412 + /// Pre-condition Failed response. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the + /// current Kusto Pool. Specify the last-seen ETag value to prevent + /// accidentally overwriting concurrent changes. + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Stops a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 StopWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 StartWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns the SKUs available for the provided resource. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListSkusByResourceWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns a list of language extensions that can run within KQL + /// queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// 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 AddLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Remove a list of language extensions that can run within KQL + /// queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// 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 RemoveLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns a list of databases that are owned by this Kusto Pool and + /// were followed by another Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// 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 DetachFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the + /// current Kusto Pool. Specify the last-seen ETag value to prevent + /// accidentally overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent + /// updating an existing Kusto Pool. Other values will result in a 412 + /// Pre-condition Failed response. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the + /// current Kusto Pool. Specify the last-seen ETag value to prevent + /// accidentally overwriting concurrent changes. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Stops a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginStopWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginStartWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// 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 BeginAddLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Remove a list of language extensions that can run within KQL + /// queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// 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 BeginRemoveLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// 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 BeginDetachFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs index 1f82b6c5bcf4f..37a9bff85962a 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs @@ -384,5 +384,50 @@ public partial interface ISynapseManagementClient : System.IDisposable /// ISparkConfigurationsOperations SparkConfigurations { get; } + /// + /// Gets the IKustoOperations. + /// + IKustoOperations KustoOperations { get; } + + /// + /// Gets the IKustoPoolOperations. + /// + IKustoPoolOperations KustoPool { get; } + + /// + /// Gets the IKustoPoolsOperations. + /// + IKustoPoolsOperations KustoPools { get; } + + /// + /// Gets the IKustoPoolChildResourceOperations. + /// + IKustoPoolChildResourceOperations KustoPoolChildResource { get; } + + /// + /// Gets the IKustoPoolAttachedDatabaseConfigurationsOperations. + /// + IKustoPoolAttachedDatabaseConfigurationsOperations KustoPoolAttachedDatabaseConfigurations { get; } + + /// + /// Gets the IKustoPoolDatabasesOperations. + /// + IKustoPoolDatabasesOperations KustoPoolDatabases { get; } + + /// + /// Gets the IKustoPoolDataConnectionsOperations. + /// + IKustoPoolDataConnectionsOperations KustoPoolDataConnections { get; } + + /// + /// Gets the IKustoPoolPrincipalAssignmentsOperations. + /// + IKustoPoolPrincipalAssignmentsOperations KustoPoolPrincipalAssignments { get; } + + /// + /// Gets the IKustoPoolDatabasePrincipalAssignmentsOperations. + /// + IKustoPoolDatabasePrincipalAssignmentsOperations KustoPoolDatabasePrincipalAssignments { get; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperations.cs new file mode 100644 index 0000000000000..50791c88204df --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperations.cs @@ -0,0 +1,384 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoOperations operations. + /// + internal partial class KustoOperations : IServiceOperations, IKustoOperations + { + /// + /// Initializes a new instance of the KustoOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// 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 + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Synapse/kustooperations").ToString(); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(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, "ListNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperationsExtensions.cs new file mode 100644 index 0000000000000..7f7e5182bdcfc --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoOperationsExtensions.cs @@ -0,0 +1,91 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoOperations. + /// + public static partial class KustoOperationsExtensions + { + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IKustoOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IKustoOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IKustoOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists available operations for the Kusto sub-resources inside + /// Microsoft.Synapse provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IKustoOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperations.cs new file mode 100644 index 0000000000000..2ce6e51d6f9cd --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperations.cs @@ -0,0 +1,1038 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolAttachedDatabaseConfigurationsOperations operations. + /// + internal partial class KustoPoolAttachedDatabaseConfigurationsOperations : IServiceOperations, IKustoPoolAttachedDatabaseConfigurationsOperations + { + /// + /// Initializes a new instance of the KustoPoolAttachedDatabaseConfigurationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolAttachedDatabaseConfigurationsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Returns the list of attached database configurations of the given Kusto + /// Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListByKustoPoolWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByKustoPool", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Returns an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (attachedDatabaseConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "attachedDatabaseConfigurationName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("attachedDatabaseConfigurationName", attachedDatabaseConfigurationName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{attachedDatabaseConfigurationName}", System.Uri.EscapeDataString(attachedDatabaseConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 or updates an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (attachedDatabaseConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "attachedDatabaseConfigurationName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("attachedDatabaseConfigurationName", attachedDatabaseConfigurationName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{attachedDatabaseConfigurationName}", System.Uri.EscapeDataString(attachedDatabaseConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + 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 != 201 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _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 attached database configuration with the given name. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (attachedDatabaseConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "attachedDatabaseConfigurationName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("attachedDatabaseConfigurationName", attachedDatabaseConfigurationName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{attachedDatabaseConfigurationName}", System.Uri.EscapeDataString(attachedDatabaseConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperationsExtensions.cs new file mode 100644 index 0000000000000..a1ad3265b450a --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolAttachedDatabaseConfigurationsOperationsExtensions.cs @@ -0,0 +1,341 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolAttachedDatabaseConfigurationsOperations. + /// + public static partial class KustoPoolAttachedDatabaseConfigurationsOperationsExtensions + { + /// + /// Returns the list of attached database configurations of the given Kusto + /// Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable ListByKustoPool(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.ListByKustoPoolAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Returns the list of attached database configurations of the given Kusto + /// Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByKustoPoolAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByKustoPoolWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static AttachedDatabaseConfiguration Get(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName) + { + return operations.GetAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Returns an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + public static AttachedDatabaseConfiguration CreateOrUpdate(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters) + { + return operations.CreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void Delete(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName) + { + operations.DeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + public static AttachedDatabaseConfiguration BeginCreateOrUpdate(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters) + { + return operations.BeginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an attached database configuration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, AttachedDatabaseConfiguration parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void BeginDelete(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName) + { + operations.BeginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the attached database configuration with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the attached database configuration. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolAttachedDatabaseConfigurationsOperations operations, string workspaceName, string kustoPoolName, string attachedDatabaseConfigurationName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperations.cs new file mode 100644 index 0000000000000..2fff543922d97 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperations.cs @@ -0,0 +1,289 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolChildResourceOperations operations. + /// + internal partial class KustoPoolChildResourceOperations : IServiceOperations, IKustoPoolChildResourceOperations + { + /// + /// Initializes a new instance of the KustoPoolChildResourceOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolChildResourceOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Checks that the Kusto Pool child resource name is valid and is not already + /// in use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto Pool child resource. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (resourceName != null) + { + resourceName.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(resourceName != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(resourceName, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperationsExtensions.cs new file mode 100644 index 0000000000000..389935bd117f1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolChildResourceOperationsExtensions.cs @@ -0,0 +1,79 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolChildResourceOperations. + /// + public static partial class KustoPoolChildResourceOperationsExtensions + { + /// + /// Checks that the Kusto Pool child resource name is valid and is not already + /// in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto Pool child resource. + /// + public static CheckNameResult CheckNameAvailability(this IKustoPoolChildResourceOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName) + { + return operations.CheckNameAvailabilityAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName).GetAwaiter().GetResult(); + } + + /// + /// Checks that the Kusto Pool child resource name is valid and is not already + /// in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto Pool child resource. + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IKustoPoolChildResourceOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperations.cs new file mode 100644 index 0000000000000..2856d07e2387c --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperations.cs @@ -0,0 +1,1870 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolDataConnectionsOperations operations. + /// + internal partial class KustoPoolDataConnectionsOperations : IServiceOperations, IKustoPoolDataConnectionsOperations + { + /// + /// Initializes a new instance of the KustoPoolDataConnectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolDataConnectionsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Checks that the data connection name is valid and is not already in use. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (dataConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataConnectionName"); + } + if (dataConnectionName != null) + { + dataConnectionName.Validate(); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("dataConnectionName", dataConnectionName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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(dataConnectionName != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(dataConnectionName, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DataConnectionValidationMethodWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDataConnectionValidationMethodWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns the list of data connections of the given Kusto pool database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Returns a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (dataConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataConnectionName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("dataConnectionName", dataConnectionName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{dataConnectionName}", System.Uri.EscapeDataString(dataConnectionName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 or updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the data connection with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate 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> BeginDataConnectionValidationMethodWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDataConnectionValidationMethod", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 or updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (dataConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataConnectionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("dataConnectionName", dataConnectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{dataConnectionName}", System.Uri.EscapeDataString(dataConnectionName)); + 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; + 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 != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Updates a data connection. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (dataConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataConnectionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("dataConnectionName", dataConnectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{dataConnectionName}", System.Uri.EscapeDataString(dataConnectionName)); + 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("PATCH"); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 == 202) + { + _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 data connection with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (dataConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dataConnectionName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("dataConnectionName", dataConnectionName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{dataConnectionName}", System.Uri.EscapeDataString(dataConnectionName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperationsExtensions.cs new file mode 100644 index 0000000000000..df4ccb148482c --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDataConnectionsOperationsExtensions.cs @@ -0,0 +1,677 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolDataConnectionsOperations. + /// + public static partial class KustoPoolDataConnectionsOperationsExtensions + { + /// + /// Checks that the data connection name is valid and is not already in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + public static CheckNameResult CheckNameAvailability(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName) + { + return operations.CheckNameAvailabilityAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Checks that the data connection name is valid and is not already in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + public static DataConnectionValidationListResult DataConnectionValidationMethod(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters) + { + return operations.DataConnectionValidationMethodAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task DataConnectionValidationMethodAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DataConnectionValidationMethodWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns the list of data connections of the given Kusto pool database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + public static IEnumerable ListByDatabase(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Returns the list of data connections of the given Kusto pool database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + public static DataConnection Get(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) + { + return operations.GetAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Returns a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + public static DataConnection CreateOrUpdate(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update operation. + /// + public static DataConnection Update(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters) + { + return operations.UpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the data connection with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + public static void Delete(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) + { + operations.DeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the data connection with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + public static DataConnectionValidationListResult BeginDataConnectionValidationMethod(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters) + { + return operations.BeginDataConnectionValidationMethodAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Checks that the data connection parameters are valid. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDataConnectionValidationMethodAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDataConnectionValidationMethodWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + public static DataConnection BeginCreateOrUpdate(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update operation. + /// + public static DataConnection BeginUpdate(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a data connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The data connection parameters supplied to the Update operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the data connection with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + public static void BeginDelete(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) + { + operations.BeginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the data connection with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the data connection. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperations.cs new file mode 100644 index 0000000000000..6b039cb5c8469 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperations.cs @@ -0,0 +1,1305 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolDatabasePrincipalAssignmentsOperations operations. + /// + internal partial class KustoPoolDatabasePrincipalAssignmentsOperations : IServiceOperations, IKustoPoolDatabasePrincipalAssignmentsOperations + { + /// + /// Initializes a new instance of the KustoPoolDatabasePrincipalAssignmentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolDatabasePrincipalAssignmentsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Checks that the database principal assignment is valid and is not already + /// in use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the resource. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (principalAssignmentName != null) + { + principalAssignmentName.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(principalAssignmentName != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(principalAssignmentName, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Lists all Kusto pool database principalAssignments. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Gets a Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + 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 != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperationsExtensions.cs new file mode 100644 index 0000000000000..d3faacc380e88 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasePrincipalAssignmentsOperationsExtensions.cs @@ -0,0 +1,435 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolDatabasePrincipalAssignmentsOperations. + /// + public static partial class KustoPoolDatabasePrincipalAssignmentsOperationsExtensions + { + /// + /// Checks that the database principal assignment is valid and is not already + /// in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the resource. + /// + public static CheckNameResult CheckNameAvailability(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) + { + return operations.CheckNameAvailabilityAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName).GetAwaiter().GetResult(); + } + + /// + /// Checks that the database principal assignment is valid and is not already + /// in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the resource. + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Kusto pool database principalAssignments. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable List(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName) + { + return operations.ListAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all Kusto pool database principalAssignments. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static DatabasePrincipalAssignment Get(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName) + { + return operations.GetAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the operation. + /// + public static DatabasePrincipalAssignment CreateOrUpdate(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters) + { + return operations.CreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void Delete(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName) + { + operations.DeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the operation. + /// + public static DatabasePrincipalAssignment BeginCreateOrUpdate(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters) + { + return operations.BeginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a Kusto pool database principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto principalAssignments parameters supplied for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, DatabasePrincipalAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void BeginDelete(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName) + { + operations.BeginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolDatabasePrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string databaseName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperations.cs new file mode 100644 index 0000000000000..20f68f7113c92 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperations.cs @@ -0,0 +1,1303 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolDatabasesOperations operations. + /// + internal partial class KustoPoolDatabasesOperations : IServiceOperations, IKustoPoolDatabasesOperations + { + /// + /// Initializes a new instance of the KustoPoolDatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolDatabasesOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Returns the list of databases of the given Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// 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>> ListByKustoPoolWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByKustoPool", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Returns a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 or updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the database with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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; + 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 != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Updates a database. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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("PATCH"); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 == 202) + { + _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 database with the given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// 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 workspaceName, string kustoPoolName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2021-06-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("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("databaseName", databaseName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperationsExtensions.cs new file mode 100644 index 0000000000000..65af87257d6fd --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolDatabasesOperationsExtensions.cs @@ -0,0 +1,455 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolDatabasesOperations. + /// + public static partial class KustoPoolDatabasesOperationsExtensions + { + /// + /// Returns the list of databases of the given Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + public static IEnumerable ListByKustoPool(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName) + { + return operations.ListByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName).GetAwaiter().GetResult(); + } + + /// + /// Returns the list of databases of the given Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByKustoPoolAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByKustoPoolWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + public static Database Get(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + return operations.GetAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Returns a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + public static Database CreateOrUpdate(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update operation. + /// + public static Database Update(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters) + { + return operations.UpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the database with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + public static void Delete(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + operations.DeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the database with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + public static Database BeginCreateOrUpdate(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update operation. + /// + public static Database BeginUpdate(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The database parameters supplied to the Update operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the database with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + public static void BeginDelete(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) + { + operations.BeginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the database with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the database in the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperations.cs new file mode 100644 index 0000000000000..1d3bae15faf5f --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperations.cs @@ -0,0 +1,232 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolOperations operations. + /// + internal partial class KustoPoolOperations : IServiceOperations, IKustoPoolOperations + { + /// + /// Initializes a new instance of the KustoPoolOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Lists eligible SKUs for Kusto Pool resource. + /// + /// + /// 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>> ListSkusWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListSkus", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/skus").ToString(); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperationsExtensions.cs new file mode 100644 index 0000000000000..9433669eb9445 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolOperationsExtensions.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolOperations. + /// + public static partial class KustoPoolOperationsExtensions + { + /// + /// Lists eligible SKUs for Kusto Pool resource. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable ListSkus(this IKustoPoolOperations operations) + { + return operations.ListSkusAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists eligible SKUs for Kusto Pool resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListSkusAsync(this IKustoPoolOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListSkusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperations.cs new file mode 100644 index 0000000000000..3eb13c7230d95 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperations.cs @@ -0,0 +1,1254 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolPrincipalAssignmentsOperations operations. + /// + internal partial class KustoPoolPrincipalAssignmentsOperations : IServiceOperations, IKustoPoolPrincipalAssignmentsOperations + { + /// + /// Initializes a new instance of the KustoPoolPrincipalAssignmentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolPrincipalAssignmentsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Checks that the principal assignment name is valid and is not already in + /// use. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the principal assignment. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (principalAssignmentName != null) + { + principalAssignmentName.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(principalAssignmentName != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(principalAssignmentName, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Lists all Kusto pool principalAssignments. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Gets a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the 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> BeginCreateOrUpdateWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + 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 != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 a Kusto pool principalAssignment. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (principalAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "principalAssignmentName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("principalAssignmentName", principalAssignmentName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{principalAssignmentName}", System.Uri.EscapeDataString(principalAssignmentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperationsExtensions.cs new file mode 100644 index 0000000000000..0a6e802a2ac76 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolPrincipalAssignmentsOperationsExtensions.cs @@ -0,0 +1,393 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolPrincipalAssignmentsOperations. + /// + public static partial class KustoPoolPrincipalAssignmentsOperationsExtensions + { + /// + /// Checks that the principal assignment name is valid and is not already in + /// use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the principal assignment. + /// + public static CheckNameResult CheckNameAvailability(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) + { + return operations.CheckNameAvailabilityAsync(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName).GetAwaiter().GetResult(); + } + + /// + /// Checks that the principal assignment name is valid and is not already in + /// use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the principal assignment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Kusto pool principalAssignments. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable List(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.ListAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all Kusto pool principalAssignments. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static ClusterPrincipalAssignment Get(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName) + { + return operations.GetAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the operation. + /// + public static ClusterPrincipalAssignment CreateOrUpdate(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters) + { + return operations.CreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void Delete(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName) + { + operations.DeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the operation. + /// + public static ClusterPrincipalAssignment BeginCreateOrUpdate(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters) + { + return operations.BeginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The Kusto pool principalAssignment's parameters supplied for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, ClusterPrincipalAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void BeginDelete(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName) + { + operations.BeginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool principalAssignment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the Kusto principalAssignment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolPrincipalAssignmentsOperations operations, string workspaceName, string kustoPoolName, string principalAssignmentName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperations.cs new file mode 100644 index 0000000000000..870bcbe16d9d2 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperations.cs @@ -0,0 +1,3329 @@ +// +// 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.Synapse +{ + 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; + + /// + /// KustoPoolsOperations operations. + /// + internal partial class KustoPoolsOperations : IServiceOperations, IKustoPoolsOperations + { + /// + /// Initializes a new instance of the KustoPoolsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal KustoPoolsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Checks that the kusto pool name is valid and is not already in use. + /// + /// + /// The name of Azure region. + /// + /// + /// The name of the cluster. + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string location, KustoPoolCheckNameRequest kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (location != null) + { + if (location.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "location", 1); + } + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (kustoPoolName != null) + { + kustoPoolName.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + 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(kustoPoolName != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(kustoPoolName, 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) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// List Kusto pools + /// + /// + /// List all Kusto pools + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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> ListByWorkspaceWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkspace", 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.Synapse/workspaces/{workspaceName}/kustoPools").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Gets a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task StopWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStopWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task StartWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns the SKUs available for the provided resource. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListSkusByResourceWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListSkusByResource", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Returns a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListLanguageExtensions", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + // 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task AddLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginAddLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RemoveLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRemoveLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns a list of databases that are owned by this Kusto Pool and were + /// followed by another Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListFollowerDatabases", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + // 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DetachFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDetachFollowerDatabasesWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("ifNoneMatch", ifNoneMatch); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _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 (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + if (ifNoneMatch != null) + { + if (_httpRequest.Headers.Contains("If-None-Match")) + { + _httpRequest.Headers.Remove("If-None-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-None-Match", ifNoneMatch); + } + 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 != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _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("PATCH"); + _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 (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 == 202) + { + _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 a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// 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 workspaceName, string resourceGroupName, string kustoPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginStopWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginStop", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + // 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginStartWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginStart", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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; + // 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// 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 BeginAddLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (languageExtensionsToAdd == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "languageExtensionsToAdd"); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("languageExtensionsToAdd", languageExtensionsToAdd); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginAddLanguageExtensions", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(languageExtensionsToAdd != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(languageExtensionsToAdd, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// 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 BeginRemoveLanguageExtensionsWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (languageExtensionsToRemove == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "languageExtensionsToRemove"); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("languageExtensionsToRemove", languageExtensionsToRemove); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRemoveLanguageExtensions", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(languageExtensionsToRemove != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(languageExtensionsToRemove, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// 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 BeginDetachFollowerDatabasesWithHttpMessagesAsync(string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (kustoPoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "kustoPoolName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (followerDatabaseToRemove == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "followerDatabaseToRemove"); + } + if (followerDatabaseToRemove != null) + { + followerDatabaseToRemove.Validate(); + } + string apiVersion = "2021-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("kustoPoolName", kustoPoolName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("followerDatabaseToRemove", followerDatabaseToRemove); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDetachFollowerDatabases", 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.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases").ToString(); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{kustoPoolName}", System.Uri.EscapeDataString(kustoPoolName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + 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(followerDatabaseToRemove != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(followerDatabaseToRemove, 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperationsExtensions.cs new file mode 100644 index 0000000000000..3d8da26a6dbd8 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/KustoPoolsOperationsExtensions.cs @@ -0,0 +1,1119 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for KustoPoolsOperations. + /// + public static partial class KustoPoolsOperationsExtensions + { + /// + /// Checks that the kusto pool name is valid and is not already in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of Azure region. + /// + /// + /// The name of the cluster. + /// + public static CheckNameResult CheckNameAvailability(this IKustoPoolsOperations operations, string location, KustoPoolCheckNameRequest kustoPoolName) + { + return operations.CheckNameAvailabilityAsync(location, kustoPoolName).GetAwaiter().GetResult(); + } + + /// + /// Checks that the kusto pool name is valid and is not already in use. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of Azure region. + /// + /// + /// The name of the cluster. + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IKustoPoolsOperations operations, string location, KustoPoolCheckNameRequest kustoPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, kustoPoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List Kusto pools + /// + /// + /// List all Kusto pools + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + public static KustoPoolListResult ListByWorkspace(this IKustoPoolsOperations operations, string resourceGroupName, string workspaceName) + { + return operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// List Kusto pools + /// + /// + /// List all Kusto pools + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The cancellation token. + /// + public static async Task ListByWorkspaceAsync(this IKustoPoolsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkspaceWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static KustoPool Get(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.GetAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + public static KustoPool CreateOrUpdate(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string)) + { + return operations.CreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch).GetAwaiter().GetResult(); + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + public static KustoPool Update(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string)) + { + return operations.UpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + public static void Delete(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName) + { + operations.DeleteAsync(workspaceName, resourceGroupName, kustoPoolName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void Stop(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + operations.StopAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task StopAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.StopWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void Start(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + operations.StartAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task StartAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.StartWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Returns the SKUs available for the provided resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable ListSkusByResource(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.ListSkusByResourceAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Returns the SKUs available for the provided resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListSkusByResourceAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListSkusByResourceWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable ListLanguageExtensions(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.ListLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Returns a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListLanguageExtensionsAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + public static void AddLanguageExtensions(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) + { + operations.AddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd).GetAwaiter().GetResult(); + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// The cancellation token. + /// + public static async Task AddLanguageExtensionsAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.AddLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + public static void RemoveLanguageExtensions(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) + { + operations.RemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove).GetAwaiter().GetResult(); + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// The cancellation token. + /// + public static async Task RemoveLanguageExtensionsAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RemoveLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Returns a list of databases that are owned by this Kusto Pool and were + /// followed by another Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable ListFollowerDatabases(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + return operations.ListFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Returns a list of databases that are owned by this Kusto Pool and were + /// followed by another Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListFollowerDatabasesAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListFollowerDatabasesWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + public static void DetachFollowerDatabases(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove) + { + operations.DetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove).GetAwaiter().GetResult(); + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// The cancellation token. + /// + public static async Task DetachFollowerDatabasesAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DetachFollowerDatabasesWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + public static KustoPool BeginCreateOrUpdate(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string)) + { + return operations.BeginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch).GetAwaiter().GetResult(); + } + + /// + /// Create or update a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the CreateOrUpdate operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// Set to '*' to allow a new Kusto Pool to be created, but to prevent updating + /// an existing Kusto Pool. Other values will result in a 412 Pre-condition + /// Failed response. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPool parameters, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + public static KustoPool BeginUpdate(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string)) + { + return operations.BeginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Update a Kusto Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The Kusto pool parameters supplied to the Update operation. + /// + /// + /// The ETag of the Kusto Pool. Omit this value to always overwrite the current + /// Kusto Pool. Specify the last-seen ETag value to prevent accidentally + /// overwriting concurrent changes. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, KustoPoolUpdate parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + public static void BeginDelete(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName) + { + operations.BeginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IKustoPoolsOperations operations, string workspaceName, string resourceGroupName, string kustoPoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(workspaceName, resourceGroupName, kustoPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void BeginStop(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + operations.BeginStopAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Stops a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task BeginStopAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginStopWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static void BeginStart(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName) + { + operations.BeginStartAsync(workspaceName, kustoPoolName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Starts a Kusto pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task BeginStartAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginStartWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + public static void BeginAddLanguageExtensions(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) + { + operations.BeginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd).GetAwaiter().GetResult(); + } + + /// + /// Add a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to add. + /// + /// + /// The cancellation token. + /// + public static async Task BeginAddLanguageExtensionsAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginAddLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + public static void BeginRemoveLanguageExtensions(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) + { + operations.BeginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove).GetAwaiter().GetResult(); + } + + /// + /// Remove a list of language extensions that can run within KQL queries. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The language extensions to remove. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRemoveLanguageExtensionsAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRemoveLanguageExtensionsWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + public static void BeginDetachFollowerDatabases(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove) + { + operations.BeginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove).GetAwaiter().GetResult(); + } + + /// + /// Detaches all followers of a database owned by this Kusto Pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the workspace + /// + /// + /// The name of the Kusto pool. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The follower databases properties to remove. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDetachFollowerDatabasesAsync(this IKustoPoolsOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, FollowerDatabaseDefinition followerDatabaseToRemove, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDetachFollowerDatabasesWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AttachedDatabaseConfiguration.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AttachedDatabaseConfiguration.cs new file mode 100644 index 0000000000000..275c3b01ab6e1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AttachedDatabaseConfiguration.cs @@ -0,0 +1,161 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Class representing an attached database configuration. + /// + [Rest.Serialization.JsonTransformation] + public partial class AttachedDatabaseConfiguration : ProxyResource + { + /// + /// Initializes a new instance of the AttachedDatabaseConfiguration + /// class. + /// + public AttachedDatabaseConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AttachedDatabaseConfiguration + /// class. + /// + /// The name of the database which you would + /// like to attach, use * if you want to follow all current and future + /// databases. + /// The resource id of the kusto pool + /// where the databases you would like to attach reside. + /// The default + /// principals modification kind. Possible values include: 'Union', + /// 'Replace', 'None' + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// The list of databases from the + /// clusterResourceId which are currently attached to the kusto + /// pool. + /// Table level sharing + /// specifications + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public AttachedDatabaseConfiguration(string databaseName, string kustoPoolResourceId, string defaultPrincipalsModificationKind, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string provisioningState = default(string), IList attachedDatabaseNames = default(IList), TableLevelSharingProperties tableLevelSharingProperties = default(TableLevelSharingProperties), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + Location = location; + ProvisioningState = provisioningState; + DatabaseName = databaseName; + KustoPoolResourceId = kustoPoolResourceId; + AttachedDatabaseNames = attachedDatabaseNames; + DefaultPrincipalsModificationKind = defaultPrincipalsModificationKind; + TableLevelSharingProperties = tableLevelSharingProperties; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the name of the database which you would like to + /// attach, use * if you want to follow all current and future + /// databases. + /// + [JsonProperty(PropertyName = "properties.databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the resource id of the kusto pool where the databases + /// you would like to attach reside. + /// + [JsonProperty(PropertyName = "properties.clusterResourceId")] + public string KustoPoolResourceId { get; set; } + + /// + /// Gets the list of databases from the clusterResourceId which are + /// currently attached to the kusto pool. + /// + [JsonProperty(PropertyName = "properties.attachedDatabaseNames")] + public IList AttachedDatabaseNames { get; private set; } + + /// + /// Gets or sets the default principals modification kind. Possible + /// values include: 'Union', 'Replace', 'None' + /// + [JsonProperty(PropertyName = "properties.defaultPrincipalsModificationKind")] + public string DefaultPrincipalsModificationKind { get; set; } + + /// + /// Gets or sets table level sharing specifications + /// + [JsonProperty(PropertyName = "properties.tableLevelSharingProperties")] + public TableLevelSharingProperties TableLevelSharingProperties { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DatabaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseName"); + } + if (KustoPoolResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "KustoPoolResourceId"); + } + if (DefaultPrincipalsModificationKind == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DefaultPrincipalsModificationKind"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureCapacity.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureCapacity.cs new file mode 100644 index 0000000000000..0886109535bdb --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureCapacity.cs @@ -0,0 +1,92 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure capacity definition. + /// + public partial class AzureCapacity + { + /// + /// Initializes a new instance of the AzureCapacity class. + /// + public AzureCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureCapacity class. + /// + /// Scale type. Possible values include: + /// 'automatic', 'manual', 'none' + /// Minimum allowed capacity. + /// Maximum allowed capacity. + /// The default capacity that would be + /// used. + public AzureCapacity(string scaleType, int minimum, int maximum, int defaultProperty) + { + ScaleType = scaleType; + Minimum = minimum; + Maximum = maximum; + DefaultProperty = defaultProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets scale type. Possible values include: 'automatic', + /// 'manual', 'none' + /// + [JsonProperty(PropertyName = "scaleType")] + public string ScaleType { get; set; } + + /// + /// Gets or sets minimum allowed capacity. + /// + [JsonProperty(PropertyName = "minimum")] + public int Minimum { get; set; } + + /// + /// Gets or sets maximum allowed capacity. + /// + [JsonProperty(PropertyName = "maximum")] + public int Maximum { get; set; } + + /// + /// Gets or sets the default capacity that would be used. + /// + [JsonProperty(PropertyName = "default")] + public int DefaultProperty { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ScaleType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ScaleType"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureResourceSku.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureResourceSku.cs new file mode 100644 index 0000000000000..5e103bf115696 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureResourceSku.cs @@ -0,0 +1,85 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure resource SKU definition. + /// + public partial class AzureResourceSku + { + /// + /// Initializes a new instance of the AzureResourceSku class. + /// + public AzureResourceSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureResourceSku class. + /// + /// Resource Namespace and Type. + /// The SKU details. + /// The number of instances of the + /// cluster. + public AzureResourceSku(string resourceType = default(string), AzureSku sku = default(AzureSku), AzureCapacity capacity = default(AzureCapacity)) + { + ResourceType = resourceType; + Sku = sku; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource Namespace and Type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the SKU details. + /// + [JsonProperty(PropertyName = "sku")] + public AzureSku Sku { get; set; } + + /// + /// Gets or sets the number of instances of the cluster. + /// + [JsonProperty(PropertyName = "capacity")] + public AzureCapacity Capacity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Sku != null) + { + Sku.Validate(); + } + if (Capacity != null) + { + Capacity.Validate(); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureScaleType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureScaleType.cs new file mode 100644 index 0000000000000..e94f60afafc32 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureScaleType.cs @@ -0,0 +1,23 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for AzureScaleType. + /// + public static class AzureScaleType + { + public const string Automatic = "automatic"; + public const string Manual = "manual"; + public const string None = "none"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureSku.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureSku.cs new file mode 100644 index 0000000000000..758f98ee04761 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureSku.cs @@ -0,0 +1,90 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure SKU definition. + /// + public partial class AzureSku + { + /// + /// Initializes a new instance of the AzureSku class. + /// + public AzureSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureSku class. + /// + /// SKU name. Possible values include: 'Compute + /// optimized', 'Storage optimized' + /// SKU size. Possible values include: 'Extra + /// small', 'Small', 'Medium', 'Large' + /// The number of instances of the + /// cluster. + public AzureSku(string name, string size, int? capacity = default(int?)) + { + Name = name; + Capacity = capacity; + Size = size; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SKU name. Possible values include: 'Compute + /// optimized', 'Storage optimized' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the number of instances of the cluster. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + /// + /// Gets or sets SKU size. Possible values include: 'Extra small', + /// 'Small', 'Medium', 'Large' + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Size == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Size"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BlobStorageEventType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BlobStorageEventType.cs new file mode 100644 index 0000000000000..9bda6f87b2359 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BlobStorageEventType.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for BlobStorageEventType. + /// + public static class BlobStorageEventType + { + public const string MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated"; + public const string MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CheckNameResult.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CheckNameResult.cs new file mode 100644 index 0000000000000..9b7dd1a9964a9 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CheckNameResult.cs @@ -0,0 +1,83 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The result returned from a check name availability request. + /// + public partial class CheckNameResult + { + /// + /// Initializes a new instance of the CheckNameResult class. + /// + public CheckNameResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CheckNameResult class. + /// + /// Specifies a Boolean value that + /// indicates if the name is available. + /// The name that was checked. + /// Message indicating an unavailable name due to + /// a conflict, or a description of the naming rules that are + /// violated. + /// Message providing the reason why the given + /// name is invalid. Possible values include: 'Invalid', + /// 'AlreadyExists' + public CheckNameResult(bool? nameAvailable = default(bool?), string name = default(string), string message = default(string), string reason = default(string)) + { + NameAvailable = nameAvailable; + Name = name; + Message = message; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies a Boolean value that indicates if the name + /// is available. + /// + [JsonProperty(PropertyName = "nameAvailable")] + public bool? NameAvailable { get; set; } + + /// + /// Gets or sets the name that was checked. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets message indicating an unavailable name due to a + /// conflict, or a description of the naming rules that are violated. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets message providing the reason why the given name is + /// invalid. Possible values include: 'Invalid', 'AlreadyExists' + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignment.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignment.cs new file mode 100644 index 0000000000000..0701f58b0a5ce --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignment.cs @@ -0,0 +1,151 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing a cluster principal assignment. + /// + [Rest.Serialization.JsonTransformation] + public partial class ClusterPrincipalAssignment : ProxyResource + { + /// + /// Initializes a new instance of the ClusterPrincipalAssignment class. + /// + public ClusterPrincipalAssignment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterPrincipalAssignment class. + /// + /// The principal ID assigned to the cluster + /// principal. It can be a user email, application ID, or security + /// group name. + /// Cluster principal role. Possible values include: + /// 'AllDatabasesAdmin', 'AllDatabasesViewer' + /// Principal type. Possible values + /// include: 'App', 'Group', 'User' + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// The tenant id of the principal + /// The tenant name of the principal + /// The principal name + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public ClusterPrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + PrincipalId = principalId; + Role = role; + TenantId = tenantId; + PrincipalType = principalType; + TenantName = tenantName; + PrincipalName = principalName; + ProvisioningState = provisioningState; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the principal ID assigned to the cluster principal. It + /// can be a user email, application ID, or security group name. + /// + [JsonProperty(PropertyName = "properties.principalId")] + public string PrincipalId { get; set; } + + /// + /// Gets or sets cluster principal role. Possible values include: + /// 'AllDatabasesAdmin', 'AllDatabasesViewer' + /// + [JsonProperty(PropertyName = "properties.role")] + public string Role { get; set; } + + /// + /// Gets or sets the tenant id of the principal + /// + [JsonProperty(PropertyName = "properties.tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets principal type. Possible values include: 'App', + /// 'Group', 'User' + /// + [JsonProperty(PropertyName = "properties.principalType")] + public string PrincipalType { get; set; } + + /// + /// Gets the tenant name of the principal + /// + [JsonProperty(PropertyName = "properties.tenantName")] + public string TenantName { get; private set; } + + /// + /// Gets the principal name + /// + [JsonProperty(PropertyName = "properties.principalName")] + public string PrincipalName { get; private set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PrincipalId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrincipalId"); + } + if (Role == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Role"); + } + if (PrincipalType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrincipalType"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignmentCheckNameRequest.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignmentCheckNameRequest.cs new file mode 100644 index 0000000000000..84c7e4739dc37 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalAssignmentCheckNameRequest.cs @@ -0,0 +1,82 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A principal assignment check name availability request. + /// + public partial class ClusterPrincipalAssignmentCheckNameRequest + { + /// + /// Initializes a new instance of the + /// ClusterPrincipalAssignmentCheckNameRequest class. + /// + public ClusterPrincipalAssignmentCheckNameRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ClusterPrincipalAssignmentCheckNameRequest class. + /// + /// Principal Assignment resource name. + public ClusterPrincipalAssignmentCheckNameRequest(string name) + { + Name = name; + CustomInit(); + } + /// + /// Static constructor for ClusterPrincipalAssignmentCheckNameRequest + /// class. + /// + static ClusterPrincipalAssignmentCheckNameRequest() + { + Type = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets principal Assignment resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The type of resource, + /// Microsoft.Synapse/workspaces/kustoPools/principalAssignments. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalRole.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalRole.cs new file mode 100644 index 0000000000000..21697c764f3a6 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ClusterPrincipalRole.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for ClusterPrincipalRole. + /// + public static class ClusterPrincipalRole + { + public const string AllDatabasesAdmin = "AllDatabasesAdmin"; + public const string AllDatabasesViewer = "AllDatabasesViewer"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Compression.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Compression.cs new file mode 100644 index 0000000000000..a509f4ead60e7 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Compression.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for Compression. + /// + public static class Compression + { + public const string None = "None"; + public const string GZip = "GZip"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreatedByType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreatedByType.cs new file mode 100644 index 0000000000000..89fe012d60f9f --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,24 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for CreatedByType. + /// + public static class CreatedByType + { + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnection.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnection.cs new file mode 100644 index 0000000000000..7defc0c426abc --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnection.cs @@ -0,0 +1,68 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing a data connection. + /// + public partial class DataConnection : ProxyResource + { + /// + /// Initializes a new instance of the DataConnection class. + /// + public DataConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataConnection class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public DataConnection(string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + Location = location; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionCheckNameRequest.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionCheckNameRequest.cs new file mode 100644 index 0000000000000..b932666e1c3a5 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionCheckNameRequest.cs @@ -0,0 +1,81 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A data connection check name availability request. + /// + public partial class DataConnectionCheckNameRequest + { + /// + /// Initializes a new instance of the DataConnectionCheckNameRequest + /// class. + /// + public DataConnectionCheckNameRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataConnectionCheckNameRequest + /// class. + /// + /// Data Connection name. + public DataConnectionCheckNameRequest(string name) + { + Name = name; + CustomInit(); + } + /// + /// Static constructor for DataConnectionCheckNameRequest class. + /// + static DataConnectionCheckNameRequest() + { + Type = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets data Connection name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The type of resource, + /// Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidation.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidation.cs new file mode 100644 index 0000000000000..2bfc3e460002d --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidation.cs @@ -0,0 +1,61 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing an data connection validation. + /// + public partial class DataConnectionValidation + { + /// + /// Initializes a new instance of the DataConnectionValidation class. + /// + public DataConnectionValidation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataConnectionValidation class. + /// + /// The name of the data + /// connection. + /// The data connection properties to + /// validate. + public DataConnectionValidation(string dataConnectionName = default(string), DataConnection properties = default(DataConnection)) + { + DataConnectionName = dataConnectionName; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the data connection. + /// + [JsonProperty(PropertyName = "dataConnectionName")] + public string DataConnectionName { get; set; } + + /// + /// Gets or sets the data connection properties to validate. + /// + [JsonProperty(PropertyName = "properties")] + public DataConnection Properties { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationListResult.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationListResult.cs new file mode 100644 index 0000000000000..9bf8cde4515b6 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationListResult.cs @@ -0,0 +1,56 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The list Kusto data connection validation result. + /// + public partial class DataConnectionValidationListResult + { + /// + /// Initializes a new instance of the + /// DataConnectionValidationListResult class. + /// + public DataConnectionValidationListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DataConnectionValidationListResult class. + /// + /// The list of Kusto data connection validation + /// errors. + public DataConnectionValidationListResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of Kusto data connection validation errors. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationResult.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationResult.cs new file mode 100644 index 0000000000000..aeeb3d5a1170d --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataConnectionValidationResult.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The result returned from a data connection validation request. + /// + public partial class DataConnectionValidationResult + { + /// + /// Initializes a new instance of the DataConnectionValidationResult + /// class. + /// + public DataConnectionValidationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataConnectionValidationResult + /// class. + /// + /// A message which indicates a problem in + /// data connection validation. + public DataConnectionValidationResult(string errorMessage = default(string)) + { + ErrorMessage = errorMessage; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a message which indicates a problem in data connection + /// validation. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Database.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Database.cs new file mode 100644 index 0000000000000..8ce2c05d2daf6 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Database.cs @@ -0,0 +1,68 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing a Kusto database. + /// + public partial class Database : ProxyResource + { + /// + /// Initializes a new instance of the Database class. + /// + public Database() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Database class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public Database(string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + Location = location; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseCheckNameRequest.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseCheckNameRequest.cs new file mode 100644 index 0000000000000..ee4653bed7d6c --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseCheckNameRequest.cs @@ -0,0 +1,79 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The result returned from a database check name availability request. + /// + public partial class DatabaseCheckNameRequest + { + /// + /// Initializes a new instance of the DatabaseCheckNameRequest class. + /// + public DatabaseCheckNameRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseCheckNameRequest class. + /// + /// Resource name. + /// The type of resource, for instance + /// Microsoft.Synapse/workspaces/kustoPools/databases. Possible values + /// include: 'Microsoft.Synapse/workspaces/kustoPools/databases', + /// 'Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations' + public DatabaseCheckNameRequest(string name, Type type) + { + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the type of resource, for instance + /// Microsoft.Synapse/workspaces/kustoPools/databases. Possible values + /// include: 'Microsoft.Synapse/workspaces/kustoPools/databases', + /// 'Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations' + /// + [JsonProperty(PropertyName = "type")] + public Type Type { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignment.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignment.cs new file mode 100644 index 0000000000000..abcea53f94ce4 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignment.cs @@ -0,0 +1,155 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing a database principal assignment. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabasePrincipalAssignment : ProxyResource + { + /// + /// Initializes a new instance of the DatabasePrincipalAssignment + /// class. + /// + public DatabasePrincipalAssignment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabasePrincipalAssignment + /// class. + /// + /// The principal ID assigned to the database + /// principal. It can be a user email, application ID, or security + /// group name. + /// Database principal role. Possible values + /// include: 'Admin', 'Ingestor', 'Monitor', 'User', + /// 'UnrestrictedViewer', 'Viewer' + /// Principal type. Possible values + /// include: 'App', 'Group', 'User' + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// The tenant id of the principal + /// The tenant name of the principal + /// The principal name + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public DatabasePrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + PrincipalId = principalId; + Role = role; + TenantId = tenantId; + PrincipalType = principalType; + TenantName = tenantName; + PrincipalName = principalName; + ProvisioningState = provisioningState; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the principal ID assigned to the database principal. + /// It can be a user email, application ID, or security group name. + /// + [JsonProperty(PropertyName = "properties.principalId")] + public string PrincipalId { get; set; } + + /// + /// Gets or sets database principal role. Possible values include: + /// 'Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewer', + /// 'Viewer' + /// + [JsonProperty(PropertyName = "properties.role")] + public string Role { get; set; } + + /// + /// Gets or sets the tenant id of the principal + /// + [JsonProperty(PropertyName = "properties.tenantId")] + public string TenantId { get; set; } + + /// + /// Gets or sets principal type. Possible values include: 'App', + /// 'Group', 'User' + /// + [JsonProperty(PropertyName = "properties.principalType")] + public string PrincipalType { get; set; } + + /// + /// Gets the tenant name of the principal + /// + [JsonProperty(PropertyName = "properties.tenantName")] + public string TenantName { get; private set; } + + /// + /// Gets the principal name + /// + [JsonProperty(PropertyName = "properties.principalName")] + public string PrincipalName { get; private set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PrincipalId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrincipalId"); + } + if (Role == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Role"); + } + if (PrincipalType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrincipalType"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignmentCheckNameRequest.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignmentCheckNameRequest.cs new file mode 100644 index 0000000000000..8e3f44c201146 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalAssignmentCheckNameRequest.cs @@ -0,0 +1,82 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A principal assignment check name availability request. + /// + public partial class DatabasePrincipalAssignmentCheckNameRequest + { + /// + /// Initializes a new instance of the + /// DatabasePrincipalAssignmentCheckNameRequest class. + /// + public DatabasePrincipalAssignmentCheckNameRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DatabasePrincipalAssignmentCheckNameRequest class. + /// + /// Principal Assignment resource name. + public DatabasePrincipalAssignmentCheckNameRequest(string name) + { + Name = name; + CustomInit(); + } + /// + /// Static constructor for DatabasePrincipalAssignmentCheckNameRequest + /// class. + /// + static DatabasePrincipalAssignmentCheckNameRequest() + { + Type = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets principal Assignment resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The type of resource, + /// Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalRole.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalRole.cs new file mode 100644 index 0000000000000..99d8f037d479e --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabasePrincipalRole.cs @@ -0,0 +1,26 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for DatabasePrincipalRole. + /// + public static class DatabasePrincipalRole + { + public const string Admin = "Admin"; + public const string Ingestor = "Ingestor"; + public const string Monitor = "Monitor"; + public const string User = "User"; + public const string UnrestrictedViewer = "UnrestrictedViewer"; + public const string Viewer = "Viewer"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatistics.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatistics.cs new file mode 100644 index 0000000000000..4e7362e7736f2 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatistics.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A class that contains database statistics information. + /// + public partial class DatabaseStatistics + { + /// + /// Initializes a new instance of the DatabaseStatistics class. + /// + public DatabaseStatistics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseStatistics class. + /// + /// The database size - the total size of compressed + /// data and index in bytes. + public DatabaseStatistics(double? size = default(double?)) + { + Size = size; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the database size - the total size of compressed data + /// and index in bytes. + /// + [JsonProperty(PropertyName = "size")] + public double? Size { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatus.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatus.cs new file mode 100644 index 0000000000000..84766d7923c3d --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DatabaseStatus.cs @@ -0,0 +1,41 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for DatabaseStatus. + /// + public static class DatabaseStatus + { + public const string Online = "Online"; + public const string Restoring = "Restoring"; + public const string RecoveryPending = "RecoveryPending"; + public const string Recovering = "Recovering"; + public const string Suspect = "Suspect"; + public const string Offline = "Offline"; + public const string Standby = "Standby"; + public const string Shutdown = "Shutdown"; + public const string EmergencyMode = "EmergencyMode"; + public const string AutoClosed = "AutoClosed"; + public const string Copying = "Copying"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string OfflineSecondary = "OfflineSecondary"; + public const string Pausing = "Pausing"; + public const string Paused = "Paused"; + public const string Resuming = "Resuming"; + public const string Scaling = "Scaling"; + public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DefaultPrincipalsModificationKind.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DefaultPrincipalsModificationKind.cs new file mode 100644 index 0000000000000..6309450756376 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DefaultPrincipalsModificationKind.cs @@ -0,0 +1,23 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for DefaultPrincipalsModificationKind. + /// + public static class DefaultPrincipalsModificationKind + { + public const string Union = "Union"; + public const string Replace = "Replace"; + public const string None = "None"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataConnection.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataConnection.cs new file mode 100644 index 0000000000000..57df8f12b801b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataConnection.cs @@ -0,0 +1,180 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing an Event Grid data connection. + /// + [Newtonsoft.Json.JsonObject("EventGrid")] + [Rest.Serialization.JsonTransformation] + public partial class EventGridDataConnection : DataConnection + { + /// + /// Initializes a new instance of the EventGridDataConnection class. + /// + public EventGridDataConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventGridDataConnection class. + /// + /// The resource ID of the + /// storage account where the data resides. + /// The resource ID where the event + /// grid is configured to send events. + /// The event hub consumer group. + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// The table where the data should be + /// ingested. Optionally the table information can be added to each + /// message. + /// The mapping rule to be used to ingest + /// the data. Optionally the mapping information can be added to each + /// message. + /// The data format of the message. Optionally + /// the data format can be added to each message. Possible values + /// include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + /// 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// A Boolean value that, if set to + /// true, indicates that ingestion should ignore the first record of + /// every file + /// The name of blob storage event + /// type to process. Possible values include: + /// 'Microsoft.Storage.BlobCreated', + /// 'Microsoft.Storage.BlobRenamed' + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + public EventGridDataConnection(string storageAccountResourceId, string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), bool? ignoreFirstRecord = default(bool?), string blobStorageEventType = default(string), string provisioningState = default(string)) + : base(id, name, type, location, systemData) + { + StorageAccountResourceId = storageAccountResourceId; + EventHubResourceId = eventHubResourceId; + ConsumerGroup = consumerGroup; + TableName = tableName; + MappingRuleName = mappingRuleName; + DataFormat = dataFormat; + IgnoreFirstRecord = ignoreFirstRecord; + BlobStorageEventType = blobStorageEventType; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource ID of the storage account where the data + /// resides. + /// + [JsonProperty(PropertyName = "properties.storageAccountResourceId")] + public string StorageAccountResourceId { get; set; } + + /// + /// Gets or sets the resource ID where the event grid is configured to + /// send events. + /// + [JsonProperty(PropertyName = "properties.eventHubResourceId")] + public string EventHubResourceId { get; set; } + + /// + /// Gets or sets the event hub consumer group. + /// + [JsonProperty(PropertyName = "properties.consumerGroup")] + public string ConsumerGroup { get; set; } + + /// + /// Gets or sets the table where the data should be ingested. + /// Optionally the table information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.tableName")] + public string TableName { get; set; } + + /// + /// Gets or sets the mapping rule to be used to ingest the data. + /// Optionally the mapping information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.mappingRuleName")] + public string MappingRuleName { get; set; } + + /// + /// Gets or sets the data format of the message. Optionally the data + /// format can be added to each message. Possible values include: + /// 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + /// 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// + [JsonProperty(PropertyName = "properties.dataFormat")] + public string DataFormat { get; set; } + + /// + /// Gets or sets a Boolean value that, if set to true, indicates that + /// ingestion should ignore the first record of every file + /// + [JsonProperty(PropertyName = "properties.ignoreFirstRecord")] + public bool? IgnoreFirstRecord { get; set; } + + /// + /// Gets or sets the name of blob storage event type to process. + /// Possible values include: 'Microsoft.Storage.BlobCreated', + /// 'Microsoft.Storage.BlobRenamed' + /// + [JsonProperty(PropertyName = "properties.blobStorageEventType")] + public string BlobStorageEventType { get; set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageAccountResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountResourceId"); + } + if (EventHubResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EventHubResourceId"); + } + if (ConsumerGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConsumerGroup"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataFormat.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataFormat.cs new file mode 100644 index 0000000000000..acf262e4a1ece --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventGridDataFormat.cs @@ -0,0 +1,36 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for EventGridDataFormat. + /// + public static class EventGridDataFormat + { + public const string MULTIJSON = "MULTIJSON"; + public const string JSON = "JSON"; + public const string CSV = "CSV"; + public const string TSV = "TSV"; + public const string SCSV = "SCSV"; + public const string SOHSV = "SOHSV"; + public const string PSV = "PSV"; + public const string TXT = "TXT"; + public const string RAW = "RAW"; + public const string SINGLEJSON = "SINGLEJSON"; + public const string AVRO = "AVRO"; + public const string TSVE = "TSVE"; + public const string PARQUET = "PARQUET"; + public const string ORC = "ORC"; + public const string APACHEAVRO = "APACHEAVRO"; + public const string W3CLOGFILE = "W3CLOGFILE"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataConnection.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataConnection.cs new file mode 100644 index 0000000000000..d05d99cd75336 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataConnection.cs @@ -0,0 +1,163 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Class representing an event hub data connection. + /// + [Newtonsoft.Json.JsonObject("EventHub")] + [Rest.Serialization.JsonTransformation] + public partial class EventHubDataConnection : DataConnection + { + /// + /// Initializes a new instance of the EventHubDataConnection class. + /// + public EventHubDataConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventHubDataConnection class. + /// + /// The resource ID of the event hub + /// to be used to create a data connection. + /// The event hub consumer group. + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// The table where the data should be + /// ingested. Optionally the table information can be added to each + /// message. + /// The mapping rule to be used to ingest + /// the data. Optionally the mapping information can be added to each + /// message. + /// The data format of the message. Optionally + /// the data format can be added to each message. Possible values + /// include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + /// 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// System properties of the event + /// hub + /// The event hub messages compression type. + /// Possible values include: 'None', 'GZip' + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + public EventHubDataConnection(string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string compression = default(string), string provisioningState = default(string)) + : base(id, name, type, location, systemData) + { + EventHubResourceId = eventHubResourceId; + ConsumerGroup = consumerGroup; + TableName = tableName; + MappingRuleName = mappingRuleName; + DataFormat = dataFormat; + EventSystemProperties = eventSystemProperties; + Compression = compression; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource ID of the event hub to be used to create + /// a data connection. + /// + [JsonProperty(PropertyName = "properties.eventHubResourceId")] + public string EventHubResourceId { get; set; } + + /// + /// Gets or sets the event hub consumer group. + /// + [JsonProperty(PropertyName = "properties.consumerGroup")] + public string ConsumerGroup { get; set; } + + /// + /// Gets or sets the table where the data should be ingested. + /// Optionally the table information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.tableName")] + public string TableName { get; set; } + + /// + /// Gets or sets the mapping rule to be used to ingest the data. + /// Optionally the mapping information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.mappingRuleName")] + public string MappingRuleName { get; set; } + + /// + /// Gets or sets the data format of the message. Optionally the data + /// format can be added to each message. Possible values include: + /// 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + /// 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// + [JsonProperty(PropertyName = "properties.dataFormat")] + public string DataFormat { get; set; } + + /// + /// Gets or sets system properties of the event hub + /// + [JsonProperty(PropertyName = "properties.eventSystemProperties")] + public IList EventSystemProperties { get; set; } + + /// + /// Gets or sets the event hub messages compression type. Possible + /// values include: 'None', 'GZip' + /// + [JsonProperty(PropertyName = "properties.compression")] + public string Compression { get; set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EventHubResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EventHubResourceId"); + } + if (ConsumerGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConsumerGroup"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataFormat.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataFormat.cs new file mode 100644 index 0000000000000..c997f4bb3965a --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EventHubDataFormat.cs @@ -0,0 +1,36 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for EventHubDataFormat. + /// + public static class EventHubDataFormat + { + public const string MULTIJSON = "MULTIJSON"; + public const string JSON = "JSON"; + public const string CSV = "CSV"; + public const string TSV = "TSV"; + public const string SCSV = "SCSV"; + public const string SOHSV = "SOHSV"; + public const string PSV = "PSV"; + public const string TXT = "TXT"; + public const string RAW = "RAW"; + public const string SINGLEJSON = "SINGLEJSON"; + public const string AVRO = "AVRO"; + public const string TSVE = "TSVE"; + public const string PARQUET = "PARQUET"; + public const string ORC = "ORC"; + public const string APACHEAVRO = "APACHEAVRO"; + public const string W3CLOGFILE = "W3CLOGFILE"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/FollowerDatabaseDefinition.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/FollowerDatabaseDefinition.cs new file mode 100644 index 0000000000000..43e1ebfab57fa --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/FollowerDatabaseDefinition.cs @@ -0,0 +1,92 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A class representing follower database request. + /// + public partial class FollowerDatabaseDefinition + { + /// + /// Initializes a new instance of the FollowerDatabaseDefinition class. + /// + public FollowerDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FollowerDatabaseDefinition class. + /// + /// Resource id of the cluster that + /// follows a database owned by this cluster. + /// Resource name of + /// the attached database configuration in the follower + /// cluster. + /// The database name owned by this cluster + /// that was followed. * in case following all databases. + public FollowerDatabaseDefinition(string kustoPoolResourceId, string attachedDatabaseConfigurationName, string databaseName = default(string)) + { + KustoPoolResourceId = kustoPoolResourceId; + AttachedDatabaseConfigurationName = attachedDatabaseConfigurationName; + DatabaseName = databaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource id of the cluster that follows a database + /// owned by this cluster. + /// + [JsonProperty(PropertyName = "clusterResourceId")] + public string KustoPoolResourceId { get; set; } + + /// + /// Gets or sets resource name of the attached database configuration + /// in the follower cluster. + /// + [JsonProperty(PropertyName = "attachedDatabaseConfigurationName")] + public string AttachedDatabaseConfigurationName { get; set; } + + /// + /// Gets the database name owned by this cluster that was followed. * + /// in case following all databases. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (KustoPoolResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "KustoPoolResourceId"); + } + if (AttachedDatabaseConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AttachedDatabaseConfigurationName"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataConnection.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataConnection.cs new file mode 100644 index 0000000000000..097072bec45c0 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataConnection.cs @@ -0,0 +1,166 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Class representing an iot hub data connection. + /// + [Newtonsoft.Json.JsonObject("IotHub")] + [Rest.Serialization.JsonTransformation] + public partial class IotHubDataConnection : DataConnection + { + /// + /// Initializes a new instance of the IotHubDataConnection class. + /// + public IotHubDataConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IotHubDataConnection class. + /// + /// The resource ID of the Iot hub to be + /// used to create a data connection. + /// The iot hub consumer group. + /// The name of the share access + /// policy + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// The table where the data should be + /// ingested. Optionally the table information can be added to each + /// message. + /// The mapping rule to be used to ingest + /// the data. Optionally the mapping information can be added to each + /// message. + /// The data format of the message. Optionally + /// the data format can be added to each message. Possible values + /// include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + /// 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// System properties of the iot + /// hub + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + public IotHubDataConnection(string iotHubResourceId, string consumerGroup, string sharedAccessPolicyName, string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string provisioningState = default(string)) + : base(id, name, type, location, systemData) + { + IotHubResourceId = iotHubResourceId; + ConsumerGroup = consumerGroup; + TableName = tableName; + MappingRuleName = mappingRuleName; + DataFormat = dataFormat; + EventSystemProperties = eventSystemProperties; + SharedAccessPolicyName = sharedAccessPolicyName; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource ID of the Iot hub to be used to create a + /// data connection. + /// + [JsonProperty(PropertyName = "properties.iotHubResourceId")] + public string IotHubResourceId { get; set; } + + /// + /// Gets or sets the iot hub consumer group. + /// + [JsonProperty(PropertyName = "properties.consumerGroup")] + public string ConsumerGroup { get; set; } + + /// + /// Gets or sets the table where the data should be ingested. + /// Optionally the table information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.tableName")] + public string TableName { get; set; } + + /// + /// Gets or sets the mapping rule to be used to ingest the data. + /// Optionally the mapping information can be added to each message. + /// + [JsonProperty(PropertyName = "properties.mappingRuleName")] + public string MappingRuleName { get; set; } + + /// + /// Gets or sets the data format of the message. Optionally the data + /// format can be added to each message. Possible values include: + /// 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + /// 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + /// 'APACHEAVRO', 'W3CLOGFILE' + /// + [JsonProperty(PropertyName = "properties.dataFormat")] + public string DataFormat { get; set; } + + /// + /// Gets or sets system properties of the iot hub + /// + [JsonProperty(PropertyName = "properties.eventSystemProperties")] + public IList EventSystemProperties { get; set; } + + /// + /// Gets or sets the name of the share access policy + /// + [JsonProperty(PropertyName = "properties.sharedAccessPolicyName")] + public string SharedAccessPolicyName { get; set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (IotHubResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IotHubResourceId"); + } + if (ConsumerGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConsumerGroup"); + } + if (SharedAccessPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SharedAccessPolicyName"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataFormat.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataFormat.cs new file mode 100644 index 0000000000000..6ae68ca51512b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IotHubDataFormat.cs @@ -0,0 +1,36 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for IotHubDataFormat. + /// + public static class IotHubDataFormat + { + public const string MULTIJSON = "MULTIJSON"; + public const string JSON = "JSON"; + public const string CSV = "CSV"; + public const string TSV = "TSV"; + public const string SCSV = "SCSV"; + public const string SOHSV = "SOHSV"; + public const string PSV = "PSV"; + public const string TXT = "TXT"; + public const string RAW = "RAW"; + public const string SINGLEJSON = "SINGLEJSON"; + public const string AVRO = "AVRO"; + public const string TSVE = "TSVE"; + public const string PARQUET = "PARQUET"; + public const string ORC = "ORC"; + public const string APACHEAVRO = "APACHEAVRO"; + public const string W3CLOGFILE = "W3CLOGFILE"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPool.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPool.cs new file mode 100644 index 0000000000000..e555d50bc895e --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPool.cs @@ -0,0 +1,204 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Class representing a Kusto kusto pool. + /// + [Rest.Serialization.JsonTransformation] + public partial class KustoPool : TrackedResource + { + /// + /// Initializes a new instance of the KustoPool class. + /// + public KustoPool() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KustoPool class. + /// + /// The geo-location where the resource + /// lives + /// The SKU of the kusto pool. + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource tags. + /// The state of the resource. Possible values + /// include: 'Creating', 'Unavailable', 'Running', 'Deleting', + /// 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// The Kusto Pool URI. + /// The Kusto Pool data ingestion + /// URI. + /// The reason for the Kusto Pool's current + /// state. + /// Optimized auto scale + /// definition. + /// A boolean value that indicates + /// if the streaming ingest is enabled. + /// A boolean value that indicates if the + /// purge operations are enabled. + /// List of the Kusto Pool's language + /// extensions. + /// The workspace unique identifier. + /// A unique read-only string that changes whenever + /// the resource is updated. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public KustoPool(string location, AzureSku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableStreamingIngest = default(bool?), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), string workspaceUID = default(string), string etag = default(string), SystemData systemData = default(SystemData)) + : base(location, id, name, type, tags) + { + Sku = sku; + State = state; + ProvisioningState = provisioningState; + Uri = uri; + DataIngestionUri = dataIngestionUri; + StateReason = stateReason; + OptimizedAutoscale = optimizedAutoscale; + EnableStreamingIngest = enableStreamingIngest; + EnablePurge = enablePurge; + LanguageExtensions = languageExtensions; + WorkspaceUID = workspaceUID; + Etag = etag; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SKU of the kusto pool. + /// + [JsonProperty(PropertyName = "sku")] + public AzureSku Sku { get; set; } + + /// + /// Gets the state of the resource. Possible values include: + /// 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', + /// 'Stopping', 'Stopped', 'Starting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets the Kusto Pool URI. + /// + [JsonProperty(PropertyName = "properties.uri")] + public string Uri { get; private set; } + + /// + /// Gets the Kusto Pool data ingestion URI. + /// + [JsonProperty(PropertyName = "properties.dataIngestionUri")] + public string DataIngestionUri { get; private set; } + + /// + /// Gets the reason for the Kusto Pool's current state. + /// + [JsonProperty(PropertyName = "properties.stateReason")] + public string StateReason { get; private set; } + + /// + /// Gets or sets optimized auto scale definition. + /// + [JsonProperty(PropertyName = "properties.optimizedAutoscale")] + public OptimizedAutoscale OptimizedAutoscale { get; set; } + + /// + /// Gets or sets a boolean value that indicates if the streaming ingest + /// is enabled. + /// + [JsonProperty(PropertyName = "properties.enableStreamingIngest")] + public bool? EnableStreamingIngest { get; set; } + + /// + /// Gets or sets a boolean value that indicates if the purge operations + /// are enabled. + /// + [JsonProperty(PropertyName = "properties.enablePurge")] + public bool? EnablePurge { get; set; } + + /// + /// Gets list of the Kusto Pool's language extensions. + /// + [JsonProperty(PropertyName = "properties.languageExtensions")] + public LanguageExtensionsList LanguageExtensions { get; private set; } + + /// + /// Gets or sets the workspace unique identifier. + /// + [JsonProperty(PropertyName = "properties.workspaceUID")] + public string WorkspaceUID { get; set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Sku == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); + } + if (Sku != null) + { + Sku.Validate(); + } + if (OptimizedAutoscale != null) + { + OptimizedAutoscale.Validate(); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolCheckNameRequest.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolCheckNameRequest.cs new file mode 100644 index 0000000000000..8180fd5b36991 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolCheckNameRequest.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The object sent for a kusto pool check name availability request. + /// + public partial class KustoPoolCheckNameRequest + { + /// + /// Initializes a new instance of the KustoPoolCheckNameRequest class. + /// + public KustoPoolCheckNameRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KustoPoolCheckNameRequest class. + /// + /// Kusto Pool name. + public KustoPoolCheckNameRequest(string name) + { + Name = name; + CustomInit(); + } + /// + /// Static constructor for KustoPoolCheckNameRequest class. + /// + static KustoPoolCheckNameRequest() + { + Type = "Microsoft.Synapse/workspaces/kustoPools"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets kusto Pool name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The type of resource, Microsoft.Synapse/workspaces/kustoPools. + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolListResult.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolListResult.cs new file mode 100644 index 0000000000000..28d18177b26ba --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolListResult.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The list Kusto pools operation response. + /// + public partial class KustoPoolListResult + { + /// + /// Initializes a new instance of the KustoPoolListResult class. + /// + public KustoPoolListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KustoPoolListResult class. + /// + /// The list of Kusto pools. + public KustoPoolListResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of Kusto pools. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolUpdate.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolUpdate.cs new file mode 100644 index 0000000000000..c323d4c891e13 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KustoPoolUpdate.cs @@ -0,0 +1,184 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Class representing an update to a Kusto kusto pool. + /// + [Rest.Serialization.JsonTransformation] + public partial class KustoPoolUpdate : Resource + { + /// + /// Initializes a new instance of the KustoPoolUpdate class. + /// + public KustoPoolUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KustoPoolUpdate class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource tags. + /// The SKU of the kusto pool. + /// The state of the resource. Possible values + /// include: 'Creating', 'Unavailable', 'Running', 'Deleting', + /// 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// The Kusto Pool URI. + /// The Kusto Pool data ingestion + /// URI. + /// The reason for the Kusto Pool's current + /// state. + /// Optimized auto scale + /// definition. + /// A boolean value that indicates + /// if the streaming ingest is enabled. + /// A boolean value that indicates if the + /// purge operations are enabled. + /// List of the Kusto Pool's language + /// extensions. + /// The workspace unique identifier. + public KustoPoolUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), AzureSku sku = default(AzureSku), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableStreamingIngest = default(bool?), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), string workspaceUID = default(string)) + : base(id, name, type) + { + Tags = tags; + Sku = sku; + State = state; + ProvisioningState = provisioningState; + Uri = uri; + DataIngestionUri = dataIngestionUri; + StateReason = stateReason; + OptimizedAutoscale = optimizedAutoscale; + EnableStreamingIngest = enableStreamingIngest; + EnablePurge = enablePurge; + LanguageExtensions = languageExtensions; + WorkspaceUID = workspaceUID; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the SKU of the kusto pool. + /// + [JsonProperty(PropertyName = "sku")] + public AzureSku Sku { get; set; } + + /// + /// Gets the state of the resource. Possible values include: + /// 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', + /// 'Stopping', 'Stopped', 'Starting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets the Kusto Pool URI. + /// + [JsonProperty(PropertyName = "properties.uri")] + public string Uri { get; private set; } + + /// + /// Gets the Kusto Pool data ingestion URI. + /// + [JsonProperty(PropertyName = "properties.dataIngestionUri")] + public string DataIngestionUri { get; private set; } + + /// + /// Gets the reason for the Kusto Pool's current state. + /// + [JsonProperty(PropertyName = "properties.stateReason")] + public string StateReason { get; private set; } + + /// + /// Gets or sets optimized auto scale definition. + /// + [JsonProperty(PropertyName = "properties.optimizedAutoscale")] + public OptimizedAutoscale OptimizedAutoscale { get; set; } + + /// + /// Gets or sets a boolean value that indicates if the streaming ingest + /// is enabled. + /// + [JsonProperty(PropertyName = "properties.enableStreamingIngest")] + public bool? EnableStreamingIngest { get; set; } + + /// + /// Gets or sets a boolean value that indicates if the purge operations + /// are enabled. + /// + [JsonProperty(PropertyName = "properties.enablePurge")] + public bool? EnablePurge { get; set; } + + /// + /// Gets list of the Kusto Pool's language extensions. + /// + [JsonProperty(PropertyName = "properties.languageExtensions")] + public LanguageExtensionsList LanguageExtensions { get; private set; } + + /// + /// Gets or sets the workspace unique identifier. + /// + [JsonProperty(PropertyName = "properties.workspaceUID")] + public string WorkspaceUID { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Sku != null) + { + Sku.Validate(); + } + if (OptimizedAutoscale != null) + { + OptimizedAutoscale.Validate(); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtension.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtension.cs new file mode 100644 index 0000000000000..25f125bab06a8 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtension.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The language extension object. + /// + public partial class LanguageExtension + { + /// + /// Initializes a new instance of the LanguageExtension class. + /// + public LanguageExtension() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LanguageExtension class. + /// + /// The language extension name. + /// Possible values include: 'PYTHON', 'R' + public LanguageExtension(string languageExtensionName = default(string)) + { + LanguageExtensionName = languageExtensionName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the language extension name. Possible values include: + /// 'PYTHON', 'R' + /// + [JsonProperty(PropertyName = "languageExtensionName")] + public string LanguageExtensionName { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionName.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionName.cs new file mode 100644 index 0000000000000..1e7811ff96a84 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionName.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for LanguageExtensionName. + /// + public static class LanguageExtensionName + { + public const string PYTHON = "PYTHON"; + public const string R = "R"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionsList.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionsList.cs new file mode 100644 index 0000000000000..967afb24e7ab5 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LanguageExtensionsList.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The list of language extension objects. + /// + public partial class LanguageExtensionsList + { + /// + /// Initializes a new instance of the LanguageExtensionsList class. + /// + public LanguageExtensionsList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LanguageExtensionsList class. + /// + /// The list of language extensions. + public LanguageExtensionsList(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of language extensions. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Operation.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Operation.cs new file mode 100644 index 0000000000000..4448e621d1eb8 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Operation.cs @@ -0,0 +1,80 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A REST API operation + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// The operation name. + /// The object that describes the + /// operation. + /// The intended executor of the + /// operation. + /// Properties of the operation. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), object properties = default(object)) + { + Name = name; + Display = display; + Origin = origin; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation name. + /// + /// + /// This is of the format {provider}/{resource}/{operation}. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the object that describes the operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + /// + /// Gets or sets the intended executor of the operation. + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + + /// + /// Gets or sets properties of the operation. + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OperationDisplay.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 0000000000000..82b872629867b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,81 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The object that describes the operation. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// Friendly name of the resource + /// provider. + /// The operation type. + /// The resource type on which the operation is + /// performed. + /// The friendly name of the + /// operation. + public OperationDisplay(string provider = default(string), string operation = default(string), string resource = default(string), string description = default(string)) + { + Provider = provider; + Operation = operation; + Resource = resource; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets friendly name of the resource provider. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets the operation type. + /// + /// + /// For example: read, write, delete. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets the resource type on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets the friendly name of the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OptimizedAutoscale.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OptimizedAutoscale.cs new file mode 100644 index 0000000000000..dd411d2dfda6a --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/OptimizedAutoscale.cs @@ -0,0 +1,88 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A class that contains the optimized auto scale definition. + /// + public partial class OptimizedAutoscale + { + /// + /// Initializes a new instance of the OptimizedAutoscale class. + /// + public OptimizedAutoscale() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OptimizedAutoscale class. + /// + /// The version of the template defined, for + /// instance 1. + /// A boolean value that indicate if the + /// optimized autoscale feature is enabled or not. + /// Minimum allowed instances count. + /// Maximum allowed instances count. + public OptimizedAutoscale(int version, bool isEnabled, int minimum, int maximum) + { + Version = version; + IsEnabled = isEnabled; + Minimum = minimum; + Maximum = maximum; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the version of the template defined, for instance 1. + /// + [JsonProperty(PropertyName = "version")] + public int Version { get; set; } + + /// + /// Gets or sets a boolean value that indicate if the optimized + /// autoscale feature is enabled or not. + /// + [JsonProperty(PropertyName = "isEnabled")] + public bool IsEnabled { get; set; } + + /// + /// Gets or sets minimum allowed instances count. + /// + [JsonProperty(PropertyName = "minimum")] + public int Minimum { get; set; } + + /// + /// Gets or sets maximum allowed instances count. + /// + [JsonProperty(PropertyName = "maximum")] + public int Maximum { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/PrincipalType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/PrincipalType.cs new file mode 100644 index 0000000000000..ef530db8a02ab --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/PrincipalType.cs @@ -0,0 +1,23 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for PrincipalType. + /// + public static class PrincipalType + { + public const string App = "App"; + public const string Group = "Group"; + public const string User = "User"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ReadWriteDatabase.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ReadWriteDatabase.cs new file mode 100644 index 0000000000000..2007e8d78dd56 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ReadWriteDatabase.cs @@ -0,0 +1,106 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Class representing a read write database. + /// + [Newtonsoft.Json.JsonObject("ReadWrite")] + [Rest.Serialization.JsonTransformation] + public partial class ReadWriteDatabase : Database + { + /// + /// Initializes a new instance of the ReadWriteDatabase class. + /// + public ReadWriteDatabase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReadWriteDatabase class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource location. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// The provisioned state of the + /// resource. Possible values include: 'Running', 'Creating', + /// 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + /// The time the data should be kept + /// before it stops being accessible to queries in TimeSpan. + /// The time the data should be kept in + /// cache for fast queries in TimeSpan. + /// The statistics of the database. + /// Indicates whether the database is + /// followed. + public ReadWriteDatabase(string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), System.TimeSpan? softDeletePeriod = default(System.TimeSpan?), System.TimeSpan? hotCachePeriod = default(System.TimeSpan?), DatabaseStatistics statistics = default(DatabaseStatistics), bool? isFollowed = default(bool?)) + : base(id, name, type, location, systemData) + { + ProvisioningState = provisioningState; + SoftDeletePeriod = softDeletePeriod; + HotCachePeriod = hotCachePeriod; + Statistics = statistics; + IsFollowed = isFollowed; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the provisioned state of the resource. Possible values + /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + /// 'Moving', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the time the data should be kept before it stops being + /// accessible to queries in TimeSpan. + /// + [JsonProperty(PropertyName = "properties.softDeletePeriod")] + public System.TimeSpan? SoftDeletePeriod { get; set; } + + /// + /// Gets or sets the time the data should be kept in cache for fast + /// queries in TimeSpan. + /// + [JsonProperty(PropertyName = "properties.hotCachePeriod")] + public System.TimeSpan? HotCachePeriod { get; set; } + + /// + /// Gets or sets the statistics of the database. + /// + [JsonProperty(PropertyName = "properties.statistics")] + public DatabaseStatistics Statistics { get; set; } + + /// + /// Gets indicates whether the database is followed. + /// + [JsonProperty(PropertyName = "properties.isFollowed")] + public bool? IsFollowed { get; private set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Reason.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Reason.cs new file mode 100644 index 0000000000000..c196580f71988 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Reason.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for Reason. + /// + public static class Reason + { + public const string Invalid = "Invalid"; + public const string AlreadyExists = "AlreadyExists"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceProvisioningState.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceProvisioningState.cs new file mode 100644 index 0000000000000..d24b644bf0ac2 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceProvisioningState.cs @@ -0,0 +1,27 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for ResourceProvisioningState. + /// + public static class ResourceProvisioningState + { + public const string Running = "Running"; + public const string Creating = "Creating"; + public const string Deleting = "Deleting"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Moving = "Moving"; + public const string Canceled = "Canceled"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuDescription.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuDescription.cs new file mode 100644 index 0000000000000..1d2814bcf8804 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuDescription.cs @@ -0,0 +1,95 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The Kusto SKU description of given resource type + /// + public partial class SkuDescription + { + /// + /// Initializes a new instance of the SkuDescription class. + /// + public SkuDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuDescription class. + /// + /// The resource type + /// The name of the SKU + /// The size of the SKU + /// The set of locations that the SKU is + /// available + /// Locations and zones + /// The restrictions because of which SKU + /// cannot be used + public SkuDescription(string resourceType = default(string), string name = default(string), string size = default(string), IList locations = default(IList), IList locationInfo = default(IList), IList restrictions = default(IList)) + { + ResourceType = resourceType; + Name = name; + Size = size; + Locations = locations; + LocationInfo = locationInfo; + Restrictions = restrictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the resource type + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; private set; } + + /// + /// Gets the name of the SKU + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the size of the SKU + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; private set; } + + /// + /// Gets the set of locations that the SKU is available + /// + [JsonProperty(PropertyName = "locations")] + public IList Locations { get; private set; } + + /// + /// Gets locations and zones + /// + [JsonProperty(PropertyName = "locationInfo")] + public IList LocationInfo { get; private set; } + + /// + /// Gets the restrictions because of which SKU cannot be used + /// + [JsonProperty(PropertyName = "restrictions")] + public IList Restrictions { get; private set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuLocationInfoItem.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuLocationInfoItem.cs new file mode 100644 index 0000000000000..4c944b99881b2 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuLocationInfoItem.cs @@ -0,0 +1,75 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The locations and zones info for SKU. + /// + public partial class SkuLocationInfoItem + { + /// + /// Initializes a new instance of the SkuLocationInfoItem class. + /// + public SkuLocationInfoItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SkuLocationInfoItem class. + /// + /// The available location of the SKU. + /// The available zone of the SKU. + public SkuLocationInfoItem(string location, IList zones = default(IList)) + { + Location = location; + Zones = zones; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the available location of the SKU. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the available zone of the SKU. + /// + [JsonProperty(PropertyName = "zones")] + public IList Zones { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuName.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuName.cs new file mode 100644 index 0000000000000..fd105499372c0 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuName.cs @@ -0,0 +1,22 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for SkuName. + /// + public static class SkuName + { + public const string Computeoptimized = "Compute optimized"; + public const string Storageoptimized = "Storage optimized"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuSize.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuSize.cs new file mode 100644 index 0000000000000..f170e52c885c7 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SkuSize.cs @@ -0,0 +1,24 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for SkuSize. + /// + public static class SkuSize + { + public const string Extrasmall = "Extra small"; + public const string Small = "Small"; + public const string Medium = "Medium"; + public const string Large = "Large"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabase.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabase.cs index 8afe1eec4ffe6..8d42f8453bcb7 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabase.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabase.cs @@ -44,19 +44,28 @@ public SqlDatabase() /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// SystemData of SqlDatabase. + /// The status of the database. Possible values + /// include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', + /// 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', + /// 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', + /// 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', + /// 'OfflineChangingDwPerformanceTiers', + /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// The collation of the database. - /// Storage redundancy of the database. - /// Possible values include: 'Geo', 'GeoZone', 'Local', 'Zone' /// The Guid of the database. - /// Status of the database. - public SqlDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), string collation = default(string), string storageRedundancy = default(string), System.Guid? databaseGuid = default(System.Guid?), string status = default(string)) + /// The storage redundancy of the + /// database. Possible values include: 'Local', 'Geo', 'Zone', + /// 'GeoZone' + /// Sql database data retention. + public SqlDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), string status = default(string), string collation = default(string), System.Guid? databaseGuid = default(System.Guid?), string storageRedundancy = default(string), SqlDatabaseDataRetention dataRetention = default(SqlDatabaseDataRetention)) : base(location, id, name, type, tags) { SystemData = systemData; + Status = status; Collation = collation; - StorageRedundancy = storageRedundancy; DatabaseGuid = databaseGuid; - Status = status; + StorageRedundancy = storageRedundancy; + DataRetention = dataRetention; CustomInit(); } @@ -72,17 +81,22 @@ public SqlDatabase() public SystemData SystemData { get; private set; } /// - /// Gets or sets the collation of the database. + /// Gets the status of the database. Possible values include: 'Online', + /// 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', + /// 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', + /// 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', + /// 'Paused', 'Resuming', 'Scaling', + /// 'OfflineChangingDwPerformanceTiers', + /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// - [JsonProperty(PropertyName = "properties.collation")] - public string Collation { get; set; } + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } /// - /// Gets or sets storage redundancy of the database. Possible values - /// include: 'Geo', 'GeoZone', 'Local', 'Zone' + /// Gets or sets the collation of the database. /// - [JsonProperty(PropertyName = "properties.storageRedundancy")] - public string StorageRedundancy { get; set; } + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } /// /// Gets the Guid of the database. @@ -91,10 +105,17 @@ public SqlDatabase() public System.Guid? DatabaseGuid { get; private set; } /// - /// Gets status of the database. + /// Gets or sets the storage redundancy of the database. Possible + /// values include: 'Local', 'Geo', 'Zone', 'GeoZone' /// - [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + [JsonProperty(PropertyName = "properties.storageRedundancy")] + public string StorageRedundancy { get; set; } + + /// + /// Gets or sets sql database data retention. + /// + [JsonProperty(PropertyName = "properties.dataRetention")] + public SqlDatabaseDataRetention DataRetention { get; set; } /// /// Validate the object. diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseDataRetention.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseDataRetention.cs new file mode 100644 index 0000000000000..b7cb6bf3f4c22 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseDataRetention.cs @@ -0,0 +1,62 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Sql database data retention. + /// + public partial class SqlDatabaseDataRetention + { + /// + /// Initializes a new instance of the SqlDatabaseDataRetention class. + /// + public SqlDatabaseDataRetention() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlDatabaseDataRetention class. + /// + /// Specifies the data retention period + /// (ISO8601 format). + /// Specifies the dropped database + /// retention period (ISO8601 format). + public SqlDatabaseDataRetention(System.TimeSpan? retentionPeriod = default(System.TimeSpan?), System.TimeSpan? dropRetentionPeriod = default(System.TimeSpan?)) + { + RetentionPeriod = retentionPeriod; + DropRetentionPeriod = dropRetentionPeriod; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the data retention period (ISO8601 format). + /// + [JsonProperty(PropertyName = "retentionPeriod")] + public System.TimeSpan? RetentionPeriod { get; set; } + + /// + /// Gets or sets specifies the dropped database retention period + /// (ISO8601 format). + /// + [JsonProperty(PropertyName = "dropRetentionPeriod")] + public System.TimeSpan? DropRetentionPeriod { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseUpdate.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseUpdate.cs index 625b2eb1c45c6..65d667cf1f397 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseUpdate.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseUpdate.cs @@ -34,18 +34,27 @@ public SqlDatabaseUpdate() /// /// Initializes a new instance of the SqlDatabaseUpdate class. /// + /// The status of the database. Possible values + /// include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', + /// 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', + /// 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', + /// 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', + /// 'OfflineChangingDwPerformanceTiers', + /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// The collation of the database. - /// Storage redundancy of the database. - /// Possible values include: 'Geo', 'GeoZone', 'Local', 'Zone' /// The Guid of the database. - /// Status of the database. + /// The storage redundancy of the + /// database. Possible values include: 'Local', 'Geo', 'Zone', + /// 'GeoZone' + /// Sql database data retention. /// Resource tags. - public SqlDatabaseUpdate(string collation = default(string), string storageRedundancy = default(string), System.Guid? databaseGuid = default(System.Guid?), string status = default(string), IDictionary tags = default(IDictionary)) + public SqlDatabaseUpdate(string status = default(string), string collation = default(string), System.Guid? databaseGuid = default(System.Guid?), string storageRedundancy = default(string), SqlDatabaseDataRetention dataRetention = default(SqlDatabaseDataRetention), IDictionary tags = default(IDictionary)) { + Status = status; Collation = collation; - StorageRedundancy = storageRedundancy; DatabaseGuid = databaseGuid; - Status = status; + StorageRedundancy = storageRedundancy; + DataRetention = dataRetention; Tags = tags; CustomInit(); } @@ -56,17 +65,22 @@ public SqlDatabaseUpdate() partial void CustomInit(); /// - /// Gets or sets the collation of the database. + /// Gets the status of the database. Possible values include: 'Online', + /// 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', + /// 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', + /// 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', + /// 'Paused', 'Resuming', 'Scaling', + /// 'OfflineChangingDwPerformanceTiers', + /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// - [JsonProperty(PropertyName = "properties.collation")] - public string Collation { get; set; } + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } /// - /// Gets or sets storage redundancy of the database. Possible values - /// include: 'Geo', 'GeoZone', 'Local', 'Zone' + /// Gets or sets the collation of the database. /// - [JsonProperty(PropertyName = "properties.storageRedundancy")] - public string StorageRedundancy { get; set; } + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } /// /// Gets the Guid of the database. @@ -75,10 +89,17 @@ public SqlDatabaseUpdate() public System.Guid? DatabaseGuid { get; private set; } /// - /// Gets status of the database. + /// Gets or sets the storage redundancy of the database. Possible + /// values include: 'Local', 'Geo', 'Zone', 'GeoZone' /// - [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + [JsonProperty(PropertyName = "properties.storageRedundancy")] + public string StorageRedundancy { get; set; } + + /// + /// Gets or sets sql database data retention. + /// + [JsonProperty(PropertyName = "properties.dataRetention")] + public SqlDatabaseDataRetention DataRetention { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/State.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/State.cs new file mode 100644 index 0000000000000..6cc0361013628 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/State.cs @@ -0,0 +1,29 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for State. + /// + public static class State + { + public const string Creating = "Creating"; + public const string Unavailable = "Unavailable"; + public const string Running = "Running"; + public const string Deleting = "Deleting"; + public const string Deleted = "Deleted"; + public const string Stopping = "Stopping"; + public const string Stopped = "Stopped"; + public const string Starting = "Starting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseStorageRedundancyType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/StorageRedundancy.cs similarity index 84% rename from sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseStorageRedundancyType.cs rename to sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/StorageRedundancy.cs index d62425e7243f7..ebd4a4dbf1d19 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlDatabaseStorageRedundancyType.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/StorageRedundancy.cs @@ -12,13 +12,13 @@ namespace Microsoft.Azure.Management.Synapse.Models { /// - /// Defines values for SqlDatabaseStorageRedundancyType. + /// Defines values for StorageRedundancy. /// - public static class SqlDatabaseStorageRedundancyType + public static class StorageRedundancy { - public const string Geo = "Geo"; - public const string GeoZone = "GeoZone"; public const string Local = "Local"; + public const string Geo = "Geo"; public const string Zone = "Zone"; + public const string GeoZone = "GeoZone"; } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/TableLevelSharingProperties.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/TableLevelSharingProperties.cs new file mode 100644 index 0000000000000..397d4e335695c --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/TableLevelSharingProperties.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Tables that will be included and excluded in the follower database + /// + public partial class TableLevelSharingProperties + { + /// + /// Initializes a new instance of the TableLevelSharingProperties + /// class. + /// + public TableLevelSharingProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TableLevelSharingProperties + /// class. + /// + /// List of tables to include in the + /// follower database + /// List of tables to exclude from the + /// follower database + /// List of external tables to + /// include in the follower database + /// List of external tables + /// exclude from the follower database + /// List of materialized views + /// to include in the follower database + /// List of materialized views + /// exclude from the follower database + public TableLevelSharingProperties(IList tablesToInclude = default(IList), IList tablesToExclude = default(IList), IList externalTablesToInclude = default(IList), IList externalTablesToExclude = default(IList), IList materializedViewsToInclude = default(IList), IList materializedViewsToExclude = default(IList)) + { + TablesToInclude = tablesToInclude; + TablesToExclude = tablesToExclude; + ExternalTablesToInclude = externalTablesToInclude; + ExternalTablesToExclude = externalTablesToExclude; + MaterializedViewsToInclude = materializedViewsToInclude; + MaterializedViewsToExclude = materializedViewsToExclude; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of tables to include in the follower database + /// + [JsonProperty(PropertyName = "tablesToInclude")] + public IList TablesToInclude { get; set; } + + /// + /// Gets or sets list of tables to exclude from the follower database + /// + [JsonProperty(PropertyName = "tablesToExclude")] + public IList TablesToExclude { get; set; } + + /// + /// Gets or sets list of external tables to include in the follower + /// database + /// + [JsonProperty(PropertyName = "externalTablesToInclude")] + public IList ExternalTablesToInclude { get; set; } + + /// + /// Gets or sets list of external tables exclude from the follower + /// database + /// + [JsonProperty(PropertyName = "externalTablesToExclude")] + public IList ExternalTablesToExclude { get; set; } + + /// + /// Gets or sets list of materialized views to include in the follower + /// database + /// + [JsonProperty(PropertyName = "materializedViewsToInclude")] + public IList MaterializedViewsToInclude { get; set; } + + /// + /// Gets or sets list of materialized views exclude from the follower + /// database + /// + [JsonProperty(PropertyName = "materializedViewsToExclude")] + public IList MaterializedViewsToExclude { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Type.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Type.cs new file mode 100644 index 0000000000000..25965d39fc472 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Type.cs @@ -0,0 +1,60 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for Type. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum Type + { + [EnumMember(Value = "Microsoft.Synapse/workspaces/kustoPools/databases")] + MicrosoftSynapseWorkspacesKustoPoolsDatabases, + [EnumMember(Value = "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations")] + MicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations + } + internal static class TypeEnumExtension + { + internal static string ToSerializedValue(this Type? value) + { + return value == null ? null : ((Type)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this Type value) + { + switch( value ) + { + case Type.MicrosoftSynapseWorkspacesKustoPoolsDatabases: + return "Microsoft.Synapse/workspaces/kustoPools/databases"; + case Type.MicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations: + return "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations"; + } + return null; + } + + internal static Type? ParseType(this string value) + { + switch( value ) + { + case "Microsoft.Synapse/workspaces/kustoPools/databases": + return Type.MicrosoftSynapseWorkspacesKustoPoolsDatabases; + case "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations": + return Type.MicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations; + } + return null; + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs index 5198a05988463..9d612cada3e7a 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Synapse internal static partial class SdkInfo { public static IEnumerable> ApiInfo_SynapseManagementClient - { + { get { return new Tuple[] @@ -35,6 +35,15 @@ public static IEnumerable> ApiInfo_SynapseManageme new Tuple("Synapse", "IntegrationRuntimes", "2021-06-01-preview"), new Tuple("Synapse", "IpFirewallRules", "2021-06-01"), new Tuple("Synapse", "Keys", "2021-06-01"), + new Tuple("Synapse", "KustoOperations", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPool", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolAttachedDatabaseConfigurations", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolChildResource", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolDataConnections", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolDatabasePrincipalAssignments", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolDatabases", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPoolPrincipalAssignments", "2021-06-01-preview"), + new Tuple("Synapse", "KustoPools", "2021-06-01-preview"), new Tuple("Synapse", "Libraries", "2021-06-01-preview"), new Tuple("Synapse", "Library", "2021-06-01-preview"), new Tuple("Synapse", "Operations", "2021-06-01"), @@ -83,16 +92,17 @@ public static IEnumerable> ApiInfo_SynapseManageme new Tuple("Synapse", "WorkspaceManagedSqlServerVulnerabilityAssessments", "2021-06-01"), new Tuple("Synapse", "WorkspaceSqlAadAdmins", "2021-06-01"), new Tuple("Synapse", "Workspaces", "2021-06-01"), + new Tuple("Synapse", "kustoPools", "2021-06-01-preview"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "v2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\ZeshiLuo\\azure-sdk-for-net-1\\sdk"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\code\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "5d09c12c024fa7efbaca6a95b9741a46a886fe6f"; + public static readonly String GithubCommidId = "ce4ba4d08f249b9e469095572d3dc48b23ab7de9"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs index d9ffe0e369f4b..9947875d10c9d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs @@ -389,6 +389,51 @@ public partial class SynapseManagementClient : ServiceClient public virtual ISparkConfigurationsOperations SparkConfigurations { get; private set; } + /// + /// Gets the IKustoOperations. + /// + public virtual IKustoOperations KustoOperations { get; private set; } + + /// + /// Gets the IKustoPoolOperations. + /// + public virtual IKustoPoolOperations KustoPool { get; private set; } + + /// + /// Gets the IKustoPoolsOperations. + /// + public virtual IKustoPoolsOperations KustoPools { get; private set; } + + /// + /// Gets the IKustoPoolChildResourceOperations. + /// + public virtual IKustoPoolChildResourceOperations KustoPoolChildResource { get; private set; } + + /// + /// Gets the IKustoPoolAttachedDatabaseConfigurationsOperations. + /// + public virtual IKustoPoolAttachedDatabaseConfigurationsOperations KustoPoolAttachedDatabaseConfigurations { get; private set; } + + /// + /// Gets the IKustoPoolDatabasesOperations. + /// + public virtual IKustoPoolDatabasesOperations KustoPoolDatabases { get; private set; } + + /// + /// Gets the IKustoPoolDataConnectionsOperations. + /// + public virtual IKustoPoolDataConnectionsOperations KustoPoolDataConnections { get; private set; } + + /// + /// Gets the IKustoPoolPrincipalAssignmentsOperations. + /// + public virtual IKustoPoolPrincipalAssignmentsOperations KustoPoolPrincipalAssignments { get; private set; } + + /// + /// Gets the IKustoPoolDatabasePrincipalAssignmentsOperations. + /// + public virtual IKustoPoolDatabasePrincipalAssignmentsOperations KustoPoolDatabasePrincipalAssignments { get; private set; } + /// /// Initializes a new instance of the SynapseManagementClient class. /// @@ -694,6 +739,15 @@ private void Initialize() IntegrationRuntimeStatus = new IntegrationRuntimeStatusOperations(this); SparkConfiguration = new SparkConfigurationOperations(this); SparkConfigurations = new SparkConfigurationsOperations(this); + KustoOperations = new KustoOperations(this); + KustoPool = new KustoPoolOperations(this); + KustoPools = new KustoPoolsOperations(this); + KustoPoolChildResource = new KustoPoolChildResourceOperations(this); + KustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsOperations(this); + KustoPoolDatabases = new KustoPoolDatabasesOperations(this); + KustoPoolDataConnections = new KustoPoolDataConnectionsOperations(this); + KustoPoolPrincipalAssignments = new KustoPoolPrincipalAssignmentsOperations(this); + KustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; @@ -736,6 +790,10 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Microsoft.Azure.Management.Synapse.csproj b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Microsoft.Azure.Management.Synapse.csproj index edc8ce9fef589..b5ef711ddc38d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Microsoft.Azure.Management.Synapse.csproj +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Microsoft.Azure.Management.Synapse.csproj @@ -7,11 +7,11 @@ Microsoft.Azure.Management.Synapse Azure Synapse Management SDK Library Microsoft.Azure.Management.Synapse - 2.2.0-preview + 2.3.0-preview Microsoft Azure Synapse Management;Synapse;Synapse Management diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Properties/AssemblyInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Properties/AssemblyInfo.cs index 6edb43be7b5c5..e097f9e60f586 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Properties/AssemblyInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Properties/AssemblyInfo.cs @@ -22,4 +22,4 @@ [assembly: AssemblyTitle("Microsoft Azure Synapse Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Synapse Analytics.")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.2.0.0")] +[assembly: AssemblyFileVersion("2.3.0.0")] diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs new file mode 100644 index 0000000000000..cb89d60f62857 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Microsoft.Azure.Management.Synapse.Models; +using Microsoft.Rest.Azure; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading; +using Xunit; + +namespace Microsoft.Azure.Management.Synapse.Tests +{ + public class KustopoolOperationTests : SynapseManagementTestBase + { + [Fact] + public void TestKustoPoolLifeCycle() + { + string runningState = "Running"; + string stoppedState = "Stopped"; + + TestInitialize(); + + // create workspace + string workspaceName = TestUtilities.GenerateName("synapsesdkworkspace"); + var createWorkspaceParams = CommonData.PrepareWorkspaceCreateParams(); + var workspaceCreate = SynapseClient.Workspaces.CreateOrUpdate(CommonData.ResourceGroupName, workspaceName, createWorkspaceParams); + Assert.Equal(CommonTestFixture.WorkspaceType, workspaceCreate.Type); + Assert.Equal(workspaceName, workspaceCreate.Name); + Assert.Equal(CommonData.Location, workspaceCreate.Location); + + Workspace workspaceGet = null; + for (int i = 0; i < 60; i++) + { + workspaceGet = SynapseClient.Workspaces.Get(CommonData.ResourceGroupName, workspaceName); + if (workspaceGet.ProvisioningState.Equals("Succeeded")) + { + Assert.Equal(CommonTestFixture.WorkspaceType, workspaceGet.Type); + Assert.Equal(workspaceName, workspaceGet.Name); + Assert.Equal(CommonData.Location, workspaceGet.Location); + break; + } + + if (IsRecordMode) + { + Thread.Sleep(30000); + } + + Assert.True(i < 60, "Synapse Workspace is not in succeeded state even after 30 min."); + } + + // create kusto pool + string kustoPoolName = TestUtilities.GenerateName("kustopool"); + var createKustopoolParams = CommonData.PrepareKustopoolCreateParams(); + createKustopoolParams.WorkspaceUID = workspaceGet.WorkspaceUID.ToString(); + var kustoPoolCreate = SynapseClient.KustoPools.CreateOrUpdate(workspaceName, CommonData.ResourceGroupName, kustoPoolName, createKustopoolParams); + VerifyKustoPool(kustoPoolCreate, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // get kusto pool + var kustoPoolGet = SynapseClient.KustoPools.Get(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + VerifyKustoPool(kustoPoolGet, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // update kusto pool + createKustopoolParams.Sku = CommonData.UpdatedKustoSku; + var kustoPoolUpdate = SynapseClient.KustoPools.CreateOrUpdate(workspaceName, CommonData.ResourceGroupName, kustoPoolName, createKustopoolParams); + VerifyKustoPool(kustoPoolUpdate, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // suspend kusto pool + SynapseClient.KustoPools.Stop(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + var kustoPoolStop = SynapseClient.KustoPools.Get(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + VerifyKustoPool(kustoPoolStop, kustoPoolName, createKustopoolParams.Sku, state: stoppedState, workspaceName); + + // suspend kusto pool + SynapseClient.KustoPools.Start(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + var kustoPoolStart = SynapseClient.KustoPools.Get(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + VerifyKustoPool(kustoPoolStart, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // delete kusto pool + SynapseClient.KustoPools.Delete(workspaceName, CommonData.ResourceGroupName, kustoPoolName); + Assert.Throws(() => + { + SynapseClient.KustoPools.Get(workspaceName, kustoPoolName, CommonData.ResourceGroupName); + }); + } + + [Fact] + public void TestKustoPoolDatabaseLifeCycle() + { + TestInitialize(); + + // create workspace + string workspaceName = TestUtilities.GenerateName("synapsesdkworkspace"); + var createWorkspaceParams = CommonData.PrepareWorkspaceCreateParams(); + var workspaceCreate = SynapseClient.Workspaces.CreateOrUpdate(CommonData.ResourceGroupName, workspaceName, createWorkspaceParams); + Assert.Equal(CommonTestFixture.WorkspaceType, workspaceCreate.Type); + Assert.Equal(workspaceName, workspaceCreate.Name); + Assert.Equal(CommonData.Location, workspaceCreate.Location); + + Workspace workspaceGet = null; + for (int i = 0; i < 60; i++) + { + workspaceGet = SynapseClient.Workspaces.Get(CommonData.ResourceGroupName, workspaceName); + if (workspaceGet.ProvisioningState.Equals("Succeeded")) + { + Assert.Equal(CommonTestFixture.WorkspaceType, workspaceGet.Type); + Assert.Equal(workspaceName, workspaceGet.Name); + Assert.Equal(CommonData.Location, workspaceGet.Location); + break; + } + + if (IsRecordMode) + { + Thread.Sleep(30000); + } + + Assert.True(i < 60, "Synapse Workspace is not in succeeded state even after 30 min."); + } + + // create kusto pool + string kustoPoolName = TestUtilities.GenerateName("kustopool"); + var createKustopoolParams = CommonData.PrepareKustopoolCreateParams(); + createKustopoolParams.WorkspaceUID = workspaceGet.WorkspaceUID.ToString(); + SynapseClient.KustoPools.CreateOrUpdate(workspaceName, CommonData.ResourceGroupName, kustoPoolName, createKustopoolParams); + + // create kusto database + string kustoDatabaseName = TestUtilities.GenerateName("kustodatabase"); + var createKustoDatabaseParams = CommonData.PrepareKustoDatabaseCreateParams(); + var kustoDatabaseCreate = SynapseClient.KustoPoolDatabases.CreateOrUpdate(CommonData.ResourceGroupName, workspaceName, kustoPoolName, kustoDatabaseName, createKustoDatabaseParams) as ReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseCreate, kustoDatabaseName, CommonData.SoftDeletePeriod, CommonData.HotCachePeriod, workspaceName, kustoPoolName); + + // get database + var kustoDatabaseGet = SynapseClient.KustoPoolDatabases.Get(CommonData.ResourceGroupName, workspaceName, kustoPoolName, kustoDatabaseName) as ReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseGet, kustoDatabaseName, CommonData.SoftDeletePeriod, CommonData.HotCachePeriod, workspaceName, kustoPoolName); + + // update database + createKustoDatabaseParams.SoftDeletePeriod = CommonData.UpdatedSoftDeletePeriod; + createKustoDatabaseParams.HotCachePeriod = CommonData.UpdatedHotCachePeriod; + var kustoDatabaseUpdate = SynapseClient.KustoPoolDatabases.CreateOrUpdate(CommonData.ResourceGroupName, workspaceName, kustoPoolName, kustoDatabaseName, createKustoDatabaseParams) as ReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseUpdate, kustoDatabaseName, CommonData.UpdatedSoftDeletePeriod, CommonData.UpdatedHotCachePeriod, workspaceName, kustoPoolName); + + // delete database + SynapseClient.KustoPoolDatabases.Delete(CommonData.ResourceGroupName, workspaceName, kustoPoolName, kustoDatabaseName); + Assert.Throws(() => + { + SynapseClient.KustoPoolDatabases.Get(CommonData.ResourceGroupName, workspaceName, kustoPoolName, kustoDatabaseName); + }); + + SynapseClient.KustoPools.Delete(workspaceName, CommonData.ResourceGroupName, kustoPoolName); + } + + private void VerifyKustoPool(KustoPool kustoPool, string name, AzureSku sku, string state, string workspaceName) + { + var poolFullName = GetFullKustoPoolName(workspaceName, name); + Assert.Equal(kustoPool.Name, poolFullName); + AssetEqualtsSku(kustoPool.Sku, sku); + Assert.Equal(state, kustoPool.State); + } + + private string GetFullKustoPoolName(string workspaceName, string kustoPoolName) + { + return $"{workspaceName}/{kustoPoolName}"; + } + + private void AssetEqualtsSku(AzureSku sku1, AzureSku sku2) + { + Assert.Equal(sku1.Size, sku2.Size); + Assert.Equal(sku1.Name, sku2.Name); + } + + private void VerifyReadWriteDatabase(ReadWriteDatabase database, string databaseName, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, string workspaceName, string kustoPoolName) + { + var databaseFullName = GetFullKustoDatabaseName(workspaceName, kustoPoolName, databaseName); + Assert.NotNull(database); + Assert.Equal(database.Name, databaseFullName); + Assert.Equal(database.SoftDeletePeriod, softDeletePeriod); + Assert.Equal(database.HotCachePeriod, hotCachePeriod); + } + + private string GetFullKustoDatabaseName(string workspaceName, string kustoPoolName, string kustoDatabaseName) + { + return $"{workspaceName}/{kustoPoolName}/{kustoDatabaseName}"; + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json new file mode 100644 index 0000000000000..4a1154c9f27a3 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json @@ -0,0 +1,3984 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage9497.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys3027\"\r\n },\r\n \"sqlAdministratorLoginPassword\": \"Password1!6459\",\r\n \"sqlAdministratorLogin\": \"sshuser4866\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a956ebad-f834-4219-baa2-0b75e9c293b2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "368" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "c66ac8e9-9b66-4cf6-bae0-0b71eec2aea1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "89199958-9d80-4899-8334-8e7f2618c1d6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090128Z:89199958-9d80-4899-8334-8e7f2618c1d6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:01:28 GMT" + ], + "Content-Length": [ + "1427" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage9497.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys3027\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb7f4d3eb-f18f-4c5e-9888-d946d8aa81a6%2fresourceGroups%2fsynapsesdkrp379%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9520\",\r\n \"dev\": \"https://synapsesdkworkspace9520.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace9520-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace9520.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-763b9f23-7e88-42fe-9784-745778484111\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\"\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace9520\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"a8a3e889-383d-46be-a4e2-03b401cbf9a0\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "125e8994-11b9-4522-a292-68204d2f47c9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "8271b0b5-a6d3-4baa-a1e7-a0d0fd758f3d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090158Z:8271b0b5-a6d3-4baa-a1e7-a0d0fd758f3d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:01:58 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "31783b9c-84c7-478f-b881-b5408444ae1e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "2a6449a4-5803-4f3f-978b-23b0b9871b01" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090228Z:2a6449a4-5803-4f3f-978b-23b0b9871b01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:02:28 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "09eec791-f552-407f-9b15-050f7c649828" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "f4107237-ccc8-4acf-babf-c7588a5a2ea7" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090259Z:f4107237-ccc8-4acf-babf-c7588a5a2ea7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:02:58 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "23609852-6049-4dd1-9943-48e10579b4b2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "56e09bae-5edd-4d20-bf92-a6222c654a29" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090329Z:56e09bae-5edd-4d20-bf92-a6222c654a29" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:03:29 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9460d9a2-5b86-4e57-8946-e9138bdef121" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "09ef302c-17ff-41bc-92fa-d2755ad9b363" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090359Z:09ef302c-17ff-41bc-92fa-d2755ad9b363" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:03:59 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/operationStatuses/af44a5d8-d744-4c19-b1d1-d26daa7bddfe?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "4e42ffcf-e804-4872-9bf8-ee442db94d05" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "09ddee80-2126-4d02-9da5-11882410b491" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090429Z:09ddee80-2126-4d02-9da5-11882410b491" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:04:29 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "19627631-265c-46ab-a76a-37f8d453de5e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "2341c5d7-39f4-4794-96c1-eeffd8548640" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090430Z:2341c5d7-39f4-4794-96c1-eeffd8548640" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:04:29 GMT" + ], + "Content-Length": [ + "1485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage9497.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys3027\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb7f4d3eb-f18f-4c5e-9888-d946d8aa81a6%2fresourceGroups%2fsynapsesdkrp379%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9520\",\r\n \"dev\": \"https://synapsesdkworkspace9520.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace9520-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace9520.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-763b9f23-7e88-42fe-9784-745778484111\",\r\n \"sqlAdministratorLogin\": \"sshuser4866\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\",\r\n \"IsScopeEnabled\": false\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace9520\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"a8a3e889-383d-46be-a4e2-03b401cbf9a0\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6216a2a2-8ee9-47f7-b3f7-a76de1dc002a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "28985409-ca91-4b64-9a69-fe2ee33fff0b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "284c7520-ec9c-43c5-a78a-98a9865361d0" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090430Z:284c7520-ec9c-43c5-a78a-98a9865361d0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:04:29 GMT" + ], + "Content-Length": [ + "1485" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage9497.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys3027\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb7f4d3eb-f18f-4c5e-9888-d946d8aa81a6%2fresourceGroups%2fsynapsesdkrp379%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9520\",\r\n \"dev\": \"https://synapsesdkworkspace9520.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace9520-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace9520.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-763b9f23-7e88-42fe-9784-745778484111\",\r\n \"sqlAdministratorLogin\": \"sshuser4866\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\",\r\n \"IsScopeEnabled\": false\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace9520\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"a8a3e889-383d-46be-a4e2-03b401cbf9a0\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\"\r\n },\r\n \"properties\": {\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a1ee21ca-9ae2-46a3-b9e9-4492b584c890" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "188" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"\"" + ], + "x-ms-request-id": [ + "84882f33-0525-4b68-a8d2-ebb4a1ffa689" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ee43e5af-9db2-411e-949d-25c5318a596c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090436Z:ee43e5af-9db2-411e-949d-25c5318a596c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:04:35 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"\\\"\",\r\n \"location\": \"eastus2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\"\r\n },\r\n \"properties\": {\r\n \"state\": \"Creating\",\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8d448467-e9c9-49a4-ae51-b1a28d1e38d7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "63c40597-05fd-425b-ba54-ac075edc744b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090506Z:63c40597-05fd-425b-ba54-ac075edc744b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:05:06 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "901e8228-2076-4cf9-9c38-c6d7796ca200" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "7393af01-6af5-4d05-8c96-a95d20f0333a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090537Z:7393af01-6af5-4d05-8c96-a95d20f0333a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:05:37 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ebb039a7-4fb5-4f6d-82db-f289adf29499" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "9ac6bbd0-6cb8-4814-b4b6-48245578a227" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090607Z:9ac6bbd0-6cb8-4814-b4b6-48245578a227" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:06:07 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b5b4208b-2e5b-4d9e-8c57-80209fd9d0c3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "a71c0c26-d61b-46fc-afcf-d76dbb1ff531" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090637Z:a71c0c26-d61b-46fc-afcf-d76dbb1ff531" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:06:37 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "227b7096-f125-4d54-8761-6b8112b0983f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "c568ffe9-83b4-4e61-96d1-0838bb5834e5" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090707Z:c568ffe9-83b4-4e61-96d1-0838bb5834e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:07:07 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "339586bd-f898-487c-a499-3519cc9fecc3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "aa4f0210-7d0a-4d08-af2a-9c02b7fc5904" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090738Z:aa4f0210-7d0a-4d08-af2a-9c02b7fc5904" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:07:38 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1a7abed0-7395-439d-9859-7e2f401cf4de" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "3344613e-085e-459c-bb2c-bdefad281f74" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090808Z:3344613e-085e-459c-bb2c-bdefad281f74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:08:08 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f6a62796-7845-45ce-af2b-09d82048555f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "d6ef9a4b-5176-4c3d-852a-ca8b8cb496be" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090838Z:d6ef9a4b-5176-4c3d-852a-ca8b8cb496be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:08:38 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6483ac32-db16-4546-b66a-b3c711d27560" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "a520c28e-2e91-46f0-8560-f80dc8e30251" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090908Z:a520c28e-2e91-46f0-8560-f80dc8e30251" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:09:08 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1300dc20-270f-4f37-917f-f0186acc71d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "da3937fd-f017-4b59-9b98-a26b25901e4d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T090939Z:da3937fd-f017-4b59-9b98-a26b25901e4d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:09:39 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f4c67b7f-6452-41a3-8905-5023cbefccc1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "89ccedcd-7bbe-47f7-9a32-5f545604f041" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091010Z:89ccedcd-7bbe-47f7-9a32-5f545604f041" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:10:09 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "725d1d09-aa2e-4af4-a686-20e33e43139f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "80b10a49-cf3b-4531-b3e5-a39a4f2849f3" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091040Z:80b10a49-cf3b-4531-b3e5-a39a4f2849f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:10:39 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "157170e9-ab67-4801-900d-288e09887902" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "7a836368-4d8e-4cea-a3a0-293b45ceadbf" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091110Z:7a836368-4d8e-4cea-a3a0-293b45ceadbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:11:10 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "49ac733b-066a-4de0-a08b-1f6cb06f0bbd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "71d7ed2f-0206-4b28-9bab-10cb00086394" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091141Z:71d7ed2f-0206-4b28-9bab-10cb00086394" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:11:40 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "09e6cc65-4d18-4604-b293-f81942e4b69c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "7a317990-c3f1-4c10-91f2-f1eb6d0aaaab" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091211Z:7a317990-c3f1-4c10-91f2-f1eb6d0aaaab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:12:11 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7c9f5320-6258-49ee-9fbc-b6df908049e6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "43c950c2-2615-435c-9418-1368f495eeca" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091241Z:43c950c2-2615-435c-9418-1368f495eeca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:12:41 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cc75ea0a-3978-4b1e-8279-d31c5497a605" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "239f72cf-5f9c-4611-a029-563d10b076e2" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091311Z:239f72cf-5f9c-4611-a029-563d10b076e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:13:11 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f45ba279-fa05-4c6b-b2b2-9ec8fd41bd5e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "89db274e-ac99-4dc9-bd0d-0b4b019ffc8f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091342Z:89db274e-ac99-4dc9-bd0d-0b4b019ffc8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:13:41 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "381c2644-c50e-4f3e-8f4b-74688ea06fb0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "219dfb9c-5086-46f4-93ae-44c5e52ab360" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091412Z:219dfb9c-5086-46f4-93ae-44c5e52ab360" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:14:12 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8117c385-5261-4eb9-ac65-ccef64789181" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "0152719a-a17a-4dab-8bac-b10b718712bd" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091442Z:0152719a-a17a-4dab-8bac-b10b718712bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:14:41 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "250ea2ca-7c54-4bad-a85a-a3bda0985b57" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "9184f960-c836-4969-8ea3-1b8be4e582cc" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091512Z:9184f960-c836-4969-8ea3-1b8be4e582cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:15:11 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f4418a8f-3bc2-49d2-b0ec-bfb4a38c3b55" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "1cd5e47a-51b9-4b48-a18f-08332d83f7e0" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091543Z:1cd5e47a-51b9-4b48-a18f-08332d83f7e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:15:43 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9d1a70bd-8c06-402c-b0f1-b0f3149be79e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "284caa14-d3cb-4c5a-8f92-2c6e3c978e04" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091614Z:284caa14-d3cb-4c5a-8f92-2c6e3c978e04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:16:13 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "db7c87ec-1be2-4911-8323-a02248d147fe" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "dca1fe42-7987-49c6-91d7-b804a11b75f8" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091644Z:dca1fe42-7987-49c6-91d7-b804a11b75f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:16:43 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1bcbbd32-b5c0-421a-80a4-4e6461eb818a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "968a5987-2fa1-4ae4-bfb3-7bdd549324de" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091714Z:968a5987-2fa1-4ae4-bfb3-7bdd549324de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:17:13 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "59b9125c-0d84-4760-a2a5-843fd729e5ab" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "36f47a6c-b2fc-4184-b221-4c928a5b345e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091744Z:36f47a6c-b2fc-4184-b221-4c928a5b345e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:17:44 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8cb8f453-7597-4585-bd6b-eda45561121c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "9a47e902-01bc-47b4-a5aa-faccf3b9a276" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091815Z:9a47e902-01bc-47b4-a5aa-faccf3b9a276" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:18:14 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "454b8b5d-14a5-4d70-8079-306600a37c0d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "bf1ccfba-7d60-4f8a-adf6-521343daaee2" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091845Z:bf1ccfba-7d60-4f8a-adf6-521343daaee2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:18:44 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "970e9cc6-674e-4cda-bd5e-772a77d26236" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "0480b6c5-6b9a-4436-b755-482406592a72" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091915Z:0480b6c5-6b9a-4436-b755-482406592a72" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:19:14 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:07:40.8742085Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "89a069df-a88d-4707-aaeb-0f8e3197e2f4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "bae43da6-e282-40a6-95fb-481aacebe5b5" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091945Z:bae43da6-e282-40a6-95fb-481aacebe5b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:19:45 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"name\": \"b6070349-9371-4514-93be-7d7225f8369f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:04:35.4447187Z\",\r\n \"endTime\": \"2021-10-08T09:19:30.6857416Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"bd37fc8f-a972-4295-997b-4ff35bae0edf\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:19:30.2482704Z\"" + ], + "x-ms-request-id": [ + "ee6be674-6167-4e19-8e2b-a6b78d86bea7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "b275d69d-5a04-4715-a089-6a3101c7c0d7" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091946Z:b275d69d-5a04-4715-a089-6a3101c7c0d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:19:46 GMT" + ], + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:19:30.2482704Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Running\",\r\n \"stateReason\": null,\r\n \"uri\": \"https://kustopool8313.synapsesdkworkspace9520.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool8313.synapsesdkworkspace9520.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"9d8833ea-fb7a-4082-aa4f-d0b2809d6ff6\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P4D\",\r\n \"hotCachePeriod\": \"P2D\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73f82380-f087-4d90-9165-15652d557916" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "139" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ffa10a4e-e7d5-4acf-9e88-8f8ac38a6c37" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "40f45450-727d-4a4f-9d2f-aff911e51e86" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T091947Z:40f45450-727d-4a4f-9d2f-aff911e51e86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:19:47 GMT" + ], + "Content-Length": [ + "465" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313/kustodatabase2988\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools/Databases\",\r\n \"location\": \"eastus2\",\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P4D\",\r\n \"hotCachePeriod\": \"P2D\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P6D\",\r\n \"hotCachePeriod\": \"P3D\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f62656bd-323a-4e62-85a1-64435dae9a04" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "139" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6867242a-e6ca-4438-a5b6-feede12f975f" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/480ce2e5-9891-488e-b227-0666b7c70335?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "a5d86b90-7a3f-4d0c-a703-8032add4a67a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092120Z:a5d86b90-7a3f-4d0c-a703-8032add4a67a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:19 GMT" + ], + "Content-Length": [ + "467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313/kustodatabase2988\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools/Databases\",\r\n \"location\": \"East US 2\",\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P6D\",\r\n \"hotCachePeriod\": \"P3D\",\r\n \"provisioningState\": \"Accepted\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "952a2b33-fa5e-440f-996f-2a2616a5a552" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "6a2be280-dad1-48fa-8016-d21cb0091475" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092017Z:6a2be280-dad1-48fa-8016-d21cb0091475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:20:17 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"name\": \"ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:19:47.0988156Z\",\r\n \"endTime\": \"2021-10-08T09:19:47.1456844Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"DatabaseCreate\",\r\n \"RootActivityId\": \"3d3b1016-07ed-4b4c-bd23-5ac950b5f4d9\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "341f1f5c-8291-4c7f-ba57-80b1017ebb0c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "db5fbbb3-007f-4020-ac5c-0ce302d00a60" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092047Z:db5fbbb3-007f-4020-ac5c-0ce302d00a60" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:20:47 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"name\": \"ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:19:47.0988156Z\",\r\n \"endTime\": \"2021-10-08T09:19:47.1456844Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"DatabaseCreate\",\r\n \"RootActivityId\": \"3d3b1016-07ed-4b4c-bd23-5ac950b5f4d9\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "83065904-61c8-4043-87c6-31b74de77751" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "837062e0-071c-4d86-9bb9-602751d82973" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092118Z:837062e0-071c-4d86-9bb9-602751d82973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:17 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"name\": \"ff24f3fd-2cce-44a7-8166-9e6434da76ac\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:19:47.0988156Z\",\r\n \"endTime\": \"2021-10-08T09:20:49.4784415Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"DatabaseCreate\",\r\n \"RootActivityId\": \"3d3b1016-07ed-4b4c-bd23-5ac950b5f4d9\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f2cae637-2848-4b26-8c67-f0762dc68fed" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "c1081cb0-97f3-4016-bb2f-22873a4603dc" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092119Z:c1081cb0-97f3-4016-bb2f-22873a4603dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:18 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313/kustodatabase2988\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools/Databases\",\r\n \"location\": \"East US 2\",\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P4D\",\r\n \"hotCachePeriod\": \"P2D\",\r\n \"statistics\": {\r\n \"size\": 0.0\r\n },\r\n \"isFollowed\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2581d394-9c1b-4ed3-bf99-02f95156c827" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d4959c82-dfb2-4781-a11d-fb672074ef4c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "3d6093db-0979-445d-8de3-f6ef16c8a0ed" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092119Z:3d6093db-0979-445d-8de3-f6ef16c8a0ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:18 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313/kustodatabase2988\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools/Databases\",\r\n \"location\": \"East US 2\",\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P4D\",\r\n \"hotCachePeriod\": \"P2D\",\r\n \"statistics\": {\r\n \"size\": 0.0\r\n },\r\n \"isFollowed\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ff53c6ce-f62e-4a5c-bce9-808cd1822d2c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "1864dde6-d911-4a97-8945-0e8e67b33550" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092150Z:1864dde6-d911-4a97-8945-0e8e67b33550" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:49 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988\",\r\n \"name\": \"synapsesdkworkspace9520/kustopool8313/kustodatabase2988\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools/Databases\",\r\n \"location\": \"East US 2\",\r\n \"kind\": \"ReadWrite\",\r\n \"properties\": {\r\n \"softDeletePeriod\": \"P6D\",\r\n \"hotCachePeriod\": \"P3D\",\r\n \"statistics\": {\r\n \"size\": 0.0\r\n },\r\n \"isFollowed\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "194f70e0-2c30-454a-804b-862cdf2c4793" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f8ca45dc-db85-4d86-8293-fa1f2af8efc6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "9988e284-4e8e-415c-b607-8d7d3832a926" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092222Z:9988e284-4e8e-415c-b607-8d7d3832a926" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:22:22 GMT" + ], + "Content-Length": [ + "293" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The resource with identifier '/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/Databases/kustodatabase2988' is not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/480ce2e5-9891-488e-b227-0666b7c70335?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "08589fdf-87f4-4414-8702-be086383906d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "685139c8-ca17-4a81-b3ad-d65ec4a63fc7" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092150Z:685139c8-ca17-4a81-b3ad-d65ec4a63fc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:49 GMT" + ], + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/480ce2e5-9891-488e-b227-0666b7c70335\",\r\n \"name\": \"480ce2e5-9891-488e-b227-0666b7c70335\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:21:20.0280669Z\",\r\n \"endTime\": \"2021-10-08T09:21:22.0281921Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"DatabaseCreate\",\r\n \"RootActivityId\": \"3912f8a4-cc8d-4f22-91cc-1b15670bf44e\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313/databases/kustodatabase2988?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a51ae79-7b32-4700-b2b6-5909bb68c1fc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0?api-version=2021-06-01-preview&operationResultResponseType=Location" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "c6714fd8-cd11-455b-a4d5-ac1539bb679b" + ], + "x-ms-correlation-request-id": [ + "c6714fd8-cd11-455b-a4d5-ac1539bb679b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092151Z:c6714fd8-cd11-455b-a4d5-ac1539bb679b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:21:50 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "27a118cd-3f13-4bda-93df-40124cad454d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "65b181fc-7619-471d-85a3-10c690209eba" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092221Z:65b181fc-7619-471d-85a3-10c690209eba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:22:21 GMT" + ], + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0\",\r\n \"name\": \"7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:21:51.1729135Z\",\r\n \"endTime\": \"2021-10-08T09:21:53.7824658Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"DatabaseDelete\",\r\n \"RootActivityId\": \"cd3ed7d4-f1e9-482c-b354-3df15e57340a\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/7f9ca8cd-91fb-4f41-ab8b-11efb62cc9a0?api-version=2021-06-01-preview&operationResultResponseType=Location", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "87432852-5bd8-43ec-b8a3-5b1e96e3b948" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "8023ac15-56b4-4424-93a0-b9e55e8329a6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092221Z:8023ac15-56b4-4424-93a0-b9e55e8329a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:22:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/resourceGroups/synapsesdkrp379/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9520/kustoPools/kustopool8313?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e6c71fde-35f4-4ce1-9445-667dadae56c3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview&operationResultResponseType=Location" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "8a8bb2ff-7fc4-499f-b120-8a23cb184f50" + ], + "x-ms-correlation-request-id": [ + "8a8bb2ff-7fc4-499f-b120-8a23cb184f50" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092223Z:8a8bb2ff-7fc4-499f-b120-8a23cb184f50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:22:22 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e2199188-e909-4db8-9ed7-226f2b3481d0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "0c261c08-69e4-4170-8a90-ab4922b354ea" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092253Z:0c261c08-69e4-4170-8a90-ab4922b354ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:22:52 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "55b03ada-704b-4e2e-b96f-c7964cf5b336" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "b90e9bee-126e-4bfe-bc2d-c3953c3c87c3" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092323Z:b90e9bee-126e-4bfe-bc2d-c3953c3c87c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:23:22 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4154879f-6fcf-4dee-aaf3-87276b83373b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "f0b60487-81ed-441f-9af3-108c5d84fdb5" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092354Z:f0b60487-81ed-441f-9af3-108c5d84fdb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:23:53 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "92cd346a-5002-4e48-8296-87adb3e2d516" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "a21dddb9-4b6a-4cd4-8788-cfc81e6a3787" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092424Z:a21dddb9-4b6a-4cd4-8788-cfc81e6a3787" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:24:23 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1d1b4e24-8b02-4e2c-8bda-9dded79714e9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "d608c781-e05d-483b-9e61-c4325010be47" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092454Z:d608c781-e05d-483b-9e61-c4325010be47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:24:53 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2c2ef113-aca8-44ec-bd81-a2b6f0ec5c1f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "b1e3947e-6892-457f-acf0-7143314efaf1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092524Z:b1e3947e-6892-457f-acf0-7143314efaf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:25:23 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c893b887-b049-414a-aa44-06b62ffaa57c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "d22a16be-d3b9-4be1-9b28-39fd410f2f0e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092555Z:d22a16be-d3b9-4be1-9b28-39fd410f2f0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:25:54 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a04bf8a3-25d1-4a8d-8187-e114222cb1cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "bf307e05-c48d-46e6-a919-88a2ada07d21" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092625Z:bf307e05-c48d-46e6-a919-88a2ada07d21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:26:24 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cea9d920-6dd7-4fae-9054-13a7b0b336de" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "296df180-c04d-453b-b461-cd0998af83fb" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092656Z:296df180-c04d-453b-b461-cd0998af83fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:26:55 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e143abf4-dfc5-4b84-9812-e43ed27b9d3f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "3376327a-2b4c-4c4a-9258-de3f6b21d594" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092726Z:3376327a-2b4c-4c4a-9258-de3f6b21d594" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:27:25 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "066324cf-16fe-4cd5-b8d8-72e8763aceeb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "1f921996-616b-41cd-a1fc-227796b4a6c1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092756Z:1f921996-616b-41cd-a1fc-227796b4a6c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:27:55 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "523e3ec0-ed36-4fae-b242-9856f048336f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "d0301bd7-abca-4683-8f67-74c31ef93738" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092826Z:d0301bd7-abca-4683-8f67-74c31ef93738" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:28:26 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:22:29.1389491Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "55ec8180-7e65-44f5-bfad-6e59ea858426" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "b4e7f23d-fd5a-4211-a464-67a4b293c545" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092857Z:b4e7f23d-fd5a-4211-a464-67a4b293c545" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:28:56 GMT" + ], + "Content-Length": [ + "508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"name\": \"8ee33b1a-34ce-48a0-80fb-1f61d94c8162\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:22:23.1073036Z\",\r\n \"endTime\": \"2021-10-08T09:28:52.4495346Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"1223fdf2-d0ec-49b6-874c-2dde949ba320\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8ee33b1a-34ce-48a0-80fb-1f61d94c8162?api-version=2021-06-01-preview&operationResultResponseType=Location", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6d957ccd-4406-4299-bda0-e910219c89f9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "72144740-1511-4471-88e6-891f4402e2a6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092857Z:72144740-1511-4471-88e6-891f4402e2a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:28:56 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "synapsesdkrp379", + "synapsesdkstorage9497", + "sshuser4866", + "Password1!6459", + "synapsesdkfilesys3027" + ], + "TestInitialize": [ + "b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6" + ], + "TestKustoPoolDatabaseLifeCycle": [ + "synapsesdkworkspace9520", + "kustopool8313", + "kustodatabase2988" + ] + }, + "Variables": { + "SubscriptionId": "b7f4d3eb-f18f-4c5e-9888-d946d8aa81a6" + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json new file mode 100644 index 0000000000000..3157337ccd420 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json @@ -0,0 +1,6126 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage5357.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys1090\"\r\n },\r\n \"sqlAdministratorLoginPassword\": \"Password1!8982\",\r\n \"sqlAdministratorLogin\": \"sshuser5526\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "29a6234a-0c79-4e28-b787-d5c08ceaa8cb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "368" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "ce5a4c89-79c5-4399-b36f-99ebbe553a2e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5b065c40-b280-470e-9be1-cd4620eca445" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T092947Z:5b065c40-b280-470e-9be1-cd4620eca445" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:29:47 GMT" + ], + "Content-Length": [ + "1429" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage5357.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys1090\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb98aabf4-d4f2-4586-a722-84f55df2b51e%2fresourceGroups%2fsynapsesdkrp4275%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace8141\",\r\n \"dev\": \"https://synapsesdkworkspace8141.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace8141-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace8141.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-8411263c-d206-49b7-8b30-240711f8da78\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\"\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace8141\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"523994d0-7ca5-4e83-b046-a4a639db328f\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "7c935aee-26cf-47c4-88bf-1d5ece06d576" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "8c5b5610-c3c7-48b4-9ecf-96a4b617e491" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093018Z:8c5b5610-c3c7-48b4-9ecf-96a4b617e491" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:30:17 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "99ee1e27-937b-4da2-b0e3-ef4214a64807" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "2da61c1f-bf88-4dab-aa15-fe6468e71278" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093048Z:2da61c1f-bf88-4dab-aa15-fe6468e71278" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:30:47 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "bf703e0b-fd9f-4b6c-a8a6-abc0027ab071" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "80106ce0-9ae2-415b-93fb-d6dd32e72a29" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093118Z:80106ce0-9ae2-415b-93fb-d6dd32e72a29" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:31:18 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9b04ede8-6058-4426-8923-1ee69a8c8a0a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-correlation-request-id": [ + "391bba41-7056-4a69-8456-e7bf121c81cb" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093148Z:391bba41-7056-4a69-8456-e7bf121c81cb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:31:48 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "b63ac103-8451-448f-82bc-6e7fdaa2f805" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-correlation-request-id": [ + "7c9f90a8-0d6c-4889-ac21-ac1a6bd2ebf8" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093219Z:7c9f90a8-0d6c-4889-ac21-ac1a6bd2ebf8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:32:18 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "dc4c2c7b-1ee2-4d79-b06b-fed90d37caac" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-correlation-request-id": [ + "2acd2107-aeda-4d78-92d6-bbdef3f3e895" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093249Z:2acd2107-aeda-4d78-92d6-bbdef3f3e895" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:32:48 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/operationStatuses/ef6f66f4-e26f-4636-a829-b660ec9d8bc7?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "8e51d786-c9a7-493d-89a3-9ab8e40ffa12" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-correlation-request-id": [ + "9f3b9d12-edeb-4a02-b8a3-99b2b0b06f81" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093319Z:9f3b9d12-edeb-4a02-b8a3-99b2b0b06f81" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:33:19 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "a336e5e1-03c2-46c8-9b62-08282a62cec9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-correlation-request-id": [ + "d8ae79bf-caca-4aac-8d70-425daa33c978" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093319Z:d8ae79bf-caca-4aac-8d70-425daa33c978" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:33:19 GMT" + ], + "Content-Length": [ + "1487" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage5357.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys1090\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb98aabf4-d4f2-4586-a722-84f55df2b51e%2fresourceGroups%2fsynapsesdkrp4275%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace8141\",\r\n \"dev\": \"https://synapsesdkworkspace8141.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace8141-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace8141.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-8411263c-d206-49b7-8b30-240711f8da78\",\r\n \"sqlAdministratorLogin\": \"sshuser5526\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\",\r\n \"IsScopeEnabled\": false\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace8141\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"523994d0-7ca5-4e83-b046-a4a639db328f\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ddcdc4bb-2d36-4e72-b2aa-eadd01a4c60b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "13e9bf6b-5372-4837-8d06-5466e4c1f8e6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "x-ms-correlation-request-id": [ + "6afeb73f-0f28-434f-b8fc-68e4e4410916" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093320Z:6afeb73f-0f28-434f-b8fc-68e4e4410916" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:33:19 GMT" + ], + "Content-Length": [ + "1487" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStorage\": {\r\n \"accountUrl\": \"https://synapsesdkstorage5357.dfs.core.windows.net\",\r\n \"filesystem\": \"synapsesdkfilesys1090\"\r\n },\r\n \"encryption\": {\r\n \"doubleEncryptionEnabled\": false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectivityEndpoints\": {\r\n \"web\": \"https://web.azuresynapse.net?workspace=%2fsubscriptions%2fb98aabf4-d4f2-4586-a722-84f55df2b51e%2fresourceGroups%2fsynapsesdkrp4275%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace8141\",\r\n \"dev\": \"https://synapsesdkworkspace8141.dev.azuresynapse.net\",\r\n \"sqlOnDemand\": \"synapsesdkworkspace8141-ondemand.sql.azuresynapse.net\",\r\n \"sql\": \"synapsesdkworkspace8141.sql.azuresynapse.net\"\r\n },\r\n \"managedResourceGroupName\": \"synapseworkspace-managedrg-8411263c-d206-49b7-8b30-240711f8da78\",\r\n \"sqlAdministratorLogin\": \"sshuser5526\",\r\n \"privateEndpointConnections\": [],\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"extraProperties\": {\r\n \"WorkspaceType\": \"Normal\",\r\n \"IsScopeEnabled\": false\r\n },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"cspWorkspaceAdminProperties\": {\r\n \"initialWorkspaceAdminObjectId\": \"2a1ad28b-d02c-4444-b9ef-fcc52ea0c9e3\"\r\n },\r\n \"trustedServiceBypassEnabled\": false\r\n },\r\n \"type\": \"Microsoft.Synapse/workspaces\",\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141\",\r\n \"location\": \"eastus2\",\r\n \"name\": \"synapsesdkworkspace8141\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"principalId\": \"523994d0-7ca5-4e83-b046-a4a639db328f\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\"\r\n },\r\n \"properties\": {\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "771990af-92e8-4da9-94d9-b12d2baf94a9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "188" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"\"" + ], + "x-ms-request-id": [ + "51c86ec5-f469-4741-a7c7-ef96dd8fa5b9" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "18231e92-f8d5-43d0-99a6-e7a6bf6beb18" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093326Z:18231e92-f8d5-43d0-99a6-e7a6bf6beb18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:33:26 GMT" + ], + "Content-Length": [ + "481" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"\\\"\",\r\n \"location\": \"eastus2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\"\r\n },\r\n \"properties\": {\r\n \"state\": \"Creating\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Large\"\r\n },\r\n \"properties\": {\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\"\r\n },\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2bec0959-7d2e-4b68-adad-023cbec5cb2e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "187" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:44:42.5154054Z\"" + ], + "x-ms-request-id": [ + "a2db8416-7ce6-4386-bc33-df75f7a2e210" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5c006ad1-905e-431f-9205-7167a951abe1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094507Z:5c006ad1-905e-431f-9205-7167a951abe1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:45:06 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:44:42.5154054Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Large\"\r\n },\r\n \"properties\": {\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Accepted\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7b09c681-d388-4d93-a9af-8e65d4405c4a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-correlation-request-id": [ + "be2ce257-0b4a-44eb-b3cf-57609ffc317a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093356Z:be2ce257-0b4a-44eb-b3cf-57609ffc317a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:33:56 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "af8e5bd4-d68d-43c5-9a12-9212aed03e39" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "x-ms-correlation-request-id": [ + "0c354d85-f823-43d8-9630-92e91ad9c843" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093426Z:0c354d85-f823-43d8-9630-92e91ad9c843" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:34:26 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a6225a4b-5076-48ac-9c6e-e83a60304434" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11926" + ], + "x-ms-correlation-request-id": [ + "83d7d2f5-74c9-43cc-b1eb-691c32f2e392" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093457Z:83d7d2f5-74c9-43cc-b1eb-691c32f2e392" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:34:57 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8ec28b0d-74e2-4a18-a47d-01be15acf1f1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11925" + ], + "x-ms-correlation-request-id": [ + "5265f1e3-ed6a-40fc-98bd-e1aa824eb965" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093527Z:5265f1e3-ed6a-40fc-98bd-e1aa824eb965" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:35:26 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7a869f84-9b49-4ce3-bdb4-b2ef1e8965c3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11924" + ], + "x-ms-correlation-request-id": [ + "91f02227-5bac-44a5-a194-50c233c09270" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093557Z:91f02227-5bac-44a5-a194-50c233c09270" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:35:56 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "529a850a-208b-40e4-8f35-3f1456dc884f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11923" + ], + "x-ms-correlation-request-id": [ + "45092a4a-7954-4941-9f6d-d6c17ed86738" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093627Z:45092a4a-7954-4941-9f6d-d6c17ed86738" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:36:27 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "aba870fc-d8fa-4eb5-b1bc-ef89c8a6a3d1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11922" + ], + "x-ms-correlation-request-id": [ + "c2bf6813-9f26-4299-9030-9ce3f069cd57" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093658Z:c2bf6813-9f26-4299-9030-9ce3f069cd57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:36:57 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "71460b5c-5a8f-4403-87ac-120eee57fea3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11921" + ], + "x-ms-correlation-request-id": [ + "ea6ba0a5-48d0-4633-9255-95dabd305fcf" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093728Z:ea6ba0a5-48d0-4633-9255-95dabd305fcf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:37:27 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a7965be1-bd1a-4715-8c07-16080f618147" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11920" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "2a3963de-0b46-4759-a4dd-642e0b3bd0c1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093758Z:2a3963de-0b46-4759-a4dd-642e0b3bd0c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:37:57 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9b713b44-1c88-4eb7-973b-cd27604d5419" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11919" + ], + "x-ms-correlation-request-id": [ + "f96b8ea4-da77-4ba2-977a-7d44680c0bbe" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093829Z:f96b8ea4-da77-4ba2-977a-7d44680c0bbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:38:29 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "194f0853-3e2b-4459-8d23-a2b783f4ce4f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11918" + ], + "x-ms-correlation-request-id": [ + "34cebf6e-70e6-4bfd-9240-24c317301e7d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093900Z:34cebf6e-70e6-4bfd-9240-24c317301e7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:38:59 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "edf96659-8283-4f9b-90cc-e42e0f63a9c6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11917" + ], + "x-ms-correlation-request-id": [ + "23ea2c5e-af72-40f7-8a26-7f726b8d4006" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T093930Z:23ea2c5e-af72-40f7-8a26-7f726b8d4006" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:39:29 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "62ae8c18-dd1d-48e4-89f3-e0460dadfffd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11916" + ], + "x-ms-correlation-request-id": [ + "55711e43-91d2-4e19-8232-19286f16f53f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094000Z:55711e43-91d2-4e19-8232-19286f16f53f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:39:59 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4e13a0dc-19f6-41f9-aa8f-57fb24c4ee21" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11915" + ], + "x-ms-correlation-request-id": [ + "a0ac9c22-fab4-4029-9aaf-9c9772e74071" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094030Z:a0ac9c22-fab4-4029-9aaf-9c9772e74071" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:40:30 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d0b66cdc-3a98-4e75-a955-07ace07aaf27" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11914" + ], + "x-ms-correlation-request-id": [ + "a24b688a-c4df-4652-b416-61a4360eaf8f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094101Z:a24b688a-c4df-4652-b416-61a4360eaf8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:41:00 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "205b7146-9b0e-4979-ae60-0784030ac335" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11913" + ], + "x-ms-correlation-request-id": [ + "430685ac-ebe4-4a75-9c30-90fcb3cb383d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094131Z:430685ac-ebe4-4a75-9c30-90fcb3cb383d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:41:30 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e21728db-b621-4e8c-89e3-e7a232957946" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11912" + ], + "x-ms-correlation-request-id": [ + "a343a294-d191-4bcd-8ca3-07e0704a9511" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094201Z:a343a294-d191-4bcd-8ca3-07e0704a9511" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:42:00 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9788ac18-791e-46fe-9f84-0f8ae001bd8b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11911" + ], + "x-ms-correlation-request-id": [ + "afc298f5-4753-4fc1-a665-116db0cb1cf4" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094231Z:afc298f5-4753-4fc1-a665-116db0cb1cf4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:42:31 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6b431179-92c7-486a-996d-d8c9aa8cab28" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11910" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "ee522468-c6d3-46d1-aca6-696c4c625bfa" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094302Z:ee522468-c6d3-46d1-aca6-696c4c625bfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:43:01 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fedd1c2b-b04b-4feb-9960-9e3bb2697ee6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11909" + ], + "x-ms-correlation-request-id": [ + "2fbb32f1-ede6-4c63-bdfd-23a5ce691a43" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094333Z:2fbb32f1-ede6-4c63-bdfd-23a5ce691a43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:43:32 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ec9a62db-132c-4a4d-9df6-9b7c029b9ff8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11908" + ], + "x-ms-correlation-request-id": [ + "88bd7bac-92ca-465b-8e29-13d348ccc3d9" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094403Z:88bd7bac-92ca-465b-8e29-13d348ccc3d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:44:02 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "043a10d3-ff8b-45a5-9f58-0ee09e034856" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11907" + ], + "x-ms-correlation-request-id": [ + "d906220b-c3d1-480c-a39a-ab852ed19b28" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094433Z:d906220b-c3d1-480c-a39a-ab852ed19b28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:44:33 GMT" + ], + "Content-Length": [ + "510" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:36:23.0003118Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7aca3c8f-36f5-405a-83fe-8f552bd72cf9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11906" + ], + "x-ms-correlation-request-id": [ + "df9d218a-7ea6-41cf-922b-ed3f1c154b0e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094503Z:df9d218a-7ea6-41cf-922b-ed3f1c154b0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:45:03 GMT" + ], + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"name\": \"24d36b95-2b1e-401f-9cd7-727657f4231e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:33:25.0554484Z\",\r\n \"endTime\": \"2021-10-08T09:44:42.9997943Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterCreateSynapse\",\r\n \"RootActivityId\": \"130d9a97-d8a8-46d4-b07d-0a42d24651a8\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:44:42.5154054Z\"" + ], + "x-ms-request-id": [ + "28a5867d-20b4-495b-97ff-89ffee72cbe3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11905" + ], + "x-ms-correlation-request-id": [ + "5f2bdea5-61c2-48b0-8cf4-2778a2ae8d6c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094504Z:5f2bdea5-61c2-48b0-8cf4-2778a2ae8d6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:45:03 GMT" + ], + "Content-Length": [ + "933" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:44:42.5154054Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Running\",\r\n \"stateReason\": null,\r\n \"uri\": \"https://kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef952371-cff6-4b58-91f4-78c166e02372" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:44:42.5154054Z\"" + ], + "x-ms-request-id": [ + "ffe1859b-6a03-4d44-9988-4e2235bb15c1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11904" + ], + "x-ms-correlation-request-id": [ + "7f18cac1-20fd-45e5-9871-ad823db929c6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094504Z:7f18cac1-20fd-45e5-9871-ad823db929c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:45:04 GMT" + ], + "Content-Length": [ + "933" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:44:42.5154054Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Medium\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Running\",\r\n \"stateReason\": null,\r\n \"uri\": \"https://kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:52:16.8307443Z\"" + ], + "x-ms-request-id": [ + "7c770ae9-ddbc-455c-a9cf-a073abf901d0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "e498fce8-08cf-4b2a-b5d7-f4c353ea722b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095241Z:e498fce8-08cf-4b2a-b5d7-f4c353ea722b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:52:41 GMT" + ], + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:52:16.8307443Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Large\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Running\",\r\n \"stateReason\": null,\r\n \"uri\": \"https://kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae237a47-111c-4075-9c60-a32a092d8d2f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T09:59:04.7490591Z\"" + ], + "x-ms-request-id": [ + "5ef029c5-3599-43df-8112-2dac6e646199" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "5eb88fd1-c5e6-45d0-b88e-71d321cdec64" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095917Z:5eb88fd1-c5e6-45d0-b88e-71d321cdec64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:59:17 GMT" + ], + "Content-Length": [ + "969" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T09:59:04.7490591Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Large\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Stopped\",\r\n \"stateReason\": \"Suspended at 2021-10-08 09:52:42 +00:00\",\r\n \"uri\": \"https://kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9a7d375c-1f75-4335-afd6-4ff15f075b3e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"2021-10-08T10:08:12.0925643Z\"" + ], + "x-ms-request-id": [ + "07ed36d9-d271-49a6-80f5-f589a2d883c8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11915" + ], + "x-ms-correlation-request-id": [ + "b4942778-fc02-4e10-abb8-59e607f37893" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100824Z:b4942778-fc02-4e10-abb8-59e607f37893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:08:24 GMT" + ], + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003\",\r\n \"name\": \"synapsesdkworkspace8141/kustopool3003\",\r\n \"type\": \"Microsoft.Synapse/workspaces/kustoPools\",\r\n \"etag\": \"\\\"2021-10-08T10:08:12.0925643Z\\\"\",\r\n \"location\": \"East US 2\",\r\n \"sku\": {\r\n \"name\": \"Storage optimized\",\r\n \"size\": \"Large\",\r\n \"capacity\": 2\r\n },\r\n \"tags\": {},\r\n \"properties\": {\r\n \"state\": \"Running\",\r\n \"stateReason\": null,\r\n \"uri\": \"https://kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"dataIngestionUri\": \"https://ingest-kustopool3003.synapsesdkworkspace8141.kusto.azuresynapse.net\",\r\n \"trustedExternalTenants\": [],\r\n \"optimizedAutoscale\": null,\r\n \"enableDiskEncryption\": false,\r\n \"enableStreamingIngest\": false,\r\n \"languageExtensions\": {\r\n \"value\": []\r\n },\r\n \"enablePurge\": null,\r\n \"engineType\": \"V3\",\r\n \"workspaceUID\": \"fa7af97e-6257-4167-8cd5-950482e2f13e\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"3\",\r\n \"2\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7649bb6b-36c5-40bd-b446-046295d4d3d7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "d9d4ef34-85f5-4b64-a972-4e9b187c9df0" + ], + "x-ms-correlation-request-id": [ + "d9d4ef34-85f5-4b64-a972-4e9b187c9df0" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101531Z:d9d4ef34-85f5-4b64-a972-4e9b187c9df0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:15:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "265" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003' under resource group 'synapsesdkrp4275' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2ea5b08c-cdb5-4dc4-b812-fef88c4cfb5c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11903" + ], + "x-ms-correlation-request-id": [ + "91cff6ed-ab1c-4d4e-a0d8-c7cc975f798b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094537Z:91cff6ed-ab1c-4d4e-a0d8-c7cc975f798b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:45:36 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e0140f12-0bc9-4b9c-91b0-60daa42f02c1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11902" + ], + "x-ms-correlation-request-id": [ + "0e69afbf-bd20-4a18-b352-ec86f9ab8136" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094607Z:0e69afbf-bd20-4a18-b352-ec86f9ab8136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:46:06 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f96bf6f9-4f4f-4f76-a08a-cd4bd1e42eeb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11901" + ], + "x-ms-correlation-request-id": [ + "a5d7dda9-e94e-4b96-a06f-ce1a1f7e9156" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094637Z:a5d7dda9-e94e-4b96-a06f-ce1a1f7e9156" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:46:37 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a1d26a6e-5e4e-49ef-a851-d8407b264b81" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11900" + ], + "x-ms-correlation-request-id": [ + "8ef85870-f189-4a57-9bc1-71bd36612a62" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094708Z:8ef85870-f189-4a57-9bc1-71bd36612a62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:47:07 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6d36857d-d440-481d-87e6-d14044788262" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11899" + ], + "x-ms-correlation-request-id": [ + "eb7ec871-f586-47e9-9d33-57b690dabf06" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094738Z:eb7ec871-f586-47e9-9d33-57b690dabf06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:47:37 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d3900da1-7523-404f-a4cb-8095567c9002" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11898" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "78ca76df-40a6-4a95-a4f7-1ec1c3cdc287" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094808Z:78ca76df-40a6-4a95-a4f7-1ec1c3cdc287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:48:08 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a1260a1e-8961-470f-bed7-2ceeefc8c8af" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11897" + ], + "x-ms-correlation-request-id": [ + "b1bb1c39-1061-4596-936c-7a3d3ec5d379" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094839Z:b1bb1c39-1061-4596-936c-7a3d3ec5d379" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:48:39 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ec949ef0-04a2-45c4-9f3b-5f38947098e8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11896" + ], + "x-ms-correlation-request-id": [ + "4b6ae051-473b-43fd-a167-134d827b204b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094909Z:4b6ae051-473b-43fd-a167-134d827b204b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:49:09 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5ad17b12-4f2b-49b7-854a-2fbc725be371" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11895" + ], + "x-ms-correlation-request-id": [ + "61b82a3b-cba4-47e6-9bf5-c251bc3a0c19" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T094940Z:61b82a3b-cba4-47e6-9bf5-c251bc3a0c19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:49:39 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "feb99357-c004-49cc-9b87-7f64c4cd6296" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "e5281451-c904-4110-9daa-ddf36e6ad6ae" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095010Z:e5281451-c904-4110-9daa-ddf36e6ad6ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:50:10 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "207508fd-1b67-4498-9591-943ffddcd7cb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "a8e0c8c5-150f-4f60-989f-d259ee063f6c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095040Z:a8e0c8c5-150f-4f60-989f-d259ee063f6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:50:40 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6cd8c974-1f1a-40ba-ae0d-4aac537a86c6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "feea2fcc-9bd3-401a-8b9e-5929c5183c9d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095110Z:feea2fcc-9bd3-401a-8b9e-5929c5183c9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:51:10 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "dc8f450f-30ac-47ba-888d-dc942829312b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "9cfa9043-cd57-491f-85ae-a25aaf843174" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095141Z:9cfa9043-cd57-491f-85ae-a25aaf843174" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:51:40 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3e029cb2-c7be-4263-9137-07555c53dd89" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "be1607fa-c8ee-41d0-bfe2-0d65e15e3eb6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095211Z:be1607fa-c8ee-41d0-bfe2-0d65e15e3eb6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:52:11 GMT" + ], + "Content-Length": [ + "517" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:45:17.0342418Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0345350b-5b21-4f07-9d66-00413f18e24a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "395c4cfb-6715-4289-a007-8490b8e0879a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095241Z:395c4cfb-6715-4289-a007-8490b8e0879a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:52:40 GMT" + ], + "Content-Length": [ + "519" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"name\": \"a7450d5d-1cf2-4cd2-a385-55fb0739d2e7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:45:05.2365233Z\",\r\n \"endTime\": \"2021-10-08T09:52:17.237111Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ServiceConfigurationAlter\",\r\n \"RootActivityId\": \"f2a8ccdb-59f6-4e0e-b82b-c3fca9a28685\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003/stop?api-version=2021-06-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93236487-d8a6-4cd0-bfca-14956d3cff40" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview&operationResultResponseType=Location" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ee12c818-df3d-40db-af20-d1f621e30f10" + ], + "x-ms-correlation-request-id": [ + "ee12c818-df3d-40db-af20-d1f621e30f10" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095242Z:ee12c818-df3d-40db-af20-d1f621e30f10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:52:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "009963b1-e558-4fdb-8aa5-479ea870bfe5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "9d2f4731-a13f-425b-bcef-451d4d45f5fe" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095312Z:9d2f4731-a13f-425b-bcef-451d4d45f5fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:53:11 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4a8370e7-7a48-4f16-bd79-d52e863c534f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "efdfd5fc-6611-47cf-b82a-98e9e8542cf8" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095343Z:efdfd5fc-6611-47cf-b82a-98e9e8542cf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:53:43 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d41556ce-8c97-42b2-96ba-01ebb3108407" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "ca176028-c1d2-4520-b2d9-bfcc29d5106c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095413Z:ca176028-c1d2-4520-b2d9-bfcc29d5106c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:54:13 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5e33858e-45d5-459d-a878-a25e8209fc3d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "32381c85-d40e-4909-ab5a-ded06a84051b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095444Z:32381c85-d40e-4909-ab5a-ded06a84051b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:54:43 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "10c36220-aab9-47ec-84d0-e27bb5487b33" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "1f554efe-39cd-4228-8a84-2c3ef782d9b6" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095514Z:1f554efe-39cd-4228-8a84-2c3ef782d9b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:55:13 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "83ef7fb9-11a0-46f4-9a99-2a3ff16da0bc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "82cafbdc-a604-49a2-a270-830d4a9f9fbb" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095544Z:82cafbdc-a604-49a2-a270-830d4a9f9fbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:55:44 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d56436d3-e251-4e99-b9f9-e8625a61c6ec" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "0207fc4b-ef1d-4c36-8574-2707ce8feabd" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095614Z:0207fc4b-ef1d-4c36-8574-2707ce8feabd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:56:14 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f0a59b09-92f6-443d-b934-54d2ad8f82d2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "e2105180-5bff-4aee-a9ea-04017b92d9f9" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095645Z:e2105180-5bff-4aee-a9ea-04017b92d9f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:56:44 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "170c4b40-5584-4677-9639-4455ed4c8665" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "f7bda7b6-e84c-4aea-b162-0693dfc3d03c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095715Z:f7bda7b6-e84c-4aea-b162-0693dfc3d03c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:57:15 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b469bdc2-7779-4061-8d71-abf8c4697449" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "bf8baec5-1793-47e7-b27b-b108ab57239d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095745Z:bf8baec5-1793-47e7-b27b-b108ab57239d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:57:44 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "67203b65-417e-42c1-bdd1-69d21b804feb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "d84d5128-59f1-41c7-9787-7ed322a92398" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095815Z:d84d5128-59f1-41c7-9787-7ed322a92398" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:58:14 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f8c030b0-f569-47e3-99a5-31941df95f8a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "df7099f5-2dca-45fb-92cf-22d9a2fbf277" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095846Z:df7099f5-2dca-45fb-92cf-22d9a2fbf277" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:58:46 GMT" + ], + "Content-Length": [ + "506" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:52:42.6845524Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d09c4f10-a411-45bc-beb6-22e566e1aa17" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "91b7320a-0343-4464-bdae-d7e745a1356c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095917Z:91b7320a-0343-4464-bdae-d7e745a1356c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:59:16 GMT" + ], + "Content-Length": [ + "509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"name\": \"2addd1db-d47c-4dd7-870a-b6e6bad9aeb5\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:52:42.1689451Z\",\r\n \"endTime\": \"2021-10-08T09:59:05.2334108Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterSuspend\",\r\n \"RootActivityId\": \"64b6af76-2613-47ac-b91e-70a9769d32a8\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/2addd1db-d47c-4dd7-870a-b6e6bad9aeb5?api-version=2021-06-01-preview&operationResultResponseType=Location", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "79c6f21e-24f2-4fe1-b5d3-26a8b5862aa1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "0dcd7412-28bd-443b-87ac-72df471d913e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095917Z:0dcd7412-28bd-443b-87ac-72df471d913e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:59:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003/start?api-version=2021-06-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7710a270-cc6c-4bb5-8ec1-d2910afe8c68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview&operationResultResponseType=Location" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "0f9c4de8-c458-4a51-86ca-fec019d6e6fc" + ], + "x-ms-correlation-request-id": [ + "0f9c4de8-c458-4a51-86ca-fec019d6e6fc" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095918Z:0f9c4de8-c458-4a51-86ca-fec019d6e6fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:59:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "bf174f9e-0b74-4b75-966c-650ea9630ae1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-correlation-request-id": [ + "6ce3d1aa-94a8-402d-804b-22524c779d9b" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T095948Z:6ce3d1aa-94a8-402d-804b-22524c779d9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 09:59:47 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2c858589-7c4b-4e8b-a5d7-2b5d97d88080" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-correlation-request-id": [ + "918d487d-db05-4105-867b-80884d57af42" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100018Z:918d487d-db05-4105-867b-80884d57af42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:00:17 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "be934614-3183-4db9-8bfc-6dcde0689802" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-correlation-request-id": [ + "5704482f-2cc7-4900-a920-16a946fb3140" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100048Z:5704482f-2cc7-4900-a920-16a946fb3140" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:00:48 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "feaa8530-9ea1-41ea-ba0e-e2fefcc8fc44" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-correlation-request-id": [ + "5d176d74-558c-4509-9b21-e494ffeb76b1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100119Z:5d176d74-558c-4509-9b21-e494ffeb76b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:01:18 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c313269e-8f67-456e-9ac1-f7ffec936a0c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-correlation-request-id": [ + "af68f326-82ef-4b5a-8530-de3e51c78d8d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100149Z:af68f326-82ef-4b5a-8530-de3e51c78d8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:01:48 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "93e0eee8-8a47-45da-b368-5776e084dcf3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "x-ms-correlation-request-id": [ + "5de6e7e7-3aec-409d-b758-e6ae410e4c43" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100219Z:5de6e7e7-3aec-409d-b758-e6ae410e4c43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:02:19 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cc801e79-7e2c-44dd-943d-cabcc112d425" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-correlation-request-id": [ + "4390bcd7-e710-4338-a559-4d2ee9b14f22" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100249Z:4390bcd7-e710-4338-a559-4d2ee9b14f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:02:49 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "31379055-af2b-4f5c-b89f-0851453926d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "3a736036-5582-4ea1-b42f-6e9cc19eff5f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100320Z:3a736036-5582-4ea1-b42f-6e9cc19eff5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:03:19 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1afbdd62-6dd6-46eb-a7e5-64ef42043d70" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11926" + ], + "x-ms-correlation-request-id": [ + "8962fd33-f8de-4ff4-9dcf-41d2f933408f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100351Z:8962fd33-f8de-4ff4-9dcf-41d2f933408f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:03:50 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8b5d3956-dab0-401f-97e6-a2e202e4136a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11925" + ], + "x-ms-correlation-request-id": [ + "22517f0d-ba82-4846-a39c-2d9c433f96cc" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100421Z:22517f0d-ba82-4846-a39c-2d9c433f96cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:04:21 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d4c8b7e8-8d53-4b39-81f1-bdaf9ce94324" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11924" + ], + "x-ms-correlation-request-id": [ + "b04b4c68-8a85-485d-a6e7-9c531be5c57e" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100451Z:b04b4c68-8a85-485d-a6e7-9c531be5c57e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:04:51 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "78d43c0a-3c19-4999-a428-1cbb3199c234" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11923" + ], + "x-ms-correlation-request-id": [ + "1f1e31a2-de04-48c2-b840-7b7c831ccf16" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100521Z:1f1e31a2-de04-48c2-b840-7b7c831ccf16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:05:21 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2543d98f-7fea-432e-9318-03cffebfae30" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11922" + ], + "x-ms-correlation-request-id": [ + "3e8670ee-343b-4bcb-a9ef-4cf7f3493996" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100552Z:3e8670ee-343b-4bcb-a9ef-4cf7f3493996" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:05:51 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "072bf8af-5654-4391-8454-1b0f0ace3b95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11921" + ], + "x-ms-correlation-request-id": [ + "aa915454-e47d-438c-99ba-a844e5a2b0ef" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100622Z:aa915454-e47d-438c-99ba-a844e5a2b0ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:06:22 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0dc257be-50a0-4515-8c82-f1c952356023" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11920" + ], + "x-ms-correlation-request-id": [ + "89330e36-5751-4949-983e-9ec286b1a4fb" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100652Z:89330e36-5751-4949-983e-9ec286b1a4fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:06:52 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3382fe92-d436-4b29-b562-8363c88952dd" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11919" + ], + "x-ms-correlation-request-id": [ + "23c08b83-1026-4ccd-a889-1151234b1219" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100722Z:23c08b83-1026-4ccd-a889-1151234b1219" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:07:22 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "44f41361-7d13-4aa3-95d5-bbc2601a8165" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11918" + ], + "x-ms-correlation-request-id": [ + "e2254c47-d088-4b5d-9df6-dad9c8679142" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100753Z:e2254c47-d088-4b5d-9df6-dad9c8679142" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:07:52 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T09:59:29.1603132Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e5d283e-4be7-4d59-93b5-79039b501ba0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11917" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "49afe6c0-8a41-4296-a4a7-3e9245d49fea" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100823Z:49afe6c0-8a41-4296-a4a7-3e9245d49fea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:08:23 GMT" + ], + "Content-Length": [ + "508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"name\": \"4bbb482b-62a7-46fa-8cc2-ccff9b8b4120\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T09:59:18.0190126Z\",\r\n \"endTime\": \"2021-10-08T10:08:12.3112571Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterResume\",\r\n \"RootActivityId\": \"614e9eb3-d3c4-4087-b8e4-991c0675d857\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/4bbb482b-62a7-46fa-8cc2-ccff9b8b4120?api-version=2021-06-01-preview&operationResultResponseType=Location", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "115dc2ad-1a5d-4950-8e51-bdec51f0b9a3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11916" + ], + "x-ms-correlation-request-id": [ + "74330d66-a379-4555-a187-907e2c3444c7" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100824Z:74330d66-a379-4555-a187-907e2c3444c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:08:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/resourceGroups/synapsesdkrp4275/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8141/kustoPools/kustopool3003?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4b8dbd33-a0af-42fe-a04d-c2053f6d00e0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview&operationResultResponseType=Location" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "9e07bee8-4d08-4330-b99c-d89ab8d8a547" + ], + "x-ms-correlation-request-id": [ + "9e07bee8-4d08-4330-b99c-d89ab8d8a547" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100827Z:9e07bee8-4d08-4330-b99c-d89ab8d8a547" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:08:26 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3086c9b0-461a-403f-9198-fce0c63b9b16" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11914" + ], + "x-ms-correlation-request-id": [ + "0968f332-06f3-4a54-8925-8a0b5f8fa47d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100857Z:0968f332-06f3-4a54-8925-8a0b5f8fa47d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:08:57 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ded358f3-cd10-4daa-b8ea-dc86dcc5089b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11913" + ], + "x-ms-correlation-request-id": [ + "8ba11954-2ee5-446a-a609-b81b55a91996" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100927Z:8ba11954-2ee5-446a-a609-b81b55a91996" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:09:27 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "abdd154b-664b-4bb6-bca1-3f90610796e5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11912" + ], + "x-ms-correlation-request-id": [ + "c6636ae1-68ec-4193-bbb9-b80606326355" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T100958Z:c6636ae1-68ec-4193-bbb9-b80606326355" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:09:58 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9955f632-46b2-423c-bd5e-ba1b3560bb31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11911" + ], + "x-ms-correlation-request-id": [ + "8eb13e15-5b6b-4dba-b217-112610410848" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101028Z:8eb13e15-5b6b-4dba-b217-112610410848" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:10:27 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b81f61a0-7d7a-4a68-bfd7-5c701250acc4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11910" + ], + "x-ms-correlation-request-id": [ + "3e2938e4-590e-4614-a0ad-d2d1618789a1" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101058Z:3e2938e4-590e-4614-a0ad-d2d1618789a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:10:58 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "df2e633e-40ae-4687-95c6-b280e27ee9a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11909" + ], + "x-ms-correlation-request-id": [ + "dfc0655c-8acb-406e-8798-ea49103ea032" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101128Z:dfc0655c-8acb-406e-8798-ea49103ea032" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:11:27 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cc49a8fe-b79f-4404-bafd-b53814d3f0e2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11908" + ], + "x-ms-correlation-request-id": [ + "52c838a6-fee6-4fed-80db-5a5d6cb071c3" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101158Z:52c838a6-fee6-4fed-80db-5a5d6cb071c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:11:58 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "866ee794-d4ca-4d07-afad-c6ee8e6fbaf6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11907" + ], + "x-ms-correlation-request-id": [ + "07169123-c5c6-4bd7-baa3-558e263b4c14" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101229Z:07169123-c5c6-4bd7-baa3-558e263b4c14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:12:28 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "111f8c53-132e-440d-93bb-b1645593df88" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11906" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "054f1fc2-906b-43f7-a4d7-fc316dc9c1b8" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101259Z:054f1fc2-906b-43f7-a4d7-fc316dc9c1b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:12:58 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "75dfd368-b87c-485f-8963-b73922ac33e3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11905" + ], + "x-ms-correlation-request-id": [ + "d4166f01-5e13-498a-add1-38ffaf9076e8" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101330Z:d4166f01-5e13-498a-add1-38ffaf9076e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:13:29 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6d3566ab-6c13-4d41-9e7e-4372c46648d4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11904" + ], + "x-ms-correlation-request-id": [ + "bed6fe1e-78bb-4691-84c6-d01a6127601c" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101400Z:bed6fe1e-78bb-4691-84c6-d01a6127601c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:14:00 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8801f4e8-e099-404a-8911-99f28a054052" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11903" + ], + "x-ms-correlation-request-id": [ + "ea20a928-0c60-4edc-bb11-ce7879ae326f" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101431Z:ea20a928-0c60-4edc-bb11-ce7879ae326f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:14:30 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:08:38.1119152Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9ed7c5dc-68cd-4a66-b8d0-64430ba98650" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11902" + ], + "x-ms-correlation-request-id": [ + "12f4707c-cf44-48c2-b005-41800f500e8d" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101501Z:12f4707c-cf44-48c2-b005-41800f500e8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:15:00 GMT" + ], + "Content-Length": [ + "505" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Running\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:15:00.8969171Z\",\r\n \"percentComplete\": 0.5,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Running\",\r\n \"OperationState\": \"InProgress\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "82ecafa1-33c1-489b-80fd-e724247730db" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11901" + ], + "x-ms-correlation-request-id": [ + "b6afa176-96b2-438b-b6bb-d48aa33ecf96" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101531Z:b6afa176-96b2-438b-b6bb-d48aa33ecf96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:15:30 GMT" + ], + "Content-Length": [ + "508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"name\": \"46d7df12-ba41-4279-a174-bb5cad179178\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-10-08T10:08:27.0643035Z\",\r\n \"endTime\": \"2021-10-08T10:15:01.5219776Z\",\r\n \"percentComplete\": 1.0,\r\n \"properties\": {\r\n \"OperationKind\": \"ClusterDelete\",\r\n \"RootActivityId\": \"8c74984f-b7bf-4496-aa37-51f936a8c148\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"OperationState\": \"Completed\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b98aabf4-d4f2-4586-a722-84f55df2b51e/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/46d7df12-ba41-4279-a174-bb5cad179178?api-version=2021-06-01-preview&operationResultResponseType=Location", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Synapse.SynapseManagementClient/2.3.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6108677d-9502-4a63-bf3d-d94b9577f344" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11900" + ], + "x-ms-correlation-request-id": [ + "d82391ba-3e7e-4729-93c6-013b8725fb9a" + ], + "x-ms-routing-request-id": [ + "JAPANEAST:20211008T101531Z:d82391ba-3e7e-4729-93c6-013b8725fb9a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 08 Oct 2021 10:15:30 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "synapsesdkrp4275", + "synapsesdkstorage5357", + "sshuser5526", + "Password1!8982", + "synapsesdkfilesys1090" + ], + "TestInitialize": [ + "b98aabf4-d4f2-4586-a722-84f55df2b51e" + ], + "TestKustoPoolLifeCycle": [ + "synapsesdkworkspace8141", + "kustopool3003" + ] + }, + "Variables": { + "SubscriptionId": "b98aabf4-d4f2-4586-a722-84f55df2b51e" + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/CommonTestsFixture.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/CommonTestsFixture.cs index 660e5d9a88775..3d12e548402ed 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/CommonTestsFixture.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/CommonTestsFixture.cs @@ -1,7 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using Microsoft.Azure.Management.Synapse.Models; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; namespace Microsoft.Azure.Management.Synapse.Tests { @@ -107,6 +109,36 @@ public class CommonTestFixture : TestBase /// public string UpdatedEndIpAddress { get; set; } + /// + /// Gets or sets kusto sku. + /// + public AzureSku KustoSku { get; set; } + + /// + /// Gets or sets updated kusto sku. + /// + public AzureSku UpdatedKustoSku { get; set; } + + /// + /// Gets or sets kusto database soft delete period. + /// + public TimeSpan? SoftDeletePeriod { get; set; } + + /// + /// Gets or sets kusto database hot cache period. + /// + public TimeSpan? HotCachePeriod { get; set; } + + /// + /// Gets or sets kusto database updated soft delete period. + /// + public TimeSpan? UpdatedSoftDeletePeriod { get; set; } + + /// + /// Gets or sets kusto database updated hot cache period. + /// + public TimeSpan? UpdatedHotCachePeriod { get; set; } + public const string WorkspaceType = "Microsoft.Synapse/workspaces"; public const string SqlpoolType = "Microsoft.Synapse/workspaces/sqlPools"; public const string SparkpoolType = "Microsoft.Synapse/workspaces/bigDataPools"; @@ -133,6 +165,20 @@ public CommonTestFixture() EndIpAddress = "255.255.255.255"; UpdatedStartIpAddress = "10.0.0.0"; UpdatedEndIpAddress = "255.0.0.0"; + KustoSku = new AzureSku + { + Name = "Storage optimized", + Size = "Medium" + }; + UpdatedKustoSku = new AzureSku + { + Name = "Storage optimized", + Size = "Large" + }; + SoftDeletePeriod = TimeSpan.FromDays(4); + HotCachePeriod = TimeSpan.FromDays(2); + UpdatedSoftDeletePeriod = TimeSpan.FromDays(6); + UpdatedHotCachePeriod = TimeSpan.FromDays(3); } } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/SynapseManagementTestUtilities.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/SynapseManagementTestUtilities.cs index af839a637fea6..b35633cc5af79 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/SynapseManagementTestUtilities.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/tests/TestHelpers/SynapseManagementTestUtilities.cs @@ -277,6 +277,30 @@ public static IpFirewallRuleInfo PrepareFirewallRuleParams(this CommonTestFixtur }; } + /// + /// Create kustopool create parameters. + /// + /// + /// + public static KustoPool PrepareKustopoolCreateParams(this CommonTestFixture commonData) + { + return new KustoPool + { + Location = commonData.Location, + Sku = commonData.KustoSku + }; + } + + public static ReadWriteDatabase PrepareKustoDatabaseCreateParams(this CommonTestFixture commonData) + { + return new ReadWriteDatabase + { + Location = commonData.Location, + SoftDeletePeriod = commonData.SoftDeletePeriod, + HotCachePeriod = commonData.HotCachePeriod + }; + } + /// /// List resources from IPage to List. /// From 092b35624a563d5a58b84d7e2477b66c8b24d1e7 Mon Sep 17 00:00:00 2001 From: Wan Yang Date: Mon, 11 Oct 2021 17:33:24 +0800 Subject: [PATCH 2/2] update for sql pool createmode --- .../mgmtmetadata/synapse_resource-manager.txt | 4 +- .../src/Generated/Models/CreateMode.cs | 24 ++++++++++++ .../src/Generated/Models/SqlPool.cs | 38 ++++++++++++++++++- .../src/Generated/Models/SqlPoolPatchInfo.cs | 38 ++++++++++++++++++- .../SdkInfo_SynapseManagementClient.cs | 2 +- 5 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreateMode.cs diff --git a/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt b/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt index 1dd1e64d9a072..0682bf83fff5a 100644 --- a/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/synapse_resource-manager.txt @@ -5,11 +5,11 @@ Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\code\azure-sdk-for-net\sdk Autorest CSharp Version: 2.3.82 -2021-09-30 09:50:13 UTC +2021-10-11 08:57:40 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: main -Commit: ce4ba4d08f249b9e469095572d3dc48b23ab7de9 +Commit: 1b64fac98b004c439dfffff4cbe93e413ff86709 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreateMode.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreateMode.cs new file mode 100644 index 0000000000000..d50fd6d272d5b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CreateMode.cs @@ -0,0 +1,24 @@ +// +// 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.Synapse.Models +{ + + /// + /// Defines values for CreateMode. + /// + public static class CreateMode + { + public const string Default = "Default"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Recovery = "Recovery"; + public const string Restore = "Restore"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs index 6d0545cd1f999..271494667a1ef 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs @@ -56,7 +56,24 @@ public SqlPool() /// Resource state /// Resource status /// Snapshot time to restore - /// What is this? + /// Specifies the mode of sql pool creation. + /// + /// Default: regular sql pool creation. + /// + /// PointInTimeRestore: Creates a sql pool by restoring a point in time + /// backup of an existing sql pool. sourceDatabaseId must be specified + /// as the resource ID of the existing sql pool, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a sql pool by a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverableDatabaseId to + /// restore. + /// + /// Restore: Creates a sql pool by restoring a backup of a deleted sql + /// pool. SourceDatabaseId should be the sql pool's original resource + /// ID. SourceDatabaseId and sourceDatabaseDeletionDate must be + /// specified. Possible values include: 'Default', + /// 'PointInTimeRestore', 'Recovery', 'Restore' /// Date the SQL pool was created /// The storage account type used to /// store backups for this sql pool. Possible values include: 'GRS', @@ -135,7 +152,24 @@ public SqlPool() public System.DateTime? RestorePointInTime { get; set; } /// - /// Gets or sets what is this? + /// Gets or sets specifies the mode of sql pool creation. + /// + /// Default: regular sql pool creation. + /// + /// PointInTimeRestore: Creates a sql pool by restoring a point in time + /// backup of an existing sql pool. sourceDatabaseId must be specified + /// as the resource ID of the existing sql pool, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a sql pool by a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverableDatabaseId to + /// restore. + /// + /// Restore: Creates a sql pool by restoring a backup of a deleted sql + /// pool. SourceDatabaseId should be the sql pool's original resource + /// ID. SourceDatabaseId and sourceDatabaseDeletionDate must be + /// specified. Possible values include: 'Default', + /// 'PointInTimeRestore', 'Recovery', 'Restore' /// [JsonProperty(PropertyName = "properties.createMode")] public string CreateMode { get; set; } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs index 5dae33320f984..c09cf8a8d5f56 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs @@ -50,7 +50,24 @@ public SqlPoolPatchInfo() /// Resource state /// Resource status /// Snapshot time to restore - /// What is this? + /// Specifies the mode of sql pool creation. + /// + /// Default: regular sql pool creation. + /// + /// PointInTimeRestore: Creates a sql pool by restoring a point in time + /// backup of an existing sql pool. sourceDatabaseId must be specified + /// as the resource ID of the existing sql pool, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a sql pool by a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverableDatabaseId to + /// restore. + /// + /// Restore: Creates a sql pool by restoring a backup of a deleted sql + /// pool. SourceDatabaseId should be the sql pool's original resource + /// ID. SourceDatabaseId and sourceDatabaseDeletionDate must be + /// specified. Possible values include: 'Default', + /// 'PointInTimeRestore', 'Recovery', 'Restore' /// Date the SQL pool was created /// The storage account type used to /// store backups for this sql pool. Possible values include: 'GRS', @@ -142,7 +159,24 @@ public SqlPoolPatchInfo() public System.DateTime? RestorePointInTime { get; set; } /// - /// Gets or sets what is this? + /// Gets or sets specifies the mode of sql pool creation. + /// + /// Default: regular sql pool creation. + /// + /// PointInTimeRestore: Creates a sql pool by restoring a point in time + /// backup of an existing sql pool. sourceDatabaseId must be specified + /// as the resource ID of the existing sql pool, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a sql pool by a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverableDatabaseId to + /// restore. + /// + /// Restore: Creates a sql pool by restoring a backup of a deleted sql + /// pool. SourceDatabaseId should be the sql pool's original resource + /// ID. SourceDatabaseId and sourceDatabaseDeletionDate must be + /// specified. Possible values include: 'Default', + /// 'PointInTimeRestore', 'Recovery', 'Restore' /// [JsonProperty(PropertyName = "properties.createMode")] public string CreateMode { get; set; } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs index 9d612cada3e7a..120cf22805d36 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs @@ -102,7 +102,7 @@ public static IEnumerable> ApiInfo_SynapseManageme public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\code\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "ce4ba4d08f249b9e469095572d3dc48b23ab7de9"; + public static readonly String GithubCommidId = "1b64fac98b004c439dfffff4cbe93e413ff86709"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section