Interface CloudServiceRolesClient


  • public interface CloudServiceRolesClient
    An instance of this class provides access to all the operations defined in CloudServiceRolesClient.
    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<CloudServiceRoleInner>> getWithResponseAsync​(String roleName,
                                                                                            String resourceGroupName,
                                                                                            String cloudServiceName)
        Gets a role from a cloud service.
        Parameters:
        roleName - Name of the role.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a role 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<CloudServiceRoleInner> getAsync​(String roleName,
                                             String resourceGroupName,
                                             String cloudServiceName)
        Gets a role from a cloud service.
        Parameters:
        roleName - Name of the role.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a role 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

        CloudServiceRoleInner get​(String roleName,
                                  String resourceGroupName,
                                  String cloudServiceName)
        Gets a role from a cloud service.
        Parameters:
        roleName - Name of the role.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a role 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<CloudServiceRoleInner> getWithResponse​(String roleName,
                                                                                 String resourceGroupName,
                                                                                 String cloudServiceName,
                                                                                 com.azure.core.util.Context context)
        Gets a role from a cloud service.
        Parameters:
        roleName - Name of the role.
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        context - The context to associate with this operation.
        Returns:
        a role 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.
      • listAsync

        com.azure.core.http.rest.PagedFlux<CloudServiceRoleInner> listAsync​(String resourceGroupName,
                                                                            String cloudServiceName)
        Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a list of all roles 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<CloudServiceRoleInner> list​(String resourceGroupName,
                                                                           String cloudServiceName)
        Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        Returns:
        a list of all roles 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<CloudServiceRoleInner> list​(String resourceGroupName,
                                                                           String cloudServiceName,
                                                                           com.azure.core.util.Context context)
        Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
        Parameters:
        resourceGroupName - The resourceGroupName parameter.
        cloudServiceName - The cloudServiceName parameter.
        context - The context to associate with this operation.
        Returns:
        a list of all roles 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.