Share via


Python2PackageOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or Update the python 2 package identified by package name. 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)

Parameters

operations
IPython2PackageOperations

The operations group for this extension method.

resourceGroupName
String

Name of an Azure Resource group.

automationAccountName
String

The name of the automation account.

packageName
String

The name of python package.

parameters
PythonPackageCreateParameters

The create or update parameters for python package.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to