Skip to content

Commit 805dc04

Browse files
audunndolauli
andauthored
[NetAppFiles] Generate SDK to api-version 2023-05-01 (#23710)
* Generate to api-version 2023-05-01 * Changelog * add missing TestVolumeBackupStatusCrud recording * singular, fix md files * test fix * md file * md file * re-generate sdk * Fixed changelog issues for netappfiles --------- Co-authored-by: Xiaogang <[email protected]>
1 parent 6ade4b3 commit 805dc04

File tree

159 files changed

+45289
-26258
lines changed

Some content is hidden

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

159 files changed

+45289
-26258
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/AccountBackupsOperations.cs renamed to src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/AccountBackupsOperations.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33
// Code generated by Microsoft (R) AutoRest Code Generator.
44
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -24,9 +24,9 @@ internal partial class AccountBackupsOperations : Microsoft.Rest.IServiceOperati
2424
/// <exception cref="System.ArgumentNullException">
2525
/// Thrown when a required parameter is null
2626
/// </exception>
27-
internal AccountBackupsOperations (NetAppManagementClient client)
27+
internal AccountBackupsOperations(NetAppManagementClient client)
2828
{
29-
if (client == null)
29+
if (client == null)
3030
{
3131
throw new System.ArgumentNullException("client");
3232
}
@@ -73,7 +73,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
7373

7474

7575

76-
76+
7777
if (this.Client.SubscriptionId == null)
7878
{
7979
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -111,9 +111,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
111111
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
112112
}
113113
}
114-
if (this.Client.ApiVersion == null)
114+
if (this.Client.BackupApiVersion == null)
115115
{
116-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
116+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.BackupApiVersion");
117117
}
118118

119119
// Tracing
@@ -139,9 +139,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
139139
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
140140

141141
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
142-
if (this.Client.ApiVersion != null)
142+
if (this.Client.BackupApiVersion != null)
143143
{
144-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
144+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.BackupApiVersion)));
145145
}
146146
if (_queryParameters.Count > 0)
147147
{
@@ -168,7 +168,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
168168

169169
if (customHeaders != null)
170170
{
171-
foreach(var _header in customHeaders)
171+
foreach (var _header in customHeaders)
172172
{
173173
if (_httpRequest.Headers.Contains(_header.Key))
174174
{
@@ -207,7 +207,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
207207
try
208208
{
209209
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
210-
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
210+
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
211211
if (_errorBody != null)
212212
{
213213
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
@@ -239,7 +239,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
239239
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<Backup>>();
240240
_result.Request = _httpRequest;
241241
_result.Response = _httpResponse;
242-
242+
243243
if (_httpResponse.Headers.Contains("x-ms-request-id"))
244244
{
245245
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -311,7 +311,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
311311

312312

313313

314-
314+
315315
if (this.Client.SubscriptionId == null)
316316
{
317317
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -360,9 +360,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
360360
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
361361
}
362362
}
363-
if (this.Client.ApiVersion == null)
363+
if (this.Client.BackupApiVersion == null)
364364
{
365-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
365+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.BackupApiVersion");
366366
}
367367

368368
// Tracing
@@ -390,9 +390,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
390390
_url = _url.Replace("{backupName}", System.Uri.EscapeDataString(backupName));
391391

392392
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
393-
if (this.Client.ApiVersion != null)
393+
if (this.Client.BackupApiVersion != null)
394394
{
395-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
395+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.BackupApiVersion)));
396396
}
397397
if (_queryParameters.Count > 0)
398398
{
@@ -419,7 +419,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
419419

420420
if (customHeaders != null)
421421
{
422-
foreach(var _header in customHeaders)
422+
foreach (var _header in customHeaders)
423423
{
424424
if (_httpRequest.Headers.Contains(_header.Key))
425425
{
@@ -458,7 +458,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
458458
try
459459
{
460460
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
461-
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
461+
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
462462
if (_errorBody != null)
463463
{
464464
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
@@ -490,7 +490,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
490490
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Backup>();
491491
_result.Request = _httpRequest;
492492
_result.Response = _httpResponse;
493-
493+
494494
if (_httpResponse.Headers.Contains("x-ms-request-id"))
495495
{
496496
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
@@ -544,9 +544,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
544544
/// </param>
545545
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string backupName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
546546
{
547-
// Send Request
548-
Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, backupName, customHeaders, cancellationToken).ConfigureAwait(false);
549-
return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
547+
// Send Request
548+
Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, backupName, customHeaders, cancellationToken).ConfigureAwait(false);
549+
return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
550550
}
551551

552552
/// <summary>
@@ -584,7 +584,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
584584

585585

586586

587-
587+
588588
if (this.Client.SubscriptionId == null)
589589
{
590590
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -633,9 +633,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
633633
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
634634
}
635635
}
636-
if (this.Client.ApiVersion == null)
636+
if (this.Client.BackupApiVersion == null)
637637
{
638-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
638+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.BackupApiVersion");
639639
}
640640

641641
// Tracing
@@ -663,9 +663,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
663663
_url = _url.Replace("{backupName}", System.Uri.EscapeDataString(backupName));
664664

665665
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
666-
if (this.Client.ApiVersion != null)
666+
if (this.Client.BackupApiVersion != null)
667667
{
668-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
668+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.BackupApiVersion)));
669669
}
670670
if (_queryParameters.Count > 0)
671671
{
@@ -692,7 +692,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
692692

693693
if (customHeaders != null)
694694
{
695-
foreach(var _header in customHeaders)
695+
foreach (var _header in customHeaders)
696696
{
697697
if (_httpRequest.Headers.Contains(_header.Key))
698698
{
@@ -731,7 +731,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
731731
try
732732
{
733733
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
734-
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
734+
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
735735
if (_errorBody != null)
736736
{
737737
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
@@ -763,7 +763,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
763763
var _result = new Microsoft.Rest.Azure.AzureOperationResponse();
764764
_result.Request = _httpRequest;
765765
_result.Response = _httpResponse;
766-
766+
767767
if (_httpResponse.Headers.Contains("x-ms-request-id"))
768768
{
769769
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();

0 commit comments

Comments
 (0)