Interface AvailabilitySetsClient
-
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<AvailabilitySetInner>,InnerSupportsListing<AvailabilitySetInner>
public interface AvailabilitySetsClient extends InnerSupportsGet<AvailabilitySetInner>, InnerSupportsListing<AvailabilitySetInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in AvailabilitySetsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AvailabilitySetInnercreateOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)Create or update an availability set.Mono<AvailabilitySetInner>createOrUpdateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)Create or update an availability set.com.azure.core.http.rest.Response<AvailabilitySetInner>createOrUpdateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, com.azure.core.util.Context context)Create or update an availability set.Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>>createOrUpdateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)Create or update an availability set.voiddelete(String resourceGroupName, String availabilitySetName)Delete an availability set.Mono<Void>deleteAsync(String resourceGroupName, String availabilitySetName)Delete an availability set.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)Delete an availability set.Mono<com.azure.core.http.rest.Response<Void>>deleteWithResponseAsync(String resourceGroupName, String availabilitySetName)Delete an availability set.AvailabilitySetInnergetByResourceGroup(String resourceGroupName, String availabilitySetName)Retrieves information about an availability set.Mono<AvailabilitySetInner>getByResourceGroupAsync(String resourceGroupName, String availabilitySetName)Retrieves information about an availability set.com.azure.core.http.rest.Response<AvailabilitySetInner>getByResourceGroupWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)Retrieves information about an availability set.Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>>getByResourceGroupWithResponseAsync(String resourceGroupName, String availabilitySetName)Retrieves information about an availability set.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>list()Lists all availability sets in a subscription.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>list(String expand, com.azure.core.util.Context context)Lists all availability sets in a subscription.com.azure.core.http.rest.PagedFlux<AvailabilitySetInner>listAsync()Lists all availability sets in a subscription.com.azure.core.http.rest.PagedFlux<AvailabilitySetInner>listAsync(String expand)Lists all availability sets in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner>listAvailableSizes(String resourceGroupName, String availabilitySetName)Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner>listAvailableSizes(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner>listAvailableSizesAsync(String resourceGroupName, String availabilitySetName)Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>listByResourceGroup(String resourceGroupName)Lists all availability sets in a resource group.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)Lists all availability sets in a resource group.com.azure.core.http.rest.PagedFlux<AvailabilitySetInner>listByResourceGroupAsync(String resourceGroupName)Lists all availability sets in a resource group.AvailabilitySetInnerupdate(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)Update an availability set.Mono<AvailabilitySetInner>updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)Update an availability set.com.azure.core.http.rest.Response<AvailabilitySetInner>updateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, com.azure.core.util.Context context)Update an availability set.Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>>updateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)Update an availability set.
-
-
-
Method Detail
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
Create or update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Create Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<AvailabilitySetInner> createOrUpdateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
Create or update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Create Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to on
successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
Create or update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Create Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<AvailabilitySetInner> createOrUpdateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, com.azure.core.util.Context context)
Create or update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Create Availability Set operation.context- The context to associate with this operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> updateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
Update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Update Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<AvailabilitySetInner> updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
Update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Update Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to on
successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
AvailabilitySetInner update(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
Update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Update Availability Set operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<AvailabilitySetInner> updateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, com.azure.core.util.Context context)
Update an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.parameters- Parameters supplied to the Update Availability Set operation.context- The context to associate with this operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String availabilitySetName)
Delete an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String availabilitySetName)
Delete an availability set.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String availabilitySetName)
Delete an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
Delete an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String availabilitySetName)
Retrieves information about an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Mono<AvailabilitySetInner> getByResourceGroupAsync(String resourceGroupName, String availabilitySetName)
Retrieves information about an availability set.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<AvailabilitySetInner>- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to on
successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName)
Retrieves information about an availability set.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<AvailabilitySetInner>- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
Retrieves information about an availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.context- The context to associate with this operation.- Returns:
- specifies information about the availability set that the virtual machine should be assigned to along
with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listAsync(String expand)
Lists all availability sets in a subscription.- Parameters:
expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.- Returns:
- the List Availability Set operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listAsync()
Lists all availability sets in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<AvailabilitySetInner>- Returns:
- the List Availability Set operation response as paginated response with
PagedFlux. - Throws:
ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> list()
Lists all availability sets in a subscription.- Specified by:
listin interfaceInnerSupportsListing<AvailabilitySetInner>- Returns:
- the List Availability Set operation response as paginated response with
PagedIterable. - Throws:
ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> list(String expand, com.azure.core.util.Context context)
Lists all availability sets in a subscription.- Parameters:
expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.context- The context to associate with this operation.- Returns:
- the List Availability Set operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listByResourceGroupAsync(String resourceGroupName)
Lists all availability sets in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<AvailabilitySetInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Availability Set operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName)
Lists all availability sets in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<AvailabilitySetInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Availability Set operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<AvailabilitySetInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Lists all availability sets in a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- the List Availability Set operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizesAsync
com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- the List Virtual Machine operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizes
com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.- Returns:
- the List Virtual Machine operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAvailableSizes
com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.- Parameters:
resourceGroupName- The name of the resource group.availabilitySetName- The name of the availability set.context- The context to associate with this operation.- Returns:
- the List Virtual Machine operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-