Partager via


IGalleryApplicationVersionsOperations.CreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Créez ou mettez à jour une version d’application de galerie.

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

Paramètres

resourceGroupName
String

Nom du groupe de ressources.

galleryName
String

Nom de la galerie d’applications partagées dans laquelle réside la définition d’application.

galleryApplicationName
String

Nom de la définition d’application de la galerie dans laquelle la version de l’application doit être créée.

galleryApplicationVersionName
String

Nom de la galerie Version de l’application à créer. Doit suivre le modèle de nom de version sémantique : les caractères autorisés sont chiffre et point. Les chiffres doivent se trouver dans la plage d’un entier 32 bits. Format : <MajorVersion>.< MinorVersion>.< Patch>

galleryApplicationVersion
GalleryApplicationVersion

Paramètres fournis à l’opération de création ou de mise à jour de la version de l’application de la galerie.

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 à