Freigeben über


AppPlatformBuildCollection.CreateOrUpdateAsync Methode

Definition

Erstellen oder Aktualisieren eines KPack-Builds.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}
  • Vorgang IdBuildService_CreateOrUpdateBuild
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string buildName, Azure.ResourceManager.AppPlatform.AppPlatformBuildData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, buildName As String, data As AppPlatformBuildData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppPlatformBuildResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

buildName
String

Der Name der Buildressource.

data
AppPlatformBuildData

Parameter für den Erstellungs- oder Aktualisierungsvorgang.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

buildName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

buildName oder data ist NULL.

Gilt für: