Megosztás a következőn keresztül:


ContainerRegistryRetentionPolicy Class

Definition

The retention policy for a container registry.

public class ContainerRegistryRetentionPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRetentionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRetentionPolicy>
type ContainerRegistryRetentionPolicy = class
    interface IJsonModel<ContainerRegistryRetentionPolicy>
    interface IPersistableModel<ContainerRegistryRetentionPolicy>
Public Class ContainerRegistryRetentionPolicy
Implements IJsonModel(Of ContainerRegistryRetentionPolicy), IPersistableModel(Of ContainerRegistryRetentionPolicy)
Inheritance
ContainerRegistryRetentionPolicy
Implements

Constructors

ContainerRegistryRetentionPolicy()

Initializes a new instance of ContainerRegistryRetentionPolicy.

Properties

Days

The number of days to retain an untagged manifest after which it gets purged.

LastUpdatedOn

The timestamp when the policy was last updated.

Status

The value that indicates whether the policy is enabled or not.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ContainerRegistryRetentionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContainerRegistryRetentionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerRegistryRetentionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerRegistryRetentionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContainerRegistryRetentionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to