Share via


ContainerRegistryContentClient.SetManifest Method

Definition

Overloads

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

Sets a manifest.

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

Sets a manifest.

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

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Sets a manifest.

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

Parameters

manifest
OciImageManifest

The manifest to set.

tag
String

A optional tag to assign to the artifact this manifest represents.

mediaType
Nullable<ManifestMediaType>

The media type of the manifest. If not specified, this value will be set to a default value of "application/vnd.oci.image.manifest.v1+json".

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The result of the set manifest operation.

Applies to

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

Source:
ContainerRegistryContentClient.cs
Source:
ContainerRegistryContentClient.cs

Sets a manifest.

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

Parameters

manifest
BinaryData

The BinaryData containing the serialized manifest to set.

tag
String

A optional tag to assign to the artifact this manifest represents.

mediaType
Nullable<ManifestMediaType>

The media type of the manifest. If not specified, this value will be set to a default value of "application/vnd.oci.image.manifest.v1+json".

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The result of the set manifest operation.

Exceptions

If manifest is null.

Thrown when a failure is returned by the Container Registry service.

Applies to