Interface AvailabilitySetsClient
-
public interface AvailabilitySetsClient
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 com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner>
beginCreateOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body)
Onboards the ScVmm availability set as an Azure resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner>
beginCreateOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body, com.azure.core.util.Context context)
Onboards the ScVmm availability set as an Azure resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String availabilitySetName, Boolean force)
Deregisters the ScVmm availability set from Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String availabilitySetName, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm availability set from Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner>
beginUpdate(String resourceGroupName, String availabilitySetName, ResourcePatch body)
Updates the AvailabilitySets resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner>
beginUpdate(String resourceGroupName, String availabilitySetName, ResourcePatch body, com.azure.core.util.Context context)
Updates the AvailabilitySets resource.AvailabilitySetInner
createOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body)
Onboards the ScVmm availability set as an Azure resource.AvailabilitySetInner
createOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body, com.azure.core.util.Context context)
Onboards the ScVmm availability set as an Azure resource.void
delete(String resourceGroupName, String availabilitySetName)
Deregisters the ScVmm availability set from Azure.void
delete(String resourceGroupName, String availabilitySetName, Boolean force)
Deregisters the ScVmm availability set from Azure.void
delete(String resourceGroupName, String availabilitySetName, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm availability set from Azure.AvailabilitySetInner
getByResourceGroup(String resourceGroupName, String availabilitySetName)
Implements AvailabilitySet GET method.com.azure.core.http.rest.Response<AvailabilitySetInner>
getByResourceGroupWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
Implements AvailabilitySet GET method.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>
list()
List of AvailabilitySets in a subscription.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>
list(com.azure.core.util.Context context)
List of AvailabilitySets in a subscription.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>
listByResourceGroup(String resourceGroupName)
List of AvailabilitySets in a resource group.com.azure.core.http.rest.PagedIterable<AvailabilitySetInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List of AvailabilitySets in a resource group.AvailabilitySetInner
update(String resourceGroupName, String availabilitySetName, ResourcePatch body)
Updates the AvailabilitySets resource.AvailabilitySetInner
update(String resourceGroupName, String availabilitySetName, ResourcePatch body, com.azure.core.util.Context context)
Updates the AvailabilitySets resource.
-
-
-
Method Detail
-
getByResourceGroup
AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName)
Implements AvailabilitySet GET method.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.- Returns:
- the AvailabilitySets resource definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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)
Implements AvailabilitySet GET method.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.context
- The context to associate with this operation.- Returns:
- the AvailabilitySets resource definition along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner> beginCreateOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body)
Onboards the ScVmm availability set as an Azure resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- Request payload.- Returns:
- the
SyncPoller
for polling of the AvailabilitySets resource definition. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner> beginCreateOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner body, com.azure.core.util.Context context)
Onboards the ScVmm availability set as an Azure resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the AvailabilitySets resource definition. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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 body)
Onboards the ScVmm availability set as an Azure resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- Request payload.- Returns:
- the AvailabilitySets resource definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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 body, com.azure.core.util.Context context)
Onboards the ScVmm availability set as an Azure resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the AvailabilitySets resource definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String availabilitySetName, Boolean force)
Deregisters the ScVmm availability set from Azure.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String availabilitySetName, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm availability set from Azure.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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, Boolean force)
Deregisters the ScVmm availability set from Azure.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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)
Deregisters the ScVmm availability set from Azure.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm availability set from Azure.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner> beginUpdate(String resourceGroupName, String availabilitySetName, ResourcePatch body)
Updates the AvailabilitySets resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- AvailabilitySets patch payload.- Returns:
- the
SyncPoller
for polling of the AvailabilitySets resource definition. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AvailabilitySetInner>,AvailabilitySetInner> beginUpdate(String resourceGroupName, String availabilitySetName, ResourcePatch body, com.azure.core.util.Context context)
Updates the AvailabilitySets resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- AvailabilitySets patch payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the AvailabilitySets resource definition. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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, ResourcePatch body)
Updates the AvailabilitySets resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- AvailabilitySets patch payload.- Returns:
- the AvailabilitySets resource definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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, ResourcePatch body, com.azure.core.util.Context context)
Updates the AvailabilitySets resource.- Parameters:
resourceGroupName
- The name of the resource group.availabilitySetName
- Name of the AvailabilitySet.body
- AvailabilitySets patch payload.context
- The context to associate with this operation.- Returns:
- the AvailabilitySets resource definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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)
List of AvailabilitySets in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.- Returns:
- list of AvailabilitySets as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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)
List of AvailabilitySets in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.context
- The context to associate with this operation.- Returns:
- list of AvailabilitySets as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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()
List of AvailabilitySets in a subscription.- Returns:
- list of AvailabilitySets as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- 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(com.azure.core.util.Context context)
List of AvailabilitySets in a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of AvailabilitySets as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-