共用方式為


Python2PackageOperationsExtensions.CreateOrUpdateAsync 方法

定義

建立或更新以套件名稱識別的 python 2 套件。 http://aka.ms/azureautomationsdk/moduleoperations

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Module> CreateOrUpdateAsync(this Microsoft.Azure.Management.Automation.IPython2PackageOperations operations, string resourceGroupName, string automationAccountName, string packageName, Microsoft.Azure.Management.Automation.Models.PythonPackageCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IPython2PackageOperations * string * string * string * Microsoft.Azure.Management.Automation.Models.PythonPackageCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Module>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IPython2PackageOperations, resourceGroupName As String, automationAccountName As String, packageName As String, parameters As PythonPackageCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Module)

參數

operations
IPython2PackageOperations

這個擴充方法的作業群組。

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

packageName
String

Python 套件的名稱。

parameters
PythonPackageCreateParameters

Python 套件的建立或更新參數。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於