Share via


StreamingJobFunctionResource.TestAsync Method

Definition

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

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

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.

data
StreamingJobFunctionData

If the function specified does not already exist, this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to