/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ImmutabilityPolicy != null)
     {
         ImmutabilityPolicy.Validate();
     }
 }
Exemplo n.º 2
0
 public PSImmutabilityPolicy(StorageModels.ImmutabilityPolicy policy)
 {
     this.ImmutabilityPeriodSinceCreationInDays = policy.ImmutabilityPeriodSinceCreationInDays;
     this.State = policy.State;
     this.Etag  = policy.Etag;
     this.Name  = policy.Name;
     this.Type  = policy.Type;
     this.Id    = policy.Id;
 }
Exemplo n.º 3
0
 public PSImmutabilityPolicy(StorageModels.ImmutabilityPolicy policy)
 {
     this.ImmutabilityPeriodSinceCreationInDays = policy.ImmutabilityPeriodSinceCreationInDays.Value;
     this.State = policy.State;
     this.Etag  = policy.Etag;
     this.Name  = policy.Name;
     this.Type  = policy.Type;
     this.Id    = policy.Id;
     this.AllowProtectedAppendWrites = policy.AllowProtectedAppendWrites;
 }