Partager via


IGalleriesOperations.CreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Créer ou mettre à jour un Shared Image Gallery.

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

Paramètres

resourceGroupName
String

Nom du groupe de ressources.

galleryName
String

Nom du Shared Image Gallery. Les caractères autorisés sont des alphabets et des nombres avec des points et des points autorisés au milieu. La longueur maximale est de 80 caractères.

gallery
Gallery

Paramètres fournis à l’opération de création ou de mise à jour Shared Image Gallery.

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 à