Skip to content

Commit c114fb7

Browse files
hiagadolauli
andauthored
[Az.RecoveryServices.backup] Added support for MUA new operations (#24665)
* Fixed bugs Built RRP SDK Built backup SDK Disable Immutability MUA Added calculateRPO Restore MUA Updated help * re-recorded failed tests updated changelog * added suppression * Update README.md to fix two autogen issues through directive Removed suppression, generated SDK --------- Co-authored-by: Xiaogang <[email protected]>
1 parent a0ce5c0 commit c114fb7

File tree

309 files changed

+122044
-110826
lines changed

Some content is hidden

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

309 files changed

+122044
-110826
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ internal BackupOperationResultsOperations (RecoveryServicesBackupClient client)
4040

4141
/// <summary>
4242
/// Provides the status of the delete operations such as deleting backed up
43-
/// item. Once the operation has started, the
44-
/// status code in the response would be Accepted. It will continue to be in
45-
/// this state till it reaches completion. On
46-
/// successful completion, the status code will be OK. This method expects
47-
/// OperationID as an argument. OperationID is
48-
/// part of the Location header of the operation response.
43+
/// item. Once the operation has started, the status code in the response would
44+
/// be Accepted. It will continue to be in this state till it reaches
45+
/// completion. On successful completion, the status code will be OK. This
46+
/// method expects OperationID as an argument. OperationID is part of the
47+
/// Location header of the operation response.
4948
/// </summary>
5049
/// <param name='vaultName'>
5150
/// The name of the recovery services vault.

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ public static partial class BackupOperationResultsOperationsExtensions
1414
{
1515
/// <summary>
1616
/// Provides the status of the delete operations such as deleting backed up
17-
/// item. Once the operation has started, the
18-
/// status code in the response would be Accepted. It will continue to be in
19-
/// this state till it reaches completion. On
20-
/// successful completion, the status code will be OK. This method expects
21-
/// OperationID as an argument. OperationID is
22-
/// part of the Location header of the operation response.
17+
/// item. Once the operation has started, the status code in the response would
18+
/// be Accepted. It will continue to be in this state till it reaches
19+
/// completion. On successful completion, the status code will be OK. This
20+
/// method expects OperationID as an argument. OperationID is part of the
21+
/// Location header of the operation response.
2322
/// </summary>
2423
/// <param name='operations'>
2524
/// The operations group for this extension method.
@@ -41,12 +40,11 @@ public static void Get(this IBackupOperationResultsOperations operations, string
4140

4241
/// <summary>
4342
/// Provides the status of the delete operations such as deleting backed up
44-
/// item. Once the operation has started, the
45-
/// status code in the response would be Accepted. It will continue to be in
46-
/// this state till it reaches completion. On
47-
/// successful completion, the status code will be OK. This method expects
48-
/// OperationID as an argument. OperationID is
49-
/// part of the Location header of the operation response.
43+
/// item. Once the operation has started, the status code in the response would
44+
/// be Accepted. It will continue to be in this state till it reaches
45+
/// completion. On successful completion, the status code will be OK. This
46+
/// method expects OperationID as an argument. OperationID is part of the
47+
/// Location header of the operation response.
5048
/// </summary>
5149
/// <param name='operations'>
5250
/// The operations group for this extension method.

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ internal BackupOperationStatusesOperations (RecoveryServicesBackupClient client)
4040

4141
/// <summary>
4242
/// Fetches the status of an operation such as triggering a backup, restore.
43-
/// The status can be in progress, completed
44-
/// or failed. You can refer to the OperationStatus enum for all the possible
45-
/// states of an operation. Some operations
46-
/// create jobs. This method returns the list of jobs when the operation is
47-
/// complete.
43+
/// The status can be in progress, completed or failed. You can refer to the
44+
/// OperationStatus enum for all the possible states of an operation. Some
45+
/// operations create jobs. This method returns the list of jobs when the
46+
/// operation is complete.
4847
/// </summary>
4948
/// <param name='vaultName'>
5049
/// The name of the recovery services vault.

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ public static partial class BackupOperationStatusesOperationsExtensions
1414
{
1515
/// <summary>
1616
/// Fetches the status of an operation such as triggering a backup, restore.
17-
/// The status can be in progress, completed
18-
/// or failed. You can refer to the OperationStatus enum for all the possible
19-
/// states of an operation. Some operations
20-
/// create jobs. This method returns the list of jobs when the operation is
21-
/// complete.
17+
/// The status can be in progress, completed or failed. You can refer to the
18+
/// OperationStatus enum for all the possible states of an operation. Some
19+
/// operations create jobs. This method returns the list of jobs when the
20+
/// operation is complete.
2221
/// </summary>
2322
/// <param name='operations'>
2423
/// The operations group for this extension method.
@@ -40,11 +39,10 @@ public static OperationStatus Get(this IBackupOperationStatusesOperations operat
4039

4140
/// <summary>
4241
/// Fetches the status of an operation such as triggering a backup, restore.
43-
/// The status can be in progress, completed
44-
/// or failed. You can refer to the OperationStatus enum for all the possible
45-
/// states of an operation. Some operations
46-
/// create jobs. This method returns the list of jobs when the operation is
47-
/// complete.
42+
/// The status can be in progress, completed or failed. You can refer to the
43+
/// OperationStatus enum for all the possible states of an operation. Some
44+
/// operations create jobs. This method returns the list of jobs when the
45+
/// operation is complete.
4846
/// </summary>
4947
/// <param name='operations'>
5048
/// The operations group for this extension method.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ internal BackupPoliciesOperations (RecoveryServicesBackupClient client)
4040

4141
/// <summary>
4242
/// Lists of backup policies associated with Recovery Services Vault. API
43-
/// provides pagination parameters to fetch
44-
/// scoped results.
43+
/// provides pagination parameters to fetch scoped results.
4544
/// </summary>
4645
/// <param name='odataQuery'>
4746
///
@@ -269,8 +268,7 @@ internal BackupPoliciesOperations (RecoveryServicesBackupClient client)
269268
}
270269
/// <summary>
271270
/// Lists of backup policies associated with Recovery Services Vault. API
272-
/// provides pagination parameters to fetch
273-
/// scoped results.
271+
/// provides pagination parameters to fetch scoped results.
274272
/// </summary>
275273
/// <param name='nextPageLink'>
276274
/// The NextLink from the previous successful call to List operation.

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public static partial class BackupPoliciesOperationsExtensions
1414
{
1515
/// <summary>
1616
/// Lists of backup policies associated with Recovery Services Vault. API
17-
/// provides pagination parameters to fetch
18-
/// scoped results.
17+
/// provides pagination parameters to fetch scoped results.
1918
/// </summary>
2019
/// <param name='operations'>
2120
/// The operations group for this extension method.
@@ -37,8 +36,7 @@ public static partial class BackupPoliciesOperationsExtensions
3736

3837
/// <summary>
3938
/// Lists of backup policies associated with Recovery Services Vault. API
40-
/// provides pagination parameters to fetch
41-
/// scoped results.
39+
/// provides pagination parameters to fetch scoped results.
4240
/// </summary>
4341
/// <param name='operations'>
4442
/// The operations group for this extension method.
@@ -65,8 +63,7 @@ public static partial class BackupPoliciesOperationsExtensions
6563
}
6664
/// <summary>
6765
/// Lists of backup policies associated with Recovery Services Vault. API
68-
/// provides pagination parameters to fetch
69-
/// scoped results.
66+
/// provides pagination parameters to fetch scoped results.
7067
/// </summary>
7168
/// <param name='operations'>
7269
/// The operations group for this extension method.
@@ -81,8 +78,7 @@ public static Microsoft.Rest.Azure.IPage<ProtectionPolicyResource> ListNext(this
8178

8279
/// <summary>
8380
/// Lists of backup policies associated with Recovery Services Vault. API
84-
/// provides pagination parameters to fetch
85-
/// scoped results.
81+
/// provides pagination parameters to fetch scoped results.
8682
/// </summary>
8783
/// <param name='operations'>
8884
/// The operations group for this extension method.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ internal BackupProtectableItemsOperations (RecoveryServicesBackupClient client)
4040

4141
/// <summary>
4242
/// Provides a pageable list of protectable objects within your subscription
43-
/// according to the query filter and the
44-
/// pagination parameters.
43+
/// according to the query filter and the pagination parameters.
4544
/// </summary>
4645
/// <param name='odataQuery'>
4746
///
@@ -278,8 +277,7 @@ internal BackupProtectableItemsOperations (RecoveryServicesBackupClient client)
278277
}
279278
/// <summary>
280279
/// Provides a pageable list of protectable objects within your subscription
281-
/// according to the query filter and the
282-
/// pagination parameters.
280+
/// according to the query filter and the pagination parameters.
283281
/// </summary>
284282
/// <param name='nextPageLink'>
285283
/// The NextLink from the previous successful call to List operation.

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public static partial class BackupProtectableItemsOperationsExtensions
1414
{
1515
/// <summary>
1616
/// Provides a pageable list of protectable objects within your subscription
17-
/// according to the query filter and the
18-
/// pagination parameters.
17+
/// according to the query filter and the pagination parameters.
1918
/// </summary>
2019
/// <param name='operations'>
2120
/// The operations group for this extension method.
@@ -40,8 +39,7 @@ public static partial class BackupProtectableItemsOperationsExtensions
4039

4140
/// <summary>
4241
/// Provides a pageable list of protectable objects within your subscription
43-
/// according to the query filter and the
44-
/// pagination parameters.
42+
/// according to the query filter and the pagination parameters.
4543
/// </summary>
4644
/// <param name='operations'>
4745
/// The operations group for this extension method.
@@ -71,8 +69,7 @@ public static partial class BackupProtectableItemsOperationsExtensions
7169
}
7270
/// <summary>
7371
/// Provides a pageable list of protectable objects within your subscription
74-
/// according to the query filter and the
75-
/// pagination parameters.
72+
/// according to the query filter and the pagination parameters.
7673
/// </summary>
7774
/// <param name='operations'>
7875
/// The operations group for this extension method.
@@ -87,8 +84,7 @@ public static Microsoft.Rest.Azure.IPage<WorkloadProtectableItemResource> ListNe
8784

8885
/// <summary>
8986
/// Provides a pageable list of protectable objects within your subscription
90-
/// according to the query filter and the
91-
/// pagination parameters.
87+
/// according to the query filter and the pagination parameters.
9288
/// </summary>
9389
/// <param name='operations'>
9490
/// The operations group for this extension method.

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

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
257257
/// The name of the resource group where the recovery services vault is
258258
/// present.
259259
/// </param>
260+
/// <param name='xMsAuthorizationAuxiliary'>
261+
///
262+
/// </param>
260263
/// <param name='parameters'>
261264
/// resource config request
262265
/// </param>
@@ -281,7 +284,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
281284
/// <return>
282285
/// A response object containing the response body and response headers.
283286
/// </return>
284-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<BackupResourceVaultConfigResource>> UpdateWithHttpMessagesAsync(string vaultName, string resourceGroupName, BackupResourceVaultConfigResource parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
287+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<BackupResourceVaultConfigResource>> UpdateWithHttpMessagesAsync(string vaultName, string resourceGroupName, BackupResourceVaultConfigResource parameters, string xMsAuthorizationAuxiliary = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
285288
{
286289

287290

@@ -311,6 +314,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
311314
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
312315
}
313316

317+
314318
// Tracing
315319
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
316320
string _invocationId = null;
@@ -320,6 +324,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
320324
System.Collections.Generic.Dictionary<string, object> tracingParameters = new System.Collections.Generic.Dictionary<string, object>();
321325
tracingParameters.Add("vaultName", vaultName);
322326
tracingParameters.Add("resourceGroupName", resourceGroupName);
327+
tracingParameters.Add("xMsAuthorizationAuxiliary", xMsAuthorizationAuxiliary);
323328

324329
tracingParameters.Add("parameters", parameters);
325330

@@ -361,6 +366,14 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
361366
}
362367
_httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
363368
}
369+
if (xMsAuthorizationAuxiliary != null)
370+
{
371+
if (_httpRequest.Headers.Contains("x-ms-authorization-auxiliary"))
372+
{
373+
_httpRequest.Headers.Remove("x-ms-authorization-auxiliary");
374+
}
375+
_httpRequest.Headers.TryAddWithoutValidation("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary);
376+
}
364377

365378
if (customHeaders != null)
366379
{
@@ -480,6 +493,9 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
480493
/// The name of the resource group where the recovery services vault is
481494
/// present.
482495
/// </param>
496+
/// <param name='xMsAuthorizationAuxiliary'>
497+
///
498+
/// </param>
483499
/// <param name='parameters'>
484500
/// resource config request
485501
/// </param>
@@ -504,7 +520,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
504520
/// <return>
505521
/// A response object containing the response body and response headers.
506522
/// </return>
507-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<BackupResourceVaultConfigResource>> PutWithHttpMessagesAsync(string vaultName, string resourceGroupName, BackupResourceVaultConfigResource parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
523+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<BackupResourceVaultConfigResource>> PutWithHttpMessagesAsync(string vaultName, string resourceGroupName, BackupResourceVaultConfigResource parameters, string xMsAuthorizationAuxiliary = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
508524
{
509525

510526

@@ -535,6 +551,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
535551
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
536552
}
537553

554+
538555
// Tracing
539556
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
540557
string _invocationId = null;
@@ -544,6 +561,7 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
544561
System.Collections.Generic.Dictionary<string, object> tracingParameters = new System.Collections.Generic.Dictionary<string, object>();
545562
tracingParameters.Add("vaultName", vaultName);
546563
tracingParameters.Add("resourceGroupName", resourceGroupName);
564+
tracingParameters.Add("xMsAuthorizationAuxiliary", xMsAuthorizationAuxiliary);
547565

548566
tracingParameters.Add("parameters", parameters);
549567

@@ -585,6 +603,14 @@ internal BackupResourceVaultConfigsOperations (RecoveryServicesBackupClient clie
585603
}
586604
_httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
587605
}
606+
if (xMsAuthorizationAuxiliary != null)
607+
{
608+
if (_httpRequest.Headers.Contains("x-ms-authorization-auxiliary"))
609+
{
610+
_httpRequest.Headers.Remove("x-ms-authorization-auxiliary");
611+
}
612+
_httpRequest.Headers.TryAddWithoutValidation("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary);
613+
}
588614

589615
if (customHeaders != null)
590616
{

0 commit comments

Comments
 (0)