Share via


StreamingJobFunctionCollection.CreateOrUpdateAsync Method

Definition

Creates a function or replaces an already existing function under an existing streaming job.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}
  • Operation Id: Functions_CreateOrReplace
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string functionName, Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionData data, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, functionName As String, data As StreamingJobFunctionData, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StreamingJobFunctionResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

functionName
String

The name of the function.

data
StreamingJobFunctionData

The definition of the function that will be used to create a new function or replace the existing one under the streaming job.

ifMatch
String

The ETag of the function. Omit this value to always overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.

ifNoneMatch
String

Set to '*' to allow a new function to be created, but to prevent updating an existing function. Other values will result in a 412 Pre-condition Failed response.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

functionName is an empty string, and was expected to be non-empty.

functionName or data is null.

Applies to