Partager via


IAddonsOperations.CreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Créer ou mettre à jour un module complémentaire.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataBoxEdge.Models.Addon>> CreateOrUpdateWithHttpMessagesAsync (string deviceName, string roleName, string addonName, Microsoft.Azure.Management.DataBoxEdge.Models.Addon addon, string resourceGroupName, 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.DataBoxEdge.Models.Addon * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DataBoxEdge.Models.Addon>>
Public Function CreateOrUpdateWithHttpMessagesAsync (deviceName As String, roleName As String, addonName As String, addon As Addon, resourceGroupName As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Addon))

Paramètres

deviceName
String

Le nom de l'appareil.

roleName
String

Nom du rôle.

addonName
String

Nom du module complémentaire.

addon
Addon

Propriétés du module complémentaire.

resourceGroupName
String

Nom du groupe de ressources.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

S’applique à