Interface CloudServicesClient

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<CloudServiceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>

public interface CloudServicesClient extends com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<CloudServiceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in CloudServicesClient.
  • Method Details

    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String cloudServiceName, CloudServiceInner parameters)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      describes the cloud service along with Response 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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginCreateOrUpdateAsync(String resourceGroupName, String cloudServiceName, CloudServiceInner parameters)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      the PollerFlux for polling of describes the cloud service.
      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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginCreateOrUpdateAsync(String resourceGroupName, String cloudServiceName)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of describes the cloud service.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginCreateOrUpdate(String resourceGroupName, String cloudServiceName)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of describes the cloud service.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginCreateOrUpdate(String resourceGroupName, String cloudServiceName, CloudServiceInner parameters, com.azure.core.util.Context context)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of describes the cloud service.
      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<CloudServiceInner> createOrUpdateAsync(String resourceGroupName, String cloudServiceName, CloudServiceInner parameters)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      describes the cloud service 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.
    • createOrUpdateAsync

      Mono<CloudServiceInner> createOrUpdateAsync(String resourceGroupName, String cloudServiceName)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service 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

      CloudServiceInner createOrUpdate(String resourceGroupName, String cloudServiceName)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service.
      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

      CloudServiceInner createOrUpdate(String resourceGroupName, String cloudServiceName, CloudServiceInner parameters, com.azure.core.util.Context context)
      Create or update a cloud service. Please note some properties can be set only during cloud service creation.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      context - The context to associate with this operation.
      Returns:
      describes the cloud service.
      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<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String cloudServiceName, CloudServiceUpdate parameters)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      describes the cloud service along with Response 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.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginUpdateAsync(String resourceGroupName, String cloudServiceName, CloudServiceUpdate parameters)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      the PollerFlux for polling of describes the cloud service.
      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.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginUpdateAsync(String resourceGroupName, String cloudServiceName)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of describes the cloud service.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginUpdate(String resourceGroupName, String cloudServiceName)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of describes the cloud service.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CloudServiceInner>, CloudServiceInner> beginUpdate(String resourceGroupName, String cloudServiceName, CloudServiceUpdate parameters, com.azure.core.util.Context context)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of describes the cloud service.
      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<CloudServiceInner> updateAsync(String resourceGroupName, String cloudServiceName, CloudServiceUpdate parameters)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      Returns:
      describes the cloud service 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.
    • updateAsync

      Mono<CloudServiceInner> updateAsync(String resourceGroupName, String cloudServiceName)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service 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

      CloudServiceInner update(String resourceGroupName, String cloudServiceName)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service.
      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

      CloudServiceInner update(String resourceGroupName, String cloudServiceName, CloudServiceUpdate parameters, com.azure.core.util.Context context)
      Update a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - The cloud service object.
      context - The context to associate with this operation.
      Returns:
      describes the cloud service.
      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<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String cloudServiceName)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the Response 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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String cloudServiceName)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String cloudServiceName)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
      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 cloudServiceName)
      Deletes a cloud service.
      Specified by:
      deleteAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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 cloudServiceName)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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 cloudServiceName, com.azure.core.util.Context context)
      Deletes a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      context - The context to associate with this operation.
      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<CloudServiceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String cloudServiceName)
      Display information about a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service along with Response 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.
    • getByResourceGroupAsync

      Mono<CloudServiceInner> getByResourceGroupAsync(String resourceGroupName, String cloudServiceName)
      Display information about a cloud service.
      Specified by:
      getByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<CloudServiceInner>
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<CloudServiceInner> getByResourceGroupWithResponse(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Display information about a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      context - The context to associate with this operation.
      Returns:
      describes the cloud service 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.
    • getByResourceGroup

      CloudServiceInner getByResourceGroup(String resourceGroupName, String cloudServiceName)
      Display information about a cloud service.
      Specified by:
      getByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<CloudServiceInner>
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      describes the cloud service.
      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.
    • getInstanceViewWithResponseAsync

      Mono<com.azure.core.http.rest.Response<CloudServiceInstanceViewInner>> getInstanceViewWithResponseAsync(String resourceGroupName, String cloudServiceName)
      Gets the status of a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the status of a cloud service along with Response 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.
    • getInstanceViewAsync

      Mono<CloudServiceInstanceViewInner> getInstanceViewAsync(String resourceGroupName, String cloudServiceName)
      Gets the status of a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the status of a cloud service 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.
    • getInstanceViewWithResponse

      com.azure.core.http.rest.Response<CloudServiceInstanceViewInner> getInstanceViewWithResponse(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Gets the status of a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      context - The context to associate with this operation.
      Returns:
      the status of a cloud service 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.
    • getInstanceView

      CloudServiceInstanceViewInner getInstanceView(String resourceGroupName, String cloudServiceName)
      Gets the status of a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the status of a cloud service.
      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<CloudServiceInner> listAsync()
      Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Specified by:
      listAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>
      Returns:
      a list of all cloud services in the subscription, regardless of the associated resource group 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<CloudServiceInner> list()
      Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Specified by:
      list in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>
      Returns:
      a list of all cloud services in the subscription, regardless of the associated resource group 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<CloudServiceInner> list(com.azure.core.util.Context context)
      Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of all cloud services in the subscription, regardless of the associated resource group 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<CloudServiceInner> listByResourceGroupAsync(String resourceGroupName)
      Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Specified by:
      listByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>
      Parameters:
      resourceGroupName - Name of the resource group.
      Returns:
      a list of all cloud services under a resource group 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<CloudServiceInner> listByResourceGroup(String resourceGroupName)
      Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Specified by:
      listByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<CloudServiceInner>
      Parameters:
      resourceGroupName - Name of the resource group.
      Returns:
      a list of all cloud services under a resource group 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<CloudServiceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
      Parameters:
      resourceGroupName - Name of the resource group.
      context - The context to associate with this operation.
      Returns:
      a list of all cloud services under a resource group 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.
    • startWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String cloudServiceName)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the Response 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.
    • beginStartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginStartAsync(String resourceGroupName, String cloudServiceName)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginStart(String resourceGroupName, String cloudServiceName)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginStart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginStart(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startAsync

      Mono<Void> startAsync(String resourceGroupName, String cloudServiceName)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • start

      void start(String resourceGroupName, String cloudServiceName)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • start

      void start(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Starts the cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      context - The context to associate with this operation.
      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.
    • powerOffWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupName, String cloudServiceName)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the Response 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.
    • beginPowerOffAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOffAsync(String resourceGroupName, String cloudServiceName)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginPowerOff

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOff(String resourceGroupName, String cloudServiceName)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginPowerOff

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginPowerOff(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • powerOffAsync

      Mono<Void> powerOffAsync(String resourceGroupName, String cloudServiceName)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • powerOff

      void powerOff(String resourceGroupName, String cloudServiceName)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • powerOff

      void powerOff(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      context - The context to associate with this operation.
      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.
    • restartWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the Response 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.
    • beginRestartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRestartAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginRestartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRestartAsync(String resourceGroupName, String cloudServiceName)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRestart(String resourceGroupName, String cloudServiceName)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRestart(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restartAsync

      Mono<Void> restartAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      A Mono that 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.
    • restartAsync

      Mono<Void> restartAsync(String resourceGroupName, String cloudServiceName)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • restart

      void restart(String resourceGroupName, String cloudServiceName)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • restart

      void restart(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Restarts one or more role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      context - The context to associate with this operation.
      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.
    • reimageWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the Response 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.
    • beginReimageAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginReimageAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginReimageAsync(String resourceGroupName, String cloudServiceName)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginReimage

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimage(String resourceGroupName, String cloudServiceName)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginReimage

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginReimage(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • reimageAsync

      Mono<Void> reimageAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      A Mono that 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.
    • reimageAsync

      Mono<Void> reimageAsync(String resourceGroupName, String cloudServiceName)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • reimage

      void reimage(String resourceGroupName, String cloudServiceName)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • reimage

      void reimage(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      context - The context to associate with this operation.
      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.
    • rebuildWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> rebuildWithResponseAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the Response 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.
    • beginRebuildAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRebuildAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginRebuildAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRebuildAsync(String resourceGroupName, String cloudServiceName)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginRebuild

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRebuild(String resourceGroupName, String cloudServiceName)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginRebuild

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRebuild(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • rebuildAsync

      Mono<Void> rebuildAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      A Mono that 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.
    • rebuildAsync

      Mono<Void> rebuildAsync(String resourceGroupName, String cloudServiceName)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • rebuild

      void rebuild(String resourceGroupName, String cloudServiceName)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • rebuild

      void rebuild(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      context - The context to associate with this operation.
      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.
    • deleteInstancesWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteInstancesWithResponseAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the Response 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.
    • beginDeleteInstancesAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteInstancesAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginDeleteInstancesAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteInstancesAsync(String resourceGroupName, String cloudServiceName)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginDeleteInstances

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteInstances(String resourceGroupName, String cloudServiceName)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDeleteInstances

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteInstances(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteInstancesAsync

      Mono<Void> deleteInstancesAsync(String resourceGroupName, String cloudServiceName, RoleInstances parameters)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      Returns:
      A Mono that 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.
    • deleteInstancesAsync

      Mono<Void> deleteInstancesAsync(String resourceGroupName, String cloudServiceName)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      Returns:
      A Mono that 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.
    • deleteInstances

      void deleteInstances(String resourceGroupName, String cloudServiceName)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      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.
    • deleteInstances

      void deleteInstances(String resourceGroupName, String cloudServiceName, RoleInstances parameters, com.azure.core.util.Context context)
      Deletes role instances in a cloud service.
      Parameters:
      resourceGroupName - Name of the resource group.
      cloudServiceName - Name of the cloud service.
      parameters - List of cloud service role instance names.
      context - The context to associate with this operation.
      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.