コード例 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ImmutabilityPolicy != null)
     {
         ImmutabilityPolicy.Validate();
     }
 }
コード例 #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;
 }
コード例 #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;
 }