|
15 | 15 | import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; |
16 | 16 | import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest; |
17 | 17 | import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; |
| 18 | +import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreRequestObject; |
18 | 19 | import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest; |
19 | 20 | import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; |
| 21 | +import com.azure.resourcemanager.dataprotection.models.ValidateCrossRegionRestoreRequestObject; |
20 | 22 | import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest; |
21 | 23 | import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; |
22 | 24 |
|
@@ -380,6 +382,135 @@ Response<BackupInstanceResourceInner> getBackupInstanceOperationResultWithRespon |
380 | 382 | BackupInstanceResourceInner getBackupInstanceOperationResult( |
381 | 383 | String resourceGroupName, String vaultName, String backupInstanceName, String operationId); |
382 | 384 |
|
| 385 | + /** |
| 386 | + * The triggerCrossRegionRestore operation. |
| 387 | + * |
| 388 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 389 | + * @param location The location parameter. |
| 390 | + * @param parameters Request body for trigger CRR operation. |
| 391 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 392 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 393 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 394 | + * @return the {@link SyncPoller} for polling of operationJobExtendedInfo. |
| 395 | + */ |
| 396 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 397 | + SyncPoller<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner> beginTriggerCrossRegionRestore( |
| 398 | + String resourceGroupName, String location, CrossRegionRestoreRequestObject parameters); |
| 399 | + |
| 400 | + /** |
| 401 | + * The triggerCrossRegionRestore operation. |
| 402 | + * |
| 403 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 404 | + * @param location The location parameter. |
| 405 | + * @param parameters Request body for trigger CRR operation. |
| 406 | + * @param context The context to associate with this operation. |
| 407 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 408 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 409 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 410 | + * @return the {@link SyncPoller} for polling of operationJobExtendedInfo. |
| 411 | + */ |
| 412 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 413 | + SyncPoller<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner> beginTriggerCrossRegionRestore( |
| 414 | + String resourceGroupName, String location, CrossRegionRestoreRequestObject parameters, Context context); |
| 415 | + |
| 416 | + /** |
| 417 | + * The triggerCrossRegionRestore operation. |
| 418 | + * |
| 419 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 420 | + * @param location The location parameter. |
| 421 | + * @param parameters Request body for trigger CRR operation. |
| 422 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 423 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 424 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 425 | + * @return operationJobExtendedInfo. |
| 426 | + */ |
| 427 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 428 | + OperationJobExtendedInfoInner triggerCrossRegionRestore( |
| 429 | + String resourceGroupName, String location, CrossRegionRestoreRequestObject parameters); |
| 430 | + |
| 431 | + /** |
| 432 | + * The triggerCrossRegionRestore operation. |
| 433 | + * |
| 434 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 435 | + * @param location The location parameter. |
| 436 | + * @param parameters Request body for trigger CRR operation. |
| 437 | + * @param context The context to associate with this operation. |
| 438 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 439 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 440 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 441 | + * @return operationJobExtendedInfo. |
| 442 | + */ |
| 443 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 444 | + OperationJobExtendedInfoInner triggerCrossRegionRestore( |
| 445 | + String resourceGroupName, String location, CrossRegionRestoreRequestObject parameters, Context context); |
| 446 | + |
| 447 | + /** |
| 448 | + * The validateCrossRegionRestore operation. |
| 449 | + * |
| 450 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 451 | + * @param location The location parameter. |
| 452 | + * @param parameters Request body for operation. |
| 453 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 454 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 455 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 456 | + * @return the {@link SyncPoller} for polling of operationJobExtendedInfo. |
| 457 | + */ |
| 458 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 459 | + SyncPoller<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner> |
| 460 | + beginValidateCrossRegionRestore( |
| 461 | + String resourceGroupName, String location, ValidateCrossRegionRestoreRequestObject parameters); |
| 462 | + |
| 463 | + /** |
| 464 | + * The validateCrossRegionRestore operation. |
| 465 | + * |
| 466 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 467 | + * @param location The location parameter. |
| 468 | + * @param parameters Request body for operation. |
| 469 | + * @param context The context to associate with this operation. |
| 470 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 471 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 472 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 473 | + * @return the {@link SyncPoller} for polling of operationJobExtendedInfo. |
| 474 | + */ |
| 475 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 476 | + SyncPoller<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner> |
| 477 | + beginValidateCrossRegionRestore( |
| 478 | + String resourceGroupName, |
| 479 | + String location, |
| 480 | + ValidateCrossRegionRestoreRequestObject parameters, |
| 481 | + Context context); |
| 482 | + |
| 483 | + /** |
| 484 | + * The validateCrossRegionRestore operation. |
| 485 | + * |
| 486 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 487 | + * @param location The location parameter. |
| 488 | + * @param parameters Request body for operation. |
| 489 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 490 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 491 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 492 | + * @return operationJobExtendedInfo. |
| 493 | + */ |
| 494 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 495 | + OperationJobExtendedInfoInner validateCrossRegionRestore( |
| 496 | + String resourceGroupName, String location, ValidateCrossRegionRestoreRequestObject parameters); |
| 497 | + |
| 498 | + /** |
| 499 | + * The validateCrossRegionRestore operation. |
| 500 | + * |
| 501 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 502 | + * @param location The location parameter. |
| 503 | + * @param parameters Request body for operation. |
| 504 | + * @param context The context to associate with this operation. |
| 505 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 506 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 507 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 508 | + * @return operationJobExtendedInfo. |
| 509 | + */ |
| 510 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 511 | + OperationJobExtendedInfoInner validateCrossRegionRestore( |
| 512 | + String resourceGroupName, String location, ValidateCrossRegionRestoreRequestObject parameters, Context context); |
| 513 | + |
383 | 514 | /** |
384 | 515 | * rehydrate recovery point for restore for a BackupInstance. |
385 | 516 | * |
|
0 commit comments