Udostępnij za pośrednictwem


TemplateSpecVersionCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a Template Spec version.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}
  • Operation Id: TemplateSpecVersions_CreateOrUpdate
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecVersionResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string templateSpecVersion, Azure.ResourceManager.Resources.TemplateSpecVersionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecVersionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Resources.TemplateSpecVersionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TemplateSpecVersionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, templateSpecVersion As String, data As TemplateSpecVersionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TemplateSpecVersionResource))

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.

templateSpecVersion
String

The version of the Template Spec.

data
TemplateSpecVersionData

Template Spec Version supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

templateSpecVersion or data is null.

Applies to