Skip to content

Commit 31acc6a

Browse files
committed
.NET SDK Resource Provider:'FabricAdmin'
REST Spec PR 'Azure/azure-rest-api-specs#5469' REST Spec PR Author 'cednation' REST Spec PR Last commit
1 parent 6104aef commit 31acc6a

19 files changed

+3942
-10
lines changed

src/AzureStack/Admin/FabricAdmin/Fabric.Admin/Generated/ApplicationOperationResultsOperations.cs

Lines changed: 641 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
// <auto-generated>
2+
// 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+
//
6+
// 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+
11+
namespace Microsoft.AzureStack.Management.Fabric.Admin
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Microsoft.Rest.Azure.OData;
16+
using Models;
17+
using System.Threading;
18+
using System.Threading.Tasks;
19+
20+
/// <summary>
21+
/// Extension methods for ApplicationOperationResultsOperations.
22+
/// </summary>
23+
public static partial class ApplicationOperationResultsOperationsExtensions
24+
{
25+
/// <summary>
26+
/// Returns the status of an application operation.
27+
/// </summary>
28+
/// <param name='operations'>
29+
/// The operations group for this extension method.
30+
/// </param>
31+
/// <param name='resourceGroupName'>
32+
/// Name of the resource group.
33+
/// </param>
34+
/// <param name='location'>
35+
/// Location of the resource.
36+
/// </param>
37+
/// <param name='operation'>
38+
/// Operation identifier.
39+
/// </param>
40+
public static ApplicationOperationResult Get(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation)
41+
{
42+
return operations.GetAsync(resourceGroupName, location, operation).GetAwaiter().GetResult();
43+
}
44+
45+
/// <summary>
46+
/// Returns the status of an application operation.
47+
/// </summary>
48+
/// <param name='operations'>
49+
/// The operations group for this extension method.
50+
/// </param>
51+
/// <param name='resourceGroupName'>
52+
/// Name of the resource group.
53+
/// </param>
54+
/// <param name='location'>
55+
/// Location of the resource.
56+
/// </param>
57+
/// <param name='operation'>
58+
/// Operation identifier.
59+
/// </param>
60+
/// <param name='cancellationToken'>
61+
/// The cancellation token.
62+
/// </param>
63+
public static async Task<ApplicationOperationResult> GetAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation, CancellationToken cancellationToken = default(CancellationToken))
64+
{
65+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, operation, null, cancellationToken).ConfigureAwait(false))
66+
{
67+
return _result.Body;
68+
}
69+
}
70+
71+
/// <summary>
72+
/// Returns a list of all application operation results at a location.
73+
/// </summary>
74+
/// <param name='operations'>
75+
/// The operations group for this extension method.
76+
/// </param>
77+
/// <param name='resourceGroupName'>
78+
/// Name of the resource group.
79+
/// </param>
80+
/// <param name='location'>
81+
/// Location of the resource.
82+
/// </param>
83+
/// <param name='odataQuery'>
84+
/// OData parameters to apply to the operation.
85+
/// </param>
86+
public static IPage<ApplicationOperationResult> List(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery<ApplicationOperationResult> odataQuery = default(ODataQuery<ApplicationOperationResult>))
87+
{
88+
return operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult();
89+
}
90+
91+
/// <summary>
92+
/// Returns a list of all application operation results at a location.
93+
/// </summary>
94+
/// <param name='operations'>
95+
/// The operations group for this extension method.
96+
/// </param>
97+
/// <param name='resourceGroupName'>
98+
/// Name of the resource group.
99+
/// </param>
100+
/// <param name='location'>
101+
/// Location of the resource.
102+
/// </param>
103+
/// <param name='odataQuery'>
104+
/// OData parameters to apply to the operation.
105+
/// </param>
106+
/// <param name='cancellationToken'>
107+
/// The cancellation token.
108+
/// </param>
109+
public static async Task<IPage<ApplicationOperationResult>> ListAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery<ApplicationOperationResult> odataQuery = default(ODataQuery<ApplicationOperationResult>), CancellationToken cancellationToken = default(CancellationToken))
110+
{
111+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
112+
{
113+
return _result.Body;
114+
}
115+
}
116+
117+
/// <summary>
118+
/// Returns a list of all application operation results at a location.
119+
/// </summary>
120+
/// <param name='operations'>
121+
/// The operations group for this extension method.
122+
/// </param>
123+
/// <param name='nextPageLink'>
124+
/// The NextLink from the previous successful call to List operation.
125+
/// </param>
126+
public static IPage<ApplicationOperationResult> ListNext(this IApplicationOperationResultsOperations operations, string nextPageLink)
127+
{
128+
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
129+
}
130+
131+
/// <summary>
132+
/// Returns a list of all application operation results at a location.
133+
/// </summary>
134+
/// <param name='operations'>
135+
/// The operations group for this extension method.
136+
/// </param>
137+
/// <param name='nextPageLink'>
138+
/// The NextLink from the previous successful call to List operation.
139+
/// </param>
140+
/// <param name='cancellationToken'>
141+
/// The cancellation token.
142+
/// </param>
143+
public static async Task<IPage<ApplicationOperationResult>> ListNextAsync(this IApplicationOperationResultsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
144+
{
145+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
146+
{
147+
return _result.Body;
148+
}
149+
}
150+
151+
}
152+
}

0 commit comments

Comments
 (0)