Skip to content

Commit c8436d1

Browse files
authored
[DataFactory]Migrate autorest csharp to autorest powershell (#23762)
2 parents d4449a5 + 81dea6d commit c8436d1

File tree

1,197 files changed

+88627
-53012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,197 files changed

+88627
-53012
lines changed

src/DataFactory/DataFactory.Management.Sdk/Generated/ActivityRunsOperations.cs

Lines changed: 87 additions & 83 deletions
Large diffs are not rendered by default.
Lines changed: 45 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,61 @@
1-
// <auto-generated>
21
// 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.
63
// 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.
115
namespace Microsoft.Azure.Management.DataFactory
126
{
13-
using Microsoft.Rest;
147
using Microsoft.Rest.Azure;
158
using Models;
16-
using System.Threading;
17-
using System.Threading.Tasks;
189

1910
/// <summary>
20-
/// Extension methods for ActivityRunsOperations.
11+
/// Extension methods for ActivityRunsOperations
2112
/// </summary>
2213
public static partial class ActivityRunsOperationsExtensions
2314
{
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+
}
4634

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))
6956
{
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;
7458
}
75-
59+
}
7660
}
7761
}

0 commit comments

Comments
 (0)