Skip to content

Commit da64873

Browse files
audunnNoriZC
andauthored
[NetAppFiles] update to 2023-11-01 (#24985)
* update to 2023-11-01 * update help * update help * update readme * update readme * update readme * ReGen * Update readme * add backupvault test * Update src/NetAppFiles/NetAppFiles/ChangeLog.md Co-authored-by: NoriZC <[email protected]> * changelog * changelog * simplify changelog --------- Co-authored-by: NoriZC <[email protected]>
1 parent f76f0af commit da64873

File tree

222 files changed

+67386
-29730
lines changed

Some content is hidden

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

222 files changed

+67386
-29730
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/BackupsOperations.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,10 @@ internal partial class BackupsOperations : Microsoft.Rest.IServiceOperations<Net
713713
/// <param name='cancellationToken'>
714714
/// The cancellation token.
715715
/// </param>
716-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders>> RestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
716+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01>> RestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
717717
{
718718
// Send Request
719-
Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders> _response = await BeginRestoreFilesWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body, customHeaders, cancellationToken).ConfigureAwait(false);
719+
Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01> _response = await BeginRestoreFilesWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body, customHeaders, cancellationToken).ConfigureAwait(false);
720720
return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
721721
}
722722

@@ -760,7 +760,7 @@ internal partial class BackupsOperations : Microsoft.Rest.IServiceOperations<Net
760760
/// <return>
761761
/// A response object containing the response body and response headers.
762762
/// </return>
763-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders>> BeginRestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
763+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01>> BeginRestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
764764
{
765765

766766

@@ -998,7 +998,7 @@ internal partial class BackupsOperations : Microsoft.Rest.IServiceOperations<Net
998998
throw ex;
999999
}
10001000
// Create Result
1001-
var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders>();
1001+
var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01>();
10021002
_result.Request = _httpRequest;
10031003
_result.Response = _httpResponse;
10041004

@@ -1008,7 +1008,7 @@ internal partial class BackupsOperations : Microsoft.Rest.IServiceOperations<Net
10081008
}
10091009
try
10101010
{
1011-
_result.Headers = _httpResponse.GetHeadersAsJson().ToObject<BackupsRestoreFilesHeaders>(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
1011+
_result.Headers = _httpResponse.GetHeadersAsJson().ToObject<BackupsRestoreFilesHeaders2023_07_01>(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings));
10121012
}
10131013
catch (Newtonsoft.Json.JsonException ex)
10141014
{

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/BackupsOperationsExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public static void Delete(this IBackupsOperations operations, string resourceGro
390390
/// <param name='backupName'>
391391
/// The name of the backup
392392
/// </param>
393-
public static BackupsRestoreFilesHeaders RestoreFiles(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body)
393+
public static BackupsRestoreFilesHeaders2023_07_01 RestoreFiles(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body)
394394
{
395395
return ((IBackupsOperations)operations).RestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body).GetAwaiter().GetResult();
396396
}
@@ -419,7 +419,7 @@ public static BackupsRestoreFilesHeaders RestoreFiles(this IBackupsOperations op
419419
/// <param name='cancellationToken'>
420420
/// The cancellation token.
421421
/// </param>
422-
public static async System.Threading.Tasks.Task<BackupsRestoreFilesHeaders> RestoreFilesAsync(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
422+
public static async System.Threading.Tasks.Task<BackupsRestoreFilesHeaders2023_07_01> RestoreFilesAsync(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
423423
{
424424
using (var _result = await operations.RestoreFilesWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body, null, cancellationToken).ConfigureAwait(false))
425425
{
@@ -615,7 +615,7 @@ public static void BeginDelete(this IBackupsOperations operations, string resour
615615
/// <param name='backupName'>
616616
/// The name of the backup
617617
/// </param>
618-
public static BackupsRestoreFilesHeaders BeginRestoreFiles(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body)
618+
public static BackupsRestoreFilesHeaders2023_07_01 BeginRestoreFiles(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body)
619619
{
620620
return ((IBackupsOperations)operations).BeginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body).GetAwaiter().GetResult();
621621
}
@@ -644,7 +644,7 @@ public static BackupsRestoreFilesHeaders BeginRestoreFiles(this IBackupsOperatio
644644
/// <param name='cancellationToken'>
645645
/// The cancellation token.
646646
/// </param>
647-
public static async System.Threading.Tasks.Task<BackupsRestoreFilesHeaders> BeginRestoreFilesAsync(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
647+
public static async System.Threading.Tasks.Task<BackupsRestoreFilesHeaders2023_07_01> BeginRestoreFilesAsync(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
648648
{
649649
using (var _result = await operations.BeginRestoreFilesWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, backupName, body, null, cancellationToken).ConfigureAwait(false))
650650
{

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/IBackupsOperations.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public partial interface IBackupsOperations
253253
/// <exception cref="Microsoft.Rest.Azure.CloudException">
254254
/// Thrown when the operation returned an invalid status code
255255
/// </exception>
256-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders>> RestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
256+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01>> RestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
257257

258258
/// <summary>
259259
/// Create a backup for the volume
@@ -396,7 +396,7 @@ public partial interface IBackupsOperations
396396
/// <exception cref="Microsoft.Rest.Azure.CloudException">
397397
/// Thrown when the operation returned an invalid status code
398398
/// </exception>
399-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders>> BeginRestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
399+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<BackupsRestoreFilesHeaders2023_07_01>> BeginRestoreFilesWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string backupName, BackupRestoreFiles body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
400400

401401
}
402402
}

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/Backup.cs renamed to src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/Backup2023_07_01.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
4-
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
53

64
namespace Microsoft.Azure.Management.NetApp.Models
75
{
@@ -11,12 +9,12 @@ namespace Microsoft.Azure.Management.NetApp.Models
119
/// Backup of a Volume
1210
/// </summary>
1311
[Microsoft.Rest.Serialization.JsonTransformation]
14-
public partial class Backup : ProxyResource
12+
public partial class Backup2023_07_01 : ProxyResource
1513
{
1614
/// <summary>
1715
/// Initializes a new instance of the Backup class.
1816
/// </summary>
19-
public Backup()
17+
public Backup2023_07_01()
2018
{
2119
CustomInit();
2220
}
@@ -70,7 +68,7 @@ public Backup()
7068
/// <param name="useExistingSnapshot">Manual backup an already existing snapshot. This will always be false for
7169
/// scheduled backups and true/false for manual backups
7270
/// </param>
73-
public Backup(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string backupType = default(string), string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
71+
public Backup2023_07_01(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string backupType = default(string), string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
7472

7573
: base(id, name, type, systemData)
7674
{

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/BackupPatch.cs renamed to src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/BackupPatch2023_07_01.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ namespace Microsoft.Azure.Management.NetApp.Models
1111
/// Backup patch
1212
/// </summary>
1313
[Microsoft.Rest.Serialization.JsonTransformation]
14-
public partial class BackupPatch
14+
public partial class BackupPatch2023_07_01
1515
{
1616
/// <summary>
1717
/// Initializes a new instance of the BackupPatch class.
1818
/// </summary>
19-
public BackupPatch()
19+
public BackupPatch2023_07_01()
2020
{
2121
CustomInit();
2222
}
@@ -55,7 +55,7 @@ public BackupPatch()
5555
/// <param name="useExistingSnapshot">Manual backup an already existing snapshot. This will always be false for
5656
/// scheduled backups and true/false for manual backups
5757
/// </param>
58-
public BackupPatch(System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string backupType = default(string), string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
58+
public BackupPatch2023_07_01(System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string backupType = default(string), string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
5959

6060
{
6161
this.Tags = tags;

src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/BackupProperties.cs renamed to src/NetAppFiles/NetAppFiles.Management.Sdk/Custom/Models/BackupProperties2023_07_01.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace Microsoft.Azure.Management.NetApp.Models
1010
/// <summary>
1111
/// Backup properties
1212
/// </summary>
13-
public partial class BackupProperties
13+
public partial class BackupProperties2023_07_01
1414
{
1515
/// <summary>
1616
/// Initializes a new instance of the BackupProperties class.
1717
/// </summary>
18-
public BackupProperties()
18+
public BackupProperties2023_07_01()
1919
{
2020
CustomInit();
2121
}
@@ -51,7 +51,7 @@ public BackupProperties()
5151
/// <param name="useExistingSnapshot">Manual backup an already existing snapshot. This will always be false for
5252
/// scheduled backups and true/false for manual backups
5353
/// </param>
54-
public BackupProperties(string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string backupType = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
54+
public BackupProperties2023_07_01(string backupId = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), long? size = default(long?), string label = default(string), string backupType = default(string), string failureReason = default(string), string volumeName = default(string), bool? useExistingSnapshot = default(bool?))
5555

5656
{
5757
this.BackupId = backupId;

0 commit comments

Comments
 (0)