Freigeben über


AppPlatformBuildServiceAgentPoolCollection.CreateOrUpdateAsync Methode

Definition

Erstellen oder Aktualisieren des Builddienst-Agent-Pools.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}
  • Vorgangs-IdBuildServiceAgentPool_UpdatePut
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string agentPoolName, Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, agentPoolName As String, data As AppPlatformBuildServiceAgentPoolData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppPlatformBuildServiceAgentPoolResource))

Parameter

waitUntil
WaitUntil

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

agentPoolName
String

Der Name der Poolressource des Builddienst-Agents.

data
AppPlatformBuildServiceAgentPoolData

Parameter für den Aktualisierungsvorgang.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

agentPoolName oder data ist NULL.

Gilt für: