Interface Jobs
public interface Jobs
Resource collection API of Jobs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a Job (asynchronous).voidcancel(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Cancels a Job (asynchronous).Begins definition for a new JobBase resource.voidDeletes a Job (asynchronous).voiddelete(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Deletes a Job (asynchronous).voiddeleteById(String id) Deletes a Job (asynchronous).voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a Job (asynchronous).Gets a Job by name/id.Gets a Job by name/id.com.azure.core.http.rest.Response<JobBase>getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Job by name/id.com.azure.core.http.rest.Response<JobBase>getWithResponse(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Gets a Job by name/id.com.azure.core.http.rest.PagedIterable<JobBase>Lists Jobs in the workspace.com.azure.core.http.rest.PagedIterable<JobBase>list(String resourceGroupName, String workspaceName, String skip, String jobType, String tag, ListViewType listViewType, String properties, com.azure.core.util.Context context) Lists Jobs in the workspace.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<JobBase> list(String resourceGroupName, String workspaceName) Lists Jobs in the workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.- Returns:
- a paginated list of JobBase entities 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.
-
list
com.azure.core.http.rest.PagedIterable<JobBase> list(String resourceGroupName, String workspaceName, String skip, String jobType, String tag, ListViewType listViewType, String properties, com.azure.core.util.Context context) Lists Jobs in the workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.skip- Continuation token for pagination.jobType- Type of job to be returned.tag- Jobs returned will have this tag key.listViewType- View type for including/excluding (for example) archived entities.properties- Comma-separated list of user property names (and optionally values). Example: prop1,prop2=value2.context- The context to associate with this operation.- Returns:
- a paginated list of JobBase entities 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.
-
delete
Deletes a Job (asynchronous).- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.- 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 workspaceName, String id, com.azure.core.util.Context context) Deletes a Job (asynchronous).- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.context- The context to associate with this operation.- 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<JobBase> getWithResponse(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Gets a Job by name/id.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.context- The context to associate with this operation.- Returns:
- a Job by name/id 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 by name/id.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.- Returns:
- a Job by name/id.
- 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.
-
cancel
Cancels a Job (asynchronous).- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.- 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.
-
cancel
void cancel(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Cancels a Job (asynchronous).- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- Name of Azure Machine Learning workspace.id- The name and identifier for the Job. This is case-sensitive.context- The context to associate with this operation.- 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
Gets a Job by name/id.- Parameters:
id- the resource ID.- Returns:
- a Job by name/id 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<JobBase> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Job by name/id.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a Job by name/id 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.
-
deleteById
Deletes a Job (asynchronous).- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
Deletes a Job (asynchronous).- Parameters:
id- the resource ID.context- The context to associate with this operation.- 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 JobBase resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new JobBase definition.
-