Interface JobsClient


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

      • listByAgentAsync

        com.azure.core.http.rest.PagedFlux<JobInner> listByAgentAsync​(String resourceGroupName,
                                                                      String serverName,
                                                                      String jobAgentName)
        Gets a list of jobs.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        Returns:
        a list of jobs.
        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.
      • listByAgent

        com.azure.core.http.rest.PagedIterable<JobInner> listByAgent​(String resourceGroupName,
                                                                     String serverName,
                                                                     String jobAgentName)
        Gets a list of jobs.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        Returns:
        a list of jobs.
        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.
      • listByAgent

        com.azure.core.http.rest.PagedIterable<JobInner> listByAgent​(String resourceGroupName,
                                                                     String serverName,
                                                                     String jobAgentName,
                                                                     com.azure.core.util.Context context)
        Gets a list of jobs.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        context - The context to associate with this operation.
        Returns:
        a list of jobs.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<JobInner>> getWithResponseAsync​(String resourceGroupName,
                                                                               String serverName,
                                                                               String jobAgentName,
                                                                               String jobName)
        Gets a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        Returns:
        a job.
        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.
      • getAsync

        Mono<JobInner> getAsync​(String resourceGroupName,
                                String serverName,
                                String jobAgentName,
                                String jobName)
        Gets a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        Returns:
        a job.
        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.
      • get

        JobInner get​(String resourceGroupName,
                     String serverName,
                     String jobAgentName,
                     String jobName)
        Gets a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        Returns:
        a job.
        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.
      • getWithResponse

        com.azure.core.http.rest.Response<JobInner> getWithResponse​(String resourceGroupName,
                                                                    String serverName,
                                                                    String jobAgentName,
                                                                    String jobName,
                                                                    com.azure.core.util.Context context)
        Gets a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        context - The context to associate with this operation.
        Returns:
        a job.
        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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<JobInner>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          String jobAgentName,
                                                                                          String jobName,
                                                                                          JobInner parameters)
        Creates or updates a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        parameters - A job.
        Returns:
        a job.
        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.
      • createOrUpdateAsync

        Mono<JobInner> createOrUpdateAsync​(String resourceGroupName,
                                           String serverName,
                                           String jobAgentName,
                                           String jobName,
                                           JobInner parameters)
        Creates or updates a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        parameters - A job.
        Returns:
        a job.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        JobInner createOrUpdate​(String resourceGroupName,
                                String serverName,
                                String jobAgentName,
                                String jobName,
                                JobInner parameters)
        Creates or updates a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        parameters - A job.
        Returns:
        a job.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<JobInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                               String serverName,
                                                                               String jobAgentName,
                                                                               String jobName,
                                                                               JobInner parameters,
                                                                               com.azure.core.util.Context context)
        Creates or updates a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to get.
        parameters - A job.
        context - The context to associate with this operation.
        Returns:
        a job.
        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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync​(String resourceGroupName,
                                                                              String serverName,
                                                                              String jobAgentName,
                                                                              String jobName)
        Deletes a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to delete.
        Returns:
        the completion.
        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.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String serverName,
                               String jobAgentName,
                               String jobName)
        Deletes a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to delete.
        Returns:
        the completion.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String serverName,
                    String jobAgentName,
                    String jobName)
        Deletes a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to delete.
        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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String serverName,
                                                                   String jobAgentName,
                                                                   String jobName,
                                                                   com.azure.core.util.Context context)
        Deletes a job.
        Parameters:
        resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
        serverName - The name of the server.
        jobAgentName - The name of the job agent.
        jobName - The name of the job to delete.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.