Interface JobsClient
public interface JobsClient
An instance of this class provides access to all the operations defined in JobsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginCancel(String resourceGroupName, String workspaceName, String id) Cancels a Job (asynchronous).beginCancel(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Cancels a Job (asynchronous).beginDelete(String resourceGroupName, String workspaceName, String id) Deletes a Job (asynchronous).beginDelete(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Deletes a Job (asynchronous).voidCancels a Job (asynchronous).voidcancel(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Cancels a Job (asynchronous).createOrUpdate(String resourceGroupName, String workspaceName, String id, JobBaseInner body) Creates and executes a Job.com.azure.core.http.rest.Response<JobBaseInner>createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String id, JobBaseInner body, com.azure.core.util.Context context) Creates and executes a Job.voidDeletes a Job (asynchronous).voiddelete(String resourceGroupName, String workspaceName, String id, com.azure.core.util.Context context) Deletes a Job (asynchronous).Gets a Job by name/id.com.azure.core.http.rest.Response<JobBaseInner>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<JobBaseInner>Lists Jobs in the workspace.com.azure.core.http.rest.PagedIterable<JobBaseInner>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<JobBaseInner> 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<JobBaseInner> 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String workspaceName, String id) 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.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
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<JobBaseInner> 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<JobBaseInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String id, JobBaseInner body, com.azure.core.util.Context context) Creates and executes a Job. For update case, the Tags in the definition passed in will replace Tags in the existing job.- 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.body- Job definition object.context- The context to associate with this operation.- Returns:
- azure Resource Manager resource envelope 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
JobBaseInner createOrUpdate(String resourceGroupName, String workspaceName, String id, JobBaseInner body) Creates and executes a Job. For update case, the Tags in the definition passed in will replace Tags in the existing job.- 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.body- Job definition object.- Returns:
- azure Resource Manager resource envelope.
- 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.
-
beginCancel
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCancel(String resourceGroupName, String workspaceName, String id) 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.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginCancel
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCancel(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.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
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.
-