共用方式為


ContainerRegistryPolicies Class

Definition

The policies for a container registry.

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

Constructors

ContainerRegistryPolicies()

Initializes a new instance of ContainerRegistryPolicies.

Properties

ExportStatus

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

QuarantineStatus

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

RetentionPolicy

The retention policy for a container registry.

TrustPolicy

The content trust policy for a container registry.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ContainerRegistryPolicies>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ContainerRegistryPolicies>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerRegistryPolicies>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerRegistryPolicies>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ContainerRegistryPolicies>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to