gcore 0.13.0__py3-none-any.whl → 0.14.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +3 -1
- gcore/_base_client.py +9 -9
- gcore/_client.py +25 -10
- gcore/_models.py +10 -4
- gcore/_qs.py +7 -7
- gcore/_types.py +18 -11
- gcore/_utils/_transform.py +2 -2
- gcore/_utils/_utils.py +4 -4
- gcore/_version.py +1 -1
- gcore/pagination.py +137 -0
- gcore/resources/__init__.py +14 -0
- gcore/resources/cdn/__init__.py +201 -0
- gcore/resources/cdn/audit_log.py +406 -0
- gcore/resources/cdn/cdn.py +957 -0
- gcore/resources/cdn/certificates.py +1062 -0
- gcore/resources/cdn/ip_ranges.py +224 -0
- gcore/resources/cdn/logs/__init__.py +33 -0
- gcore/resources/cdn/logs/logs.py +1424 -0
- gcore/resources/cdn/logs/settings.py +1081 -0
- gcore/resources/cdn/logs_uploader/__init__.py +61 -0
- gcore/resources/cdn/logs_uploader/configs.py +868 -0
- gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
- gcore/resources/cdn/logs_uploader/policies.py +1060 -0
- gcore/resources/cdn/logs_uploader/targets.py +811 -0
- gcore/resources/cdn/metrics.py +419 -0
- gcore/resources/cdn/network_capacity.py +139 -0
- gcore/resources/cdn/origin_groups.py +1496 -0
- gcore/resources/cdn/resources/__init__.py +47 -0
- gcore/resources/cdn/resources/resources.py +2060 -0
- gcore/resources/cdn/resources/rules.py +1027 -0
- gcore/resources/cdn/resources/shield.py +259 -0
- gcore/resources/cdn/rule_templates.py +883 -0
- gcore/resources/cdn/shields.py +139 -0
- gcore/resources/cdn/statistics.py +1408 -0
- gcore/resources/cdn/trusted_ca_certificates.py +592 -0
- gcore/resources/cloud/audit_logs.py +33 -29
- gcore/resources/cloud/baremetal/flavors.py +21 -17
- gcore/resources/cloud/baremetal/images.py +19 -15
- gcore/resources/cloud/baremetal/servers.py +141 -119
- gcore/resources/cloud/billing_reservations.py +41 -33
- gcore/resources/cloud/cloud.py +24 -0
- gcore/resources/cloud/cost_reports.py +149 -119
- gcore/resources/cloud/file_shares/access_rules.py +25 -13
- gcore/resources/cloud/file_shares/file_shares.py +107 -71
- gcore/resources/cloud/floating_ips.py +101 -59
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
- gcore/resources/cloud/inference/api_keys.py +51 -31
- gcore/resources/cloud/inference/applications/deployments.py +49 -31
- gcore/resources/cloud/inference/applications/templates.py +17 -9
- gcore/resources/cloud/inference/deployments/deployments.py +171 -139
- gcore/resources/cloud/inference/deployments/logs.py +17 -13
- gcore/resources/cloud/inference/flavors.py +21 -13
- gcore/resources/cloud/inference/inference.py +9 -5
- gcore/resources/cloud/inference/registry_credentials.py +45 -25
- gcore/resources/cloud/inference/secrets.py +45 -25
- gcore/resources/cloud/instances/flavors.py +17 -13
- gcore/resources/cloud/instances/images.py +153 -129
- gcore/resources/cloud/instances/instances.py +287 -213
- gcore/resources/cloud/instances/interfaces.py +165 -161
- gcore/resources/cloud/instances/metrics.py +9 -5
- gcore/resources/cloud/ip_ranges.py +25 -15
- gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
- gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
- gcore/resources/cloud/k8s/flavors.py +13 -9
- gcore/resources/cloud/k8s/k8s.py +9 -5
- gcore/resources/cloud/load_balancers/flavors.py +11 -7
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
- gcore/resources/cloud/load_balancers/listeners.py +125 -105
- gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
- gcore/resources/cloud/load_balancers/metrics.py +9 -5
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
- gcore/resources/cloud/load_balancers/pools/members.py +31 -23
- gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
- gcore/resources/cloud/load_balancers/statuses.py +17 -9
- gcore/resources/cloud/networks/networks.py +79 -55
- gcore/resources/cloud/networks/routers.py +75 -47
- gcore/resources/cloud/networks/subnets.py +105 -81
- gcore/resources/cloud/placement_groups.py +33 -17
- gcore/resources/cloud/projects.py +53 -41
- gcore/resources/cloud/quotas/quotas.py +25 -13
- gcore/resources/cloud/quotas/requests.py +41 -25
- gcore/resources/cloud/regions.py +25 -23
- gcore/resources/cloud/registries/artifacts.py +17 -9
- gcore/resources/cloud/registries/registries.py +55 -29
- gcore/resources/cloud/registries/repositories.py +17 -9
- gcore/resources/cloud/registries/tags.py +9 -5
- gcore/resources/cloud/registries/users.py +65 -35
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +123 -107
- gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
- gcore/resources/cloud/secrets.py +43 -27
- gcore/resources/cloud/security_groups/rules.py +55 -43
- gcore/resources/cloud/security_groups/security_groups.py +79 -47
- gcore/resources/cloud/ssh_keys.py +51 -31
- gcore/resources/cloud/tasks.py +57 -45
- gcore/resources/cloud/usage_reports.py +27 -23
- gcore/resources/cloud/users/role_assignments.py +49 -33
- gcore/resources/cloud/volumes.py +237 -201
- gcore/resources/dns/dns.py +17 -13
- gcore/resources/dns/locations.py +29 -17
- gcore/resources/dns/metrics.py +13 -9
- gcore/resources/dns/pickers/pickers.py +5 -5
- gcore/resources/dns/pickers/presets.py +9 -5
- gcore/resources/dns/zones/dnssec.py +19 -11
- gcore/resources/dns/zones/rrsets.py +149 -91
- gcore/resources/dns/zones/zones.py +245 -187
- gcore/resources/fastedge/apps/apps.py +105 -89
- gcore/resources/fastedge/apps/logs.py +25 -21
- gcore/resources/fastedge/binaries.py +33 -17
- gcore/resources/fastedge/fastedge.py +5 -5
- gcore/resources/fastedge/kv_stores.py +43 -31
- gcore/resources/fastedge/secrets.py +69 -45
- gcore/resources/fastedge/statistics.py +25 -17
- gcore/resources/fastedge/templates.py +59 -39
- gcore/resources/iam/api_tokens.py +43 -27
- gcore/resources/iam/iam.py +5 -5
- gcore/resources/iam/users.py +97 -65
- gcore/resources/security/bgp_announces.py +27 -19
- gcore/resources/security/events.py +23 -19
- gcore/resources/security/profile_templates.py +9 -5
- gcore/resources/security/profiles.py +69 -45
- gcore/resources/storage/buckets/buckets.py +37 -25
- gcore/resources/storage/buckets/cors.py +19 -11
- gcore/resources/storage/buckets/lifecycle.py +19 -11
- gcore/resources/storage/buckets/policy.py +25 -13
- gcore/resources/storage/credentials.py +19 -15
- gcore/resources/storage/locations.py +13 -9
- gcore/resources/storage/statistics.py +39 -31
- gcore/resources/storage/storage.py +105 -69
- gcore/resources/streaming/ai_tasks.py +307 -197
- gcore/resources/streaming/broadcasts.py +63 -35
- gcore/resources/streaming/directories.py +65 -39
- gcore/resources/streaming/players.py +47 -31
- gcore/resources/streaming/playlists.py +189 -123
- gcore/resources/streaming/quality_sets.py +69 -39
- gcore/resources/streaming/restreams.py +47 -27
- gcore/resources/streaming/statistics.py +613 -407
- gcore/resources/streaming/streams/overlays.py +107 -67
- gcore/resources/streaming/streams/streams.py +403 -263
- gcore/resources/streaming/videos/subtitles.py +131 -75
- gcore/resources/streaming/videos/videos.py +429 -279
- gcore/resources/waap/advanced_rules.py +9 -5
- gcore/resources/waap/custom_page_sets.py +99 -75
- gcore/resources/waap/domains/advanced_rules.py +157 -99
- gcore/resources/waap/domains/api_discovery.py +71 -47
- gcore/resources/waap/domains/api_path_groups.py +9 -5
- gcore/resources/waap/domains/api_paths.py +79 -83
- gcore/resources/waap/domains/custom_rules.py +89 -59
- gcore/resources/waap/domains/domains.py +59 -41
- gcore/resources/waap/domains/firewall_rules.py +83 -55
- gcore/resources/waap/domains/insight_silences.py +59 -39
- gcore/resources/waap/domains/insights.py +39 -27
- gcore/resources/waap/domains/settings.py +21 -13
- gcore/resources/waap/domains/statistics.py +99 -75
- gcore/resources/waap/insights.py +23 -21
- gcore/resources/waap/ip_info/ip_info.py +65 -33
- gcore/resources/waap/ip_info/metrics.py +11 -7
- gcore/resources/waap/organizations.py +17 -13
- gcore/resources/waap/statistics.py +9 -5
- gcore/resources/waap/tags.py +17 -17
- gcore/resources/waap/waap.py +5 -5
- gcore/types/cdn/__init__.py +80 -0
- gcore/types/cdn/audit_log_list_params.py +73 -0
- gcore/types/cdn/ca_certificate.py +53 -0
- gcore/types/cdn/ca_certificate_list.py +10 -0
- gcore/types/cdn/cdn_account.py +86 -0
- gcore/types/cdn/cdn_account_limits.py +27 -0
- gcore/types/cdn/cdn_audit_log_entry.py +66 -0
- gcore/types/cdn/cdn_available_features.py +46 -0
- gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
- gcore/types/cdn/cdn_log_entry.py +70 -0
- gcore/types/cdn/cdn_metrics.py +22 -0
- gcore/types/cdn/cdn_metrics_groups.py +13 -0
- gcore/types/cdn/cdn_metrics_values.py +19 -0
- gcore/types/cdn/cdn_resource.py +1977 -0
- gcore/types/cdn/cdn_resource_list.py +10 -0
- gcore/types/cdn/cdn_update_account_params.py +15 -0
- gcore/types/cdn/certificate_create_params.py +51 -0
- gcore/types/cdn/certificate_get_status_params.py +14 -0
- gcore/types/cdn/certificate_list_params.py +29 -0
- gcore/types/cdn/certificate_replace_params.py +39 -0
- gcore/types/cdn/log_download_params.py +279 -0
- gcore/types/cdn/log_list_params.py +273 -0
- gcore/types/cdn/logs/__init__.py +7 -0
- gcore/types/cdn/logs/log_settings.py +172 -0
- gcore/types/cdn/logs/setting_create_params.py +200 -0
- gcore/types/cdn/logs/setting_update_params.py +200 -0
- gcore/types/cdn/logs_aggregated_stats.py +23 -0
- gcore/types/cdn/logs_uploader/__init__.py +23 -0
- gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
- gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
- gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
- gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
- gcore/types/cdn/logs_uploader_validation.py +23 -0
- gcore/types/cdn/metric_list_params.py +168 -0
- gcore/types/cdn/network_capacity.py +22 -0
- gcore/types/cdn/origin_group_create_params.py +184 -0
- gcore/types/cdn/origin_group_list_params.py +24 -0
- gcore/types/cdn/origin_group_replace_params.py +190 -0
- gcore/types/cdn/origin_group_update_params.py +190 -0
- gcore/types/cdn/origin_groups.py +212 -0
- gcore/types/cdn/origin_groups_list.py +10 -0
- gcore/types/cdn/public_ip_list.py +15 -0
- gcore/types/cdn/public_network_list.py +15 -0
- gcore/types/cdn/purge_status.py +55 -0
- gcore/types/cdn/resource_aggregated_stats.py +80 -0
- gcore/types/cdn/resource_create_params.py +1825 -0
- gcore/types/cdn/resource_list_params.py +107 -0
- gcore/types/cdn/resource_prefetch_params.py +17 -0
- gcore/types/cdn/resource_purge_params.py +71 -0
- gcore/types/cdn/resource_replace_params.py +1803 -0
- gcore/types/cdn/resource_update_params.py +1794 -0
- gcore/types/cdn/resource_usage_stats.py +111 -0
- gcore/types/cdn/resources/__init__.py +11 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +1695 -0
- gcore/types/cdn/resources/origin_shielding.py +15 -0
- gcore/types/cdn/resources/rule_create_params.py +1652 -0
- gcore/types/cdn/resources/rule_list_response.py +10 -0
- gcore/types/cdn/resources/rule_replace_params.py +1654 -0
- gcore/types/cdn/resources/rule_update_params.py +1654 -0
- gcore/types/cdn/resources/shield_replace_params.py +16 -0
- gcore/types/cdn/rule_template.py +1666 -0
- gcore/types/cdn/rule_template_create_params.py +1636 -0
- gcore/types/cdn/rule_template_list.py +10 -0
- gcore/types/cdn/rule_template_replace_params.py +1636 -0
- gcore/types/cdn/rule_template_update_params.py +1636 -0
- gcore/types/cdn/shield_aggregated_stats.py +23 -0
- gcore/types/cdn/shield_list_response.py +25 -0
- gcore/types/cdn/ssl_detail.py +62 -0
- gcore/types/cdn/ssl_detail_list.py +10 -0
- gcore/types/cdn/ssl_request_status.py +135 -0
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
- gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
- gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
- gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
- gcore/types/cdn/usage_series_stats.py +31 -0
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/file_share.py +4 -0
- gcore/types/cloud/file_share_create_params.py +20 -0
- gcore/types/cloud/file_share_update_params.py +40 -3
- gcore/types/cloud/floating_ip_update_params.py +3 -1
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
- gcore/types/cloud/inference/inference_deployment.py +3 -1
- gcore/types/cloud/instance_create_params.py +3 -1
- gcore/types/cloud/k8s/cluster_create_params.py +46 -4
- gcore/types/cloud/k8s/cluster_update_params.py +60 -6
- gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
- gcore/types/cloud/k8s/k8s_cluster.py +40 -3
- gcore/types/cloud/load_balancer_update_params.py +3 -1
- gcore/types/cloud/network_update_params.py +3 -1
- gcore/types/cloud/networks/subnet_update_params.py +3 -1
- gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
- gcore/types/cloud/registries/user_create_params.py +5 -3
- gcore/types/cloud/registry_create_params.py +5 -3
- gcore/types/cloud/security_group_update_params.py +3 -1
- gcore/types/cloud/ssh_key_created.py +6 -3
- gcore/types/cloud/volume_update_params.py +3 -1
- gcore/types/dns/zone_get_statistics_params.py +12 -9
- gcore/types/dns/zone_get_statistics_response.py +3 -1
- gcore/types/dns/zone_import_params.py +21 -15
- gcore/types/dns/zones/dns_output_rrset.py +7 -3
- gcore/types/iam/account_overview.py +7 -2
- gcore/types/iam/user.py +7 -2
- gcore/types/iam/user_detailed.py +7 -2
- gcore/types/iam/user_invite_params.py +4 -1
- gcore/types/iam/user_update.py +7 -2
- gcore/types/iam/user_update_params.py +7 -2
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
- gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
- gcore/types/streaming/ai_task.py +20 -11
- gcore/types/streaming/ai_task_create_params.py +20 -11
- gcore/types/streaming/ai_task_get_response.py +5 -4
- gcore/types/streaming/ai_task_list_params.py +11 -5
- gcore/types/streaming/clip.py +33 -22
- gcore/types/streaming/create_video_param.py +75 -43
- gcore/types/streaming/playlist.py +7 -5
- gcore/types/streaming/playlist_create_params.py +7 -5
- gcore/types/streaming/playlist_update_params.py +7 -5
- gcore/types/streaming/playlist_video.py +75 -43
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
- gcore/types/streaming/stream.py +207 -136
- gcore/types/streaming/stream_create_clip_params.py +33 -22
- gcore/types/streaming/stream_create_params.py +41 -24
- gcore/types/streaming/stream_update_params.py +41 -24
- gcore/types/streaming/video.py +138 -76
- gcore/types/streaming/video_list_params.py +4 -2
- gcore/types/streaming/video_update_params.py +75 -43
- gcore/types/waap/domain_update_params.py +2 -2
- gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
- gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
- gcore/types/waap/domains/api_path_create_params.py +0 -3
- gcore/types/waap/domains/api_path_update_params.py +1 -3
- gcore/types/waap/domains/custom_rule_create_params.py +36 -35
- gcore/types/waap/domains/custom_rule_update_params.py +31 -33
- gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
- gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
- gcore/types/waap/domains/waap_advanced_rule.py +17 -9
- gcore/types/waap/domains/waap_custom_rule.py +5 -2
- gcore/types/waap/domains/waap_firewall_rule.py +1 -1
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/insight_list_types_params.py +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/METADATA +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/RECORD +334 -214
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/WHEEL +0 -0
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,1636 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..._types import SequenceNotStr
|
|
9
|
+
from ..._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"RuleTemplateReplaceParams",
|
|
13
|
+
"Options",
|
|
14
|
+
"OptionsAllowedHTTPMethods",
|
|
15
|
+
"OptionsBotProtection",
|
|
16
|
+
"OptionsBotProtectionBotChallenge",
|
|
17
|
+
"OptionsBrotliCompression",
|
|
18
|
+
"OptionsBrowserCacheSettings",
|
|
19
|
+
"OptionsCacheHTTPHeaders",
|
|
20
|
+
"OptionsCors",
|
|
21
|
+
"OptionsCountryACL",
|
|
22
|
+
"OptionsDisableCache",
|
|
23
|
+
"OptionsDisableProxyForceRanges",
|
|
24
|
+
"OptionsEdgeCacheSettings",
|
|
25
|
+
"OptionsFastedge",
|
|
26
|
+
"OptionsFastedgeOnRequestBody",
|
|
27
|
+
"OptionsFastedgeOnRequestHeaders",
|
|
28
|
+
"OptionsFastedgeOnResponseBody",
|
|
29
|
+
"OptionsFastedgeOnResponseHeaders",
|
|
30
|
+
"OptionsFetchCompressed",
|
|
31
|
+
"OptionsFollowOriginRedirect",
|
|
32
|
+
"OptionsForceReturn",
|
|
33
|
+
"OptionsForceReturnTimeInterval",
|
|
34
|
+
"OptionsForwardHostHeader",
|
|
35
|
+
"OptionsGzipOn",
|
|
36
|
+
"OptionsHostHeader",
|
|
37
|
+
"OptionsIgnoreCookie",
|
|
38
|
+
"OptionsIgnoreQueryString",
|
|
39
|
+
"OptionsImageStack",
|
|
40
|
+
"OptionsIPAddressACL",
|
|
41
|
+
"OptionsLimitBandwidth",
|
|
42
|
+
"OptionsProxyCacheKey",
|
|
43
|
+
"OptionsProxyCacheMethodsSet",
|
|
44
|
+
"OptionsProxyConnectTimeout",
|
|
45
|
+
"OptionsProxyReadTimeout",
|
|
46
|
+
"OptionsQueryParamsBlacklist",
|
|
47
|
+
"OptionsQueryParamsWhitelist",
|
|
48
|
+
"OptionsQueryStringForwarding",
|
|
49
|
+
"OptionsRedirectHTTPToHTTPS",
|
|
50
|
+
"OptionsRedirectHTTPSToHTTP",
|
|
51
|
+
"OptionsReferrerACL",
|
|
52
|
+
"OptionsRequestLimiter",
|
|
53
|
+
"OptionsResponseHeadersHidingPolicy",
|
|
54
|
+
"OptionsRewrite",
|
|
55
|
+
"OptionsSecureKey",
|
|
56
|
+
"OptionsSlice",
|
|
57
|
+
"OptionsSni",
|
|
58
|
+
"OptionsStale",
|
|
59
|
+
"OptionsStaticResponseHeaders",
|
|
60
|
+
"OptionsStaticResponseHeadersValue",
|
|
61
|
+
"OptionsStaticHeaders",
|
|
62
|
+
"OptionsStaticRequestHeaders",
|
|
63
|
+
"OptionsUserAgentACL",
|
|
64
|
+
"OptionsWaap",
|
|
65
|
+
"OptionsWebsockets",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class RuleTemplateReplaceParams(TypedDict, total=False):
|
|
70
|
+
rule: Required[str]
|
|
71
|
+
"""Path to the file or folder for which the rule will be applied.
|
|
72
|
+
|
|
73
|
+
The rule is applied if the requested URI matches the rule path.
|
|
74
|
+
|
|
75
|
+
We add a leading forward slash to any rule path. Specify a path without a
|
|
76
|
+
forward slash.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
rule_type: Required[Annotated[int, PropertyInfo(alias="ruleType")]]
|
|
80
|
+
"""Rule type.
|
|
81
|
+
|
|
82
|
+
Possible values:
|
|
83
|
+
|
|
84
|
+
- **Type 0** - Regular expression. Must start with '^/' or '/'.
|
|
85
|
+
- **Type 1** - Regular expression. Note that for this rule type we automatically
|
|
86
|
+
add / to each rule pattern before your regular expression. This type is
|
|
87
|
+
**legacy**, please use Type 0.
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
name: str
|
|
91
|
+
"""Rule template name."""
|
|
92
|
+
|
|
93
|
+
options: Options
|
|
94
|
+
"""List of options that can be configured for the rule.
|
|
95
|
+
|
|
96
|
+
In case of `null` value the option is not added to the rule. Option inherits its
|
|
97
|
+
value from the CDN resource settings.
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
override_origin_protocol: Annotated[
|
|
101
|
+
Optional[Literal["HTTPS", "HTTP", "MATCH"]], PropertyInfo(alias="overrideOriginProtocol")
|
|
102
|
+
]
|
|
103
|
+
"""
|
|
104
|
+
Sets a protocol other than the one specified in the CDN resource settings to
|
|
105
|
+
connect to the origin.
|
|
106
|
+
|
|
107
|
+
Possible values:
|
|
108
|
+
|
|
109
|
+
- **HTTPS** - CDN servers connect to origin via HTTPS protocol.
|
|
110
|
+
- **HTTP** - CDN servers connect to origin via HTTP protocol.
|
|
111
|
+
- **MATCH** - Connection protocol is chosen automatically; in this case, content
|
|
112
|
+
on origin source should be available for the CDN both through HTTP and HTTPS
|
|
113
|
+
protocols.
|
|
114
|
+
- **null** - `originProtocol` setting is inherited from the CDN resource
|
|
115
|
+
settings.
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
weight: int
|
|
119
|
+
"""Rule execution order: from lowest (1) to highest.
|
|
120
|
+
|
|
121
|
+
If requested URI matches multiple rules, the one higher in the order of the
|
|
122
|
+
rules will be applied.
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class OptionsAllowedHTTPMethods(TypedDict, total=False):
|
|
127
|
+
enabled: Required[bool]
|
|
128
|
+
"""Controls the option state.
|
|
129
|
+
|
|
130
|
+
Possible values:
|
|
131
|
+
|
|
132
|
+
- **true** - Option is enabled.
|
|
133
|
+
- **false** - Option is disabled.
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
value: Required[List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]]
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class OptionsBotProtectionBotChallenge(TypedDict, total=False):
|
|
140
|
+
enabled: bool
|
|
141
|
+
"""Possible values:
|
|
142
|
+
|
|
143
|
+
- **true** - Bot challenge is enabled.
|
|
144
|
+
- **false** - Bot challenge is disabled.
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
class OptionsBotProtection(TypedDict, total=False):
|
|
149
|
+
bot_challenge: Required[OptionsBotProtectionBotChallenge]
|
|
150
|
+
"""Controls the bot challenge module state."""
|
|
151
|
+
|
|
152
|
+
enabled: Required[bool]
|
|
153
|
+
"""Controls the option state.
|
|
154
|
+
|
|
155
|
+
Possible values:
|
|
156
|
+
|
|
157
|
+
- **true** - Option is enabled.
|
|
158
|
+
- **false** - Option is disabled.
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class OptionsBrotliCompression(TypedDict, total=False):
|
|
163
|
+
enabled: Required[bool]
|
|
164
|
+
"""Controls the option state.
|
|
165
|
+
|
|
166
|
+
Possible values:
|
|
167
|
+
|
|
168
|
+
- **true** - Option is enabled.
|
|
169
|
+
- **false** - Option is disabled.
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
value: Required[
|
|
173
|
+
List[
|
|
174
|
+
Literal[
|
|
175
|
+
"application/javascript",
|
|
176
|
+
"application/json",
|
|
177
|
+
"application/vnd.ms-fontobject",
|
|
178
|
+
"application/wasm",
|
|
179
|
+
"application/x-font-ttf",
|
|
180
|
+
"application/x-javascript",
|
|
181
|
+
"application/xml",
|
|
182
|
+
"application/xml+rss",
|
|
183
|
+
"image/svg+xml",
|
|
184
|
+
"image/x-icon",
|
|
185
|
+
"text/css",
|
|
186
|
+
"text/html",
|
|
187
|
+
"text/javascript",
|
|
188
|
+
"text/plain",
|
|
189
|
+
"text/xml",
|
|
190
|
+
]
|
|
191
|
+
]
|
|
192
|
+
]
|
|
193
|
+
"""Allows to select the content types you want to compress.
|
|
194
|
+
|
|
195
|
+
`text/html` is a mandatory content type.
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class OptionsBrowserCacheSettings(TypedDict, total=False):
|
|
200
|
+
enabled: Required[bool]
|
|
201
|
+
"""Controls the option state.
|
|
202
|
+
|
|
203
|
+
Possible values:
|
|
204
|
+
|
|
205
|
+
- **true** - Option is enabled.
|
|
206
|
+
- **false** - Option is disabled.
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
value: Required[str]
|
|
210
|
+
"""Set the cache expiration time to '0s' to disable caching.
|
|
211
|
+
|
|
212
|
+
The maximum duration is any equivalent to `1y`.
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
class OptionsCacheHTTPHeaders(TypedDict, total=False):
|
|
217
|
+
enabled: Required[bool]
|
|
218
|
+
"""Controls the option state.
|
|
219
|
+
|
|
220
|
+
Possible values:
|
|
221
|
+
|
|
222
|
+
- **true** - Option is enabled.
|
|
223
|
+
- **false** - Option is disabled.
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
value: Required[SequenceNotStr[str]]
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
class OptionsCors(TypedDict, total=False):
|
|
230
|
+
enabled: Required[bool]
|
|
231
|
+
"""Controls the option state.
|
|
232
|
+
|
|
233
|
+
Possible values:
|
|
234
|
+
|
|
235
|
+
- **true** - Option is enabled.
|
|
236
|
+
- **false** - Option is disabled.
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
value: Required[SequenceNotStr[str]]
|
|
240
|
+
"""Value of the Access-Control-Allow-Origin header.
|
|
241
|
+
|
|
242
|
+
Possible values:
|
|
243
|
+
|
|
244
|
+
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
245
|
+
uploaded for requests from any domain. `"value": ["\\**"]`
|
|
246
|
+
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
247
|
+
origin matches one of the listed domains** - Content will be uploaded only for
|
|
248
|
+
requests from the domains specified in the field.
|
|
249
|
+
`"value": ["domain.com", "second.dom.com"]`
|
|
250
|
+
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
251
|
+
Content will be uploaded for requests from any domain, and the domain from
|
|
252
|
+
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
253
|
+
header in the response. `"value": ["$`http_origin`"]`
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
always: bool
|
|
257
|
+
"""
|
|
258
|
+
Defines whether the Access-Control-Allow-Origin header should be added to a
|
|
259
|
+
response from CDN regardless of response code.
|
|
260
|
+
|
|
261
|
+
Possible values:
|
|
262
|
+
|
|
263
|
+
- **true** - Header will be added to a response regardless of response code.
|
|
264
|
+
- **false** - Header will only be added to responses with codes: 200, 201, 204,
|
|
265
|
+
206, 301, 302, 303, 304, 307, 308.
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class OptionsCountryACL(TypedDict, total=False):
|
|
270
|
+
enabled: Required[bool]
|
|
271
|
+
"""Controls the option state.
|
|
272
|
+
|
|
273
|
+
Possible values:
|
|
274
|
+
|
|
275
|
+
- **true** - Option is enabled.
|
|
276
|
+
- **false** - Option is disabled.
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
excepted_values: Required[SequenceNotStr[str]]
|
|
280
|
+
"""List of countries according to ISO-3166-1.
|
|
281
|
+
|
|
282
|
+
The meaning of the parameter depends on `policy_type` value:
|
|
283
|
+
|
|
284
|
+
- **allow** - List of countries for which access is prohibited.
|
|
285
|
+
- **deny** - List of countries for which access is allowed.
|
|
286
|
+
"""
|
|
287
|
+
|
|
288
|
+
policy_type: Required[Literal["allow", "deny"]]
|
|
289
|
+
"""Defines the type of CDN resource access policy.
|
|
290
|
+
|
|
291
|
+
Possible values:
|
|
292
|
+
|
|
293
|
+
- **allow** - Access is allowed for all the countries except for those specified
|
|
294
|
+
in `excepted_values` field.
|
|
295
|
+
- **deny** - Access is denied for all the countries except for those specified
|
|
296
|
+
in `excepted_values` field.
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
class OptionsDisableCache(TypedDict, total=False):
|
|
301
|
+
enabled: Required[bool]
|
|
302
|
+
"""Controls the option state.
|
|
303
|
+
|
|
304
|
+
Possible values:
|
|
305
|
+
|
|
306
|
+
- **true** - Option is enabled.
|
|
307
|
+
- **false** - Option is disabled.
|
|
308
|
+
"""
|
|
309
|
+
|
|
310
|
+
value: Required[bool]
|
|
311
|
+
"""Possible values:
|
|
312
|
+
|
|
313
|
+
- **true** - content caching is disabled.
|
|
314
|
+
- **false** - content caching is enabled.
|
|
315
|
+
"""
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class OptionsDisableProxyForceRanges(TypedDict, total=False):
|
|
319
|
+
enabled: Required[bool]
|
|
320
|
+
"""Controls the option state.
|
|
321
|
+
|
|
322
|
+
Possible values:
|
|
323
|
+
|
|
324
|
+
- **true** - Option is enabled.
|
|
325
|
+
- **false** - Option is disabled.
|
|
326
|
+
"""
|
|
327
|
+
|
|
328
|
+
value: Required[bool]
|
|
329
|
+
"""Possible values:
|
|
330
|
+
|
|
331
|
+
- **true** - Option is enabled.
|
|
332
|
+
- **false** - Option is disabled.
|
|
333
|
+
"""
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
class OptionsEdgeCacheSettings(TypedDict, total=False):
|
|
337
|
+
enabled: Required[bool]
|
|
338
|
+
"""Controls the option state.
|
|
339
|
+
|
|
340
|
+
Possible values:
|
|
341
|
+
|
|
342
|
+
- **true** - Option is enabled.
|
|
343
|
+
- **false** - Option is disabled.
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
custom_values: Dict[str, str]
|
|
347
|
+
"""
|
|
348
|
+
A MAP object representing the caching time in seconds for a response with a
|
|
349
|
+
specific response code.
|
|
350
|
+
|
|
351
|
+
These settings have a higher priority than the `value` field.
|
|
352
|
+
|
|
353
|
+
- Use `any` key to specify caching time for all response codes.
|
|
354
|
+
- Use `0s` value to disable caching for a specific response code.
|
|
355
|
+
"""
|
|
356
|
+
|
|
357
|
+
default: str
|
|
358
|
+
"""Enables content caching according to the origin cache settings.
|
|
359
|
+
|
|
360
|
+
The value is applied to the following response codes 200, 201, 204, 206, 301,
|
|
361
|
+
302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
|
|
362
|
+
|
|
363
|
+
Responses with other codes will not be cached.
|
|
364
|
+
|
|
365
|
+
The maximum duration is any equivalent to `1y`.
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
value: str
|
|
369
|
+
"""Caching time.
|
|
370
|
+
|
|
371
|
+
The value is applied to the following response codes: 200, 206, 301, 302.
|
|
372
|
+
Responses with codes 4xx, 5xx will not be cached.
|
|
373
|
+
|
|
374
|
+
Use `0s` to disable caching.
|
|
375
|
+
|
|
376
|
+
The maximum duration is any equivalent to `1y`.
|
|
377
|
+
"""
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
class OptionsFastedgeOnRequestBody(TypedDict, total=False):
|
|
381
|
+
app_id: Required[str]
|
|
382
|
+
"""The ID of the application in FastEdge."""
|
|
383
|
+
|
|
384
|
+
enabled: bool
|
|
385
|
+
"""
|
|
386
|
+
Determines if the FastEdge application should be called whenever HTTP request
|
|
387
|
+
headers are received.
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
execute_on_edge: bool
|
|
391
|
+
"""Determines if the request should be executed at the edge nodes."""
|
|
392
|
+
|
|
393
|
+
execute_on_shield: bool
|
|
394
|
+
"""Determines if the request should be executed at the shield nodes."""
|
|
395
|
+
|
|
396
|
+
interrupt_on_error: bool
|
|
397
|
+
"""Determines if the request execution should be interrupted when an error occurs."""
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class OptionsFastedgeOnRequestHeaders(TypedDict, total=False):
|
|
401
|
+
app_id: Required[str]
|
|
402
|
+
"""The ID of the application in FastEdge."""
|
|
403
|
+
|
|
404
|
+
enabled: bool
|
|
405
|
+
"""
|
|
406
|
+
Determines if the FastEdge application should be called whenever HTTP request
|
|
407
|
+
headers are received.
|
|
408
|
+
"""
|
|
409
|
+
|
|
410
|
+
execute_on_edge: bool
|
|
411
|
+
"""Determines if the request should be executed at the edge nodes."""
|
|
412
|
+
|
|
413
|
+
execute_on_shield: bool
|
|
414
|
+
"""Determines if the request should be executed at the shield nodes."""
|
|
415
|
+
|
|
416
|
+
interrupt_on_error: bool
|
|
417
|
+
"""Determines if the request execution should be interrupted when an error occurs."""
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
class OptionsFastedgeOnResponseBody(TypedDict, total=False):
|
|
421
|
+
app_id: Required[str]
|
|
422
|
+
"""The ID of the application in FastEdge."""
|
|
423
|
+
|
|
424
|
+
enabled: bool
|
|
425
|
+
"""
|
|
426
|
+
Determines if the FastEdge application should be called whenever HTTP request
|
|
427
|
+
headers are received.
|
|
428
|
+
"""
|
|
429
|
+
|
|
430
|
+
execute_on_edge: bool
|
|
431
|
+
"""Determines if the request should be executed at the edge nodes."""
|
|
432
|
+
|
|
433
|
+
execute_on_shield: bool
|
|
434
|
+
"""Determines if the request should be executed at the shield nodes."""
|
|
435
|
+
|
|
436
|
+
interrupt_on_error: bool
|
|
437
|
+
"""Determines if the request execution should be interrupted when an error occurs."""
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
class OptionsFastedgeOnResponseHeaders(TypedDict, total=False):
|
|
441
|
+
app_id: Required[str]
|
|
442
|
+
"""The ID of the application in FastEdge."""
|
|
443
|
+
|
|
444
|
+
enabled: bool
|
|
445
|
+
"""
|
|
446
|
+
Determines if the FastEdge application should be called whenever HTTP request
|
|
447
|
+
headers are received.
|
|
448
|
+
"""
|
|
449
|
+
|
|
450
|
+
execute_on_edge: bool
|
|
451
|
+
"""Determines if the request should be executed at the edge nodes."""
|
|
452
|
+
|
|
453
|
+
execute_on_shield: bool
|
|
454
|
+
"""Determines if the request should be executed at the shield nodes."""
|
|
455
|
+
|
|
456
|
+
interrupt_on_error: bool
|
|
457
|
+
"""Determines if the request execution should be interrupted when an error occurs."""
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
class OptionsFastedge(TypedDict, total=False):
|
|
461
|
+
enabled: Required[bool]
|
|
462
|
+
"""Controls the option state.
|
|
463
|
+
|
|
464
|
+
Possible values:
|
|
465
|
+
|
|
466
|
+
- **true** - Option is enabled.
|
|
467
|
+
- **false** - Option is disabled.
|
|
468
|
+
"""
|
|
469
|
+
|
|
470
|
+
on_request_body: OptionsFastedgeOnRequestBody
|
|
471
|
+
"""
|
|
472
|
+
Allows to configure FastEdge application that will be called to handle request
|
|
473
|
+
body as soon as CDN receives incoming HTTP request.
|
|
474
|
+
"""
|
|
475
|
+
|
|
476
|
+
on_request_headers: OptionsFastedgeOnRequestHeaders
|
|
477
|
+
"""
|
|
478
|
+
Allows to configure FastEdge application that will be called to handle request
|
|
479
|
+
headers as soon as CDN receives incoming HTTP request.
|
|
480
|
+
"""
|
|
481
|
+
|
|
482
|
+
on_response_body: OptionsFastedgeOnResponseBody
|
|
483
|
+
"""
|
|
484
|
+
Allows to configure FastEdge application that will be called to handle response
|
|
485
|
+
body before CDN sends the HTTP response.
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
on_response_headers: OptionsFastedgeOnResponseHeaders
|
|
489
|
+
"""
|
|
490
|
+
Allows to configure FastEdge application that will be called to handle response
|
|
491
|
+
headers before CDN sends the HTTP response.
|
|
492
|
+
"""
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
class OptionsFetchCompressed(TypedDict, total=False):
|
|
496
|
+
enabled: Required[bool]
|
|
497
|
+
"""Controls the option state.
|
|
498
|
+
|
|
499
|
+
Possible values:
|
|
500
|
+
|
|
501
|
+
- **true** - Option is enabled.
|
|
502
|
+
- **false** - Option is disabled.
|
|
503
|
+
"""
|
|
504
|
+
|
|
505
|
+
value: Required[bool]
|
|
506
|
+
"""Possible values:
|
|
507
|
+
|
|
508
|
+
- **true** - Option is enabled.
|
|
509
|
+
- **false** - Option is disabled.
|
|
510
|
+
"""
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
class OptionsFollowOriginRedirect(TypedDict, total=False):
|
|
514
|
+
codes: Required[Iterable[Literal[301, 302, 303, 307, 308]]]
|
|
515
|
+
"""Redirect status code that the origin server returns.
|
|
516
|
+
|
|
517
|
+
To serve up to date content to end users, you will need to purge the cache after
|
|
518
|
+
managing the option.
|
|
519
|
+
"""
|
|
520
|
+
|
|
521
|
+
enabled: Required[bool]
|
|
522
|
+
"""Controls the option state.
|
|
523
|
+
|
|
524
|
+
Possible values:
|
|
525
|
+
|
|
526
|
+
- **true** - Option is enabled.
|
|
527
|
+
- **false** - Option is disabled.
|
|
528
|
+
"""
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
class OptionsForceReturnTimeInterval(TypedDict, total=False):
|
|
532
|
+
end_time: Required[str]
|
|
533
|
+
"""Time until which a custom HTTP response code should be applied.
|
|
534
|
+
|
|
535
|
+
Indicated in 24-hour format.
|
|
536
|
+
"""
|
|
537
|
+
|
|
538
|
+
start_time: Required[str]
|
|
539
|
+
"""Time from which a custom HTTP response code should be applied.
|
|
540
|
+
|
|
541
|
+
Indicated in 24-hour format.
|
|
542
|
+
"""
|
|
543
|
+
|
|
544
|
+
time_zone: str
|
|
545
|
+
"""Time zone used to calculate time."""
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
class OptionsForceReturn(TypedDict, total=False):
|
|
549
|
+
body: Required[str]
|
|
550
|
+
"""URL for redirection or text."""
|
|
551
|
+
|
|
552
|
+
code: Required[int]
|
|
553
|
+
"""Status code value."""
|
|
554
|
+
|
|
555
|
+
enabled: Required[bool]
|
|
556
|
+
"""Controls the option state.
|
|
557
|
+
|
|
558
|
+
Possible values:
|
|
559
|
+
|
|
560
|
+
- **true** - Option is enabled.
|
|
561
|
+
- **false** - Option is disabled.
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
time_interval: Optional[OptionsForceReturnTimeInterval]
|
|
565
|
+
"""Controls the time at which a custom HTTP response code should be applied.
|
|
566
|
+
|
|
567
|
+
By default, a custom HTTP response code is applied at any time.
|
|
568
|
+
"""
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
class OptionsForwardHostHeader(TypedDict, total=False):
|
|
572
|
+
enabled: Required[bool]
|
|
573
|
+
"""Controls the option state.
|
|
574
|
+
|
|
575
|
+
Possible values:
|
|
576
|
+
|
|
577
|
+
- **true** - Option is enabled.
|
|
578
|
+
- **false** - Option is disabled.
|
|
579
|
+
"""
|
|
580
|
+
|
|
581
|
+
value: Required[bool]
|
|
582
|
+
"""Possible values:
|
|
583
|
+
|
|
584
|
+
- **true** - Option is enabled.
|
|
585
|
+
- **false** - Option is disabled.
|
|
586
|
+
"""
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
class OptionsGzipOn(TypedDict, total=False):
|
|
590
|
+
enabled: Required[bool]
|
|
591
|
+
"""Controls the option state.
|
|
592
|
+
|
|
593
|
+
Possible values:
|
|
594
|
+
|
|
595
|
+
- **true** - Option is enabled.
|
|
596
|
+
- **false** - Option is disabled.
|
|
597
|
+
"""
|
|
598
|
+
|
|
599
|
+
value: Required[bool]
|
|
600
|
+
"""Possible values:
|
|
601
|
+
|
|
602
|
+
- **true** - Option is enabled.
|
|
603
|
+
- **false** - Option is disabled.
|
|
604
|
+
"""
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
class OptionsHostHeader(TypedDict, total=False):
|
|
608
|
+
enabled: Required[bool]
|
|
609
|
+
"""Controls the option state.
|
|
610
|
+
|
|
611
|
+
Possible values:
|
|
612
|
+
|
|
613
|
+
- **true** - Option is enabled.
|
|
614
|
+
- **false** - Option is disabled.
|
|
615
|
+
"""
|
|
616
|
+
|
|
617
|
+
value: Required[str]
|
|
618
|
+
"""Host Header value."""
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
class OptionsIgnoreCookie(TypedDict, total=False):
|
|
622
|
+
enabled: Required[bool]
|
|
623
|
+
"""Controls the option state.
|
|
624
|
+
|
|
625
|
+
Possible values:
|
|
626
|
+
|
|
627
|
+
- **true** - Option is enabled.
|
|
628
|
+
- **false** - Option is disabled.
|
|
629
|
+
"""
|
|
630
|
+
|
|
631
|
+
value: Required[bool]
|
|
632
|
+
"""Possible values:
|
|
633
|
+
|
|
634
|
+
- **true** - Option is enabled, files with cookies are cached as one file.
|
|
635
|
+
- **false** - Option is disabled, files with cookies are cached as different
|
|
636
|
+
files.
|
|
637
|
+
"""
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
class OptionsIgnoreQueryString(TypedDict, total=False):
|
|
641
|
+
enabled: Required[bool]
|
|
642
|
+
"""Controls the option state.
|
|
643
|
+
|
|
644
|
+
Possible values:
|
|
645
|
+
|
|
646
|
+
- **true** - Option is enabled.
|
|
647
|
+
- **false** - Option is disabled.
|
|
648
|
+
"""
|
|
649
|
+
|
|
650
|
+
value: Required[bool]
|
|
651
|
+
"""Possible values:
|
|
652
|
+
|
|
653
|
+
- **true** - Option is enabled.
|
|
654
|
+
- **false** - Option is disabled.
|
|
655
|
+
"""
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
class OptionsImageStack(TypedDict, total=False):
|
|
659
|
+
enabled: Required[bool]
|
|
660
|
+
"""Controls the option state.
|
|
661
|
+
|
|
662
|
+
Possible values:
|
|
663
|
+
|
|
664
|
+
- **true** - Option is enabled.
|
|
665
|
+
- **false** - Option is disabled.
|
|
666
|
+
"""
|
|
667
|
+
|
|
668
|
+
avif_enabled: bool
|
|
669
|
+
"""Enables or disables automatic conversion of JPEG and PNG images to AVI format."""
|
|
670
|
+
|
|
671
|
+
png_lossless: bool
|
|
672
|
+
"""Enables or disables compression without quality loss for PNG format."""
|
|
673
|
+
|
|
674
|
+
quality: int
|
|
675
|
+
"""Defines quality settings for JPG and PNG images.
|
|
676
|
+
|
|
677
|
+
The higher the value, the better the image quality, and the larger the file size
|
|
678
|
+
after conversion.
|
|
679
|
+
"""
|
|
680
|
+
|
|
681
|
+
webp_enabled: bool
|
|
682
|
+
"""Enables or disables automatic conversion of JPEG and PNG images to WebP format."""
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class OptionsIPAddressACL(TypedDict, total=False):
|
|
686
|
+
enabled: Required[bool]
|
|
687
|
+
"""Controls the option state.
|
|
688
|
+
|
|
689
|
+
Possible values:
|
|
690
|
+
|
|
691
|
+
- **true** - Option is enabled.
|
|
692
|
+
- **false** - Option is disabled.
|
|
693
|
+
"""
|
|
694
|
+
|
|
695
|
+
excepted_values: Required[SequenceNotStr[str]]
|
|
696
|
+
"""List of IP addresses with a subnet mask.
|
|
697
|
+
|
|
698
|
+
The meaning of the parameter depends on `policy_type` value:
|
|
699
|
+
|
|
700
|
+
- **allow** - List of IP addresses for which access is prohibited.
|
|
701
|
+
- **deny** - List of IP addresses for which access is allowed.
|
|
702
|
+
|
|
703
|
+
Examples:
|
|
704
|
+
|
|
705
|
+
- `192.168.3.2/32`
|
|
706
|
+
- `2a03:d000:2980:7::8/128`
|
|
707
|
+
"""
|
|
708
|
+
|
|
709
|
+
policy_type: Required[Literal["allow", "deny"]]
|
|
710
|
+
"""IP access policy type.
|
|
711
|
+
|
|
712
|
+
Possible values:
|
|
713
|
+
|
|
714
|
+
- **allow** - Allow access to all IPs except IPs specified in
|
|
715
|
+
"`excepted_values`" field.
|
|
716
|
+
- **deny** - Deny access to all IPs except IPs specified in "`excepted_values`"
|
|
717
|
+
field.
|
|
718
|
+
"""
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
class OptionsLimitBandwidth(TypedDict, total=False):
|
|
722
|
+
enabled: Required[bool]
|
|
723
|
+
"""Controls the option state.
|
|
724
|
+
|
|
725
|
+
Possible values:
|
|
726
|
+
|
|
727
|
+
- **true** - Option is enabled.
|
|
728
|
+
- **false** - Option is disabled.
|
|
729
|
+
"""
|
|
730
|
+
|
|
731
|
+
limit_type: Required[Literal["static", "dynamic"]]
|
|
732
|
+
"""Method of controlling the download speed per connection.
|
|
733
|
+
|
|
734
|
+
Possible values:
|
|
735
|
+
|
|
736
|
+
- **static** - Use speed and buffer fields to set the download speed limit.
|
|
737
|
+
- **dynamic** - Use query strings **speed** and **buffer** to set the download
|
|
738
|
+
speed limit.
|
|
739
|
+
|
|
740
|
+
For example, when requesting content at the link
|
|
741
|
+
|
|
742
|
+
```
|
|
743
|
+
http://cdn.example.com/video.mp4?speed=50k&buffer=500k
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
the download speed will be limited to 50kB/s after 500 kB.
|
|
747
|
+
"""
|
|
748
|
+
|
|
749
|
+
buffer: int
|
|
750
|
+
"""Amount of downloaded data after which the user will be rate limited."""
|
|
751
|
+
|
|
752
|
+
speed: int
|
|
753
|
+
"""Maximum download speed per connection."""
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
class OptionsProxyCacheKey(TypedDict, total=False):
|
|
757
|
+
enabled: Required[bool]
|
|
758
|
+
"""Controls the option state.
|
|
759
|
+
|
|
760
|
+
Possible values:
|
|
761
|
+
|
|
762
|
+
- **true** - Option is enabled.
|
|
763
|
+
- **false** - Option is disabled.
|
|
764
|
+
"""
|
|
765
|
+
|
|
766
|
+
value: Required[str]
|
|
767
|
+
"""Key for caching."""
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
class OptionsProxyCacheMethodsSet(TypedDict, total=False):
|
|
771
|
+
enabled: Required[bool]
|
|
772
|
+
"""Controls the option state.
|
|
773
|
+
|
|
774
|
+
Possible values:
|
|
775
|
+
|
|
776
|
+
- **true** - Option is enabled.
|
|
777
|
+
- **false** - Option is disabled.
|
|
778
|
+
"""
|
|
779
|
+
|
|
780
|
+
value: Required[bool]
|
|
781
|
+
"""Possible values:
|
|
782
|
+
|
|
783
|
+
- **true** - Option is enabled.
|
|
784
|
+
- **false** - Option is disabled.
|
|
785
|
+
"""
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
789
|
+
enabled: Required[bool]
|
|
790
|
+
"""Controls the option state.
|
|
791
|
+
|
|
792
|
+
Possible values:
|
|
793
|
+
|
|
794
|
+
- **true** - Option is enabled.
|
|
795
|
+
- **false** - Option is disabled.
|
|
796
|
+
"""
|
|
797
|
+
|
|
798
|
+
value: Required[str]
|
|
799
|
+
"""Timeout value in seconds."""
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
803
|
+
enabled: Required[bool]
|
|
804
|
+
"""Controls the option state.
|
|
805
|
+
|
|
806
|
+
Possible values:
|
|
807
|
+
|
|
808
|
+
- **true** - Option is enabled.
|
|
809
|
+
- **false** - Option is disabled.
|
|
810
|
+
"""
|
|
811
|
+
|
|
812
|
+
value: Required[str]
|
|
813
|
+
"""Timeout value in seconds."""
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
817
|
+
enabled: Required[bool]
|
|
818
|
+
"""Controls the option state.
|
|
819
|
+
|
|
820
|
+
Possible values:
|
|
821
|
+
|
|
822
|
+
- **true** - Option is enabled.
|
|
823
|
+
- **false** - Option is disabled.
|
|
824
|
+
"""
|
|
825
|
+
|
|
826
|
+
value: Required[SequenceNotStr[str]]
|
|
827
|
+
"""List of query parameters."""
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
class OptionsQueryParamsWhitelist(TypedDict, total=False):
|
|
831
|
+
enabled: Required[bool]
|
|
832
|
+
"""Controls the option state.
|
|
833
|
+
|
|
834
|
+
Possible values:
|
|
835
|
+
|
|
836
|
+
- **true** - Option is enabled.
|
|
837
|
+
- **false** - Option is disabled.
|
|
838
|
+
"""
|
|
839
|
+
|
|
840
|
+
value: Required[SequenceNotStr[str]]
|
|
841
|
+
"""List of query parameters."""
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
845
|
+
enabled: Required[bool]
|
|
846
|
+
"""Controls the option state.
|
|
847
|
+
|
|
848
|
+
Possible values:
|
|
849
|
+
|
|
850
|
+
- **true** - Option is enabled.
|
|
851
|
+
- **false** - Option is disabled.
|
|
852
|
+
"""
|
|
853
|
+
|
|
854
|
+
forward_from_file_types: Required[SequenceNotStr[str]]
|
|
855
|
+
"""
|
|
856
|
+
The `forward_from_files_types` field specifies the types of playlist files from
|
|
857
|
+
which parameters will be extracted and forwarded. This typically includes
|
|
858
|
+
formats that list multiple media chunk references, such as HLS and DASH
|
|
859
|
+
playlists. Parameters associated with these playlist files (like query strings
|
|
860
|
+
or headers) will be propagated to the chunks they reference.
|
|
861
|
+
"""
|
|
862
|
+
|
|
863
|
+
forward_to_file_types: Required[SequenceNotStr[str]]
|
|
864
|
+
"""
|
|
865
|
+
The field specifies the types of media chunk files to which parameters,
|
|
866
|
+
extracted from playlist files, will be forwarded. These refer to the actual
|
|
867
|
+
segments of media content that are delivered to viewers. Ensuring the correct
|
|
868
|
+
parameters are forwarded to these files is crucial for maintaining the integrity
|
|
869
|
+
of the streaming session.
|
|
870
|
+
"""
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
874
|
+
enabled: Required[bool]
|
|
875
|
+
"""Controls the option state.
|
|
876
|
+
|
|
877
|
+
Possible values:
|
|
878
|
+
|
|
879
|
+
- **true** - Option is enabled.
|
|
880
|
+
- **false** - Option is disabled.
|
|
881
|
+
"""
|
|
882
|
+
|
|
883
|
+
value: Required[bool]
|
|
884
|
+
"""Possible values:
|
|
885
|
+
|
|
886
|
+
- **true** - Option is enabled.
|
|
887
|
+
- **false** - Option is disabled.
|
|
888
|
+
"""
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
class OptionsRedirectHTTPSToHTTP(TypedDict, total=False):
|
|
892
|
+
enabled: Required[bool]
|
|
893
|
+
"""Controls the option state.
|
|
894
|
+
|
|
895
|
+
Possible values:
|
|
896
|
+
|
|
897
|
+
- **true** - Option is enabled.
|
|
898
|
+
- **false** - Option is disabled.
|
|
899
|
+
"""
|
|
900
|
+
|
|
901
|
+
value: Required[bool]
|
|
902
|
+
"""Possible values:
|
|
903
|
+
|
|
904
|
+
- **true** - Option is enabled.
|
|
905
|
+
- **false** - Option is disabled.
|
|
906
|
+
"""
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
class OptionsReferrerACL(TypedDict, total=False):
|
|
910
|
+
enabled: Required[bool]
|
|
911
|
+
"""Controls the option state.
|
|
912
|
+
|
|
913
|
+
Possible values:
|
|
914
|
+
|
|
915
|
+
- **true** - Option is enabled.
|
|
916
|
+
- **false** - Option is disabled.
|
|
917
|
+
"""
|
|
918
|
+
|
|
919
|
+
excepted_values: Required[SequenceNotStr[str]]
|
|
920
|
+
"""
|
|
921
|
+
List of domain names or wildcard domains (without protocol: `http://` or
|
|
922
|
+
`https://`.)
|
|
923
|
+
|
|
924
|
+
The meaning of the parameter depends on `policy_type` value:
|
|
925
|
+
|
|
926
|
+
- **allow** - List of domain names for which access is prohibited.
|
|
927
|
+
- **deny** - List of IP domain names for which access is allowed.
|
|
928
|
+
|
|
929
|
+
Examples:
|
|
930
|
+
|
|
931
|
+
- `example.com`
|
|
932
|
+
- `\\**.example.com`
|
|
933
|
+
"""
|
|
934
|
+
|
|
935
|
+
policy_type: Required[Literal["allow", "deny"]]
|
|
936
|
+
"""Policy type.
|
|
937
|
+
|
|
938
|
+
Possible values:
|
|
939
|
+
|
|
940
|
+
- **allow** - Allow access to all domain names except the domain names specified
|
|
941
|
+
in `excepted_values` field.
|
|
942
|
+
- **deny** - Deny access to all domain names except the domain names specified
|
|
943
|
+
in `excepted_values` field.
|
|
944
|
+
"""
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
class OptionsRequestLimiter(TypedDict, total=False):
|
|
948
|
+
enabled: Required[bool]
|
|
949
|
+
"""Controls the option state.
|
|
950
|
+
|
|
951
|
+
Possible values:
|
|
952
|
+
|
|
953
|
+
- **true** - Option is enabled.
|
|
954
|
+
- **false** - Option is disabled.
|
|
955
|
+
"""
|
|
956
|
+
|
|
957
|
+
rate: Required[int]
|
|
958
|
+
"""Maximum request rate."""
|
|
959
|
+
|
|
960
|
+
rate_unit: Literal["r/s", "r/m"]
|
|
961
|
+
"""Units of measurement for the `rate` field.
|
|
962
|
+
|
|
963
|
+
Possible values:
|
|
964
|
+
|
|
965
|
+
- **r/s** - Requests per second.
|
|
966
|
+
- **r/m** - Requests per minute.
|
|
967
|
+
|
|
968
|
+
If the rate is less than one request per second, it is specified in request per
|
|
969
|
+
minute (r/m.)
|
|
970
|
+
"""
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
|
|
974
|
+
enabled: Required[bool]
|
|
975
|
+
"""Controls the option state.
|
|
976
|
+
|
|
977
|
+
Possible values:
|
|
978
|
+
|
|
979
|
+
- **true** - Option is enabled.
|
|
980
|
+
- **false** - Option is disabled.
|
|
981
|
+
"""
|
|
982
|
+
|
|
983
|
+
excepted: Required[SequenceNotStr[str]]
|
|
984
|
+
"""List of HTTP headers.
|
|
985
|
+
|
|
986
|
+
Parameter meaning depends on the value of the `mode` field:
|
|
987
|
+
|
|
988
|
+
- **show** - List of HTTP headers to hide from response.
|
|
989
|
+
- **hide** - List of HTTP headers to include in response. Other HTTP headers
|
|
990
|
+
will be hidden.
|
|
991
|
+
|
|
992
|
+
The following headers are required and cannot be hidden from response:
|
|
993
|
+
|
|
994
|
+
- `Connection`
|
|
995
|
+
- `Content-Length`
|
|
996
|
+
- `Content-Type`
|
|
997
|
+
- `Date`
|
|
998
|
+
- `Server`
|
|
999
|
+
"""
|
|
1000
|
+
|
|
1001
|
+
mode: Required[Literal["hide", "show"]]
|
|
1002
|
+
"""How HTTP headers are hidden from the response.
|
|
1003
|
+
|
|
1004
|
+
Possible values:
|
|
1005
|
+
|
|
1006
|
+
- **show** - Hide only HTTP headers listed in the `excepted` field.
|
|
1007
|
+
- **hide** - Hide all HTTP headers except headers listed in the "excepted"
|
|
1008
|
+
field.
|
|
1009
|
+
"""
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
class OptionsRewrite(TypedDict, total=False):
|
|
1013
|
+
body: Required[str]
|
|
1014
|
+
"""Path for the Rewrite option.
|
|
1015
|
+
|
|
1016
|
+
Example:
|
|
1017
|
+
|
|
1018
|
+
- `/(.\\**) /media/$1`
|
|
1019
|
+
"""
|
|
1020
|
+
|
|
1021
|
+
enabled: Required[bool]
|
|
1022
|
+
"""Controls the option state.
|
|
1023
|
+
|
|
1024
|
+
Possible values:
|
|
1025
|
+
|
|
1026
|
+
- **true** - Option is enabled.
|
|
1027
|
+
- **false** - Option is disabled.
|
|
1028
|
+
"""
|
|
1029
|
+
|
|
1030
|
+
flag: Literal["break", "last", "redirect", "permanent"]
|
|
1031
|
+
"""Flag for the Rewrite option.
|
|
1032
|
+
|
|
1033
|
+
Possible values:
|
|
1034
|
+
|
|
1035
|
+
- **last** - Stop processing the current set of `ngx_http_rewrite_module`
|
|
1036
|
+
directives and start a search for a new location matching changed URI.
|
|
1037
|
+
- **break** - Stop processing the current set of the Rewrite option.
|
|
1038
|
+
- **redirect** - Return a temporary redirect with the 302 code; used when a
|
|
1039
|
+
replacement string does not start with `http://`, `https://`, or `$scheme`.
|
|
1040
|
+
- **permanent** - Return a permanent redirect with the 301 code.
|
|
1041
|
+
"""
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
class OptionsSecureKey(TypedDict, total=False):
|
|
1045
|
+
enabled: Required[bool]
|
|
1046
|
+
"""Controls the option state.
|
|
1047
|
+
|
|
1048
|
+
Possible values:
|
|
1049
|
+
|
|
1050
|
+
- **true** - Option is enabled.
|
|
1051
|
+
- **false** - Option is disabled.
|
|
1052
|
+
"""
|
|
1053
|
+
|
|
1054
|
+
key: Required[Optional[str]]
|
|
1055
|
+
"""Key generated on your side that will be used for URL signing."""
|
|
1056
|
+
|
|
1057
|
+
type: Literal[0, 2]
|
|
1058
|
+
"""Type of URL signing.
|
|
1059
|
+
|
|
1060
|
+
Possible types:
|
|
1061
|
+
|
|
1062
|
+
- **Type 0** - Includes end user IP to secure token generation.
|
|
1063
|
+
- **Type 2** - Excludes end user IP from secure token generation.
|
|
1064
|
+
"""
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
class OptionsSlice(TypedDict, total=False):
|
|
1068
|
+
enabled: Required[bool]
|
|
1069
|
+
"""Controls the option state.
|
|
1070
|
+
|
|
1071
|
+
Possible values:
|
|
1072
|
+
|
|
1073
|
+
- **true** - Option is enabled.
|
|
1074
|
+
- **false** - Option is disabled.
|
|
1075
|
+
"""
|
|
1076
|
+
|
|
1077
|
+
value: Required[bool]
|
|
1078
|
+
"""Possible values:
|
|
1079
|
+
|
|
1080
|
+
- **true** - Option is enabled.
|
|
1081
|
+
- **false** - Option is disabled.
|
|
1082
|
+
"""
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
class OptionsSni(TypedDict, total=False):
|
|
1086
|
+
custom_hostname: Required[str]
|
|
1087
|
+
"""Custom SNI hostname.
|
|
1088
|
+
|
|
1089
|
+
It is required if `sni_type` is set to custom.
|
|
1090
|
+
"""
|
|
1091
|
+
|
|
1092
|
+
enabled: Required[bool]
|
|
1093
|
+
"""Controls the option state.
|
|
1094
|
+
|
|
1095
|
+
Possible values:
|
|
1096
|
+
|
|
1097
|
+
- **true** - Option is enabled.
|
|
1098
|
+
- **false** - Option is disabled.
|
|
1099
|
+
"""
|
|
1100
|
+
|
|
1101
|
+
sni_type: Literal["dynamic", "custom"]
|
|
1102
|
+
"""SNI (Server Name Indication) type.
|
|
1103
|
+
|
|
1104
|
+
Possible values:
|
|
1105
|
+
|
|
1106
|
+
- **dynamic** - SNI hostname depends on `hostHeader` and `forward_host_header`
|
|
1107
|
+
options. It has several possible combinations:
|
|
1108
|
+
- If the `hostHeader` option is enabled and specified, SNI hostname matches the
|
|
1109
|
+
Host header.
|
|
1110
|
+
- If the `forward_host_header` option is enabled and has true value, SNI
|
|
1111
|
+
hostname matches the Host header used in the request made to a CDN.
|
|
1112
|
+
- If the `hostHeader` and `forward_host_header` options are disabled, SNI
|
|
1113
|
+
hostname matches the primary CNAME.
|
|
1114
|
+
- **custom** - custom SNI hostname is in use.
|
|
1115
|
+
"""
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
class OptionsStale(TypedDict, total=False):
|
|
1119
|
+
enabled: Required[bool]
|
|
1120
|
+
"""Controls the option state.
|
|
1121
|
+
|
|
1122
|
+
Possible values:
|
|
1123
|
+
|
|
1124
|
+
- **true** - Option is enabled.
|
|
1125
|
+
- **false** - Option is disabled.
|
|
1126
|
+
"""
|
|
1127
|
+
|
|
1128
|
+
value: Required[
|
|
1129
|
+
List[
|
|
1130
|
+
Literal[
|
|
1131
|
+
"error",
|
|
1132
|
+
"http_403",
|
|
1133
|
+
"http_404",
|
|
1134
|
+
"http_429",
|
|
1135
|
+
"http_500",
|
|
1136
|
+
"http_502",
|
|
1137
|
+
"http_503",
|
|
1138
|
+
"http_504",
|
|
1139
|
+
"invalid_header",
|
|
1140
|
+
"timeout",
|
|
1141
|
+
"updating",
|
|
1142
|
+
]
|
|
1143
|
+
]
|
|
1144
|
+
]
|
|
1145
|
+
"""Defines list of errors for which "Always online" option is applied."""
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
class OptionsStaticResponseHeadersValue(TypedDict, total=False):
|
|
1149
|
+
name: Required[str]
|
|
1150
|
+
"""HTTP Header name.
|
|
1151
|
+
|
|
1152
|
+
Restrictions:
|
|
1153
|
+
|
|
1154
|
+
- Maximum 128 symbols.
|
|
1155
|
+
- Latin letters (A-Z, a-z,) numbers (0-9,) dashes, and underscores only.
|
|
1156
|
+
"""
|
|
1157
|
+
|
|
1158
|
+
value: Required[SequenceNotStr[str]]
|
|
1159
|
+
"""Header value.
|
|
1160
|
+
|
|
1161
|
+
Restrictions:
|
|
1162
|
+
|
|
1163
|
+
- Maximum 512 symbols.
|
|
1164
|
+
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&\\**()-\\__=+
|
|
1165
|
+
/|\";:?.,><{}[]).
|
|
1166
|
+
- Must start with a letter, number, asterisk or {.
|
|
1167
|
+
- Multiple values can be added.
|
|
1168
|
+
"""
|
|
1169
|
+
|
|
1170
|
+
always: bool
|
|
1171
|
+
"""
|
|
1172
|
+
Defines whether the header will be added to a response from CDN regardless of
|
|
1173
|
+
response code.
|
|
1174
|
+
|
|
1175
|
+
Possible values:
|
|
1176
|
+
|
|
1177
|
+
- **true** - Header will be added to a response from CDN regardless of response
|
|
1178
|
+
code.
|
|
1179
|
+
- **false** - Header will be added only to the following response codes: 200,
|
|
1180
|
+
201, 204, 206, 301, 302, 303, 304, 307, 308.
|
|
1181
|
+
"""
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
class OptionsStaticResponseHeaders(TypedDict, total=False):
|
|
1185
|
+
enabled: Required[bool]
|
|
1186
|
+
"""Controls the option state.
|
|
1187
|
+
|
|
1188
|
+
Possible values:
|
|
1189
|
+
|
|
1190
|
+
- **true** - Option is enabled.
|
|
1191
|
+
- **false** - Option is disabled.
|
|
1192
|
+
"""
|
|
1193
|
+
|
|
1194
|
+
value: Required[Iterable[OptionsStaticResponseHeadersValue]]
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
class OptionsStaticHeaders(TypedDict, total=False):
|
|
1198
|
+
enabled: Required[bool]
|
|
1199
|
+
"""Controls the option state.
|
|
1200
|
+
|
|
1201
|
+
Possible values:
|
|
1202
|
+
|
|
1203
|
+
- **true** - Option is enabled.
|
|
1204
|
+
- **false** - Option is disabled.
|
|
1205
|
+
"""
|
|
1206
|
+
|
|
1207
|
+
value: Required[Dict[str, str]]
|
|
1208
|
+
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1209
|
+
|
|
1210
|
+
Restrictions:
|
|
1211
|
+
|
|
1212
|
+
- **Header name** - Maximum 128 symbols, may contain Latin letters (A-Z, a-z),
|
|
1213
|
+
numbers (0-9), dashes, and underscores.
|
|
1214
|
+
- **Header value** - Maximum 512 symbols, may contain letters (a-z), numbers
|
|
1215
|
+
(0-9), spaces, and symbols (`~!@#%%^&\\**()-\\__=+ /|\";:?.,><{}[]). Must start
|
|
1216
|
+
with a letter, number, asterisk or {.
|
|
1217
|
+
"""
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
class OptionsStaticRequestHeaders(TypedDict, total=False):
|
|
1221
|
+
enabled: Required[bool]
|
|
1222
|
+
"""Controls the option state.
|
|
1223
|
+
|
|
1224
|
+
Possible values:
|
|
1225
|
+
|
|
1226
|
+
- **true** - Option is enabled.
|
|
1227
|
+
- **false** - Option is disabled.
|
|
1228
|
+
"""
|
|
1229
|
+
|
|
1230
|
+
value: Required[Dict[str, str]]
|
|
1231
|
+
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1232
|
+
|
|
1233
|
+
Restrictions:
|
|
1234
|
+
|
|
1235
|
+
- **Header name** - Maximum 255 symbols, may contain Latin letters (A-Z, a-z),
|
|
1236
|
+
numbers (0-9), dashes, and underscores.
|
|
1237
|
+
- **Header value** - Maximum 512 symbols, may contain letters (a-z), numbers
|
|
1238
|
+
(0-9), spaces, and symbols (`~!@#%%^&\\**()-\\__=+ /|\";:?.,><{}[]). Must start
|
|
1239
|
+
with a letter, number, asterisk or {.
|
|
1240
|
+
"""
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
class OptionsUserAgentACL(TypedDict, total=False):
|
|
1244
|
+
enabled: Required[bool]
|
|
1245
|
+
"""Controls the option state.
|
|
1246
|
+
|
|
1247
|
+
Possible values:
|
|
1248
|
+
|
|
1249
|
+
- **true** - Option is enabled.
|
|
1250
|
+
- **false** - Option is disabled.
|
|
1251
|
+
"""
|
|
1252
|
+
|
|
1253
|
+
excepted_values: Required[SequenceNotStr[str]]
|
|
1254
|
+
"""List of User-Agents that will be allowed/denied.
|
|
1255
|
+
|
|
1256
|
+
The meaning of the parameter depends on `policy_type`:
|
|
1257
|
+
|
|
1258
|
+
- **allow** - List of User-Agents for which access is prohibited.
|
|
1259
|
+
- **deny** - List of User-Agents for which access is allowed.
|
|
1260
|
+
|
|
1261
|
+
Use an empty string `""` to allow/deny access when the User-Agent header is
|
|
1262
|
+
empty.
|
|
1263
|
+
"""
|
|
1264
|
+
|
|
1265
|
+
policy_type: Required[Literal["allow", "deny"]]
|
|
1266
|
+
"""User-Agents policy type.
|
|
1267
|
+
|
|
1268
|
+
Possible values:
|
|
1269
|
+
|
|
1270
|
+
- **allow** - Allow access for all User-Agents except specified in
|
|
1271
|
+
`excepted_values` field.
|
|
1272
|
+
- **deny** - Deny access for all User-Agents except specified in
|
|
1273
|
+
`excepted_values` field.
|
|
1274
|
+
"""
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
class OptionsWaap(TypedDict, total=False):
|
|
1278
|
+
enabled: Required[bool]
|
|
1279
|
+
"""Controls the option state.
|
|
1280
|
+
|
|
1281
|
+
Possible values:
|
|
1282
|
+
|
|
1283
|
+
- **true** - Option is enabled.
|
|
1284
|
+
- **false** - Option is disabled.
|
|
1285
|
+
"""
|
|
1286
|
+
|
|
1287
|
+
value: Required[bool]
|
|
1288
|
+
"""Possible values:
|
|
1289
|
+
|
|
1290
|
+
- **true** - Option is enabled.
|
|
1291
|
+
- **false** - Option is disabled.
|
|
1292
|
+
"""
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
class OptionsWebsockets(TypedDict, total=False):
|
|
1296
|
+
enabled: Required[bool]
|
|
1297
|
+
"""Controls the option state.
|
|
1298
|
+
|
|
1299
|
+
Possible values:
|
|
1300
|
+
|
|
1301
|
+
- **true** - Option is enabled.
|
|
1302
|
+
- **false** - Option is disabled.
|
|
1303
|
+
"""
|
|
1304
|
+
|
|
1305
|
+
value: Required[bool]
|
|
1306
|
+
"""Possible values:
|
|
1307
|
+
|
|
1308
|
+
- **true** - Option is enabled.
|
|
1309
|
+
- **false** - Option is disabled.
|
|
1310
|
+
"""
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
class Options(TypedDict, total=False):
|
|
1314
|
+
allowed_http_methods: Annotated[Optional[OptionsAllowedHTTPMethods], PropertyInfo(alias="allowedHttpMethods")]
|
|
1315
|
+
"""HTTP methods allowed for content requests from the CDN."""
|
|
1316
|
+
|
|
1317
|
+
bot_protection: Optional[OptionsBotProtection]
|
|
1318
|
+
"""
|
|
1319
|
+
Allows to prevent online services from overloading and ensure your business
|
|
1320
|
+
workflow running smoothly.
|
|
1321
|
+
"""
|
|
1322
|
+
|
|
1323
|
+
brotli_compression: Optional[OptionsBrotliCompression]
|
|
1324
|
+
"""Compresses content with Brotli on the CDN side.
|
|
1325
|
+
|
|
1326
|
+
CDN servers will request only uncompressed content from the origin.
|
|
1327
|
+
|
|
1328
|
+
Notes:
|
|
1329
|
+
|
|
1330
|
+
1. CDN only supports "Brotli compression" when the "origin shielding" feature is
|
|
1331
|
+
activated.
|
|
1332
|
+
2. If a precache server is not active for a CDN resource, no compression occurs,
|
|
1333
|
+
even if the option is enabled.
|
|
1334
|
+
3. `brotli_compression` is not supported with `fetch_compressed` or `slice`
|
|
1335
|
+
options enabled.
|
|
1336
|
+
4. `fetch_compressed` option in CDN resource settings overrides
|
|
1337
|
+
`brotli_compression` in rules. If you enabled `fetch_compressed` in CDN
|
|
1338
|
+
resource and want to enable `brotli_compression` in a rule, you must specify
|
|
1339
|
+
`fetch_compressed:false` in the rule.
|
|
1340
|
+
"""
|
|
1341
|
+
|
|
1342
|
+
browser_cache_settings: Optional[OptionsBrowserCacheSettings]
|
|
1343
|
+
"""Cache expiration time for users browsers in seconds.
|
|
1344
|
+
|
|
1345
|
+
Cache expiration time is applied to the following response codes: 200, 201, 204,
|
|
1346
|
+
206, 301, 302, 303, 304, 307, 308.
|
|
1347
|
+
|
|
1348
|
+
Responses with other codes will not be cached.
|
|
1349
|
+
"""
|
|
1350
|
+
|
|
1351
|
+
cache_http_headers: Optional[OptionsCacheHTTPHeaders]
|
|
1352
|
+
"""**Legacy option**. Use the `response_headers_hiding_policy` option instead.
|
|
1353
|
+
|
|
1354
|
+
HTTP Headers that must be included in the response.
|
|
1355
|
+
"""
|
|
1356
|
+
|
|
1357
|
+
cors: Optional[OptionsCors]
|
|
1358
|
+
"""Enables or disables CORS (Cross-Origin Resource Sharing) header support.
|
|
1359
|
+
|
|
1360
|
+
CORS header support allows the CDN to add the Access-Control-Allow-Origin header
|
|
1361
|
+
to a response to a browser.
|
|
1362
|
+
"""
|
|
1363
|
+
|
|
1364
|
+
country_acl: Optional[OptionsCountryACL]
|
|
1365
|
+
"""Enables control access to content for specified countries."""
|
|
1366
|
+
|
|
1367
|
+
disable_cache: Optional[OptionsDisableCache]
|
|
1368
|
+
"""**Legacy option**. Use the `edge_cache_settings` option instead.
|
|
1369
|
+
|
|
1370
|
+
Allows the complete disabling of content caching.
|
|
1371
|
+
"""
|
|
1372
|
+
|
|
1373
|
+
disable_proxy_force_ranges: Optional[OptionsDisableProxyForceRanges]
|
|
1374
|
+
"""Allows 206 responses regardless of the settings of an origin source."""
|
|
1375
|
+
|
|
1376
|
+
edge_cache_settings: Optional[OptionsEdgeCacheSettings]
|
|
1377
|
+
"""Cache expiration time for CDN servers.
|
|
1378
|
+
|
|
1379
|
+
`value` and `default` fields cannot be used simultaneously.
|
|
1380
|
+
"""
|
|
1381
|
+
|
|
1382
|
+
fastedge: Optional[OptionsFastedge]
|
|
1383
|
+
"""
|
|
1384
|
+
Allows to configure FastEdge app to be called on different request/response
|
|
1385
|
+
phases.
|
|
1386
|
+
|
|
1387
|
+
Note: At least one of `on_request_headers`, `on_request_body`,
|
|
1388
|
+
`on_response_headers`, or `on_response_body` must be specified.
|
|
1389
|
+
"""
|
|
1390
|
+
|
|
1391
|
+
fetch_compressed: Optional[OptionsFetchCompressed]
|
|
1392
|
+
"""Makes the CDN request compressed content from the origin.
|
|
1393
|
+
|
|
1394
|
+
The origin server should support compression. CDN servers will not decompress
|
|
1395
|
+
your content even if a user browser does not accept compression.
|
|
1396
|
+
|
|
1397
|
+
Notes:
|
|
1398
|
+
|
|
1399
|
+
1. `fetch_compressed` is not supported with `gzipON` or `brotli_compression` or
|
|
1400
|
+
`slice` options enabled.
|
|
1401
|
+
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1402
|
+
you enable it in CDN resource and want to use `gzipON` and
|
|
1403
|
+
`brotli_compression` in a rule, you have to specify
|
|
1404
|
+
`"`fetch_compressed`": false` in the rule.
|
|
1405
|
+
"""
|
|
1406
|
+
|
|
1407
|
+
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
1408
|
+
"""
|
|
1409
|
+
Enables redirection from origin. If the origin server returns a redirect, the
|
|
1410
|
+
option allows the CDN to pull the requested content from the origin server that
|
|
1411
|
+
was returned in the redirect.
|
|
1412
|
+
"""
|
|
1413
|
+
|
|
1414
|
+
force_return: Optional[OptionsForceReturn]
|
|
1415
|
+
"""Applies custom HTTP response codes for CDN content.
|
|
1416
|
+
|
|
1417
|
+
The following codes are reserved by our system and cannot be specified in this
|
|
1418
|
+
option: 408, 444, 477, 494, 495, 496, 497, 499.
|
|
1419
|
+
"""
|
|
1420
|
+
|
|
1421
|
+
forward_host_header: Optional[OptionsForwardHostHeader]
|
|
1422
|
+
"""Forwards the Host header from a end-user request to an origin server.
|
|
1423
|
+
|
|
1424
|
+
`hostHeader` and `forward_host_header` options cannot be enabled simultaneously.
|
|
1425
|
+
"""
|
|
1426
|
+
|
|
1427
|
+
gzip_on: Annotated[Optional[OptionsGzipOn], PropertyInfo(alias="gzipOn")]
|
|
1428
|
+
"""Compresses content with gzip on the CDN end.
|
|
1429
|
+
|
|
1430
|
+
CDN servers will request only uncompressed content from the origin.
|
|
1431
|
+
|
|
1432
|
+
Notes:
|
|
1433
|
+
|
|
1434
|
+
1. Compression with gzip is not supported with `fetch_compressed` or `slice`
|
|
1435
|
+
options enabled.
|
|
1436
|
+
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1437
|
+
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1438
|
+
`gzipON` in rules, you need to specify `"`fetch_compressed`":false` for
|
|
1439
|
+
rules.
|
|
1440
|
+
"""
|
|
1441
|
+
|
|
1442
|
+
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
1443
|
+
"""
|
|
1444
|
+
Sets the Host header that CDN servers use when request content from an origin
|
|
1445
|
+
server. Your server must be able to process requests with the chosen header.
|
|
1446
|
+
|
|
1447
|
+
If the option is `null`, the Host Header value is equal to first CNAME.
|
|
1448
|
+
|
|
1449
|
+
`hostHeader` and `forward_host_header` options cannot be enabled simultaneously.
|
|
1450
|
+
"""
|
|
1451
|
+
|
|
1452
|
+
ignore_cookie: Optional[OptionsIgnoreCookie]
|
|
1453
|
+
"""
|
|
1454
|
+
Defines whether the files with the Set-Cookies header are cached as one file or
|
|
1455
|
+
as different ones.
|
|
1456
|
+
"""
|
|
1457
|
+
|
|
1458
|
+
ignore_query_string: Annotated[Optional[OptionsIgnoreQueryString], PropertyInfo(alias="ignoreQueryString")]
|
|
1459
|
+
"""
|
|
1460
|
+
How a file with different query strings is cached: either as one object (option
|
|
1461
|
+
is enabled) or as different objects (option is disabled.)
|
|
1462
|
+
|
|
1463
|
+
`ignoreQueryString`, `query_params_whitelist` and `query_params_blacklist`
|
|
1464
|
+
options cannot be enabled simultaneously.
|
|
1465
|
+
"""
|
|
1466
|
+
|
|
1467
|
+
image_stack: Optional[OptionsImageStack]
|
|
1468
|
+
"""
|
|
1469
|
+
Transforms JPG and PNG images (for example, resize or crop) and automatically
|
|
1470
|
+
converts them to WebP or AVIF format.
|
|
1471
|
+
"""
|
|
1472
|
+
|
|
1473
|
+
ip_address_acl: Optional[OptionsIPAddressACL]
|
|
1474
|
+
"""Controls access to the CDN resource content for specific IP addresses.
|
|
1475
|
+
|
|
1476
|
+
If you want to use IPs from our CDN servers IP list for IP ACL configuration,
|
|
1477
|
+
you have to independently monitor their relevance. We recommend you use a script
|
|
1478
|
+
for automatically update IP ACL.
|
|
1479
|
+
[Read more.](/docs/api-reference/cdn/ip-addresses-list/get-cdn-servers-ip-addresses)
|
|
1480
|
+
"""
|
|
1481
|
+
|
|
1482
|
+
limit_bandwidth: Optional[OptionsLimitBandwidth]
|
|
1483
|
+
"""Allows to control the download speed per connection."""
|
|
1484
|
+
|
|
1485
|
+
proxy_cache_key: Optional[OptionsProxyCacheKey]
|
|
1486
|
+
"""Allows you to modify your cache key.
|
|
1487
|
+
|
|
1488
|
+
If omitted, the default value is `$request_uri`.
|
|
1489
|
+
|
|
1490
|
+
Combine the specified variables to create a key for caching.
|
|
1491
|
+
|
|
1492
|
+
- **$`request_uri`**
|
|
1493
|
+
- **$scheme**
|
|
1494
|
+
- **$uri**
|
|
1495
|
+
|
|
1496
|
+
**Warning**: Enabling and changing this option can invalidate your current cache
|
|
1497
|
+
and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will
|
|
1498
|
+
not work.
|
|
1499
|
+
"""
|
|
1500
|
+
|
|
1501
|
+
proxy_cache_methods_set: Optional[OptionsProxyCacheMethodsSet]
|
|
1502
|
+
"""Caching for POST requests along with default GET and HEAD."""
|
|
1503
|
+
|
|
1504
|
+
proxy_connect_timeout: Optional[OptionsProxyConnectTimeout]
|
|
1505
|
+
"""The time limit for establishing a connection with the origin."""
|
|
1506
|
+
|
|
1507
|
+
proxy_read_timeout: Optional[OptionsProxyReadTimeout]
|
|
1508
|
+
"""
|
|
1509
|
+
The time limit for receiving a partial response from the origin. If no response
|
|
1510
|
+
is received within this time, the connection will be closed.
|
|
1511
|
+
|
|
1512
|
+
**Note:** When used with a WebSocket connection, this option supports values
|
|
1513
|
+
only in the range 1–20 seconds (instead of the usual 1–30 seconds).
|
|
1514
|
+
"""
|
|
1515
|
+
|
|
1516
|
+
query_params_blacklist: Optional[OptionsQueryParamsBlacklist]
|
|
1517
|
+
"""
|
|
1518
|
+
Files with the specified query parameters are cached as one object, files with
|
|
1519
|
+
other parameters are cached as different objects.
|
|
1520
|
+
|
|
1521
|
+
`ignoreQueryString`, `query_params_whitelist` and `query_params_blacklist`
|
|
1522
|
+
options cannot be enabled simultaneously.
|
|
1523
|
+
"""
|
|
1524
|
+
|
|
1525
|
+
query_params_whitelist: Optional[OptionsQueryParamsWhitelist]
|
|
1526
|
+
"""
|
|
1527
|
+
Files with the specified query parameters are cached as different objects, files
|
|
1528
|
+
with other parameters are cached as one object.
|
|
1529
|
+
|
|
1530
|
+
`ignoreQueryString`, `query_params_whitelist` and `query_params_blacklist`
|
|
1531
|
+
options cannot be enabled simultaneously.
|
|
1532
|
+
"""
|
|
1533
|
+
|
|
1534
|
+
query_string_forwarding: Optional[OptionsQueryStringForwarding]
|
|
1535
|
+
"""
|
|
1536
|
+
The Query String Forwarding feature allows for the seamless transfer of
|
|
1537
|
+
parameters embedded in playlist files to the corresponding media chunk files.
|
|
1538
|
+
This functionality ensures that specific attributes, such as authentication
|
|
1539
|
+
tokens or tracking information, are consistently passed along from the playlist
|
|
1540
|
+
manifest to the individual media segments. This is particularly useful for
|
|
1541
|
+
maintaining continuity in security, analytics, and any other parameter-based
|
|
1542
|
+
operations across the entire media delivery workflow.
|
|
1543
|
+
"""
|
|
1544
|
+
|
|
1545
|
+
redirect_http_to_https: Optional[OptionsRedirectHTTPToHTTPS]
|
|
1546
|
+
"""Enables redirect from HTTP to HTTPS.
|
|
1547
|
+
|
|
1548
|
+
`redirect_http_to_https` and `redirect_https_to_http` options cannot be enabled
|
|
1549
|
+
simultaneously.
|
|
1550
|
+
"""
|
|
1551
|
+
|
|
1552
|
+
redirect_https_to_http: Optional[OptionsRedirectHTTPSToHTTP]
|
|
1553
|
+
"""Enables redirect from HTTPS to HTTP.
|
|
1554
|
+
|
|
1555
|
+
`redirect_http_to_https` and `redirect_https_to_http` options cannot be enabled
|
|
1556
|
+
simultaneously.
|
|
1557
|
+
"""
|
|
1558
|
+
|
|
1559
|
+
referrer_acl: Optional[OptionsReferrerACL]
|
|
1560
|
+
"""Controls access to the CDN resource content for specified domain names."""
|
|
1561
|
+
|
|
1562
|
+
request_limiter: Optional[OptionsRequestLimiter]
|
|
1563
|
+
"""Option allows to limit the amount of HTTP requests."""
|
|
1564
|
+
|
|
1565
|
+
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
|
|
1566
|
+
"""Hides HTTP headers from an origin server in the CDN response."""
|
|
1567
|
+
|
|
1568
|
+
rewrite: Optional[OptionsRewrite]
|
|
1569
|
+
"""Changes and redirects requests from the CDN to the origin.
|
|
1570
|
+
|
|
1571
|
+
It operates according to the
|
|
1572
|
+
[Nginx](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite)
|
|
1573
|
+
configuration.
|
|
1574
|
+
"""
|
|
1575
|
+
|
|
1576
|
+
secure_key: Optional[OptionsSecureKey]
|
|
1577
|
+
"""Configures access with tokenized URLs.
|
|
1578
|
+
|
|
1579
|
+
This makes impossible to access content without a valid (unexpired) token.
|
|
1580
|
+
"""
|
|
1581
|
+
|
|
1582
|
+
slice: Optional[OptionsSlice]
|
|
1583
|
+
"""
|
|
1584
|
+
Requests and caches files larger than 10 MB in parts (no larger than 10 MB per
|
|
1585
|
+
part.) This reduces time to first byte.
|
|
1586
|
+
|
|
1587
|
+
The option is based on the
|
|
1588
|
+
[Slice](https://nginx.org/en/docs/http/ngx_http_slice_module.html) module.
|
|
1589
|
+
|
|
1590
|
+
Notes:
|
|
1591
|
+
|
|
1592
|
+
1. Origin must support HTTP Range requests.
|
|
1593
|
+
2. Not supported with `gzipON`, `brotli_compression` or `fetch_compressed`
|
|
1594
|
+
options enabled.
|
|
1595
|
+
"""
|
|
1596
|
+
|
|
1597
|
+
sni: Optional[OptionsSni]
|
|
1598
|
+
"""
|
|
1599
|
+
The hostname that is added to SNI requests from CDN servers to the origin server
|
|
1600
|
+
via HTTPS.
|
|
1601
|
+
|
|
1602
|
+
SNI is generally only required if your origin uses shared hosting or does not
|
|
1603
|
+
have a dedicated IP address. If the origin server presents multiple
|
|
1604
|
+
certificates, SNI allows the origin server to know which certificate to use for
|
|
1605
|
+
the connection.
|
|
1606
|
+
|
|
1607
|
+
The option works only if `originProtocol` parameter is `HTTPS` or `MATCH`.
|
|
1608
|
+
"""
|
|
1609
|
+
|
|
1610
|
+
stale: Optional[OptionsStale]
|
|
1611
|
+
"""Serves stale cached content in case of origin unavailability."""
|
|
1612
|
+
|
|
1613
|
+
static_response_headers: Optional[OptionsStaticResponseHeaders]
|
|
1614
|
+
"""Custom HTTP Headers that a CDN server adds to a response."""
|
|
1615
|
+
|
|
1616
|
+
static_headers: Annotated[Optional[OptionsStaticHeaders], PropertyInfo(alias="staticHeaders")]
|
|
1617
|
+
"""**Legacy option**. Use the `static_response_headers` option instead.
|
|
1618
|
+
|
|
1619
|
+
Custom HTTP Headers that a CDN server adds to response. Up to fifty custom HTTP
|
|
1620
|
+
Headers can be specified. May contain a header with multiple values.
|
|
1621
|
+
"""
|
|
1622
|
+
|
|
1623
|
+
static_request_headers: Annotated[Optional[OptionsStaticRequestHeaders], PropertyInfo(alias="staticRequestHeaders")]
|
|
1624
|
+
"""Custom HTTP Headers for a CDN server to add to request.
|
|
1625
|
+
|
|
1626
|
+
Up to fifty custom HTTP Headers can be specified.
|
|
1627
|
+
"""
|
|
1628
|
+
|
|
1629
|
+
user_agent_acl: Optional[OptionsUserAgentACL]
|
|
1630
|
+
"""Controls access to the content for specified User-Agents."""
|
|
1631
|
+
|
|
1632
|
+
waap: Optional[OptionsWaap]
|
|
1633
|
+
"""Allows to enable WAAP (Web Application and API Protection)."""
|
|
1634
|
+
|
|
1635
|
+
websockets: Optional[OptionsWebsockets]
|
|
1636
|
+
"""Enables or disables WebSockets connections to an origin server."""
|