|
13 | 13 | import com.azure.core.util.Context; |
14 | 14 | import com.azure.core.util.polling.PollerFlux; |
15 | 15 | import com.azure.core.util.polling.SyncPoller; |
| 16 | +import com.azure.resourcemanager.keyvault.fluent.models.CheckMhsmNameAvailabilityResultInner; |
16 | 17 | import com.azure.resourcemanager.keyvault.fluent.models.DeletedManagedHsmInner; |
17 | 18 | import com.azure.resourcemanager.keyvault.fluent.models.ManagedHsmInner; |
| 19 | +import com.azure.resourcemanager.keyvault.models.CheckMhsmNameAvailabilityParameters; |
18 | 20 | import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; |
19 | 21 | import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; |
20 | 22 | import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; |
@@ -357,27 +359,27 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate( |
357 | 359 | * |
358 | 360 | * @param resourceGroupName Name of the resource group that contains the managed HSM pool. |
359 | 361 | * @param name The name of the managed HSM Pool. |
| 362 | + * @param context The context to associate with this operation. |
360 | 363 | * @throws IllegalArgumentException thrown if parameters fail the validation. |
361 | 364 | * @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server. |
362 | 365 | * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
363 | | - * @return the specified managed HSM Pool. |
| 366 | + * @return the specified managed HSM Pool along with {@link Response}. |
364 | 367 | */ |
365 | 368 | @ServiceMethod(returns = ReturnType.SINGLE) |
366 | | - ManagedHsmInner getByResourceGroup(String resourceGroupName, String name); |
| 369 | + Response<ManagedHsmInner> getByResourceGroupWithResponse(String resourceGroupName, String name, Context context); |
367 | 370 |
|
368 | 371 | /** |
369 | 372 | * Gets the specified managed HSM Pool. |
370 | 373 | * |
371 | 374 | * @param resourceGroupName Name of the resource group that contains the managed HSM pool. |
372 | 375 | * @param name The name of the managed HSM Pool. |
373 | | - * @param context The context to associate with this operation. |
374 | 376 | * @throws IllegalArgumentException thrown if parameters fail the validation. |
375 | 377 | * @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server. |
376 | 378 | * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
377 | | - * @return the specified managed HSM Pool along with {@link Response}. |
| 379 | + * @return the specified managed HSM Pool. |
378 | 380 | */ |
379 | 381 | @ServiceMethod(returns = ReturnType.SINGLE) |
380 | | - Response<ManagedHsmInner> getByResourceGroupWithResponse(String resourceGroupName, String name, Context context); |
| 382 | + ManagedHsmInner getByResourceGroup(String resourceGroupName, String name); |
381 | 383 |
|
382 | 384 | /** |
383 | 385 | * The List operation gets information about the managed HSM Pools associated with the subscription and within the |
@@ -542,27 +544,27 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate( |
542 | 544 | * |
543 | 545 | * @param name The name of the deleted managed HSM. |
544 | 546 | * @param location The location of the deleted managed HSM. |
| 547 | + * @param context The context to associate with this operation. |
545 | 548 | * @throws IllegalArgumentException thrown if parameters fail the validation. |
546 | 549 | * @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server. |
547 | 550 | * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
548 | | - * @return the specified deleted managed HSM. |
| 551 | + * @return the specified deleted managed HSM along with {@link Response}. |
549 | 552 | */ |
550 | 553 | @ServiceMethod(returns = ReturnType.SINGLE) |
551 | | - DeletedManagedHsmInner getDeleted(String name, String location); |
| 554 | + Response<DeletedManagedHsmInner> getDeletedWithResponse(String name, String location, Context context); |
552 | 555 |
|
553 | 556 | /** |
554 | 557 | * Gets the specified deleted managed HSM. |
555 | 558 | * |
556 | 559 | * @param name The name of the deleted managed HSM. |
557 | 560 | * @param location The location of the deleted managed HSM. |
558 | | - * @param context The context to associate with this operation. |
559 | 561 | * @throws IllegalArgumentException thrown if parameters fail the validation. |
560 | 562 | * @throws com.azure.resourcemanager.keyvault.models.ErrorException thrown if the request is rejected by server. |
561 | 563 | * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
562 | | - * @return the specified deleted managed HSM along with {@link Response}. |
| 564 | + * @return the specified deleted managed HSM. |
563 | 565 | */ |
564 | 566 | @ServiceMethod(returns = ReturnType.SINGLE) |
565 | | - Response<DeletedManagedHsmInner> getDeletedWithResponse(String name, String location, Context context); |
| 567 | + DeletedManagedHsmInner getDeleted(String name, String location); |
566 | 568 |
|
567 | 569 | /** |
568 | 570 | * Permanently deletes the specified managed HSM. |
@@ -654,4 +656,57 @@ SyncPoller<PollResult<ManagedHsmInner>, ManagedHsmInner> beginUpdate( |
654 | 656 | */ |
655 | 657 | @ServiceMethod(returns = ReturnType.SINGLE) |
656 | 658 | void purgeDeleted(String name, String location, Context context); |
| 659 | + |
| 660 | + /** |
| 661 | + * Checks that the managed hsm name is valid and is not already in use. |
| 662 | + * |
| 663 | + * @param mhsmName The name of the managed hsm. |
| 664 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 665 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 666 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 667 | + * @return the CheckMhsmNameAvailability operation response along with {@link Response} on successful completion of |
| 668 | + * {@link Mono}. |
| 669 | + */ |
| 670 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 671 | + Mono<Response<CheckMhsmNameAvailabilityResultInner>> checkMhsmNameAvailabilityWithResponseAsync( |
| 672 | + CheckMhsmNameAvailabilityParameters mhsmName); |
| 673 | + |
| 674 | + /** |
| 675 | + * Checks that the managed hsm name is valid and is not already in use. |
| 676 | + * |
| 677 | + * @param mhsmName The name of the managed hsm. |
| 678 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 679 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 680 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 681 | + * @return the CheckMhsmNameAvailability operation response on successful completion of {@link Mono}. |
| 682 | + */ |
| 683 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 684 | + Mono<CheckMhsmNameAvailabilityResultInner> checkMhsmNameAvailabilityAsync( |
| 685 | + CheckMhsmNameAvailabilityParameters mhsmName); |
| 686 | + |
| 687 | + /** |
| 688 | + * Checks that the managed hsm name is valid and is not already in use. |
| 689 | + * |
| 690 | + * @param mhsmName The name of the managed hsm. |
| 691 | + * @param context The context to associate with this operation. |
| 692 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 693 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 694 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 695 | + * @return the CheckMhsmNameAvailability operation response along with {@link Response}. |
| 696 | + */ |
| 697 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 698 | + Response<CheckMhsmNameAvailabilityResultInner> checkMhsmNameAvailabilityWithResponse( |
| 699 | + CheckMhsmNameAvailabilityParameters mhsmName, Context context); |
| 700 | + |
| 701 | + /** |
| 702 | + * Checks that the managed hsm name is valid and is not already in use. |
| 703 | + * |
| 704 | + * @param mhsmName The name of the managed hsm. |
| 705 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 706 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 707 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 708 | + * @return the CheckMhsmNameAvailability operation response. |
| 709 | + */ |
| 710 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 711 | + CheckMhsmNameAvailabilityResultInner checkMhsmNameAvailability(CheckMhsmNameAvailabilityParameters mhsmName); |
657 | 712 | } |
0 commit comments