ImportExport.JobsUpdateViaIdentity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job.
public System.Threading.Tasks.Task JobsUpdateViaIdentity (string viaIdentity, string acceptLanguage, Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IUpdateJobParameters body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IJobResponse>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime.ISendAsync sender);
member this.JobsUpdateViaIdentity : string * string * Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IUpdateJobParameters * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IJobResponse>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Models.Api202101.IErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function JobsUpdateViaIdentity (viaIdentity As String, acceptLanguage As String, body As IUpdateJobParameters, onOk As Func(Of HttpResponseMessage, Task(Of IJobResponse), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task
Parameters
- viaIdentity
- String
- acceptLanguage
- String
Specifies the preferred language for the response.
- body
- IUpdateJobParameters
The parameters to update in the job
- onOk
- Func<HttpResponseMessage,Task<IJobResponse>,Task>
a delegate that is called when the remote service returns 200 (OK).
- onDefault
- Func<HttpResponseMessage,Task<IErrorResponse>,Task>
a delegate that is called when the remote service returns default (any response code not handled elsewhere).
- eventListener
- IEventListener
an IEventListener instance that will receive events.
- sender
- ISendAsync
an instance of an Microsoft.Azure.PowerShell.Cmdlets.ImportExport.Runtime.ISendAsync pipeline to use to make the request.
Returns
A Task that will be complete when handling of the response is completed.