Share via


TrustPolicy Class

Definition

The content trust policy for a container registry.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.TrustPolicyTypeConverter))]
public class TrustPolicy : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ITrustPolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.TrustPolicyTypeConverter))>]
type TrustPolicy = class
    interface ITrustPolicy
    interface IJsonSerializable
Public Class TrustPolicy
Implements ITrustPolicy
Inheritance
TrustPolicy
Attributes
Implements

Constructors

Name Description
TrustPolicy()

Creates an new TrustPolicy instance.

Properties

Name Description
Status

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

Type

The type of trust policy.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of TrustPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of TrustPolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ITrustPolicy.

FromJsonString(String)

Creates a new instance of TrustPolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of TrustPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to