Interface Jobs
public interface Jobs
Resource collection API of Jobs.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Job resource.Retrieve the job identified by job name.Retrieve the job identified by job name.com.azure.core.http.rest.Response<Job>
getByIdWithResponse
(String id, String clientRequestId, com.azure.core.util.Context context) Retrieve the job identified by job name.Retrieve the job output identified by job name.com.azure.core.http.rest.Response<String>
getOutputWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the job output identified by job name.getRunbookContent
(String resourceGroupName, String automationAccountName, String jobName) Retrieve the runbook content of the job identified by job name.com.azure.core.http.rest.Response<String>
getRunbookContentWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the runbook content of the job identified by job name.com.azure.core.http.rest.Response<Job>
getWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the job identified by job name.com.azure.core.http.rest.PagedIterable<JobCollectionItem>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of jobs.com.azure.core.http.rest.PagedIterable<JobCollectionItem>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, String filter, String clientRequestId, com.azure.core.util.Context context) Retrieve a list of jobs.void
Resume the job identified by jobName.com.azure.core.http.rest.Response<Void>
resumeWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Resume the job identified by jobName.void
Stop the job identified by jobName.com.azure.core.http.rest.Response<Void>
stopWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Stop the job identified by jobName.void
Suspend the job identified by job name.com.azure.core.http.rest.Response<Void>
suspendWithResponse
(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Suspend the job identified by job name.
-
Method Details
-
getOutput
Retrieve the job output identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The name of the job to be created.- 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.
-
getOutputWithResponse
com.azure.core.http.rest.Response<String> getOutputWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the job output identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The name of the job to be created.clientRequestId
- Identifies this specific client request.context
- The context to associate with this operation.- Returns:
- the response body 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.
-
getRunbookContent
Retrieve the runbook content of the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.- 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.
-
getRunbookContentWithResponse
com.azure.core.http.rest.Response<String> getRunbookContentWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the runbook content of the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.clientRequestId
- Identifies this specific client request.context
- The context to associate with this operation.- Returns:
- the response body 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.
-
suspend
Suspend the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.- 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.
-
suspendWithResponse
com.azure.core.http.rest.Response<Void> suspendWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Suspend the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.clientRequestId
- Identifies this specific client request.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.
-
stop
Stop the job identified by jobName.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.- 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.
-
stopWithResponse
com.azure.core.http.rest.Response<Void> stopWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Stop the job identified by jobName.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.clientRequestId
- Identifies this specific client request.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.
-
get
Retrieve the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.- Returns:
- definition of the 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<Job> getWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Retrieve the job identified by job name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.clientRequestId
- Identifies this specific client request.context
- The context to associate with this operation.- Returns:
- definition of the 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<JobCollectionItem> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of jobs.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list job operation 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<JobCollectionItem> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, String clientRequestId, com.azure.core.util.Context context) Retrieve a list of jobs.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.filter
- The filter to apply on the operation.clientRequestId
- Identifies this specific client request.context
- The context to associate with this operation.- Returns:
- the response model for the list job operation 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.
-
resume
Resume the job identified by jobName.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.- 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.
-
resumeWithResponse
com.azure.core.http.rest.Response<Void> resumeWithResponse(String resourceGroupName, String automationAccountName, String jobName, String clientRequestId, com.azure.core.util.Context context) Resume the job identified by jobName.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobName
- The job name.clientRequestId
- Identifies this specific client request.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.
-
getById
Retrieve the job identified by job name.- Parameters:
id
- the resource ID.- Returns:
- definition of the 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Job> getByIdWithResponse(String id, String clientRequestId, com.azure.core.util.Context context) Retrieve the job identified by job name.- Parameters:
id
- the resource ID.clientRequestId
- Identifies this specific client request.context
- The context to associate with this operation.- Returns:
- definition of the 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.
-
define
Begins definition for a new Job resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Job definition.
-