diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs
index 1892e0e5c6d3..cb6d5c64e104 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.NetApp
using System.Net.Http;
///
- /// Microsoft NetApp Azure Resource Provider specification
+ /// Microsoft NetApp Files Azure Resource Provider specification
///
public partial class AzureNetAppFilesManagementClient : ServiceClient, IAzureNetAppFilesManagementClient, IAzureClient
{
@@ -111,6 +111,11 @@ public partial class AzureNetAppFilesManagementClient : ServiceClient
public virtual ISnapshotPoliciesOperations SnapshotPolicies { get; private set; }
+ ///
+ /// Gets the IVolumeBackupStatusOperations.
+ ///
+ public virtual IVolumeBackupStatusOperations VolumeBackupStatus { get; private set; }
+
///
/// Gets the IAccountBackupsOperations.
///
@@ -379,12 +384,13 @@ private void Initialize()
Volumes = new VolumesOperations(this);
Snapshots = new SnapshotsOperations(this);
SnapshotPolicies = new SnapshotPoliciesOperations(this);
+ VolumeBackupStatus = new VolumeBackupStatusOperations(this);
AccountBackups = new AccountBackupsOperations(this);
Backups = new BackupsOperations(this);
BackupPolicies = new BackupPoliciesOperations(this);
Vaults = new VaultsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-11-01";
+ ApiVersion = "2020-12-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs
index fb0b3569c199..0b969e155b2c 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.NetApp
using Newtonsoft.Json;
///
- /// Microsoft NetApp Azure Resource Provider specification
+ /// Microsoft NetApp Files Azure Resource Provider specification
///
public partial interface IAzureNetAppFilesManagementClient : System.IDisposable
{
@@ -106,6 +106,11 @@ public partial interface IAzureNetAppFilesManagementClient : System.IDisposable
///
ISnapshotPoliciesOperations SnapshotPolicies { get; }
+ ///
+ /// Gets the IVolumeBackupStatusOperations.
+ ///
+ IVolumeBackupStatusOperations VolumeBackupStatus { get; }
+
///
/// Gets the IAccountBackupsOperations.
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IVolumeBackupStatusOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IVolumeBackupStatusOperations.cs
new file mode 100644
index 000000000000..895dc9c13630
--- /dev/null
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IVolumeBackupStatusOperations.cs
@@ -0,0 +1,61 @@
+//
+// 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.NetApp
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// VolumeBackupStatusOperations operations.
+ ///
+ public partial interface IVolumeBackupStatusOperations
+ {
+ ///
+ /// Get volume's backup status
+ ///
+ ///
+ /// Get the status of the backup for a volume
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the NetApp account
+ ///
+ ///
+ /// The name of the capacity pool
+ ///
+ ///
+ /// The name of the volume
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/AccountEncryption.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/AccountEncryption.cs
index 1611dc028319..b3fb76c804ba 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/AccountEncryption.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/AccountEncryption.cs
@@ -30,8 +30,7 @@ public AccountEncryption()
/// Initializes a new instance of the AccountEncryption class.
///
/// Encryption Key Source. Possible values are:
- /// 'Microsoft.NetApp'. Possible values include:
- /// 'Microsoft.NetApp'
+ /// 'Microsoft.NetApp'.
public AccountEncryption(string keySource = default(string))
{
KeySource = keySource;
@@ -45,7 +44,7 @@ public AccountEncryption()
///
/// Gets or sets encryption Key Source. Possible values are:
- /// 'Microsoft.NetApp'. Possible values include: 'Microsoft.NetApp'
+ /// 'Microsoft.NetApp'.
///
[JsonProperty(PropertyName = "keySource")]
public string KeySource { get; set; }
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs
index 0536fee1c54d..e1ebd9c1c623 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs
@@ -76,7 +76,10 @@ public ActiveDirectory()
/// without domain specifier
/// Specifies whether or not the LDAP traffic
/// needs to be secured via TLS.
- public ActiveDirectory(string activeDirectoryId = default(string), string username = default(string), string password = default(string), string domain = default(string), string dns = default(string), string status = default(string), string statusDetails = default(string), string smbServerName = default(string), string organizationalUnit = default(string), string site = default(string), IList backupOperators = default(IList), string kdcIP = default(string), string adName = default(string), string serverRootCACertificate = default(string), bool? aesEncryption = default(bool?), bool? ldapSigning = default(bool?), IList securityOperators = default(IList), bool? ldapOverTLS = default(bool?))
+ /// If enabled, NFS client
+ /// local users can also (in addition to LDAP users) access the NFS
+ /// volumes.
+ public ActiveDirectory(string activeDirectoryId = default(string), string username = default(string), string password = default(string), string domain = default(string), string dns = default(string), string status = default(string), string statusDetails = default(string), string smbServerName = default(string), string organizationalUnit = default(string), string site = default(string), IList backupOperators = default(IList), string kdcIP = default(string), string adName = default(string), string serverRootCACertificate = default(string), bool? aesEncryption = default(bool?), bool? ldapSigning = default(bool?), IList securityOperators = default(IList), bool? ldapOverTLS = default(bool?), bool? allowLocalNfsFSUsersWithLdap = default(bool?))
{
ActiveDirectoryId = activeDirectoryId;
Username = username;
@@ -96,6 +99,7 @@ public ActiveDirectory()
LdapSigning = ldapSigning;
SecurityOperators = securityOperators;
LdapOverTLS = ldapOverTLS;
+ AllowLocalNfsFSUsersWithLdap = allowLocalNfsFSUsersWithLdap;
CustomInit();
}
@@ -233,6 +237,13 @@ public ActiveDirectory()
[JsonProperty(PropertyName = "ldapOverTLS")]
public bool? LdapOverTLS { get; set; }
+ ///
+ /// Gets or sets If enabled, NFS client local users can also (in
+ /// addition to LDAP users) access the NFS volumes.
+ ///
+ [JsonProperty(PropertyName = "allowLocalNfsFSUsersWithLdap")]
+ public bool? AllowLocalNfsFSUsersWithLdap { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Backup.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Backup.cs
index 403f4d95671c..70f038c56cf1 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Backup.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Backup.cs
@@ -44,7 +44,8 @@ public Backup()
/// Label for backup
/// Type of backup adhoc or scheduled
/// Failure reason
- public Backup(string location, string id = default(string), string name = default(string), string type = 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 backupType = default(string), string failureReason = default(string))
+ /// Volume name
+ public Backup(string location, string id = default(string), string name = default(string), string type = 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 backupType = default(string), string failureReason = default(string), string volumeName = default(string))
{
Location = location;
Id = id;
@@ -57,6 +58,7 @@ public Backup()
Label = label;
BackupType = backupType;
FailureReason = failureReason;
+ VolumeName = volumeName;
CustomInit();
}
@@ -137,6 +139,12 @@ public Backup()
[JsonProperty(PropertyName = "properties.failureReason")]
public string FailureReason { get; private set; }
+ ///
+ /// Gets volume name
+ ///
+ [JsonProperty(PropertyName = "properties.volumeName")]
+ public string VolumeName { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupPatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupPatch.cs
index 435a003d7d11..7c18d7b5e5dc 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupPatch.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupPatch.cs
@@ -43,7 +43,8 @@ public BackupPatch()
/// Label for backup
/// Type of backup adhoc or scheduled
/// Failure reason
- public BackupPatch(IDictionary tags = default(IDictionary), 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))
+ /// Volume name
+ public BackupPatch(IDictionary tags = default(IDictionary), 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))
{
Tags = tags;
BackupId = backupId;
@@ -53,6 +54,7 @@ public BackupPatch()
Label = label;
BackupType = backupType;
FailureReason = failureReason;
+ VolumeName = volumeName;
CustomInit();
}
@@ -115,6 +117,12 @@ public BackupPatch()
[JsonProperty(PropertyName = "properties.failureReason")]
public string FailureReason { get; private set; }
+ ///
+ /// Gets volume name
+ ///
+ [JsonProperty(PropertyName = "properties.volumeName")]
+ public string VolumeName { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs
new file mode 100644
index 000000000000..df434d4ffe26
--- /dev/null
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs
@@ -0,0 +1,90 @@
+//
+// 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.NetApp.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Backup status
+ ///
+ public partial class BackupStatus
+ {
+ ///
+ /// Initializes a new instance of the BackupStatus class.
+ ///
+ public BackupStatus()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the BackupStatus class.
+ ///
+ /// Backup health status
+ /// Status of the backup mirror
+ /// relationship. Possible values include: 'Idle',
+ /// 'Transferring'
+ /// The status of the backup. Possible values
+ /// include: 'Uninitialized', 'Mirrored', 'Broken'
+ /// Reason for the unhealthy backup
+ /// relationship
+ /// Displays error message if the backup is
+ /// in an error state
+ public BackupStatus(bool? healthy = default(bool?), string relationshipStatus = default(string), string mirrorState = default(string), string unhealthyReason = default(string), string errorMessage = default(string))
+ {
+ Healthy = healthy;
+ RelationshipStatus = relationshipStatus;
+ MirrorState = mirrorState;
+ UnhealthyReason = unhealthyReason;
+ ErrorMessage = errorMessage;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets backup health status
+ ///
+ [JsonProperty(PropertyName = "healthy")]
+ public bool? Healthy { get; private set; }
+
+ ///
+ /// Gets status of the backup mirror relationship. Possible values
+ /// include: 'Idle', 'Transferring'
+ ///
+ [JsonProperty(PropertyName = "relationshipStatus")]
+ public string RelationshipStatus { get; private set; }
+
+ ///
+ /// Gets the status of the backup. Possible values include:
+ /// 'Uninitialized', 'Mirrored', 'Broken'
+ ///
+ [JsonProperty(PropertyName = "mirrorState")]
+ public string MirrorState { get; private set; }
+
+ ///
+ /// Gets reason for the unhealthy backup relationship
+ ///
+ [JsonProperty(PropertyName = "unhealthyReason")]
+ public string UnhealthyReason { get; private set; }
+
+ ///
+ /// Gets displays error message if the backup is in an error state
+ ///
+ [JsonProperty(PropertyName = "errorMessage")]
+ public string ErrorMessage { get; private set; }
+
+ }
+}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs
index b4113f746648..a1824484d4bf 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs
@@ -116,16 +116,13 @@ public CapacityPoolPatch()
///
public virtual void Validate()
{
- if (Size != null)
+ if (Size > 549755813888000)
{
- if (Size > 549755813888000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Size", 549755813888000);
- }
- if (Size < 4398046511104)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Size", 4398046511104);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Size", 549755813888000);
+ }
+ if (Size < 4398046511104)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Size", 4398046511104);
}
}
}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/KeySource.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/KeySource.cs
deleted file mode 100644
index cb0bb6fc1242..000000000000
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/KeySource.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// 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.NetApp.Models
-{
-
- ///
- /// Defines values for KeySource.
- ///
- public static class KeySource
- {
- ///
- /// The service manages the keys.
- ///
- public const string MicrosoftNetApp = "Microsoft.NetApp";
- }
-}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ResourceIdentity.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ResourceIdentity.cs
new file mode 100644
index 000000000000..b16af017af25
--- /dev/null
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ResourceIdentity.cs
@@ -0,0 +1,67 @@
+//
+// 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.NetApp.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ public partial class ResourceIdentity
+ {
+ ///
+ /// Initializes a new instance of the ResourceIdentity class.
+ ///
+ public ResourceIdentity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceIdentity class.
+ ///
+ /// Object id of the identity
+ /// resource
+ /// The tenant id of the resource
+ /// Type of Identity. Supported values are: 'None',
+ /// 'SystemAssigned'
+ public ResourceIdentity(string principalId = default(string), string tenantId = default(string), string type = default(string))
+ {
+ PrincipalId = principalId;
+ TenantId = tenantId;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets object id of the identity resource
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId { get; private set; }
+
+ ///
+ /// Gets the tenant id of the resource
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public string TenantId { get; private set; }
+
+ ///
+ /// Gets or sets type of Identity. Supported values are: 'None',
+ /// 'SystemAssigned'
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ }
+}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicy.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicy.cs
index eb55cfcb5b39..269187f0e8b0 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicy.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicy.cs
@@ -40,7 +40,6 @@ public SnapshotPolicy()
/// Resource name
/// Resource type
/// Resource tags
- /// Snapshot policy name
/// hourlySchedule
/// dailySchedule
/// weeklySchedule
@@ -48,14 +47,13 @@ public SnapshotPolicy()
/// The property to decide policy is enabled or
/// not
/// Azure lifecycle management
- public SnapshotPolicy(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string name1 = default(string), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
+ public SnapshotPolicy(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
{
Location = location;
Id = id;
Name = name;
Type = type;
Tags = tags;
- Name1 = name1;
HourlySchedule = hourlySchedule;
DailySchedule = dailySchedule;
WeeklySchedule = weeklySchedule;
@@ -100,12 +98,6 @@ public SnapshotPolicy()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
- ///
- /// Gets snapshot policy name
- ///
- [JsonProperty(PropertyName = "properties.name")]
- public string Name1 { get; private set; }
-
///
/// Gets or sets hourlySchedule
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyDetails.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyDetails.cs
index a728e026c7ac..05109a922cf2 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyDetails.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyDetails.cs
@@ -39,7 +39,6 @@ public SnapshotPolicyDetails()
/// Resource name
/// Resource type
/// Resource tags
- /// Snapshot policy name
/// hourlySchedule
/// dailySchedule
/// weeklySchedule
@@ -47,14 +46,13 @@ public SnapshotPolicyDetails()
/// The property to decide policy is enabled or
/// not
/// Azure lifecycle management
- public SnapshotPolicyDetails(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string name1 = default(string), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
+ public SnapshotPolicyDetails(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
{
Location = location;
Id = id;
Name = name;
Type = type;
Tags = tags;
- Name1 = name1;
HourlySchedule = hourlySchedule;
DailySchedule = dailySchedule;
WeeklySchedule = weeklySchedule;
@@ -99,12 +97,6 @@ public SnapshotPolicyDetails()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
- ///
- /// Gets snapshot policy name
- ///
- [JsonProperty(PropertyName = "properties.name")]
- public string Name1 { get; private set; }
-
///
/// Gets or sets hourlySchedule
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs
index 8cb7f1eb57c2..165f145dccd6 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs
@@ -39,7 +39,6 @@ public SnapshotPolicyPatch()
/// Resource name
/// Resource type
/// Resource tags
- /// Snapshot policy name
/// hourlySchedule
/// dailySchedule
/// weeklySchedule
@@ -47,14 +46,13 @@ public SnapshotPolicyPatch()
/// The property to decide policy is enabled or
/// not
/// Azure lifecycle management
- public SnapshotPolicyPatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string name1 = default(string), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
+ public SnapshotPolicyPatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), HourlySchedule hourlySchedule = default(HourlySchedule), DailySchedule dailySchedule = default(DailySchedule), WeeklySchedule weeklySchedule = default(WeeklySchedule), MonthlySchedule monthlySchedule = default(MonthlySchedule), bool? enabled = default(bool?), string provisioningState = default(string))
{
Location = location;
Id = id;
Name = name;
Type = type;
Tags = tags;
- Name1 = name1;
HourlySchedule = hourlySchedule;
DailySchedule = dailySchedule;
WeeklySchedule = weeklySchedule;
@@ -99,12 +97,6 @@ public SnapshotPolicyPatch()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
- ///
- /// Gets snapshot policy name
- ///
- [JsonProperty(PropertyName = "properties.name")]
- public string Name1 { get; private set; }
-
///
/// Gets or sets hourlySchedule
///
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs
index d13bd27116d3..c35fe1b186c7 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs
@@ -75,7 +75,9 @@ public Volume()
/// be achieved by this volume
/// Encryption Key Source. Possible
/// values are: 'Microsoft.NetApp'
- public Volume(string location, string creationToken, long usageThreshold, string subnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string fileSystemId = default(string), string serviceLevel = default(string), VolumePropertiesExportPolicy exportPolicy = default(VolumePropertiesExportPolicy), IList protocolTypes = default(IList), string provisioningState = default(string), string snapshotId = default(string), string backupId = default(string), string baremetalTenantId = default(string), IList mountTargets = default(IList), string volumeType = default(string), VolumePropertiesDataProtection dataProtection = default(VolumePropertiesDataProtection), bool? isRestoring = default(bool?), bool? snapshotDirectoryVisible = default(bool?), bool? kerberosEnabled = default(bool?), string securityStyle = default(string), bool? smbEncryption = default(bool?), bool? smbContinuouslyAvailable = default(bool?), double? throughputMibps = default(double?), string encryptionKeySource = default(string))
+ /// Specifies whether LDAP is enabled or not
+ /// for a given NFS volume.
+ public Volume(string location, string creationToken, long usageThreshold, string subnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string fileSystemId = default(string), string serviceLevel = default(string), VolumePropertiesExportPolicy exportPolicy = default(VolumePropertiesExportPolicy), IList protocolTypes = default(IList), string provisioningState = default(string), string snapshotId = default(string), string backupId = default(string), string baremetalTenantId = default(string), IList mountTargets = default(IList), string volumeType = default(string), VolumePropertiesDataProtection dataProtection = default(VolumePropertiesDataProtection), bool? isRestoring = default(bool?), bool? snapshotDirectoryVisible = default(bool?), bool? kerberosEnabled = default(bool?), string securityStyle = default(string), bool? smbEncryption = default(bool?), bool? smbContinuouslyAvailable = default(bool?), double? throughputMibps = default(double?), string encryptionKeySource = default(string), bool? ldapEnabled = default(bool?))
{
Location = location;
Id = id;
@@ -104,6 +106,7 @@ public Volume()
SmbContinuouslyAvailable = smbContinuouslyAvailable;
ThroughputMibps = throughputMibps;
EncryptionKeySource = encryptionKeySource;
+ LdapEnabled = ldapEnabled;
CustomInit();
}
@@ -322,6 +325,13 @@ public Volume()
[JsonProperty(PropertyName = "properties.encryptionKeySource")]
public string EncryptionKeySource { get; set; }
+ ///
+ /// Gets or sets specifies whether LDAP is enabled or not for a given
+ /// NFS volume.
+ ///
+ [JsonProperty(PropertyName = "properties.ldapEnabled")]
+ public bool? LdapEnabled { get; set; }
+
///
/// Validate the object.
///
@@ -424,20 +434,13 @@ public virtual void Validate()
{
DataProtection.Validate();
}
- if (ThroughputMibps != null)
+ if (ThroughputMibps > 4500)
{
- if (ThroughputMibps > 4500)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500);
- }
- if (ThroughputMibps < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 0);
- }
- if (ThroughputMibps % 0.001 != 0)
- {
- throw new ValidationException(ValidationRules.MultipleOf, "ThroughputMibps", 0.001);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500);
+ }
+ if (ThroughputMibps < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 0);
}
}
}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs
index 6c58ac88552f..a0d20540c890 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs
@@ -151,31 +151,21 @@ public VolumePatch()
///
public virtual void Validate()
{
- if (UsageThreshold != null)
+ if (UsageThreshold > 109951162777600)
{
- if (UsageThreshold > 109951162777600)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "UsageThreshold", 109951162777600);
- }
- if (UsageThreshold < 107374182400)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "UsageThreshold", 109951162777600);
}
- if (ThroughputMibps != null)
+ if (UsageThreshold < 107374182400)
{
- if (ThroughputMibps > 4500)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500);
- }
- if (ThroughputMibps < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 1);
- }
- if (ThroughputMibps % 0.001 != 0)
- {
- throw new ValidationException(ValidationRules.MultipleOf, "ThroughputMibps", 0.001);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
+ }
+ if (ThroughputMibps > 4500)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500);
+ }
+ if (ThroughputMibps < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 1);
}
}
}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs
index 4ca528766329..e05fc65c105e 100644
--- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs
@@ -19,30 +19,20 @@ public static IEnumerable> ApiInfo_NetAppManagemen
{
return new Tuple[]
{
- new Tuple("NetApp", "AccountBackups", "2020-11-01"),
- new Tuple("NetApp", "Accounts", "2020-11-01"),
- new Tuple("NetApp", "BackupPolicies", "2020-11-01"),
- new Tuple("NetApp", "Backups", "2020-11-01"),
- new Tuple("NetApp", "NetAppResource", "2020-11-01"),
- new Tuple("NetApp", "Operations", "2020-11-01"),
- new Tuple("NetApp", "Pools", "2020-11-01"),
- new Tuple("NetApp", "SnapshotPolicies", "2020-11-01"),
- new Tuple("NetApp", "Snapshots", "2020-11-01"),
- new Tuple("NetApp", "Vaults", "2020-11-01"),
- new Tuple("NetApp", "Volumes", "2020-11-01"),
+ new Tuple("NetApp", "AccountBackups", "2020-12-01"),
+ new Tuple("NetApp", "Accounts", "2020-12-01"),
+ new Tuple("NetApp", "BackupPolicies", "2020-12-01"),
+ new Tuple("NetApp", "Backups", "2020-12-01"),
+ new Tuple("NetApp", "NetAppResource", "2020-12-01"),
+ new Tuple("NetApp", "Operations", "2020-12-01"),
+ new Tuple("NetApp", "Pools", "2020-12-01"),
+ new Tuple("NetApp", "SnapshotPolicies", "2020-12-01"),
+ new Tuple("NetApp", "Snapshots", "2020-12-01"),
+ new Tuple("NetApp", "Vaults", "2020-12-01"),
+ new Tuple("NetApp", "VolumeBackupStatus", "2020-12-01"),
+ new Tuple("NetApp", "Volumes", "2020-12-01"),
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/netapp/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --use:@microsoft.azure/autorest.csharp@2.3.90 --csharp-sdks-folder=C:\\Users\\audunn\\Source\\repos\\azure\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "dd9bdfc4373bd82c2528dfc8e3397eb38cb38af9";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperations.cs
new file mode 100644
index 000000000000..d1c9fb1f459a
--- /dev/null
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperations.cs
@@ -0,0 +1,316 @@
+//
+// 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.NetApp
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// VolumeBackupStatusOperations operations.
+ ///
+ internal partial class VolumeBackupStatusOperations : IServiceOperations, IVolumeBackupStatusOperations
+ {
+ ///
+ /// Initializes a new instance of the VolumeBackupStatusOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal VolumeBackupStatusOperations(AzureNetAppFilesManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the AzureNetAppFilesManagementClient
+ ///
+ public AzureNetAppFilesManagementClient Client { get; private set; }
+
+ ///
+ /// Get volume's backup status
+ ///
+ ///
+ /// Get the status of the backup for a volume
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the NetApp account
+ ///
+ ///
+ /// The name of the capacity pool
+ ///
+ ///
+ /// The name of the volume
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (poolName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "poolName");
+ }
+ if (poolName != null)
+ {
+ if (poolName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "poolName", 64);
+ }
+ if (poolName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "poolName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(poolName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "poolName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
+ }
+ }
+ if (volumeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "volumeName");
+ }
+ if (volumeName != null)
+ {
+ if (volumeName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "volumeName", 64);
+ }
+ if (volumeName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "volumeName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(volumeName, "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "volumeName", "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("poolName", poolName);
+ tracingParameters.Add("volumeName", volumeName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
+ _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName));
+ _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperationsExtensions.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperationsExtensions.cs
new file mode 100644
index 000000000000..e4407b886382
--- /dev/null
+++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumeBackupStatusOperationsExtensions.cs
@@ -0,0 +1,83 @@
+//
+// 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.NetApp
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for VolumeBackupStatusOperations.
+ ///
+ public static partial class VolumeBackupStatusOperationsExtensions
+ {
+ ///
+ /// Get volume's backup status
+ ///
+ ///
+ /// Get the status of the backup for a volume
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the NetApp account
+ ///
+ ///
+ /// The name of the capacity pool
+ ///
+ ///
+ /// The name of the volume
+ ///
+ public static BackupStatus Get(this IVolumeBackupStatusOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName)
+ {
+ return operations.GetAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get volume's backup status
+ ///
+ ///
+ /// Get the status of the backup for a volume
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the NetApp account
+ ///
+ ///
+ /// The name of the capacity pool
+ ///
+ ///
+ /// The name of the volume
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IVolumeBackupStatusOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}