//
        // Summary:
        //     Parse DeleteRetentionPolicy object in SDK to wrapped  PSDeleteRetentionPolicy object
        public static PSDeleteRetentionPolicy ParsePSDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)
        {
            if (deleteRetentionPolicy == null)
            {
                return(null);
            }
            PSDeleteRetentionPolicy policy = new PSDeleteRetentionPolicy();

            policy.Enabled       = deleteRetentionPolicy.Enabled;
            policy.RetentionDays = deleteRetentionPolicy.RetentionDays;
            return(policy);
        }
 //
 // Summary:
 //     Initializes a new instance of the PSSeriviceProperties class.
 public PSSeriviceProperties(ServiceProperties properties)
 {
     if (properties != null)
     {
         this.Logging               = properties.Logging;
         this.HourMetrics           = properties.HourMetrics;
         this.MinuteMetrics         = properties.MinuteMetrics;
         this.DefaultServiceVersion = properties.DefaultServiceVersion;
         this.Cors = PSCorsRule.ParseCorsRules(properties.Cors);
         this.DeleteRetentionPolicy = PSDeleteRetentionPolicy.ParsePSDeleteRetentionPolicy(properties.DeleteRetentionPolicy);
     }
 }