JobsClient Interface
public interface JobsClient
An instance of this class provides access to all the operations defined in JobsClient.
Method Summary
Method Details
beginCreate
public abstract SyncPoller<PollResult<JobResourceInner>,JobResourceInner> beginCreate(String resourceGroupName, String jobName, JobResourceInner jobResource)
Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
Parameters:
Returns:
beginCreate
public abstract SyncPoller<PollResult<JobResourceInner>,JobResourceInner> beginCreate(String resourceGroupName, String jobName, JobResourceInner jobResource, Context context)
Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String jobName)
Deletes a job.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String jobName, Context context)
Deletes a job.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<JobResourceInner>,JobResourceInner> beginUpdate(String resourceGroupName, String jobName, JobResourceUpdateParameter jobResourceUpdateParameter)
Updates the properties of an existing job.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<JobResourceInner>,JobResourceInner> beginUpdate(String resourceGroupName, String jobName, JobResourceUpdateParameter jobResourceUpdateParameter, String ifMatch, Context context)
Updates the properties of an existing job.
Parameters:
Returns:
bookShipmentPickUp
public abstract ShipmentPickUpResponseInner bookShipmentPickUp(String resourceGroupName, String jobName, ShipmentPickUpRequest shipmentPickUpRequest)
Book shipment pick up.
Parameters:
Returns:
bookShipmentPickUpWithResponse
public abstract Response<ShipmentPickUpResponseInner> bookShipmentPickUpWithResponse(String resourceGroupName, String jobName, ShipmentPickUpRequest shipmentPickUpRequest, Context context)
Book shipment pick up.
Parameters:
Returns:
cancel
public abstract void cancel(String resourceGroupName, String jobName, CancellationReason cancellationReason)
CancelJob.
Parameters:
cancelWithResponse
public abstract Response<Void> cancelWithResponse(String resourceGroupName, String jobName, CancellationReason cancellationReason, Context context)
CancelJob.
Parameters:
Returns:
create
public abstract JobResourceInner create(String resourceGroupName, String jobName, JobResourceInner jobResource)
Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
Parameters:
Returns:
create
public abstract JobResourceInner create(String resourceGroupName, String jobName, JobResourceInner jobResource, Context context)
Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String jobName)
Deletes a job.
Parameters:
delete
public abstract void delete(String resourceGroupName, String jobName, Context context)
Deletes a job.
Parameters:
getByResourceGroup
public abstract JobResourceInner getByResourceGroup(String resourceGroupName, String jobName)
Gets information about the specified job.
Parameters:
Returns:
getByResourceGroupWithResponse
public abstract Response<JobResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String jobName, String expand, Context context)
Gets information about the specified job.
Parameters:
Returns:
list
public abstract PagedIterable<JobResourceInner> list()
Lists all the jobs available under the subscription.
Returns:
list
public abstract PagedIterable<JobResourceInner> list(String skipToken, Context context)
Lists all the jobs available under the subscription.
Parameters:
Returns:
listByResourceGroup
public abstract PagedIterable<JobResourceInner> listByResourceGroup(String resourceGroupName)
Lists all the jobs available under the given resource group.
Parameters:
Returns:
listByResourceGroup
public abstract PagedIterable<JobResourceInner> listByResourceGroup(String resourceGroupName, String skipToken, Context context)
Lists all the jobs available under the given resource group.
Parameters:
Returns:
listCredentials
public abstract PagedIterable<UnencryptedCredentialsInner> listCredentials(String resourceGroupName, String jobName)
This method gets the unencrypted secrets related to the job.
Parameters:
Returns:
listCredentials
public abstract PagedIterable<UnencryptedCredentialsInner> listCredentials(String resourceGroupName, String jobName, Context context)
This method gets the unencrypted secrets related to the job.
Parameters:
Returns:
markDevicesShipped
public abstract void markDevicesShipped(String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest)
Request to mark devices for a given job as shipped.
Parameters:
markDevicesShippedWithResponse
public abstract Response<Void> markDevicesShippedWithResponse(String jobName, String resourceGroupName, MarkDevicesShippedRequest markDevicesShippedRequest, Context context)
Request to mark devices for a given job as shipped.
Parameters:
Returns:
update
public abstract JobResourceInner update(String resourceGroupName, String jobName, JobResourceUpdateParameter jobResourceUpdateParameter)
Updates the properties of an existing job.
Parameters:
Returns:
update
public abstract JobResourceInner update(String resourceGroupName, String jobName, JobResourceUpdateParameter jobResourceUpdateParameter, String ifMatch, Context context)
Updates the properties of an existing job.
Parameters:
Returns: