forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Data Factory]Add support for data flow (Azure#7765)
* Add support for data flow * address feedback
- Loading branch information
1 parent
f6adfc2
commit 7c5ce9b
Showing
60 changed files
with
8,398 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,430 changes: 1,430 additions & 0 deletions
1,430
...ry/Microsoft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
280 changes: 280 additions & 0 deletions
280
...ft.Azure.Management.DataFactory/src/Generated/DataFlowDebugSessionOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,280 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.DataFactory | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for DataFlowDebugSessionOperations. | ||
/// </summary> | ||
public static partial class DataFlowDebugSessionOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Creates a data flow debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition | ||
/// </param> | ||
public static CreateDataFlowDebugSessionResponse Create(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request) | ||
{ | ||
return operations.CreateAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Creates a data flow debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<CreateDataFlowDebugSessionResponse> CreateAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Query all active data flow debug sessions. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
public static IPage<DataFlowDebugSessionInfo> QueryByFactory(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName) | ||
{ | ||
return operations.QueryByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Query all active data flow debug sessions. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<DataFlowDebugSessionInfo>> QueryByFactoryAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.QueryByFactoryWithHttpMessagesAsync(resourceGroupName, factoryName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Add a data flow into debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition with debug content. | ||
/// </param> | ||
public static AddDataFlowToDebugSessionResponse AddDataFlow(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugPackage request) | ||
{ | ||
return operations.AddDataFlowAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Add a data flow into debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition with debug content. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<AddDataFlowToDebugSessionResponse> AddDataFlowAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugPackage request, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.AddDataFlowWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Deletes a data flow debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition for deletion | ||
/// </param> | ||
public static void Delete(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request) | ||
{ | ||
operations.DeleteAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Deletes a data flow debug session. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug session definition for deletion | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task DeleteAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DeleteDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); | ||
} | ||
|
||
/// <summary> | ||
/// Execute a data flow debug command. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug command definition. | ||
/// </param> | ||
public static DataFlowDebugCommandResponse ExecuteCommand(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request) | ||
{ | ||
return operations.ExecuteCommandAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Execute a data flow debug command. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The resource group name. | ||
/// </param> | ||
/// <param name='factoryName'> | ||
/// The factory name. | ||
/// </param> | ||
/// <param name='request'> | ||
/// Data flow debug command definition. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<DataFlowDebugCommandResponse> ExecuteCommandAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ExecuteCommandWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Query all active data flow debug sessions. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
public static IPage<DataFlowDebugSessionInfo> QueryByFactoryNext(this IDataFlowDebugSessionOperations operations, string nextPageLink) | ||
{ | ||
return operations.QueryByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Query all active data flow debug sessions. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<DataFlowDebugSessionInfo>> QueryByFactoryNextAsync(this IDataFlowDebugSessionOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.QueryByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.