Compartir a través de


IGalleriesOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definición

Cree o actualice un Shared Image Gallery.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Fluent.Models.GalleryInner>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string galleryName, Microsoft.Azure.Management.Compute.Fluent.Models.GalleryInner 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.Fluent.Models.GalleryInner * 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.Fluent.Models.GalleryInner>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, galleryName As String, gallery As GalleryInner, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of GalleryInner))

Parámetros

resourceGroupName
String

Nombre del grupo de recursos.

galleryName
String

Nombre del Shared Image Gallery. Los caracteres permitidos son alfabetos y números con puntos y puntos permitidos en el medio. La longitud máxima es de 80 caracteres.

gallery
GalleryInner

Parámetros proporcionados para la operación de creación o actualización Shared Image Gallery.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se aplica a