Interface JobsClient
public interface JobsClient
An instance of this class provides access to all the operations defined in JobsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String serverName, String jobAgentName, String jobName, JobInner parameters) Creates or updates a job.createOrUpdateAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName, JobInner parameters) Creates or updates a job.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.createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName, JobInner parameters) Creates or updates a job.voidDeletes a job.deleteAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName) Deletes a job.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.deleteWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName) Deletes a job.Gets a job.Gets a job.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.getWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName) Gets a job.com.azure.core.http.rest.PagedIterable<JobInner>listByAgent(String resourceGroupName, String serverName, String jobAgentName) Gets a list of jobs.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.com.azure.core.http.rest.PagedFlux<JobInner>listByAgentAsync(String resourceGroupName, String serverName, String jobAgentName) Gets a list of jobs.
-
Method Details
-
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 as paginated response with
PagedFlux. - 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 as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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 as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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 along with
Responseon successful completion ofMono. - 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 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.
-
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 along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
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.
-
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- The requested job state.- Returns:
- a job along with
Responseon successful completion ofMono. - 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- The requested job state.- Returns:
- a job 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.
-
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- The requested job state.context- The context to associate with this operation.- Returns:
- a job along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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- The requested job state.- 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
Responseon successful completion ofMono. - 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:
- A
Monothat completes when a successful response is received. - 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.
-
delete
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.
-