Partager via


AutomationAccountPython2PackageResource.UpdateAsync Méthode

Définition

Mettez à jour le package Python 2 identifié par le nom du package.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}
  • Opération 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))

Paramètres

patch
AutomationAccountPython2PackagePatch

Paramètres de mise à jour pour le package Python.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

patch a la valeur null.

S’applique à