//
 // 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);
         this.StaticWebsite         = PSStaticWebsiteProperties.ParsePSStaticWebsiteProperties(properties.StaticWebsite);
     }
 }
        //
        // Summary:
        //     Parse DeleteRetentionPolicy object in SDK to wrapped  PSDeleteRetentionPolicy object
        public static PSStaticWebsiteProperties ParsePSStaticWebsiteProperties(StaticWebsiteProperties staticWebsiteProperties)
        {
            if (staticWebsiteProperties == null)
            {
                return(null);
            }
            PSStaticWebsiteProperties psProperties = new PSStaticWebsiteProperties();

            psProperties.Enabled              = staticWebsiteProperties.Enabled;
            psProperties.IndexDocument        = staticWebsiteProperties.IndexDocument;
            psProperties.ErrorDocument404Path = staticWebsiteProperties.ErrorDocument404Path;
            return(psProperties);
        }