Skip to content

Commit 5805da2

Browse files
audunndingmeng-xue
andauthored
[NetAppFiles] Add 2022-05-01 changes (#20542)
* Add 2022-09-01 * fix changelog * Add Microsoft.Azure.PowerShell.NetAppFiles.Management.Sdk dll * Update Az.NetAppFiles.psd1 * change QuotaSize parameter name * update md files * update md files * Empty-Commit * update for renew credentials command * Empty-Commit * Empty-Commit Co-authored-by: Dingmeng Xue <[email protected]>
1 parent 4e6ecbc commit 5805da2

File tree

264 files changed

+84119
-30296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+84119
-30296
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/AccountBackupsOperations.cs

Lines changed: 742 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
// <auto-generated>
2+
// 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+
//
6+
// 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+
11+
namespace Microsoft.Azure.Management.NetApp
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// Extension methods for AccountBackupsOperations.
23+
/// </summary>
24+
public static partial class AccountBackupsOperationsExtensions
25+
{
26+
/// <summary>
27+
/// List Backups for a Netapp Account
28+
/// </summary>
29+
/// <remarks>
30+
/// List all Backups for a Netapp Account
31+
/// </remarks>
32+
/// <param name='operations'>
33+
/// The operations group for this extension method.
34+
/// </param>
35+
/// <param name='resourceGroupName'>
36+
/// The name of the resource group.
37+
/// </param>
38+
/// <param name='accountName'>
39+
/// The name of the NetApp account
40+
/// </param>
41+
public static IEnumerable<Backup> List(this IAccountBackupsOperations operations, string resourceGroupName, string accountName)
42+
{
43+
return operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
44+
}
45+
46+
/// <summary>
47+
/// List Backups for a Netapp Account
48+
/// </summary>
49+
/// <remarks>
50+
/// List all Backups for a Netapp Account
51+
/// </remarks>
52+
/// <param name='operations'>
53+
/// The operations group for this extension method.
54+
/// </param>
55+
/// <param name='resourceGroupName'>
56+
/// The name of the resource group.
57+
/// </param>
58+
/// <param name='accountName'>
59+
/// The name of the NetApp account
60+
/// </param>
61+
/// <param name='cancellationToken'>
62+
/// The cancellation token.
63+
/// </param>
64+
public static async Task<IEnumerable<Backup>> ListAsync(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
65+
{
66+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
67+
{
68+
return _result.Body;
69+
}
70+
}
71+
72+
/// <summary>
73+
/// Get Backup for a Netapp Account
74+
/// </summary>
75+
/// <remarks>
76+
/// Gets the specified backup for a Netapp Account
77+
/// </remarks>
78+
/// <param name='operations'>
79+
/// The operations group for this extension method.
80+
/// </param>
81+
/// <param name='resourceGroupName'>
82+
/// The name of the resource group.
83+
/// </param>
84+
/// <param name='accountName'>
85+
/// The name of the NetApp account
86+
/// </param>
87+
/// <param name='backupName'>
88+
/// The name of the backup
89+
/// </param>
90+
public static Backup Get(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName)
91+
{
92+
return operations.GetAsync(resourceGroupName, accountName, backupName).GetAwaiter().GetResult();
93+
}
94+
95+
/// <summary>
96+
/// Get Backup for a Netapp Account
97+
/// </summary>
98+
/// <remarks>
99+
/// Gets the specified backup for a Netapp Account
100+
/// </remarks>
101+
/// <param name='operations'>
102+
/// The operations group for this extension method.
103+
/// </param>
104+
/// <param name='resourceGroupName'>
105+
/// The name of the resource group.
106+
/// </param>
107+
/// <param name='accountName'>
108+
/// The name of the NetApp account
109+
/// </param>
110+
/// <param name='backupName'>
111+
/// The name of the backup
112+
/// </param>
113+
/// <param name='cancellationToken'>
114+
/// The cancellation token.
115+
/// </param>
116+
public static async Task<Backup> GetAsync(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName, CancellationToken cancellationToken = default(CancellationToken))
117+
{
118+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, backupName, null, cancellationToken).ConfigureAwait(false))
119+
{
120+
return _result.Body;
121+
}
122+
}
123+
124+
/// <summary>
125+
/// Delete Backup for a Netapp Account
126+
/// </summary>
127+
/// <remarks>
128+
/// Delete the specified Backup for a Netapp Account
129+
/// </remarks>
130+
/// <param name='operations'>
131+
/// The operations group for this extension method.
132+
/// </param>
133+
/// <param name='resourceGroupName'>
134+
/// The name of the resource group.
135+
/// </param>
136+
/// <param name='accountName'>
137+
/// The name of the NetApp account
138+
/// </param>
139+
/// <param name='backupName'>
140+
/// The name of the backup
141+
/// </param>
142+
public static void Delete(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName)
143+
{
144+
operations.DeleteAsync(resourceGroupName, accountName, backupName).GetAwaiter().GetResult();
145+
}
146+
147+
/// <summary>
148+
/// Delete Backup for a Netapp Account
149+
/// </summary>
150+
/// <remarks>
151+
/// Delete the specified Backup for a Netapp Account
152+
/// </remarks>
153+
/// <param name='operations'>
154+
/// The operations group for this extension method.
155+
/// </param>
156+
/// <param name='resourceGroupName'>
157+
/// The name of the resource group.
158+
/// </param>
159+
/// <param name='accountName'>
160+
/// The name of the NetApp account
161+
/// </param>
162+
/// <param name='backupName'>
163+
/// The name of the backup
164+
/// </param>
165+
/// <param name='cancellationToken'>
166+
/// The cancellation token.
167+
/// </param>
168+
public static async Task DeleteAsync(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName, CancellationToken cancellationToken = default(CancellationToken))
169+
{
170+
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, backupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
171+
}
172+
173+
/// <summary>
174+
/// Delete Backup for a Netapp Account
175+
/// </summary>
176+
/// <remarks>
177+
/// Delete the specified Backup for a Netapp Account
178+
/// </remarks>
179+
/// <param name='operations'>
180+
/// The operations group for this extension method.
181+
/// </param>
182+
/// <param name='resourceGroupName'>
183+
/// The name of the resource group.
184+
/// </param>
185+
/// <param name='accountName'>
186+
/// The name of the NetApp account
187+
/// </param>
188+
/// <param name='backupName'>
189+
/// The name of the backup
190+
/// </param>
191+
public static void BeginDelete(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName)
192+
{
193+
operations.BeginDeleteAsync(resourceGroupName, accountName, backupName).GetAwaiter().GetResult();
194+
}
195+
196+
/// <summary>
197+
/// Delete Backup for a Netapp Account
198+
/// </summary>
199+
/// <remarks>
200+
/// Delete the specified Backup for a Netapp Account
201+
/// </remarks>
202+
/// <param name='operations'>
203+
/// The operations group for this extension method.
204+
/// </param>
205+
/// <param name='resourceGroupName'>
206+
/// The name of the resource group.
207+
/// </param>
208+
/// <param name='accountName'>
209+
/// The name of the NetApp account
210+
/// </param>
211+
/// <param name='backupName'>
212+
/// The name of the backup
213+
/// </param>
214+
/// <param name='cancellationToken'>
215+
/// The cancellation token.
216+
/// </param>
217+
public static async Task BeginDeleteAsync(this IAccountBackupsOperations operations, string resourceGroupName, string accountName, string backupName, CancellationToken cancellationToken = default(CancellationToken))
218+
{
219+
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, backupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
220+
}
221+
222+
}
223+
}

0 commit comments

Comments
 (0)