Condividi tramite


IPython2PackageOperations.CreateOrUpdateWithHttpMessagesAsync Metodo

Definizione

Creare o aggiornare il pacchetto Python 2 identificato dal nome del pacchetto. http://aka.ms/azureautomationsdk/moduleoperations

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Module>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string packageName, Microsoft.Azure.Management.Automation.Models.PythonPackageCreateParameters parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Automation.Models.PythonPackageCreateParameters * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Module>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, packageName As String, parameters As PythonPackageCreateParameters, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Module))

Parametri

resourceGroupName
String

Nome di un gruppo di risorse di Azure.

automationAccountName
String

Nome dell'account di automazione.

packageName
String

Nome del pacchetto Python.

parameters
PythonPackageCreateParameters

Parametri di creazione o aggiornamento per il pacchetto Python.

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Eccezioni

Generata quando l'operazione ha restituito un codice di stato non valido

Generata quando non è possibile deserializzare la risposta

Generata quando un parametro obbligatorio è Null

Si applica a