Jobs.updateAsync 方法

定义

重载

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, final ServiceCallback<Void> serviceCallback)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions, final ServiceCallback<Void> serviceCallback)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

public Observable<Void> updateAsync(String jobId, JobUpdateParameter jobUpdateParameter)

参数

jobId
String

The ID of the job whose properties you want to update.

jobUpdateParameter
JobUpdateParameter

The parameters for the request.

返回

Observable<Void>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, final ServiceCallback<Void> serviceCallback)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

public ServiceFuture<Void> updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, final ServiceCallback<Void> serviceCallback)

参数

jobId
String

The ID of the job whose properties you want to update.

jobUpdateParameter
JobUpdateParameter

The parameters for the request.

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

返回

ServiceFuture<Void>

the ServiceFuture object

例外

IllegalArgumentException

thrown if parameters fail the validation

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

public Observable<Void> updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions)

参数

jobId
String

The ID of the job whose properties you want to update.

jobUpdateParameter
JobUpdateParameter

The parameters for the request.

jobUpdateOptions
JobUpdateOptions

Additional parameters for the operation

返回

Observable<Void>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions, final ServiceCallback<Void> serviceCallback)

Updates the properties of the specified job. This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.

public ServiceFuture<Void> updateAsync(String jobId, JobUpdateParameter jobUpdateParameter, JobUpdateOptions jobUpdateOptions, final ServiceCallback<Void> serviceCallback)

参数

jobId
String

The ID of the job whose properties you want to update.

jobUpdateParameter
JobUpdateParameter

The parameters for the request.

jobUpdateOptions
JobUpdateOptions

Additional parameters for the operation

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

返回

ServiceFuture<Void>

the ServiceFuture object

例外

IllegalArgumentException

thrown if parameters fail the validation

适用于