Condividi tramite


ImageBuilder.TriggersCreateOrUpdateViaJsonString Method

Definition

update a trigger for the specified virtual machine image template

public System.Threading.Tasks.Task TriggersCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string imageTemplateName, string triggerName, string jsonString, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ICloudError>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.ISendAsync sender);
member this.TriggersCreateOrUpdateViaJsonString : string * string * string * string * string * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ITrigger>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ICloudError>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function TriggersCreateOrUpdateViaJsonString (subscriptionId As String, resourceGroupName As String, imageTemplateName As String, triggerName As String, jsonString As String, onOk As Func(Of HttpResponseMessage, Task(Of ITrigger), Task), onDefault As Func(Of HttpResponseMessage, Task(Of ICloudError), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

subscriptionId
String

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms part of the URI for every service call.

resourceGroupName
String

The name of the resource group.

imageTemplateName
String

The name of the image Template

triggerName
String

The name of the trigger

jsonString
String

Json string supplied to the TriggersCreateOrUpdate operation

onOk
Func<HttpResponseMessage,Task<ITrigger>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<ICloudError>,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.ImageBuilder.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to