-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4106 from payiAzure/mybranch1
Regenerating SDK based on swagger changes on List/Cancel operation for Azure database and Elastic pool
- Loading branch information
Showing
29 changed files
with
4,864 additions
and
1,372 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file--> | ||
<PropertyGroup> | ||
<AzureApiTag>Sql_2014-04-01;Sql_2015-05-01-preview;Sql_2017-03-01-preview;</AzureApiTag> | ||
<AzureApiTag>Sql_2014-04-01;Sql_2015-05-01-preview;Sql_2017-10-01-preview;Sql_2017-03-01-preview;</AzureApiTag> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
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
854 changes: 427 additions & 427 deletions
854
src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
570 changes: 285 additions & 285 deletions
570
src/SDKs/SqlManagement/Management.Sql/Generated/DatabasesOperationsExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
617 changes: 617 additions & 0 deletions
617
src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
154 changes: 154 additions & 0 deletions
154
src/SDKs/SqlManagement/Management.Sql/Generated/ElasticPoolOperationsExtensions.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,154 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Sql | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for ElasticPoolOperations. | ||
/// </summary> | ||
public static partial class ElasticPoolOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Cancels the asynchronous operation on the elastic pool. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the resource. You can obtain | ||
/// this value from the Azure Resource Manager API or the portal. | ||
/// </param> | ||
/// <param name='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='elasticPoolName'> | ||
/// </param> | ||
/// <param name='operationId'> | ||
/// The operation identifier. | ||
/// </param> | ||
public static void Cancel(this IElasticPoolOperations operations, string resourceGroupName, string serverName, string elasticPoolName, System.Guid operationId) | ||
{ | ||
operations.CancelAsync(resourceGroupName, serverName, elasticPoolName, operationId).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Cancels the asynchronous operation on the elastic pool. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the resource. You can obtain | ||
/// this value from the Azure Resource Manager API or the portal. | ||
/// </param> | ||
/// <param name='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='elasticPoolName'> | ||
/// </param> | ||
/// <param name='operationId'> | ||
/// The operation identifier. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task CancelAsync(this IElasticPoolOperations operations, string resourceGroupName, string serverName, string elasticPoolName, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
(await operations.CancelWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of operations performed on the elastic pool. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the resource. You can obtain | ||
/// this value from the Azure Resource Manager API or the portal. | ||
/// </param> | ||
/// <param name='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='elasticPoolName'> | ||
/// </param> | ||
public static IPage<ElasticPoolOperation> ListByElasticPool(this IElasticPoolOperations operations, string resourceGroupName, string serverName, string elasticPoolName) | ||
{ | ||
return operations.ListByElasticPoolAsync(resourceGroupName, serverName, elasticPoolName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of operations performed on the elastic pool. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group that contains the resource. You can obtain | ||
/// this value from the Azure Resource Manager API or the portal. | ||
/// </param> | ||
/// <param name='serverName'> | ||
/// The name of the server. | ||
/// </param> | ||
/// <param name='elasticPoolName'> | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<ElasticPoolOperation>> ListByElasticPoolAsync(this IElasticPoolOperations operations, string resourceGroupName, string serverName, string elasticPoolName, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListByElasticPoolWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of operations performed on the elastic pool. | ||
/// </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 IPage<ElasticPoolOperation> ListByElasticPoolNext(this IElasticPoolOperations operations, string nextPageLink) | ||
{ | ||
return operations.ListByElasticPoolNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of operations performed on the elastic pool. | ||
/// </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 Task<IPage<ElasticPoolOperation>> ListByElasticPoolNextAsync(this IElasticPoolOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListByElasticPoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.