Condividi tramite


SparkJobDefinitionClient.StartCreateOrUpdateSparkJobDefinitionAsync Method

Definition

Creates or updates a Spark Job Definition.

public virtual System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.SparkJobDefinitionCreateOrUpdateSparkJobDefinitionOperation> StartCreateOrUpdateSparkJobDefinitionAsync (string sparkJobDefinitionName, Azure.Analytics.Synapse.Artifacts.Models.SparkJobDefinitionResource sparkJobDefinition, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartCreateOrUpdateSparkJobDefinitionAsync : string * Azure.Analytics.Synapse.Artifacts.Models.SparkJobDefinitionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.SparkJobDefinitionCreateOrUpdateSparkJobDefinitionOperation>
override this.StartCreateOrUpdateSparkJobDefinitionAsync : string * Azure.Analytics.Synapse.Artifacts.Models.SparkJobDefinitionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.SparkJobDefinitionCreateOrUpdateSparkJobDefinitionOperation>
Public Overridable Function StartCreateOrUpdateSparkJobDefinitionAsync (sparkJobDefinitionName As String, sparkJobDefinition As SparkJobDefinitionResource, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SparkJobDefinitionCreateOrUpdateSparkJobDefinitionOperation)

Parameters

sparkJobDefinitionName
String

The spark job definition name.

sparkJobDefinition
SparkJobDefinitionResource

Spark Job Definition resource definition.

ifMatch
String

ETag of the Spark Job Definition entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sparkJobDefinitionName or sparkJobDefinition is null.

Applies to