Interface Jobs
public interface Jobs
Resource collection API of Jobs.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Job resource.void
Delete a Container Apps Job.void
deleteById
(String id) Delete a Container Apps Job.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a Container Apps Job.void
deleteByResourceGroup
(String resourceGroupName, String jobName) Delete a Container Apps Job.Get the properties of a Container Apps Job.com.azure.core.http.rest.Response
<Job> getByIdWithResponse
(String id, com.azure.core.util.Context context) Get the properties of a Container Apps Job.getByResourceGroup
(String resourceGroupName, String jobName) Get the properties of a Container Apps Job.com.azure.core.http.rest.Response
<Job> getByResourceGroupWithResponse
(String resourceGroupName, String jobName, com.azure.core.util.Context context) Get the properties of a Container Apps Job.getDetector
(String resourceGroupName, String jobName, String detectorName) Get the diagnostics data for a given Container App Job.com.azure.core.http.rest.Response
<Diagnostics> getDetectorWithResponse
(String resourceGroupName, String jobName, String detectorName, com.azure.core.util.Context context) Get the diagnostics data for a given Container App Job.com.azure.core.http.rest.PagedIterable
<Job> list()
Get the Container Apps Jobs in a given subscription.com.azure.core.http.rest.PagedIterable
<Job> list
(com.azure.core.util.Context context) Get the Container Apps Jobs in a given subscription.com.azure.core.http.rest.PagedIterable
<Job> listByResourceGroup
(String resourceGroupName) Get the Container Apps Jobs in a given resource group.com.azure.core.http.rest.PagedIterable
<Job> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get the Container Apps Jobs in a given resource group.com.azure.core.http.rest.PagedIterable
<Diagnostics> listDetectors
(String resourceGroupName, String jobName) Get the list of diagnostics for a given Container App Job.com.azure.core.http.rest.PagedIterable
<Diagnostics> listDetectors
(String resourceGroupName, String jobName, com.azure.core.util.Context context) Get the list of diagnostics for a given Container App Job.listSecrets
(String resourceGroupName, String jobName) List secrets for a container apps job.com.azure.core.http.rest.Response
<JobSecretsCollection> listSecretsWithResponse
(String resourceGroupName, String jobName, com.azure.core.util.Context context) List secrets for a container apps job.Get the properties of a Container App Job.com.azure.core.http.rest.Response
<Job> proxyGetWithResponse
(String resourceGroupName, String jobName, String apiName, com.azure.core.util.Context context) Get the properties of a Container App Job.Start a Container Apps Job.start
(String resourceGroupName, String jobName, JobExecutionTemplate template, com.azure.core.util.Context context) Start a Container Apps Job.void
stopExecution
(String resourceGroupName, String jobName, String jobExecutionName) Terminates execution of a running container apps job.void
stopExecution
(String resourceGroupName, String jobName, String jobExecutionName, com.azure.core.util.Context context) Terminates execution of a running container apps job.stopMultipleExecutions
(String resourceGroupName, String jobName) Terminates execution of a running container apps job.stopMultipleExecutions
(String resourceGroupName, String jobName, com.azure.core.util.Context context) Terminates execution of a running container apps job.
-
Method Details
-
listDetectors
com.azure.core.http.rest.PagedIterable<Diagnostics> listDetectors(String resourceGroupName, String jobName) Get the list of diagnostics for a given Container App Job. Get the list of diagnostics for a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Returns:
- the list of diagnostics for a Container App Job as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listDetectors
com.azure.core.http.rest.PagedIterable<Diagnostics> listDetectors(String resourceGroupName, String jobName, com.azure.core.util.Context context) Get the list of diagnostics for a given Container App Job. Get the list of diagnostics for a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.context
- The context to associate with this operation.- Returns:
- the list of diagnostics for a Container App Job as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDetectorWithResponse
com.azure.core.http.rest.Response<Diagnostics> getDetectorWithResponse(String resourceGroupName, String jobName, String detectorName, com.azure.core.util.Context context) Get the diagnostics data for a given Container App Job. Get the diagnostics data for a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.detectorName
- Name of the Container App Job detector.context
- The context to associate with this operation.- Returns:
- the diagnostics data for a Container App Job along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDetector
Get the diagnostics data for a given Container App Job. Get the diagnostics data for a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.detectorName
- Name of the Container App Job detector.- Returns:
- the diagnostics data for a Container App Job.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
proxyGetWithResponse
com.azure.core.http.rest.Response<Job> proxyGetWithResponse(String resourceGroupName, String jobName, String apiName, com.azure.core.util.Context context) Get the properties of a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.apiName
- Proxy API Name for Container App Job.context
- The context to associate with this operation.- Returns:
- the properties of a Container App Job along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
proxyGet
Get the properties of a Container App Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.apiName
- Proxy API Name for Container App Job.- Returns:
- the properties of a Container App Job.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<Job> list()Get the Container Apps Jobs in a given subscription.- Returns:
- the Container Apps Jobs in a given subscription as paginated response with
PagedIterable
. - Throws:
DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
Get the Container Apps Jobs in a given subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the Container Apps Jobs in a given subscription as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Get the Container Apps Jobs in a given resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the Container Apps Jobs in a given resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Job> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get the Container Apps Jobs in a given resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the Container Apps Jobs in a given resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Job> getByResourceGroupWithResponse(String resourceGroupName, String jobName, com.azure.core.util.Context context) Get the properties of a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.context
- The context to associate with this operation.- Returns:
- the properties of a Container Apps Job along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get the properties of a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Returns:
- the properties of a Container Apps Job.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Delete a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
Start a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Returns:
- container App's Job execution name.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
JobExecutionBase start(String resourceGroupName, String jobName, JobExecutionTemplate template, com.azure.core.util.Context context) Start a Container Apps Job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.template
- Properties used to start a job execution.context
- The context to associate with this operation.- Returns:
- container App's Job execution name.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopExecution
Terminates execution of a running container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.jobExecutionName
- Job execution name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopExecution
void stopExecution(String resourceGroupName, String jobName, String jobExecutionName, com.azure.core.util.Context context) Terminates execution of a running container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.jobExecutionName
- Job execution name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopMultipleExecutions
Terminates execution of a running container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Returns:
- container App executions collection ARM resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stopMultipleExecutions
ContainerAppJobExecutions stopMultipleExecutions(String resourceGroupName, String jobName, com.azure.core.util.Context context) Terminates execution of a running container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.context
- The context to associate with this operation.- Returns:
- container App executions collection ARM resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listSecretsWithResponse
com.azure.core.http.rest.Response<JobSecretsCollection> listSecretsWithResponse(String resourceGroupName, String jobName, com.azure.core.util.Context context) List secrets for a container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.context
- The context to associate with this operation.- Returns:
- container Apps Job Secrets Collection ARM resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listSecrets
List secrets for a container apps job.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.jobName
- Job Name.- Returns:
- container Apps Job Secrets Collection ARM resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get the properties of a Container Apps Job.- Parameters:
id
- the resource ID.- Returns:
- the properties of a Container Apps Job along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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, com.azure.core.util.Context context) Get the properties of a Container Apps Job.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the properties of a Container Apps Job along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Delete a Container Apps Job.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Delete a Container Apps Job.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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.
-