-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathApplyUpdateForResourceGroupOperationsExtensions.cs
More file actions
82 lines (79 loc) · 3.88 KB
/
Copy pathApplyUpdateForResourceGroupOperationsExtensions.cs
File metadata and controls
82 lines (79 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// 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.Maintenance
{
using Microsoft.Rest.Azure;
using Models;
/// <summary>
/// Extension methods for ApplyUpdateForResourceGroupOperations
/// </summary>
public static partial class ApplyUpdateForResourceGroupOperationsExtensions
{
/// <summary>
/// Get Configuration records within a subscription and resource group
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
public static Microsoft.Rest.Azure.IPage<ApplyUpdate> List(this IApplyUpdateForResourceGroupOperations operations, string resourceGroupName)
{
return ((IApplyUpdateForResourceGroupOperations)operations).ListAsync(resourceGroupName).GetAwaiter().GetResult();
}
/// <summary>
/// Get Configuration records within a subscription and resource group
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ApplyUpdate>> ListAsync(this IApplyUpdateForResourceGroupOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get Configuration records within a subscription and resource group
/// </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<ApplyUpdate> ListNext(this IApplyUpdateForResourceGroupOperations operations, string nextPageLink)
{
return ((IApplyUpdateForResourceGroupOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get Configuration records within a subscription and resource group
/// </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<ApplyUpdate>> ListNextAsync(this IApplyUpdateForResourceGroupOperations 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;
}
}
}
}