|
1 |
| -// <auto-generated> |
2 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved.
|
3 |
| -// Licensed under the MIT License. See License.txt in the project root for |
4 |
| -// license information. |
5 |
| -// |
| 2 | +// Licensed under the MIT License. See License.txt in the project root for license information. |
6 | 3 | // Code generated by Microsoft (R) AutoRest Code Generator.
|
7 |
| -// Changes may cause incorrect behavior and will be lost if the code is |
8 |
| -// regenerated. |
9 |
| -// </auto-generated> |
10 |
| - |
| 4 | +// Changes may cause incorrect behavior and will be lost if the code is regenerated. |
11 | 5 | namespace Microsoft.Azure.Management.DataFactory
|
12 | 6 | {
|
13 |
| - using Microsoft.Rest; |
14 | 7 | using Microsoft.Rest.Azure;
|
15 | 8 | using Models;
|
16 |
| - using System.Threading; |
17 |
| - using System.Threading.Tasks; |
18 | 9 |
|
19 | 10 | /// <summary>
|
20 |
| - /// Extension methods for ActivityRunsOperations. |
| 11 | + /// Extension methods for ActivityRunsOperations |
21 | 12 | /// </summary>
|
22 | 13 | public static partial class ActivityRunsOperationsExtensions
|
23 | 14 | {
|
24 |
| - /// <summary> |
25 |
| - /// Query activity runs based on input filter conditions. |
26 |
| - /// </summary> |
27 |
| - /// <param name='operations'> |
28 |
| - /// The operations group for this extension method. |
29 |
| - /// </param> |
30 |
| - /// <param name='resourceGroupName'> |
31 |
| - /// The resource group name. |
32 |
| - /// </param> |
33 |
| - /// <param name='factoryName'> |
34 |
| - /// The factory name. |
35 |
| - /// </param> |
36 |
| - /// <param name='runId'> |
37 |
| - /// The pipeline run identifier. |
38 |
| - /// </param> |
39 |
| - /// <param name='filterParameters'> |
40 |
| - /// Parameters to filter the activity runs. |
41 |
| - /// </param> |
42 |
| - public static ActivityRunsQueryResponse QueryByPipelineRun(this IActivityRunsOperations operations, string resourceGroupName, string factoryName, string runId, RunFilterParameters filterParameters) |
43 |
| - { |
44 |
| - return operations.QueryByPipelineRunAsync(resourceGroupName, factoryName, runId, filterParameters).GetAwaiter().GetResult(); |
45 |
| - } |
| 15 | + /// <summary> |
| 16 | + /// Query activity runs based on input filter conditions. |
| 17 | + /// </summary> |
| 18 | + /// <param name='operations'> |
| 19 | + /// The operations group for this extension method. |
| 20 | + /// </param> |
| 21 | + /// <param name='resourceGroupName'> |
| 22 | + /// The resource group name. |
| 23 | + /// </param> |
| 24 | + /// <param name='factoryName'> |
| 25 | + /// The factory name. |
| 26 | + /// </param> |
| 27 | + /// <param name='runId'> |
| 28 | + /// The pipeline run identifier. |
| 29 | + /// </param> |
| 30 | + public static ActivityRunsQueryResponse QueryByPipelineRun(this IActivityRunsOperations operations, string resourceGroupName, string factoryName, string runId, RunFilterParameters filterParameters) |
| 31 | + { |
| 32 | + return ((IActivityRunsOperations)operations).QueryByPipelineRunAsync(resourceGroupName, factoryName, runId, filterParameters).GetAwaiter().GetResult(); |
| 33 | + } |
46 | 34 |
|
47 |
| - /// <summary> |
48 |
| - /// Query activity runs based on input filter conditions. |
49 |
| - /// </summary> |
50 |
| - /// <param name='operations'> |
51 |
| - /// The operations group for this extension method. |
52 |
| - /// </param> |
53 |
| - /// <param name='resourceGroupName'> |
54 |
| - /// The resource group name. |
55 |
| - /// </param> |
56 |
| - /// <param name='factoryName'> |
57 |
| - /// The factory name. |
58 |
| - /// </param> |
59 |
| - /// <param name='runId'> |
60 |
| - /// The pipeline run identifier. |
61 |
| - /// </param> |
62 |
| - /// <param name='filterParameters'> |
63 |
| - /// Parameters to filter the activity runs. |
64 |
| - /// </param> |
65 |
| - /// <param name='cancellationToken'> |
66 |
| - /// The cancellation token. |
67 |
| - /// </param> |
68 |
| - public static async Task<ActivityRunsQueryResponse> QueryByPipelineRunAsync(this IActivityRunsOperations operations, string resourceGroupName, string factoryName, string runId, RunFilterParameters filterParameters, CancellationToken cancellationToken = default(CancellationToken)) |
| 35 | + /// <summary> |
| 36 | + /// Query activity runs based on input filter conditions. |
| 37 | + /// </summary> |
| 38 | + /// <param name='operations'> |
| 39 | + /// The operations group for this extension method. |
| 40 | + /// </param> |
| 41 | + /// <param name='resourceGroupName'> |
| 42 | + /// The resource group name. |
| 43 | + /// </param> |
| 44 | + /// <param name='factoryName'> |
| 45 | + /// The factory name. |
| 46 | + /// </param> |
| 47 | + /// <param name='runId'> |
| 48 | + /// The pipeline run identifier. |
| 49 | + /// </param> |
| 50 | + /// <param name='cancellationToken'> |
| 51 | + /// The cancellation token. |
| 52 | + /// </param> |
| 53 | + public static async System.Threading.Tasks.Task<ActivityRunsQueryResponse> QueryByPipelineRunAsync(this IActivityRunsOperations operations, string resourceGroupName, string factoryName, string runId, RunFilterParameters filterParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) |
| 54 | + { |
| 55 | + using (var _result = await operations.QueryByPipelineRunWithHttpMessagesAsync(resourceGroupName, factoryName, runId, filterParameters, null, cancellationToken).ConfigureAwait(false)) |
69 | 56 | {
|
70 |
| - using (var _result = await operations.QueryByPipelineRunWithHttpMessagesAsync(resourceGroupName, factoryName, runId, filterParameters, null, cancellationToken).ConfigureAwait(false)) |
71 |
| - { |
72 |
| - return _result.Body; |
73 |
| - } |
| 57 | + return _result.Body; |
74 | 58 | }
|
75 |
| - |
| 59 | + } |
76 | 60 | }
|
77 | 61 | }
|
0 commit comments