Share via


AutomationAccountPython2PackageCollection.CreateOrUpdateAsync Method

Definition

Create or Update the python 2 package identified by package name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}
  • Operation Id: Python2Package_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, packageName As String, content As AutomationAccountPython2PackageCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AutomationAccountPython2PackageResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

packageName
String

The name of python package.

content
AutomationAccountPython2PackageCreateOrUpdateContent

The create or update parameters for python package.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

packageName is an empty string, and was expected to be non-empty.

packageName or content is null.

Applies to