Skip to content

Commit cc1b6f1

Browse files
authored
[Az.RecoveryServices.Backup] Added support for undelete soft deleted container and other fixes (#26872)
* modified policy limit added support for undelete container * Added test case * re-recorded failed tests * updated help * Updated Where-Object to camel case * Updated changeLog
1 parent 728d9e7 commit cc1b6f1

File tree

87 files changed

+22169
-26543
lines changed

Some content is hidden

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

87 files changed

+22169
-26543
lines changed

src/RecoveryServices/RecoveryServices.Backup.Helpers/ServiceClientHelpers.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ public static string GetServiceClientWorkloadType(CmdletModel.WorkloadType workl
361361
case CmdletModel.WorkloadType.MSSQL:
362362
serviceClientWorkloadType = ServiceClientModel.WorkloadType.SQLDataBase.ToString();
363363
break;
364+
case CmdletModel.WorkloadType.AzureFiles:
365+
serviceClientWorkloadType = ServiceClientModel.WorkloadType.AzureFileShare.ToString(); // this might cause some issue later, monitor for failures.
366+
break;
364367
default:
365368
break;
366369
}

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/FetchTieringCostOperations.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ internal FetchTieringCostOperations (RecoveryServicesBackupClient client)
3939
public RecoveryServicesBackupClient Client { get; private set; }
4040

4141
/// <summary>
42-
/// Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
42+
/// Provides the details of the tiering related sizes and cost. Status of the
43+
/// operation can be fetched using GetTieringCostOperationStatus API and result
44+
/// using GetTieringCostOperationResult API.
4345
/// </summary>
4446
/// <param name='resourceGroupName'>
4547
/// The name of the resource group where the recovery services vault is

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/Models/AzureSQLAGWorkloadContainerProtectionContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public AzureSqlagWorkloadContainerProtectionContainer()
5858
/// &#39;SAPAseDatabase&#39;, &#39;SAPHanaDBInstance&#39;</param>
5959

6060
/// <param name="operationType">Re-Do Operation
61-
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;</param>
61+
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;</param>
6262
public AzureSqlagWorkloadContainerProtectionContainer(string friendlyName = default(string), string backupManagementType = default(string), string registrationStatus = default(string), string healthStatus = default(string), string protectableObjectType = default(string), string sourceResourceId = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), AzureWorkloadContainerExtendedInfo extendedInfo = default(AzureWorkloadContainerExtendedInfo), string workloadType = default(string), string operationType = default(string))
6363

6464
: base(friendlyName, backupManagementType, registrationStatus, healthStatus, protectableObjectType, sourceResourceId, lastUpdatedTime, extendedInfo, workloadType, operationType)

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/Models/AzureStorageContainer.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ public AzureStorageContainer()
5656

5757
/// <param name="acquireStorageAccountLock">Whether storage account lock is to be acquired for this container or not.
5858
/// Possible values include: &#39;Acquire&#39;, &#39;NotAcquire&#39;</param>
59-
public AzureStorageContainer(string friendlyName = default(string), string backupManagementType = default(string), string registrationStatus = default(string), string healthStatus = default(string), string protectableObjectType = default(string), string sourceResourceId = default(string), string storageAccountVersion = default(string), string resourceGroup = default(string), long? protectedItemCount = default(long?), string acquireStorageAccountLock = default(string))
59+
60+
/// <param name="operationType">Re-Do Operation
61+
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;</param>
62+
public AzureStorageContainer(string friendlyName = default(string), string backupManagementType = default(string), string registrationStatus = default(string), string healthStatus = default(string), string protectableObjectType = default(string), string sourceResourceId = default(string), string storageAccountVersion = default(string), string resourceGroup = default(string), long? protectedItemCount = default(long?), string acquireStorageAccountLock = default(string), string operationType = default(string))
6063

6164
: base(friendlyName, backupManagementType, registrationStatus, healthStatus, protectableObjectType)
6265
{
@@ -65,6 +68,7 @@ public AzureStorageContainer()
6568
this.ResourceGroup = resourceGroup;
6669
this.ProtectedItemCount = protectedItemCount;
6770
this.AcquireStorageAccountLock = acquireStorageAccountLock;
71+
this.OperationType = operationType;
6872
CustomInit();
6973
}
7074

@@ -104,5 +108,11 @@ public AzureStorageContainer()
104108
/// </summary>
105109
[Newtonsoft.Json.JsonProperty(PropertyName = "acquireStorageAccountLock")]
106110
public string AcquireStorageAccountLock {get; set; }
111+
112+
/// <summary>
113+
/// Gets or sets re-Do Operation Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;
114+
/// </summary>
115+
[Newtonsoft.Json.JsonProperty(PropertyName = "operationType")]
116+
public string OperationType {get; set; }
107117
}
108118
}

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/Models/AzureVMAppContainerProtectionContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public AzureVMAppContainerProtectionContainer()
5858
/// &#39;SAPAseDatabase&#39;, &#39;SAPHanaDBInstance&#39;</param>
5959

6060
/// <param name="operationType">Re-Do Operation
61-
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;</param>
61+
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;</param>
6262
public AzureVMAppContainerProtectionContainer(string friendlyName = default(string), string backupManagementType = default(string), string registrationStatus = default(string), string healthStatus = default(string), string protectableObjectType = default(string), string sourceResourceId = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), AzureWorkloadContainerExtendedInfo extendedInfo = default(AzureWorkloadContainerExtendedInfo), string workloadType = default(string), string operationType = default(string))
6363

6464
: base(friendlyName, backupManagementType, registrationStatus, healthStatus, protectableObjectType, sourceResourceId, lastUpdatedTime, extendedInfo, workloadType, operationType)

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/Models/AzureWorkloadContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public AzureWorkloadContainer()
5959
/// &#39;SAPAseDatabase&#39;, &#39;SAPHanaDBInstance&#39;</param>
6060

6161
/// <param name="operationType">Re-Do Operation
62-
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;</param>
62+
/// Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;</param>
6363
public AzureWorkloadContainer(string friendlyName = default(string), string backupManagementType = default(string), string registrationStatus = default(string), string healthStatus = default(string), string protectableObjectType = default(string), string sourceResourceId = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), AzureWorkloadContainerExtendedInfo extendedInfo = default(AzureWorkloadContainerExtendedInfo), string workloadType = default(string), string operationType = default(string))
6464

6565
: base(friendlyName, backupManagementType, registrationStatus, healthStatus, protectableObjectType)
@@ -104,7 +104,7 @@ public AzureWorkloadContainer()
104104
public string WorkloadType {get; set; }
105105

106106
/// <summary>
107-
/// Gets or sets re-Do Operation Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;
107+
/// Gets or sets re-Do Operation Possible values include: &#39;Invalid&#39;, &#39;Register&#39;, &#39;Reregister&#39;, &#39;Rehydrate&#39;
108108
/// </summary>
109109
[Newtonsoft.Json.JsonProperty(PropertyName = "operationType")]
110110
public string OperationType {get; set; }

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/Models/OperationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ public static class OperationType
1616
public const string Invalid = "Invalid";
1717
public const string Register = "Register";
1818
public const string Reregister = "Reregister";
19+
public const string Rehydrate = "Rehydrate";
1920
}
2021
}

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/PrivateEndpointConnectionOperations.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ internal PrivateEndpointConnectionOperations (RecoveryServicesBackupClient clien
258258

259259
}
260260
/// <summary>
261-
/// Approve or Reject Private Endpoint requests. This call is made by Backup Admin.
261+
/// Approve or Reject Private Endpoint requests. This call is made by Backup
262+
/// Admin.
262263
/// </summary>
263264
/// <param name='vaultName'>
264265
/// The name of the recovery services vault.

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/ProtectionContainersOperations.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ internal ProtectionContainersOperations (RecoveryServicesBackupClient client)
274274

275275
}
276276
/// <summary>
277-
/// Registers the container with Recovery Services vault. This is an asynchronous operation. To track the operation status, use location header to call get latest status of the operation.
277+
/// Registers the container with Recovery Services vault. This is an
278+
/// asynchronous operation. To track the operation status, use location header
279+
/// to call get latest status of the operation.
278280
/// </summary>
279281
/// <param name='vaultName'>
280282
/// The name of the recovery services vault.

src/RecoveryServices/RecoveryServices.Backup.Management.Sdk/Generated/ProtectionPoliciesOperations.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,9 @@ internal ProtectionPoliciesOperations (RecoveryServicesBackupClient client)
518518

519519
}
520520
/// <summary>
521-
/// Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API.
521+
/// Deletes specified backup policy from your Recovery Services Vault. This is
522+
/// an asynchronous operation. Status of the operation can be fetched using
523+
/// GetProtectionPolicyOperationResult API.
522524
/// </summary>
523525
/// <param name='vaultName'>
524526
/// The name of the recovery services vault.

0 commit comments

Comments
 (0)