ContainerRegistryContentClient.SetManifestAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetManifestAsync(OciImageManifest, String, Nullable<ManifestMediaType>, CancellationToken)
Sets a manifest.
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))
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.
Exceptions
If manifest
is null.
Thrown when a failure is returned by the Container Registry service.
Applies to
SetManifestAsync(BinaryData, String, Nullable<ManifestMediaType>, CancellationToken)
Sets a manifest.
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))
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
Azure SDK for .NET