Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Endpoint class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="origins">The source of the content being delivered via
 /// CDN.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</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="originHostHeader">The host header value sent to the
 /// origin with each request. This property at Endpoint is only allowed
 /// when endpoint uses single origin and can be overridden by the same
 /// property specified at origin.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="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. This property is only relevant when using a single
 /// origin.</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="defaultOriginGroup">A reference to the origin
 /// group.</param>
 /// <param name="urlSigningKeys">List of keys used to validate the
 /// signed URL hashes.</param>
 /// <param name="deliveryPolicy">A policy that specifies the delivery
 /// rules to be used for an endpoint.</param>
 /// <param name="webApplicationFirewallPolicyLink">Defines the Web
 /// Application Firewall policy for the endpoint (if
 /// applicable)</param>
 /// <param name="hostName">The host name of the endpoint structured as
 /// {endpointName}.{DNSZone}, e.g. contoso.azureedge.net</param>
 /// <param name="originGroups">The origin groups comprising of origins
 /// that are used for load balancing the traffic based on
 /// availability.</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 Endpoint(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>), SystemData systemData = default(SystemData), string originPath = default(string), IList <string> contentTypesToCompress = default(IList <string>), string originHostHeader = default(string), bool?isCompressionEnabled = default(bool?), bool?isHttpAllowed = default(bool?), bool?isHttpsAllowed = default(bool?), QueryStringCachingBehavior?queryStringCachingBehavior = default(QueryStringCachingBehavior?), string optimizationType = default(string), string probePath = default(string), IList <GeoFilter> geoFilters = default(IList <GeoFilter>), ResourceReference defaultOriginGroup = default(ResourceReference), IList <UrlSigningKey> urlSigningKeys = default(IList <UrlSigningKey>), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy), EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink), string hostName = default(string), IList <DeepCreatedOriginGroup> originGroups = default(IList <DeepCreatedOriginGroup>), string resourceState = default(string), string provisioningState = default(string))
     : base(location, id, name, type, tags, systemData)
 {
     OriginPath                 = originPath;
     ContentTypesToCompress     = contentTypesToCompress;
     OriginHostHeader           = originHostHeader;
     IsCompressionEnabled       = isCompressionEnabled;
     IsHttpAllowed              = isHttpAllowed;
     IsHttpsAllowed             = isHttpsAllowed;
     QueryStringCachingBehavior = queryStringCachingBehavior;
     OptimizationType           = optimizationType;
     ProbePath          = probePath;
     GeoFilters         = geoFilters;
     DefaultOriginGroup = defaultOriginGroup;
     UrlSigningKeys     = urlSigningKeys;
     DeliveryPolicy     = deliveryPolicy;
     WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink;
     HostName          = hostName;
     Origins           = origins;
     OriginGroups      = originGroups;
     ResourceState     = resourceState;
     ProvisioningState = provisioningState;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the RouteUpdateParameters class.
 /// </summary>
 /// <param name="customDomains">Domains referenced by this
 /// endpoint.</param>
 /// <param name="originGroup">A reference to the origin group.</param>
 /// <param name="originPath">A directory path on the origin that
 /// AzureFrontDoor can use to retrieve content from, e.g.
 /// contoso.cloudapp.net/originpath.</param>
 /// <param name="ruleSets">rule sets referenced by this
 /// endpoint.</param>
 /// <param name="supportedProtocols">List of supported protocols for
 /// this route.</param>
 /// <param name="patternsToMatch">The route patterns of the
 /// rule.</param>
 /// <param name="compressionSettings">compression settings.</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',
 /// 'UseQueryString', 'NotSet'</param>
 /// <param name="forwardingProtocol">Protocol this rule will use when
 /// forwarding traffic to backends. Possible values include:
 /// 'HttpOnly', 'HttpsOnly', 'MatchRequest'</param>
 /// <param name="linkToDefaultDomain">whether this route will be linked
 /// to the default endpoint domain. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="httpsRedirect">Whether to automatically redirect HTTP
 /// traffic to HTTPS traffic. Note that this is a easy way to set up
 /// this rule and it will be the first rule that gets executed.
 /// Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="enabledState">Whether to enable use of this rule.
 /// Permitted values are 'Enabled' or 'Disabled'. Possible values
 /// include: 'Enabled', 'Disabled'</param>
 public RouteUpdateParameters(IList <ResourceReference> customDomains = default(IList <ResourceReference>), ResourceReference originGroup = default(ResourceReference), string originPath = default(string), IList <ResourceReference> ruleSets = default(IList <ResourceReference>), IList <string> supportedProtocols = default(IList <string>), IList <string> patternsToMatch = default(IList <string>), object compressionSettings = default(object), AfdQueryStringCachingBehavior?queryStringCachingBehavior = default(AfdQueryStringCachingBehavior?), string forwardingProtocol = default(string), string linkToDefaultDomain = default(string), string httpsRedirect = default(string), string enabledState = default(string))
 {
     CustomDomains              = customDomains;
     OriginGroup                = originGroup;
     OriginPath                 = originPath;
     RuleSets                   = ruleSets;
     SupportedProtocols         = supportedProtocols;
     PatternsToMatch            = patternsToMatch;
     CompressionSettings        = compressionSettings;
     QueryStringCachingBehavior = queryStringCachingBehavior;
     ForwardingProtocol         = forwardingProtocol;
     LinkToDefaultDomain        = linkToDefaultDomain;
     HttpsRedirect              = httpsRedirect;
     EnabledState               = enabledState;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the AFDDomainHttpsParameters class.
 /// </summary>
 /// <param name="certificateType">Defines the source of the SSL
 /// certificate. Possible values include: 'CustomerCertificate',
 /// 'ManagedCertificate'</param>
 /// <param name="minimumTlsVersion">TLS protocol version that will be
 /// used for Https. Possible values include: 'TLS10', 'TLS12'</param>
 /// <param name="secret">Resource reference to the secret. ie.
 /// subs/rg/profile/secret</param>
 public AFDDomainHttpsParameters(string certificateType, AfdMinimumTlsVersion?minimumTlsVersion = default(AfdMinimumTlsVersion?), ResourceReference secret = default(ResourceReference))
 {
     CertificateType   = certificateType;
     MinimumTlsVersion = minimumTlsVersion;
     Secret            = secret;
     CustomInit();
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the
 /// OriginGroupOverrideActionParameters class.
 /// </summary>
 /// <param name="originGroup">defines the OriginGroup that would
 /// override the DefaultOriginGroup.</param>
 public OriginGroupOverrideActionParameters(ResourceReference originGroup)
 {
     OriginGroup = originGroup;
     CustomInit();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the AFDOrigin class.
 /// </summary>
 /// <param name="hostName">The address of the origin. Domain names,
 /// IPv4 addresses, and IPv6 addresses are supported.This should be
 /// unique across all origins in an endpoint.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="azureOrigin">Resource reference to the Azure origin
 /// resource.</param>
 /// <param name="httpPort">The value of the HTTP port. Must be between
 /// 1 and 65535.</param>
 /// <param name="httpsPort">The value of the HTTPS port. Must be
 /// between 1 and 65535.</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. This overrides the
 /// host header defined at Endpoint</param>
 /// <param name="priority">Priority of origin in given origin group for
 /// load balancing. Higher priorities will not be used for load
 /// balancing if any lower priority origin is healthy.Must be between 1
 /// and 5</param>
 /// <param name="weight">Weight of the origin in given origin group for
 /// load balancing. Must be between 1 and 1000</param>
 /// <param name="sharedPrivateLinkResource">The properties of the
 /// private link resource for private origin.</param>
 /// <param name="enabledState">Whether to enable health probes to be
 /// made against backends defined under backendPools. Health probes can
 /// only be disabled if there is a single enabled backend in single
 /// enabled backend pool. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="provisioningState">Provisioning status. Possible
 /// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
 /// 'Creating'</param>
 /// <param name="deploymentStatus">Possible values include:
 /// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'</param>
 public AFDOrigin(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), ResourceReference azureOrigin = default(ResourceReference), int?httpPort = default(int?), int?httpsPort = default(int?), string originHostHeader = default(string), int?priority = default(int?), int?weight = default(int?), object sharedPrivateLinkResource = default(object), string enabledState = default(string), string provisioningState = default(string), string deploymentStatus = default(string))
     : base(id, name, type, systemData)
 {
     AzureOrigin               = azureOrigin;
     HostName                  = hostName;
     HttpPort                  = httpPort;
     HttpsPort                 = httpsPort;
     OriginHostHeader          = originHostHeader;
     Priority                  = priority;
     Weight                    = weight;
     SharedPrivateLinkResource = sharedPrivateLinkResource;
     EnabledState              = enabledState;
     ProvisioningState         = provisioningState;
     DeploymentStatus          = deploymentStatus;
     CustomInit();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the AFDDomainUpdateParameters class.
 /// </summary>
 /// <param name="tlsSettings">The configuration specifying how to
 /// enable HTTPS for the domain - using AzureFrontDoor managed
 /// certificate or user's own certificate. If not specified, enabling
 /// ssl uses AzureFrontDoor managed certificate by default.</param>
 /// <param name="azureDnsZone">Resource reference to the Azure DNS
 /// zone</param>
 public AFDDomainUpdateParameters(AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference))
 {
     TlsSettings  = tlsSettings;
     AzureDnsZone = azureDnsZone;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the AFDDomain class.
 /// </summary>
 /// <param name="hostName">The host name of the domain. Must be a
 /// domain name.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tlsSettings">The configuration specifying how to
 /// enable HTTPS for the domain - using AzureFrontDoor managed
 /// certificate or user's own certificate. If not specified, enabling
 /// ssl uses AzureFrontDoor managed certificate by default.</param>
 /// <param name="azureDnsZone">Resource reference to the Azure DNS
 /// zone</param>
 /// <param name="provisioningState">Provisioning status. Possible
 /// values include: 'Succeeded', 'Failed', 'Updating', 'Deleting',
 /// 'Creating'</param>
 /// <param name="deploymentStatus">Possible values include:
 /// 'NotStarted', 'InProgress', 'Succeeded', 'Failed'</param>
 /// <param name="domainValidationState">Provisioning substate shows the
 /// progress of custom HTTPS enabling/disabling process step by step.
 /// DCV stands for DomainControlValidation. Possible values include:
 /// 'Unknown', 'Submitting', 'Pending', 'TimedOut',
 /// 'PendingRevalidation', 'Approved'</param>
 /// <param name="validationProperties">Values the customer needs to
 /// validate domain ownership</param>
 public AFDDomain(string hostName, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), AFDDomainHttpsParameters tlsSettings = default(AFDDomainHttpsParameters), ResourceReference azureDnsZone = default(ResourceReference), string provisioningState = default(string), string deploymentStatus = default(string), string domainValidationState = default(string), DomainValidationProperties validationProperties = default(DomainValidationProperties))
     : base(id, name, type, systemData)
 {
     TlsSettings           = tlsSettings;
     AzureDnsZone          = azureDnsZone;
     ProvisioningState     = provisioningState;
     DeploymentStatus      = deploymentStatus;
     DomainValidationState = domainValidationState;
     HostName             = hostName;
     ValidationProperties = validationProperties;
     CustomInit();
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the ValidateSecretInput class.
 /// </summary>
 /// <param name="secretSource">The secret source.</param>
 /// <param name="secretType">The secret type. Possible values include:
 /// 'UrlSigningKey', 'ManagedCertificate',
 /// 'CustomerCertificate'</param>
 public ValidateSecretInput(ResourceReference secretSource, string secretType)
 {
     SecretSource = secretSource;
     SecretType   = secretType;
     CustomInit();
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the
 /// SecurityPolicyWebApplicationFirewallParameters class.
 /// </summary>
 /// <param name="wafPolicy">Resource ID.</param>
 /// <param name="associations">Waf associations</param>
 public SecurityPolicyWebApplicationFirewallParameters(ResourceReference wafPolicy = default(ResourceReference), IList <SecurityPolicyWebApplicationFirewallAssociation> associations = default(IList <SecurityPolicyWebApplicationFirewallAssociation>))
 {
     WafPolicy    = wafPolicy;
     Associations = associations;
     CustomInit();
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the EndpointUpdateParameters class.
 /// </summary>
 /// <param name="tags">Endpoint tags.</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="originHostHeader">The host header value sent to the
 /// origin with each request. This property at Endpoint is only allowed
 /// when endpoint uses single origin and can be overridden by the same
 /// property specified at origin.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="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. This property is only relevant when using a single
 /// origin.</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="defaultOriginGroup">A reference to the origin
 /// group.</param>
 /// <param name="urlSigningKeys">List of keys used to validate the
 /// signed URL hashes.</param>
 /// <param name="deliveryPolicy">A policy that specifies the delivery
 /// rules to be used for an endpoint.</param>
 /// <param name="webApplicationFirewallPolicyLink">Defines the Web
 /// Application Firewall policy for the endpoint (if
 /// applicable)</param>
 public EndpointUpdateParameters(IDictionary <string, string> tags = default(IDictionary <string, string>), string originPath = default(string), IList <string> contentTypesToCompress = default(IList <string>), string originHostHeader = default(string), bool?isCompressionEnabled = default(bool?), bool?isHttpAllowed = default(bool?), bool?isHttpsAllowed = default(bool?), QueryStringCachingBehavior?queryStringCachingBehavior = default(QueryStringCachingBehavior?), string optimizationType = default(string), string probePath = default(string), IList <GeoFilter> geoFilters = default(IList <GeoFilter>), ResourceReference defaultOriginGroup = default(ResourceReference), IList <UrlSigningKey> urlSigningKeys = default(IList <UrlSigningKey>), EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default(EndpointPropertiesUpdateParametersDeliveryPolicy), EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink))
 {
     Tags                             = tags;
     OriginPath                       = originPath;
     ContentTypesToCompress           = contentTypesToCompress;
     OriginHostHeader                 = originHostHeader;
     IsCompressionEnabled             = isCompressionEnabled;
     IsHttpAllowed                    = isHttpAllowed;
     IsHttpsAllowed                   = isHttpsAllowed;
     QueryStringCachingBehavior       = queryStringCachingBehavior;
     OptimizationType                 = optimizationType;
     ProbePath                        = probePath;
     GeoFilters                       = geoFilters;
     DefaultOriginGroup               = defaultOriginGroup;
     UrlSigningKeys                   = urlSigningKeys;
     DeliveryPolicy                   = deliveryPolicy;
     WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink;
     CustomInit();
 }