/// <summary>
 /// Initializes a new instance of the Policies class.
 /// </summary>
 /// <param name="quarantinePolicy">The quarantine policy for a
 /// container registry.</param>
 /// <param name="trustPolicy">The content trust policy for a container
 /// registry.</param>
 /// <param name="retentionPolicy">The retention policy for a container
 /// registry.</param>
 public Policies(QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), RetentionPolicy retentionPolicy = default(RetentionPolicy))
 {
     QuarantinePolicy = quarantinePolicy;
     TrustPolicy      = trustPolicy;
     RetentionPolicy  = retentionPolicy;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the RegistryPolicies class.
 /// </summary>
 /// <param name="quarantinePolicy">An object that represents quarantine
 /// policy for a container registry.</param>
 /// <param name="trustPolicy">An object that represents content trust
 /// policy for a container registry.</param>
 public RegistryPolicies(QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy))
 {
     QuarantinePolicy = quarantinePolicy;
     TrustPolicy      = trustPolicy;
     CustomInit();
 }