Skip to content

Commit 9df67d9

Browse files
authored
[Batch] Remove "Microsoft.Azure.Management.Batch" Version="15.0.0" and add Batch.Management.Sdk (#26199)
* Batch SDK generated by auto rest powershell * Update ChangeLog.md * Update ChangeLog.md
1 parent 543e011 commit 9df67d9

File tree

191 files changed

+33815
-18
lines changed

Some content is hidden

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

191 files changed

+33815
-18
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<PsModuleName>Batch</PsModuleName>
4+
</PropertyGroup>
5+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
6+
<PropertyGroup>
7+
<TargetFramework>netstandard2.0</TargetFramework>
8+
<AssemblyName>Microsoft.Azure.PowerShell.Batch.Management.Sdk</AssemblyName>
9+
<RootNamespace>Microsoft.Azure.Management.Batch</RootNamespace>
10+
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn>
11+
</PropertyGroup>
12+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
13+
</Project>

src/Batch/Batch.Management.Sdk/Generated/ApplicationOperations.cs

Lines changed: 1468 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
namespace Microsoft.Azure.Management.Batch
6+
{
7+
using Microsoft.Rest.Azure;
8+
using Models;
9+
10+
/// <summary>
11+
/// Extension methods for ApplicationOperations
12+
/// </summary>
13+
public static partial class ApplicationOperationsExtensions
14+
{
15+
/// <summary>
16+
/// Adds an application to the specified Batch account.
17+
/// </summary>
18+
/// <param name='operations'>
19+
/// The operations group for this extension method.
20+
/// </param>
21+
/// <param name='resourceGroupName'>
22+
/// The name of the resource group that contains the Batch account.
23+
/// </param>
24+
/// <param name='accountName'>
25+
/// The name of the Batch account.
26+
/// </param>
27+
/// <param name='applicationName'>
28+
/// The name of the application. This must be unique within the account.
29+
/// </param>
30+
public static Application Create(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters = default(Application))
31+
{
32+
return ((IApplicationOperations)operations).CreateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult();
33+
}
34+
35+
/// <summary>
36+
/// Adds an application to the specified Batch account.
37+
/// </summary>
38+
/// <param name='operations'>
39+
/// The operations group for this extension method.
40+
/// </param>
41+
/// <param name='resourceGroupName'>
42+
/// The name of the resource group that contains the Batch account.
43+
/// </param>
44+
/// <param name='accountName'>
45+
/// The name of the Batch account.
46+
/// </param>
47+
/// <param name='applicationName'>
48+
/// The name of the application. This must be unique within the account.
49+
/// </param>
50+
/// <param name='cancellationToken'>
51+
/// The cancellation token.
52+
/// </param>
53+
public static async System.Threading.Tasks.Task<Application> CreateAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters = default(Application), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
54+
{
55+
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, parameters, null, cancellationToken).ConfigureAwait(false))
56+
{
57+
return _result.Body;
58+
}
59+
}
60+
/// <summary>
61+
/// Deletes an application.
62+
/// </summary>
63+
/// <param name='operations'>
64+
/// The operations group for this extension method.
65+
/// </param>
66+
/// <param name='resourceGroupName'>
67+
/// The name of the resource group that contains the Batch account.
68+
/// </param>
69+
/// <param name='accountName'>
70+
/// The name of the Batch account.
71+
/// </param>
72+
/// <param name='applicationName'>
73+
/// The name of the application. This must be unique within the account.
74+
/// </param>
75+
public static void Delete(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName)
76+
{
77+
((IApplicationOperations)operations).DeleteAsync(resourceGroupName, accountName, applicationName).GetAwaiter().GetResult();
78+
}
79+
80+
/// <summary>
81+
/// Deletes an application.
82+
/// </summary>
83+
/// <param name='operations'>
84+
/// The operations group for this extension method.
85+
/// </param>
86+
/// <param name='resourceGroupName'>
87+
/// The name of the resource group that contains the Batch account.
88+
/// </param>
89+
/// <param name='accountName'>
90+
/// The name of the Batch account.
91+
/// </param>
92+
/// <param name='applicationName'>
93+
/// The name of the application. This must be unique within the account.
94+
/// </param>
95+
/// <param name='cancellationToken'>
96+
/// The cancellation token.
97+
/// </param>
98+
public static async System.Threading.Tasks.Task DeleteAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
99+
{
100+
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
101+
}
102+
/// <summary>
103+
/// Gets information about the specified application.
104+
/// </summary>
105+
/// <param name='operations'>
106+
/// The operations group for this extension method.
107+
/// </param>
108+
/// <param name='resourceGroupName'>
109+
/// The name of the resource group that contains the Batch account.
110+
/// </param>
111+
/// <param name='accountName'>
112+
/// The name of the Batch account.
113+
/// </param>
114+
/// <param name='applicationName'>
115+
/// The name of the application. This must be unique within the account.
116+
/// </param>
117+
public static Application Get(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName)
118+
{
119+
return ((IApplicationOperations)operations).GetAsync(resourceGroupName, accountName, applicationName).GetAwaiter().GetResult();
120+
}
121+
122+
/// <summary>
123+
/// Gets information about the specified application.
124+
/// </summary>
125+
/// <param name='operations'>
126+
/// The operations group for this extension method.
127+
/// </param>
128+
/// <param name='resourceGroupName'>
129+
/// The name of the resource group that contains the Batch account.
130+
/// </param>
131+
/// <param name='accountName'>
132+
/// The name of the Batch account.
133+
/// </param>
134+
/// <param name='applicationName'>
135+
/// The name of the application. This must be unique within the account.
136+
/// </param>
137+
/// <param name='cancellationToken'>
138+
/// The cancellation token.
139+
/// </param>
140+
public static async System.Threading.Tasks.Task<Application> GetAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
141+
{
142+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, null, cancellationToken).ConfigureAwait(false))
143+
{
144+
return _result.Body;
145+
}
146+
}
147+
/// <summary>
148+
/// Updates settings for the specified application.
149+
/// </summary>
150+
/// <param name='operations'>
151+
/// The operations group for this extension method.
152+
/// </param>
153+
/// <param name='resourceGroupName'>
154+
/// The name of the resource group that contains the Batch account.
155+
/// </param>
156+
/// <param name='accountName'>
157+
/// The name of the Batch account.
158+
/// </param>
159+
/// <param name='applicationName'>
160+
/// The name of the application. This must be unique within the account.
161+
/// </param>
162+
public static Application Update(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters)
163+
{
164+
return ((IApplicationOperations)operations).UpdateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult();
165+
}
166+
167+
/// <summary>
168+
/// Updates settings for the specified application.
169+
/// </summary>
170+
/// <param name='operations'>
171+
/// The operations group for this extension method.
172+
/// </param>
173+
/// <param name='resourceGroupName'>
174+
/// The name of the resource group that contains the Batch account.
175+
/// </param>
176+
/// <param name='accountName'>
177+
/// The name of the Batch account.
178+
/// </param>
179+
/// <param name='applicationName'>
180+
/// The name of the application. This must be unique within the account.
181+
/// </param>
182+
/// <param name='cancellationToken'>
183+
/// The cancellation token.
184+
/// </param>
185+
public static async System.Threading.Tasks.Task<Application> UpdateAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
186+
{
187+
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, parameters, null, cancellationToken).ConfigureAwait(false))
188+
{
189+
return _result.Body;
190+
}
191+
}
192+
/// <summary>
193+
/// Lists all of the applications in the specified account.
194+
/// </summary>
195+
/// <param name='operations'>
196+
/// The operations group for this extension method.
197+
/// </param>
198+
/// <param name='resourceGroupName'>
199+
/// The name of the resource group that contains the Batch account.
200+
/// </param>
201+
/// <param name='accountName'>
202+
/// The name of the Batch account.
203+
/// </param>
204+
/// <param name='maxresults'>
205+
/// The maximum number of items to return in the response.
206+
/// </param>
207+
public static Microsoft.Rest.Azure.IPage<Application> List(this IApplicationOperations operations, string resourceGroupName, string accountName, int? maxresults = default(int?))
208+
{
209+
return ((IApplicationOperations)operations).ListAsync(resourceGroupName, accountName, maxresults).GetAwaiter().GetResult();
210+
}
211+
212+
/// <summary>
213+
/// Lists all of the applications in the specified account.
214+
/// </summary>
215+
/// <param name='operations'>
216+
/// The operations group for this extension method.
217+
/// </param>
218+
/// <param name='resourceGroupName'>
219+
/// The name of the resource group that contains the Batch account.
220+
/// </param>
221+
/// <param name='accountName'>
222+
/// The name of the Batch account.
223+
/// </param>
224+
/// <param name='maxresults'>
225+
/// The maximum number of items to return in the response.
226+
/// </param>
227+
/// <param name='cancellationToken'>
228+
/// The cancellation token.
229+
/// </param>
230+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Application>> ListAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, int? maxresults = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
231+
{
232+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, maxresults, null, cancellationToken).ConfigureAwait(false))
233+
{
234+
return _result.Body;
235+
}
236+
}
237+
/// <summary>
238+
/// Lists all of the applications in the specified account.
239+
/// </summary>
240+
/// <param name='operations'>
241+
/// The operations group for this extension method.
242+
/// </param>
243+
/// <param name='nextPageLink'>
244+
/// The NextLink from the previous successful call to List operation.
245+
/// </param>
246+
public static Microsoft.Rest.Azure.IPage<Application> ListNext(this IApplicationOperations operations, string nextPageLink)
247+
{
248+
return ((IApplicationOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
249+
}
250+
251+
/// <summary>
252+
/// Lists all of the applications in the specified account.
253+
/// </summary>
254+
/// <param name='operations'>
255+
/// The operations group for this extension method.
256+
/// </param>
257+
/// <param name='nextPageLink'>
258+
/// The NextLink from the previous successful call to List operation.
259+
/// </param>
260+
/// <param name='cancellationToken'>
261+
/// The cancellation token.
262+
/// </param>
263+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Application>> ListNextAsync(this IApplicationOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
264+
{
265+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
266+
{
267+
return _result.Body;
268+
}
269+
}
270+
}
271+
}

0 commit comments

Comments
 (0)