Freigeben über


AutomationAccountPython2PackageResource.UpdateAsync Methode

Definition

Aktualisieren Sie das Python 2-Paket, das durch den Paketnamen identifiziert wird.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccounts}/python2Packages/{packageName}
  • Vorgangs-IdPython2Package_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>> UpdateAsync (Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>>
override this.UpdateAsync : Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>>
Public Overridable Function UpdateAsync (patch As AutomationAccountPython2PackagePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationAccountPython2PackageResource))

Parameter

patch
AutomationAccountPython2PackagePatch

Die Updateparameter für das Python-Paket.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: