Compartir a través de


ContainerRegistryContentClient.SetManifestAsync Método

Definición

Sobrecargas

SetManifestAsync(OciImageManifest, String, Nullable<ManifestMediaType>, CancellationToken)

Establece un manifiesto.

SetManifestAsync(BinaryData, String, Nullable<ManifestMediaType>, CancellationToken)

Establece un manifiesto.

SetManifestAsync(OciImageManifest, String, Nullable<ManifestMediaType>, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Establece un manifiesto.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>> SetManifestAsync (Azure.Containers.ContainerRegistry.OciImageManifest manifest, string tag = default, Azure.Containers.ContainerRegistry.ManifestMediaType? mediaType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetManifestAsync : Azure.Containers.ContainerRegistry.OciImageManifest * string * Nullable<Azure.Containers.ContainerRegistry.ManifestMediaType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>>
override this.SetManifestAsync : Azure.Containers.ContainerRegistry.OciImageManifest * string * Nullable<Azure.Containers.ContainerRegistry.ManifestMediaType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>>
Public Overridable Function SetManifestAsync (manifest As OciImageManifest, Optional tag As String = Nothing, Optional mediaType As Nullable(Of ManifestMediaType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SetManifestResult))

Parámetros

manifest
OciImageManifest

Manifiesto que se va a establecer.

tag
String

Etiqueta opcional que se va a asignar al artefacto que representa este manifiesto.

mediaType
Nullable<ManifestMediaType>

Tipo de medio del manifiesto. Si no se especifica, este valor se establecerá en un valor predeterminado de "application/vnd.oci.image.manifest.v1+json".

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Resultado de la operación set manifest.

Excepciones

Si manifest es null.

Se produce cuando el servicio Container Registry devuelve un error.

Se aplica a

SetManifestAsync(BinaryData, String, Nullable<ManifestMediaType>, CancellationToken)

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Establece un manifiesto.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>> SetManifestAsync (BinaryData manifest, string tag = default, Azure.Containers.ContainerRegistry.ManifestMediaType? mediaType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetManifestAsync : BinaryData * string * Nullable<Azure.Containers.ContainerRegistry.ManifestMediaType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>>
override this.SetManifestAsync : BinaryData * string * Nullable<Azure.Containers.ContainerRegistry.ManifestMediaType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Containers.ContainerRegistry.SetManifestResult>>
Public Overridable Function SetManifestAsync (manifest As BinaryData, Optional tag As String = Nothing, Optional mediaType As Nullable(Of ManifestMediaType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SetManifestResult))

Parámetros

manifest
BinaryData

BinaryData que contiene el manifiesto serializado que se va a establecer.

tag
String

Etiqueta opcional que se va a asignar al artefacto que representa este manifiesto.

mediaType
Nullable<ManifestMediaType>

Tipo de medio del manifiesto. Si no se especifica, este valor se establecerá en un valor predeterminado de "application/vnd.oci.image.manifest.v1+json".

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Resultado de la operación set manifest.

Excepciones

Si manifest es null.

Se produce cuando el servicio Container Registry devuelve un error.

Se aplica a