Interface CloudServiceRoleInstancesClient


  • public interface CloudServiceRoleInstancesClient
    An instance of this class provides access to all the operations defined in CloudServiceRoleInstancesClient.
    • 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<Void>,​Void> beginDelete​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Deletes a role instance from a cloud service.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Deletes a role instance from a cloud service.
      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Deletes a role instance from a cloud service.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRebuild​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRebuild​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginRebuildAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimage​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimage​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginReimageAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestart​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestart​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginRestartAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      void delete​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Deletes a role instance from a cloud service.
      void delete​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Deletes a role instance from a cloud service.
      Mono<Void> deleteAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Deletes a role instance from a cloud service.
      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Deletes a role instance from a cloud service.
      RoleInstanceInner get​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Gets a role instance from a cloud service.
      Mono<RoleInstanceInner> getAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Gets a role instance from a cloud service.
      Mono<RoleInstanceInner> getAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName, InstanceViewTypes expand)
      Gets a role instance from a cloud service.
      RoleInstanceViewInner getInstanceView​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Retrieves information about the run-time state of a role instance in a cloud service.
      Mono<RoleInstanceViewInner> getInstanceViewAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Retrieves information about the run-time state of a role instance in a cloud service.
      com.azure.core.http.rest.Response<RoleInstanceViewInner> getInstanceViewWithResponse​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Retrieves information about the run-time state of a role instance in a cloud service.
      Mono<com.azure.core.http.rest.Response<RoleInstanceViewInner>> getInstanceViewWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Retrieves information about the run-time state of a role instance in a cloud service.
      InputStream getRemoteDesktopFile​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Gets a remote desktop file for a role instance in a cloud service.
      Flux<ByteBuffer> getRemoteDesktopFileAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Gets a remote desktop file for a role instance in a cloud service.
      com.azure.core.http.rest.StreamResponse getRemoteDesktopFileWithResponse​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      Gets a remote desktop file for a role instance in a cloud service.
      Mono<com.azure.core.http.rest.StreamResponse> getRemoteDesktopFileWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      Gets a remote desktop file for a role instance in a cloud service.
      com.azure.core.http.rest.Response<RoleInstanceInner> getWithResponse​(String roleInstanceName, String resourceGroupName, String cloudServiceName, InstanceViewTypes expand, com.azure.core.util.Context context)
      Gets a role instance from a cloud service.
      Mono<com.azure.core.http.rest.Response<RoleInstanceInner>> getWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName, InstanceViewTypes expand)
      Gets a role instance from a cloud service.
      com.azure.core.http.rest.PagedIterable<RoleInstanceInner> list​(String resourceGroupName, String cloudServiceName)
      Gets the list of all role instances in a cloud service.
      com.azure.core.http.rest.PagedIterable<RoleInstanceInner> list​(String resourceGroupName, String cloudServiceName, InstanceViewTypes expand, com.azure.core.util.Context context)
      Gets the list of all role instances in a cloud service.
      com.azure.core.http.rest.PagedFlux<RoleInstanceInner> listAsync​(String resourceGroupName, String cloudServiceName)
      Gets the list of all role instances in a cloud service.
      com.azure.core.http.rest.PagedFlux<RoleInstanceInner> listAsync​(String resourceGroupName, String cloudServiceName, InstanceViewTypes expand)
      Gets the list of all role instances in a cloud service.
      void rebuild​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      void rebuild​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      Mono<Void> rebuildAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> rebuildWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them.
      void reimage​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      void reimage​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Mono<Void> reimageAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> reimageWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
      void restart​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      void restart​(String roleInstanceName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      Mono<Void> restartAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync​(String roleInstanceName, String resourceGroupName, String cloudServiceName)
      The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
    • Method Detail

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String roleInstanceName,
                                                                                          String resourceGroupName,
                                                                                          String cloudServiceName)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                               String resourceGroupName,
                                                                                                                               String cloudServiceName)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                          String resourceGroupName,
                                                                                                                          String cloudServiceName)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                          String resourceGroupName,
                                                                                                                          String cloudServiceName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                               String resourceGroupName,
                               String cloudServiceName)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                    String resourceGroupName,
                    String cloudServiceName)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                    String resourceGroupName,
                    String cloudServiceName,
                    com.azure.core.util.Context context)
        Deletes a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleInstanceInner>> getWithResponseAsync​(String roleInstanceName,
                                                                                        String resourceGroupName,
                                                                                        String cloudServiceName,
                                                                                        InstanceViewTypes expand)
        Gets a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        expand - The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
        Returns:
        a role instance from 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.
      • getAsync

        Mono<RoleInstanceInner> getAsync​(String roleInstanceName,
                                         String resourceGroupName,
                                         String cloudServiceName,
                                         InstanceViewTypes expand)
        Gets a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        expand - The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
        Returns:
        a role instance from 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.
      • getAsync

        Mono<RoleInstanceInner> getAsync​(String roleInstanceName,
                                         String resourceGroupName,
                                         String cloudServiceName)
        Gets a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a role instance from 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.
      • get

        RoleInstanceInner get​(String roleInstanceName,
                              String resourceGroupName,
                              String cloudServiceName)
        Gets a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a role instance from 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.
      • getWithResponse

        com.azure.core.http.rest.Response<RoleInstanceInner> getWithResponse​(String roleInstanceName,
                                                                             String resourceGroupName,
                                                                             String cloudServiceName,
                                                                             InstanceViewTypes expand,
                                                                             com.azure.core.util.Context context)
        Gets a role instance from a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        expand - The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
        context - The context to associate with this operation.
        Returns:
        a role instance from 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.
      • getInstanceViewWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleInstanceViewInner>> getInstanceViewWithResponseAsync​(String roleInstanceName,
                                                                                                        String resourceGroupName,
                                                                                                        String cloudServiceName)
        Retrieves information about the run-time state of a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        the instance view of the role instance 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<RoleInstanceViewInner> getInstanceViewAsync​(String roleInstanceName,
                                                         String resourceGroupName,
                                                         String cloudServiceName)
        Retrieves information about the run-time state of a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        the instance view of the role instance 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.
      • getInstanceView

        RoleInstanceViewInner getInstanceView​(String roleInstanceName,
                                              String resourceGroupName,
                                              String cloudServiceName)
        Retrieves information about the run-time state of a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        the instance view of the role instance.
        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<RoleInstanceViewInner> getInstanceViewWithResponse​(String roleInstanceName,
                                                                                             String resourceGroupName,
                                                                                             String cloudServiceName,
                                                                                             com.azure.core.util.Context context)
        Retrieves information about the run-time state of a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        context - The context to associate with this operation.
        Returns:
        the instance view of the role instance 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<RoleInstanceInner> listAsync​(String resourceGroupName,
                                                                        String cloudServiceName,
                                                                        InstanceViewTypes expand)
        Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        expand - The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
        Returns:
        the list of all role instances in a cloud service 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<RoleInstanceInner> listAsync​(String resourceGroupName,
                                                                        String cloudServiceName)
        Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        the list of all role instances in a cloud service 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.
      • list

        com.azure.core.http.rest.PagedIterable<RoleInstanceInner> list​(String resourceGroupName,
                                                                       String cloudServiceName)
        Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        the list of all role instances in a cloud service 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.
      • list

        com.azure.core.http.rest.PagedIterable<RoleInstanceInner> list​(String resourceGroupName,
                                                                       String cloudServiceName,
                                                                       InstanceViewTypes expand,
                                                                       com.azure.core.util.Context context)
        Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        expand - The expand expression to apply to the operation. 'UserData' is not supported for cloud services.
        context - The context to associate with this operation.
        Returns:
        the list of all role instances in a cloud service 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.
      • restartWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync​(String roleInstanceName,
                                                                                           String resourceGroupName,
                                                                                           String cloudServiceName)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                                String resourceGroupName,
                                                                                                                                String cloudServiceName)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName,
                                                                                                                           com.azure.core.util.Context context)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                String resourceGroupName,
                                String cloudServiceName)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName,
                     com.azure.core.util.Context context)
        The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                           String resourceGroupName,
                                                                                           String cloudServiceName)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                                String resourceGroupName,
                                                                                                                                String cloudServiceName)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName,
                                                                                                                           com.azure.core.util.Context context)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                String resourceGroupName,
                                String cloudServiceName)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName,
                     com.azure.core.util.Context context)
        The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                           String resourceGroupName,
                                                                                           String cloudServiceName)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                                String resourceGroupName,
                                                                                                                                String cloudServiceName)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                                                                                                           String resourceGroupName,
                                                                                                                           String cloudServiceName,
                                                                                                                           com.azure.core.util.Context context)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                                String resourceGroupName,
                                String cloudServiceName)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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 roleInstanceName,
                     String resourceGroupName,
                     String cloudServiceName,
                     com.azure.core.util.Context context)
        The Rebuild Role Instance asynchronous operation 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 Instance.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        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.
      • getRemoteDesktopFileWithResponseAsync

        Mono<com.azure.core.http.rest.StreamResponse> getRemoteDesktopFileWithResponseAsync​(String roleInstanceName,
                                                                                            String resourceGroupName,
                                                                                            String cloudServiceName)
        Gets a remote desktop file for a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a remote desktop file for a role instance in a cloud service on successful completion of Mono.
        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.
      • getRemoteDesktopFileAsync

        Flux<ByteBuffer> getRemoteDesktopFileAsync​(String roleInstanceName,
                                                   String resourceGroupName,
                                                   String cloudServiceName)
        Gets a remote desktop file for a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a remote desktop file for a role instance in a cloud service.
        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.
      • getRemoteDesktopFile

        InputStream getRemoteDesktopFile​(String roleInstanceName,
                                         String resourceGroupName,
                                         String cloudServiceName)
        Gets a remote desktop file for a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a remote desktop file for a role instance in a cloud service.
        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.
      • getRemoteDesktopFileWithResponse

        com.azure.core.http.rest.StreamResponse getRemoteDesktopFileWithResponse​(String roleInstanceName,
                                                                                 String resourceGroupName,
                                                                                 String cloudServiceName,
                                                                                 com.azure.core.util.Context context)
        Gets a remote desktop file for a role instance in a cloud service.
        Parameters:
        roleInstanceName - Name of the role instance.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        context - The context to associate with this operation.
        Returns:
        a remote desktop file for a role instance in a cloud service.
        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.