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