|
1 |
| -// <auto-generated> |
2 | 1 | // 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 |
| -// |
| 2 | +// Licensed under the MIT License. See License.txt in the project root for license information. |
6 | 3 | // 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 |
| - |
| 4 | +// Changes may cause incorrect behavior and will be lost if the code is regenerated. |
11 | 5 | namespace Microsoft.Azure.Management.Network
|
12 | 6 | {
|
13 |
| - using Microsoft.Rest; |
14 | 7 | using Microsoft.Rest.Azure;
|
15 | 8 | using Models;
|
16 |
| - using System.Threading; |
17 |
| - using System.Threading.Tasks; |
18 | 9 |
|
19 | 10 | /// <summary>
|
20 |
| - /// Extension methods for ApplicationGatewayPrivateLinkResourcesOperations. |
| 11 | + /// Extension methods for ApplicationGatewayPrivateLinkResourcesOperations |
21 | 12 | /// </summary>
|
22 | 13 | public static partial class ApplicationGatewayPrivateLinkResourcesOperationsExtensions
|
23 | 14 | {
|
24 |
| - /// <summary> |
25 |
| - /// Lists all private link resources on an application gateway. |
26 |
| - /// </summary> |
27 |
| - /// <param name='operations'> |
28 |
| - /// The operations group for this extension method. |
29 |
| - /// </param> |
30 |
| - /// <param name='resourceGroupName'> |
31 |
| - /// The name of the resource group. |
32 |
| - /// </param> |
33 |
| - /// <param name='applicationGatewayName'> |
34 |
| - /// The name of the application gateway. |
35 |
| - /// </param> |
36 |
| - public static IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName) |
37 |
| - { |
38 |
| - return operations.ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult(); |
39 |
| - } |
| 15 | + /// <summary> |
| 16 | + /// Lists all private link resources on an application gateway. |
| 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. |
| 23 | + /// </param> |
| 24 | + /// <param name='applicationGatewayName'> |
| 25 | + /// The name of the application gateway. |
| 26 | + /// </param> |
| 27 | + public static Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName) |
| 28 | + { |
| 29 | + return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult(); |
| 30 | + } |
40 | 31 |
|
41 |
| - /// <summary> |
42 |
| - /// Lists all private link resources on an application gateway. |
43 |
| - /// </summary> |
44 |
| - /// <param name='operations'> |
45 |
| - /// The operations group for this extension method. |
46 |
| - /// </param> |
47 |
| - /// <param name='resourceGroupName'> |
48 |
| - /// The name of the resource group. |
49 |
| - /// </param> |
50 |
| - /// <param name='applicationGatewayName'> |
51 |
| - /// The name of the application gateway. |
52 |
| - /// </param> |
53 |
| - /// <param name='cancellationToken'> |
54 |
| - /// The cancellation token. |
55 |
| - /// </param> |
56 |
| - public static async Task<IPage<ApplicationGatewayPrivateLinkResource>> ListAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName, CancellationToken cancellationToken = default(CancellationToken)) |
| 32 | + /// <summary> |
| 33 | + /// Lists all private link resources on an application gateway. |
| 34 | + /// </summary> |
| 35 | + /// <param name='operations'> |
| 36 | + /// The operations group for this extension method. |
| 37 | + /// </param> |
| 38 | + /// <param name='resourceGroupName'> |
| 39 | + /// The name of the resource group. |
| 40 | + /// </param> |
| 41 | + /// <param name='applicationGatewayName'> |
| 42 | + /// The name of the application gateway. |
| 43 | + /// </param> |
| 44 | + /// <param name='cancellationToken'> |
| 45 | + /// The cancellation token. |
| 46 | + /// </param> |
| 47 | + 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)) |
| 48 | + { |
| 49 | + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false)) |
57 | 50 | {
|
58 |
| - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false)) |
59 |
| - { |
60 |
| - return _result.Body; |
61 |
| - } |
| 51 | + return _result.Body; |
62 | 52 | }
|
| 53 | + } |
| 54 | + /// <summary> |
| 55 | + /// Lists all private link resources on an application gateway. |
| 56 | + /// </summary> |
| 57 | + /// <param name='operations'> |
| 58 | + /// The operations group for this extension method. |
| 59 | + /// </param> |
| 60 | + /// <param name='nextPageLink'> |
| 61 | + /// The NextLink from the previous successful call to List operation. |
| 62 | + /// </param> |
| 63 | + public static Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink) |
| 64 | + { |
| 65 | + return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); |
| 66 | + } |
63 | 67 |
|
64 |
| - /// <summary> |
65 |
| - /// Lists all private link resources on an application gateway. |
66 |
| - /// </summary> |
67 |
| - /// <param name='operations'> |
68 |
| - /// The operations group for this extension method. |
69 |
| - /// </param> |
70 |
| - /// <param name='nextPageLink'> |
71 |
| - /// The NextLink from the previous successful call to List operation. |
72 |
| - /// </param> |
73 |
| - public static IPage<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink) |
| 68 | + /// <summary> |
| 69 | + /// Lists all private link resources on an application gateway. |
| 70 | + /// </summary> |
| 71 | + /// <param name='operations'> |
| 72 | + /// The operations group for this extension method. |
| 73 | + /// </param> |
| 74 | + /// <param name='nextPageLink'> |
| 75 | + /// The NextLink from the previous successful call to List operation. |
| 76 | + /// </param> |
| 77 | + /// <param name='cancellationToken'> |
| 78 | + /// The cancellation token. |
| 79 | + /// </param> |
| 80 | + 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)) |
| 81 | + { |
| 82 | + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) |
74 | 83 | {
|
75 |
| - return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); |
| 84 | + return _result.Body; |
76 | 85 | }
|
77 |
| - |
78 |
| - /// <summary> |
79 |
| - /// Lists all private link resources on an application gateway. |
80 |
| - /// </summary> |
81 |
| - /// <param name='operations'> |
82 |
| - /// The operations group for this extension method. |
83 |
| - /// </param> |
84 |
| - /// <param name='nextPageLink'> |
85 |
| - /// The NextLink from the previous successful call to List operation. |
86 |
| - /// </param> |
87 |
| - /// <param name='cancellationToken'> |
88 |
| - /// The cancellation token. |
89 |
| - /// </param> |
90 |
| - public static async Task<IPage<ApplicationGatewayPrivateLinkResource>> ListNextAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) |
91 |
| - { |
92 |
| - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) |
93 |
| - { |
94 |
| - return _result.Body; |
95 |
| - } |
96 |
| - } |
97 |
| - |
| 86 | + } |
98 | 87 | }
|
99 | 88 | }
|
0 commit comments