forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use autorest.powershell to generate SDK for Az.Network (Azure#23590)
* Generate SDK for network with autorest.powershell * Redo migration based on API 06-01
- Loading branch information
Showing
1,450 changed files
with
146,139 additions
and
120,884 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
583 changes: 325 additions & 258 deletions
583
src/Network/Network.Management.Sdk/Generated/AdminRuleCollectionsOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
643 changes: 311 additions & 332 deletions
643
src/Network/Network.Management.Sdk/Generated/AdminRuleCollectionsOperationsExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
591 changes: 333 additions & 258 deletions
591
src/Network/Network.Management.Sdk/Generated/AdminRulesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
695 changes: 337 additions & 358 deletions
695
src/Network/Network.Management.Sdk/Generated/AdminRulesOperationsExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
547 changes: 306 additions & 241 deletions
547
...etwork.Management.Sdk/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
586 changes: 277 additions & 309 deletions
586
...agement.Sdk/Generated/ApplicationGatewayPrivateEndpointConnectionsOperationsExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
211 changes: 112 additions & 99 deletions
211
...work/Network.Management.Sdk/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
149 changes: 69 additions & 80 deletions
149
...rk.Management.Sdk/Generated/ApplicationGatewayPrivateLinkResourcesOperationsExtensions.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 |
---|---|---|
@@ -1,99 +1,88 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// 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> | ||
|
||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
namespace Microsoft.Azure.Management.Network | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for ApplicationGatewayPrivateLinkResourcesOperations. | ||
/// Extension methods for ApplicationGatewayPrivateLinkResourcesOperations | ||
/// </summary> | ||
public static partial class ApplicationGatewayPrivateLinkResourcesOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='applicationGatewayName'> | ||
/// The name of the application gateway. | ||
/// </param> | ||
public static IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName) | ||
{ | ||
return operations.ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult(); | ||
} | ||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='applicationGatewayName'> | ||
/// The name of the application gateway. | ||
/// </param> | ||
public static Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName) | ||
{ | ||
return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='applicationGatewayName'> | ||
/// The name of the application gateway. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<ApplicationGatewayPrivateLinkResource>> ListAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName, CancellationToken cancellationToken = default(CancellationToken)) | ||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='applicationGatewayName'> | ||
/// The name of the application gateway. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource>> ListAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </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<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink) | ||
{ | ||
return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </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<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink) | ||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </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<ApplicationGatewayPrivateLinkResource>> ListNextAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
return _result.Body; | ||
} | ||
|
||
/// <summary> | ||
/// Lists all private link resources on an application gateway. | ||
/// </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<ApplicationGatewayPrivateLinkResource>> ListNextAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.