Interface TestJobsClient
public interface TestJobsClient
An instance of this class provides access to all the operations defined in TestJobsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String resourceGroupName, String automationAccountName, String runbookName, TestJobCreateParameters parameters) Create a test job of the runbook.com.azure.core.http.rest.Response<TestJobInner>
createWithResponse
(String resourceGroupName, String automationAccountName, String runbookName, TestJobCreateParameters parameters, com.azure.core.util.Context context) Create a test job of the runbook.Retrieve the test job for the specified runbook.com.azure.core.http.rest.Response<TestJobInner>
getWithResponse
(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context) Retrieve the test job for the specified runbook.void
Resume the test job.com.azure.core.http.rest.Response<Void>
resumeWithResponse
(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context) Resume the test job.void
Stop the test job.com.azure.core.http.rest.Response<Void>
stopWithResponse
(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context) Stop the test job.void
Suspend the test job.com.azure.core.http.rest.Response<Void>
suspendWithResponse
(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context) Suspend the test job.
-
Method Details
-
create
TestJobInner create(String resourceGroupName, String automationAccountName, String runbookName, TestJobCreateParameters parameters) Create a test job of the runbook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The parameters supplied to the create test job operation.parameters
- The parameters supplied to the create test job operation.- Returns:
- definition of the test 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.
-
createWithResponse
com.azure.core.http.rest.Response<TestJobInner> createWithResponse(String resourceGroupName, String automationAccountName, String runbookName, TestJobCreateParameters parameters, com.azure.core.util.Context context) Create a test job of the runbook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The parameters supplied to the create test job operation.parameters
- The parameters supplied to the create test job operation.context
- The context to associate with this operation.- Returns:
- definition of the test 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
Retrieve the test job for the specified runbook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook name.- Returns:
- definition of the test 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<TestJobInner> getWithResponse(String resourceGroupName, String automationAccountName, String runbookName, com.azure.core.util.Context context) Retrieve the test job for the specified runbook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook name.context
- The context to associate with this operation.- Returns:
- definition of the test 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.
-
resume
Resume the test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook 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 runbookName, com.azure.core.util.Context context) Resume the test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook name.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 test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook 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 runbookName, com.azure.core.util.Context context) Stop the test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook name.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.
-
suspend
Suspend the test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook 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 runbookName, com.azure.core.util.Context context) Suspend the test job.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.runbookName
- The runbook name.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.
-