Share via


AutomationAccountPython2PackageCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, packageName As String, content As AutomationAccountPython2PackageCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As 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