/// <summary>
 /// Initializes a new instance of the EndpointUpdateParameters class.
 /// </summary>
 /// <param name="tags">Endpoint tags.</param>
 /// <param name="originHostHeader">The host header value sent to the
 /// origin with each request. If you leave this blank, the request
 /// hostname determines this value. Azure CDN origins, such as Web
 /// Apps, Blob Storage, and Cloud Services require this host header
 /// value to match the origin hostname by default.</param>
 /// <param name="originPath">A directory path on the origin that CDN
 /// can use to retrieve content from, e.g.
 /// contoso.cloudapp.net/originpath.</param>
 /// <param name="contentTypesToCompress">List of content types on which
 /// compression applies. The value should be a valid MIME type.</param>
 /// <param name="isCompressionEnabled">Indicates whether content
 /// compression is enabled on CDN. Default value is false. If
 /// compression is enabled, content will be served as compressed if
 /// user requests for a compressed version. Content won't be compressed
 /// on CDN when requested content is smaller than 1 byte or larger than
 /// 1 MB.</param>
 /// <param name="isHttpAllowed">Indicates whether HTTP traffic is
 /// allowed on the endpoint. Default value is true. At least one
 /// protocol (HTTP or HTTPS) must be allowed.</param>
 /// <param name="isHttpsAllowed">Indicates whether HTTPS traffic is
 /// allowed on the endpoint. Default value is true. At least one
 /// protocol (HTTP or HTTPS) must be allowed.</param>
 /// <param name="queryStringCachingBehavior">Defines how CDN caches
 /// requests that include query strings. You can ignore any query
 /// strings when caching, bypass caching to prevent requests that
 /// contain query strings from being cached, or cache every request
 /// with a unique URL. Possible values include: 'IgnoreQueryString',
 /// 'BypassCaching', 'UseQueryString', 'NotSet'</param>
 /// <param name="optimizationType">Specifies what scenario the customer
 /// wants this CDN endpoint to optimize for, e.g. Download, Media
 /// services. With this information, CDN can apply scenario driven
 /// optimization. Possible values include: 'GeneralWebDelivery',
 /// 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming',
 /// 'LargeFileDownload', 'DynamicSiteAcceleration'</param>
 /// <param name="probePath">Path to a file hosted on the origin which
 /// helps accelerate delivery of the dynamic content and calculate the
 /// most optimal routes for the CDN. This is relative to the origin
 /// path.</param>
 /// <param name="geoFilters">List of rules defining the user's geo
 /// access within a CDN endpoint. Each geo filter defines an access
 /// rule to a specified path or content, e.g. block APAC for path
 /// /pictures/</param>
 /// <param name="deliveryPolicy">A policy that specifies the delivery
 /// rules to be used for an endpoint.</param>
 public EndpointUpdateParameters(IDictionary <string, string> tags = default(IDictionary <string, string>), string originHostHeader = default(string), string originPath = default(string), IList <string> contentTypesToCompress = default(IList <string>), bool?isCompressionEnabled = default(bool?), bool?isHttpAllowed = default(bool?), bool?isHttpsAllowed = default(bool?), QueryStringCachingBehavior?queryStringCachingBehavior = default(QueryStringCachingBehavior?), OptimizationType optimizationType = default(OptimizationType), string probePath = default(string), IList <GeoFilter> geoFilters = default(IList <GeoFilter>), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy))
 {
     Tags                       = tags;
     OriginHostHeader           = originHostHeader;
     OriginPath                 = originPath;
     ContentTypesToCompress     = contentTypesToCompress;
     IsCompressionEnabled       = isCompressionEnabled;
     IsHttpAllowed              = isHttpAllowed;
     IsHttpsAllowed             = isHttpsAllowed;
     QueryStringCachingBehavior = queryStringCachingBehavior;
     OptimizationType           = optimizationType;
     ProbePath                  = probePath;
     GeoFilters                 = geoFilters;
     DeliveryPolicy             = deliveryPolicy;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the EndpointInner class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="origins">The source of the content being delivered via
 /// CDN.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="originHostHeader">The host header value sent to the
 /// origin with each request. If you leave this blank, the request
 /// hostname determines this value. Azure CDN origins, such as Web
 /// Apps, Blob Storage, and Cloud Services require this host header
 /// value to match the origin hostname by default.</param>
 /// <param name="originPath">A directory path on the origin that CDN
 /// can use to retrieve content from, e.g.
 /// contoso.cloudapp.net/originpath.</param>
 /// <param name="contentTypesToCompress">List of content types on which
 /// compression applies. The value should be a valid MIME type.</param>
 /// <param name="isCompressionEnabled">Indicates whether content
 /// compression is enabled on CDN. Default value is false. If
 /// compression is enabled, content will be served as compressed if
 /// user requests for a compressed version. Content won't be compressed
 /// on CDN when requested content is smaller than 1 byte or larger than
 /// 1 MB.</param>
 /// <param name="isHttpAllowed">Indicates whether HTTP traffic is
 /// allowed on the endpoint. Default value is true. At least one
 /// protocol (HTTP or HTTPS) must be allowed.</param>
 /// <param name="isHttpsAllowed">Indicates whether HTTPS traffic is
 /// allowed on the endpoint. Default value is true. At least one
 /// protocol (HTTP or HTTPS) must be allowed.</param>
 /// <param name="queryStringCachingBehavior">Defines how CDN caches
 /// requests that include query strings. You can ignore any query
 /// strings when caching, bypass caching to prevent requests that
 /// contain query strings from being cached, or cache every request
 /// with a unique URL. Possible values include: 'IgnoreQueryString',
 /// 'BypassCaching', 'UseQueryString', 'NotSet'</param>
 /// <param name="optimizationType">Specifies what scenario the customer
 /// wants this CDN endpoint to optimize for, e.g. Download, Media
 /// services. With this information, CDN can apply scenario driven
 /// optimization. Possible values include: 'GeneralWebDelivery',
 /// 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming',
 /// 'LargeFileDownload', 'DynamicSiteAcceleration'</param>
 /// <param name="probePath">Path to a file hosted on the origin which
 /// helps accelerate delivery of the dynamic content and calculate the
 /// most optimal routes for the CDN. This is relative to the origin
 /// path.</param>
 /// <param name="geoFilters">List of rules defining the user's geo
 /// access within a CDN endpoint. Each geo filter defines an access
 /// rule to a specified path or content, e.g. block APAC for path
 /// /pictures/</param>
 /// <param name="deliveryPolicy">A policy that specifies the delivery
 /// rules to be used for an endpoint.</param>
 /// <param name="hostName">The host name of the endpoint structured as
 /// {endpointName}.{DNSZone}, e.g. contoso.azureedge.net</param>
 /// <param name="resourceState">Resource status of the endpoint.
 /// Possible values include: 'Creating', 'Deleting', 'Running',
 /// 'Starting', 'Stopped', 'Stopping'</param>
 /// <param name="provisioningState">Provisioning status of the
 /// endpoint.</param>
 public EndpointInner(string location, IList <DeepCreatedOrigin> origins, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string originHostHeader = default(string), string originPath = default(string), IList <string> contentTypesToCompress = default(IList <string>), bool?isCompressionEnabled = default(bool?), bool?isHttpAllowed = default(bool?), bool?isHttpsAllowed = default(bool?), QueryStringCachingBehavior?queryStringCachingBehavior = default(QueryStringCachingBehavior?), OptimizationType optimizationType = default(OptimizationType), string probePath = default(string), IList <GeoFilter> geoFilters = default(IList <GeoFilter>), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy), string hostName = default(string), EndpointResourceState resourceState = default(EndpointResourceState), string provisioningState = default(string))
     : base(location, id, name, type, tags)
 {
     OriginHostHeader           = originHostHeader;
     OriginPath                 = originPath;
     ContentTypesToCompress     = contentTypesToCompress;
     IsCompressionEnabled       = isCompressionEnabled;
     IsHttpAllowed              = isHttpAllowed;
     IsHttpsAllowed             = isHttpsAllowed;
     QueryStringCachingBehavior = queryStringCachingBehavior;
     OptimizationType           = optimizationType;
     ProbePath         = probePath;
     GeoFilters        = geoFilters;
     DeliveryPolicy    = deliveryPolicy;
     HostName          = hostName;
     Origins           = origins;
     ResourceState     = resourceState;
     ProvisioningState = provisioningState;
     CustomInit();
 }