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.

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