Skip to content

Commit

Permalink
mgmt, compute, improve beginCreate javadoc and error message (Azure#2…
Browse files Browse the repository at this point in the history
…6799)

* mgmt, compute, improve beginCreate javadoc and error message

* regen for javadoc fix in codegen

* test case for failure in beginCreate
  • Loading branch information
weidongxu-microsoft authored Jan 30, 2022
1 parent 9126604 commit d4e2e3b
Show file tree
Hide file tree
Showing 90 changed files with 1,561 additions and 1,569 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<AvailabilitySetInner> listAsync(String expand);
Expand All @@ -277,7 +277,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<AvailabilitySetInner> listAsync();
Expand All @@ -287,7 +287,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailabilitySetInner> list();
Expand All @@ -300,7 +300,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailabilitySetInner> list(String expand, Context context);
Expand All @@ -312,7 +312,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<AvailabilitySetInner> listByResourceGroupAsync(String resourceGroupName);
Expand All @@ -324,7 +324,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -337,7 +337,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Availability Set operation response.
* @return the List Availability Set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName, Context context);
Expand All @@ -351,7 +351,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Virtual Machine operation response.
* @return the List Virtual Machine operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName);
Expand All @@ -365,7 +365,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Virtual Machine operation response.
* @return the List Virtual Machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName);
Expand All @@ -380,7 +380,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Virtual Machine operation response.
* @return the List Virtual Machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<VirtualMachineSizeInner> listAvailableSizes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ Response<CapacityReservationGroupInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<CapacityReservationGroupInner> listByResourceGroupAsync(
Expand All @@ -347,7 +348,8 @@ PagedFlux<CapacityReservationGroupInner> listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<CapacityReservationGroupInner> listByResourceGroupAsync(String resourceGroupName);
Expand All @@ -360,7 +362,8 @@ PagedFlux<CapacityReservationGroupInner> listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CapacityReservationGroupInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -377,7 +380,8 @@ PagedFlux<CapacityReservationGroupInner> listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CapacityReservationGroupInner> listByResourceGroup(
Expand All @@ -393,7 +397,8 @@ PagedIterable<CapacityReservationGroupInner> listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<CapacityReservationGroupInner> listAsync(ExpandTypesForGetCapacityReservationGroups expand);
Expand All @@ -404,7 +409,8 @@ PagedIterable<CapacityReservationGroupInner> listByResourceGroup(
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<CapacityReservationGroupInner> listAsync();
Expand All @@ -415,7 +421,8 @@ PagedIterable<CapacityReservationGroupInner> listByResourceGroup(
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CapacityReservationGroupInner> list();
Expand All @@ -431,7 +438,8 @@ PagedIterable<CapacityReservationGroupInner> listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List capacity reservation group with resource group response.
* @return the List capacity reservation group with resource group response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CapacityReservationGroupInner> list(
Expand Down
Loading

0 comments on commit d4e2e3b

Please sign in to comment.