-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Batch] Remove "Microsoft.Azure.Management.Batch" Version="15.0.0" an…
…d add Batch.Management.Sdk (#26199) * Batch SDK generated by auto rest powershell * Update ChangeLog.md * Update ChangeLog.md
- Loading branch information
Showing
191 changed files
with
33,815 additions
and
18 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/Batch/Batch.Management.Sdk/Batch.Management.Sdk.csproj
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,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<PsModuleName>Batch</PsModuleName> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" /> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Microsoft.Azure.PowerShell.Batch.Management.Sdk</AssemblyName> | ||
<RootNamespace>Microsoft.Azure.Management.Batch</RootNamespace> | ||
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn> | ||
</PropertyGroup> | ||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" /> | ||
</Project> |
1,468 changes: 1,468 additions & 0 deletions
1,468
src/Batch/Batch.Management.Sdk/Generated/ApplicationOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
271 changes: 271 additions & 0 deletions
271
src/Batch/Batch.Management.Sdk/Generated/ApplicationOperationsExtensions.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,271 @@ | ||
// 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. | ||
namespace Microsoft.Azure.Management.Batch | ||
{ | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
|
||
/// <summary> | ||
/// Extension methods for ApplicationOperations | ||
/// </summary> | ||
public static partial class ApplicationOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Adds an application to the specified Batch account. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
public static Application Create(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters = default(Application)) | ||
{ | ||
return ((IApplicationOperations)operations).CreateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Adds an application to the specified Batch account. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, parameters, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Deletes an application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
public static void Delete(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName) | ||
{ | ||
((IApplicationOperations)operations).DeleteAsync(resourceGroupName, accountName, applicationName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Deletes an application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); | ||
} | ||
/// <summary> | ||
/// Gets information about the specified application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
public static Application Get(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName) | ||
{ | ||
return ((IApplicationOperations)operations).GetAsync(resourceGroupName, accountName, applicationName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets information about the specified application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Updates settings for the specified application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
public static Application Update(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters) | ||
{ | ||
return ((IApplicationOperations)operations).UpdateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Updates settings for the specified application. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='applicationName'> | ||
/// The name of the application. This must be unique within the account. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, parameters, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Lists all of the applications in the specified account. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='maxresults'> | ||
/// The maximum number of items to return in the response. | ||
/// </param> | ||
public static Microsoft.Rest.Azure.IPage<Application> List(this IApplicationOperations operations, string resourceGroupName, string accountName, int? maxresults = default(int?)) | ||
{ | ||
return ((IApplicationOperations)operations).ListAsync(resourceGroupName, accountName, maxresults).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Lists all of the applications in the specified account. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the Batch account. | ||
/// </param> | ||
/// <param name='accountName'> | ||
/// The name of the Batch account. | ||
/// </param> | ||
/// <param name='maxresults'> | ||
/// The maximum number of items to return in the response. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, maxresults, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Lists all of the applications in the specified account. | ||
/// </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 Microsoft.Rest.Azure.IPage<Application> ListNext(this IApplicationOperations operations, string nextPageLink) | ||
{ | ||
return ((IApplicationOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Lists all of the applications in the specified account. | ||
/// </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 System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Application>> ListNextAsync(this IApplicationOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.