Share via


StreamingJobInputCollection.CreateOrUpdate Method

Definition

Creates an input or replaces an already existing input under an existing streaming job.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}
  • Operation Id: Inputs_CreateOrReplace
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobInputResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string inputName, Azure.ResourceManager.StreamAnalytics.StreamingJobInputData input, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StreamAnalytics.StreamingJobInputData * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobInputResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StreamAnalytics.StreamingJobInputData * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.StreamingJobInputResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, inputName As String, input As StreamingJobInputData, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StreamingJobInputResource)

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.

inputName
String

The name of the input.

input
StreamingJobInputData

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

ifMatch
String

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

ifNoneMatch
String

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

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

inputName or input is null.

Applies to