gcore 0.16.0__py3-none-any.whl → 0.23.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/_client.py +16 -0
- gcore/_models.py +37 -15
- gcore/_streaming.py +12 -12
- gcore/_utils/_sync.py +3 -31
- gcore/_utils/_utils.py +1 -1
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -4
- gcore/resources/cdn/cdn.py +120 -21
- gcore/resources/cdn/ip_ranges.py +97 -5
- gcore/resources/cdn/{logs/logs.py → logs.py} +9 -9
- gcore/resources/cdn/resources/resources.py +20 -20
- gcore/resources/cdn/statistics.py +56 -58
- gcore/resources/cloud/__init__.py +40 -12
- gcore/resources/cloud/audit_logs.py +20 -0
- gcore/resources/cloud/baremetal/servers.py +48 -14
- gcore/resources/cloud/billing_reservations.py +2 -2
- gcore/resources/cloud/cloud.py +100 -18
- gcore/resources/cloud/databases/__init__.py +33 -0
- gcore/resources/cloud/databases/databases.py +102 -0
- gcore/resources/cloud/databases/postgres/__init__.py +61 -0
- gcore/resources/cloud/databases/postgres/clusters/__init__.py +33 -0
- gcore/resources/cloud/databases/postgres/clusters/clusters.py +716 -0
- gcore/resources/cloud/databases/postgres/clusters/user_credentials.py +281 -0
- gcore/resources/cloud/databases/postgres/configurations.py +169 -0
- gcore/resources/cloud/databases/postgres/custom_configurations.py +197 -0
- gcore/resources/cloud/databases/postgres/postgres.py +166 -0
- gcore/resources/cloud/file_shares/file_shares.py +154 -49
- gcore/resources/cloud/floating_ips.py +42 -10
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +70 -10
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +40 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +16 -0
- gcore/resources/cloud/gpu_virtual_clusters/__init__.py +89 -0
- gcore/resources/cloud/gpu_virtual_clusters/flavors.py +211 -0
- gcore/resources/cloud/gpu_virtual_clusters/gpu_virtual_clusters.py +1551 -0
- gcore/resources/cloud/gpu_virtual_clusters/images.py +582 -0
- gcore/resources/cloud/gpu_virtual_clusters/interfaces.py +187 -0
- gcore/resources/cloud/gpu_virtual_clusters/servers.py +506 -0
- gcore/resources/cloud/gpu_virtual_clusters/volumes.py +187 -0
- gcore/resources/cloud/inference/deployments/deployments.py +52 -4
- gcore/resources/cloud/instances/images.py +72 -18
- gcore/resources/cloud/instances/instances.py +110 -18
- gcore/resources/cloud/instances/interfaces.py +12 -0
- gcore/resources/cloud/k8s/__init__.py +12 -12
- gcore/resources/cloud/k8s/clusters/clusters.py +25 -25
- gcore/resources/cloud/k8s/clusters/pools/pools.py +14 -14
- gcore/resources/cloud/k8s/k8s.py +24 -24
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +1420 -218
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +134 -22
- gcore/resources/cloud/load_balancers/listeners.py +77 -6
- gcore/resources/cloud/load_balancers/load_balancers.py +92 -14
- gcore/resources/cloud/load_balancers/pools/pools.py +52 -4
- gcore/resources/cloud/networks/networks.py +30 -10
- gcore/resources/cloud/networks/subnets.py +26 -10
- gcore/resources/cloud/placement_groups.py +8 -0
- gcore/resources/cloud/projects.py +99 -119
- gcore/resources/cloud/quotas/requests.py +0 -8
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +18 -0
- gcore/resources/cloud/secrets.py +16 -0
- gcore/resources/cloud/security_groups/security_groups.py +38 -12
- gcore/resources/cloud/ssh_keys.py +10 -0
- gcore/resources/cloud/tasks.py +22 -7
- gcore/resources/cloud/volumes.py +65 -23
- gcore/resources/dns/zones/rrsets.py +10 -10
- gcore/resources/dns/zones/zones.py +2 -2
- gcore/resources/security/bgp_announces.py +0 -4
- gcore/resources/security/profiles.py +31 -7
- gcore/resources/storage/credentials.py +0 -28
- gcore/resources/storage/storage.py +2 -2
- gcore/types/cdn/__init__.py +5 -0
- gcore/types/cdn/alibaba_regions.py +22 -0
- gcore/types/cdn/audit_log_list_params.py +2 -2
- gcore/types/cdn/aws_regions.py +22 -0
- gcore/types/cdn/cdn_list_purge_statuses_response.py +10 -0
- gcore/types/cdn/cdn_resource.py +17 -12
- gcore/types/cdn/ip_range_list_ips_params.py +19 -0
- gcore/types/cdn/ip_range_list_params.py +19 -0
- gcore/types/cdn/resource_create_params.py +17 -12
- gcore/types/cdn/resource_purge_params.py +4 -4
- gcore/types/cdn/resource_replace_params.py +17 -12
- gcore/types/cdn/resource_update_params.py +17 -12
- gcore/types/cdn/resource_usage_stats.py +16 -15
- gcore/types/cdn/resources/cdn_resource_rule.py +15 -10
- gcore/types/cdn/resources/rule_create_params.py +15 -10
- gcore/types/cdn/resources/rule_replace_params.py +15 -10
- gcore/types/cdn/resources/rule_update_params.py +15 -10
- gcore/types/cdn/rule_template.py +15 -10
- gcore/types/cdn/rule_template_create_params.py +15 -10
- gcore/types/cdn/rule_template_replace_params.py +15 -10
- gcore/types/cdn/rule_template_update_params.py +15 -10
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +4 -1
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +5 -12
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +10 -21
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +6 -1
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +5 -2
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +3 -0
- gcore/types/cloud/__init__.py +9 -3
- gcore/types/cloud/audit_log_entry.py +9 -3
- gcore/types/cloud/audit_log_list_params.py +12 -0
- gcore/types/cloud/baremetal/server_create_params.py +7 -7
- gcore/types/cloud/baremetal_flavor.py +0 -6
- gcore/types/cloud/billing_reservation_list_params.py +1 -1
- gcore/types/cloud/blackhole_port.py +4 -1
- gcore/types/cloud/databases/postgres/__init__.py +12 -0
- gcore/types/cloud/databases/postgres/cluster_create_params.py +108 -0
- gcore/types/cloud/databases/postgres/cluster_list_params.py +19 -0
- gcore/types/cloud/databases/postgres/cluster_update_params.py +102 -0
- gcore/types/cloud/databases/postgres/clusters/__init__.py +5 -0
- gcore/types/cloud/databases/postgres/clusters/postgres_user_credentials.py +13 -0
- gcore/types/cloud/databases/postgres/custom_configuration_validate_params.py +19 -0
- gcore/types/cloud/databases/postgres/pg_conf_validation.py +15 -0
- gcore/types/cloud/databases/postgres/postgres_cluster.py +118 -0
- gcore/types/cloud/databases/postgres/postgres_cluster_short.py +22 -0
- gcore/types/cloud/databases/postgres/postgres_configuration.py +31 -0
- gcore/types/cloud/file_share_create_params.py +8 -8
- gcore/types/cloud/file_share_update_params.py +7 -2
- gcore/types/cloud/floating_ip.py +5 -1
- gcore/types/cloud/floating_ip_create_params.py +4 -4
- gcore/types/cloud/floating_ip_detailed.py +5 -1
- gcore/types/cloud/floating_ip_list_params.py +8 -0
- gcore/types/cloud/floating_ip_update_params.py +7 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +18 -3
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +7 -2
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +16 -4
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +5 -2
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +4 -4
- gcore/types/cloud/gpu_image.py +9 -0
- gcore/types/cloud/gpu_virtual_cluster.py +189 -0
- gcore/types/cloud/gpu_virtual_cluster_action_params.py +127 -0
- gcore/types/cloud/gpu_virtual_cluster_create_params.py +213 -0
- gcore/types/cloud/gpu_virtual_cluster_delete_params.py +41 -0
- gcore/types/cloud/gpu_virtual_cluster_list_params.py +21 -0
- gcore/types/cloud/gpu_virtual_cluster_update_params.py +18 -0
- gcore/types/cloud/gpu_virtual_clusters/__init__.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/flavor_list_params.py +21 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server.py +77 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume.py +64 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor.py +155 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface.py +190 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/image_upload_params.py +56 -0
- gcore/types/cloud/gpu_virtual_clusters/server_delete_params.py +44 -0
- gcore/types/cloud/gpu_virtual_clusters/server_list_params.py +75 -0
- gcore/types/cloud/image.py +9 -0
- gcore/types/cloud/inference/deployment_create_params.py +1 -1
- gcore/types/cloud/inference/deployment_update_params.py +1 -1
- gcore/types/cloud/inference/inference_deployment.py +1 -1
- gcore/types/cloud/instance_create_params.py +27 -27
- gcore/types/cloud/instance_update_params.py +7 -2
- gcore/types/cloud/instances/image_create_from_volume_params.py +4 -4
- gcore/types/cloud/instances/image_update_params.py +4 -4
- gcore/types/cloud/instances/image_upload_params.py +4 -4
- gcore/types/cloud/k8s/__init__.py +4 -4
- gcore/types/cloud/k8s/cluster_update_params.py +5 -5
- gcore/types/cloud/k8s/clusters/__init__.py +2 -2
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +2 -2
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +4 -4
- gcore/types/cloud/k8s/k8s_cluster.py +4 -4
- gcore/types/cloud/k8s/k8s_cluster_certificate.py +2 -2
- gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +14 -2
- gcore/types/cloud/k8s/k8s_cluster_list.py +4 -4
- gcore/types/cloud/k8s_cluster_version.py +2 -2
- gcore/types/cloud/k8s_cluster_version_list.py +4 -4
- gcore/types/cloud/load_balancer_create_params.py +14 -8
- gcore/types/cloud/load_balancer_flavor_detail.py +2 -2
- gcore/types/cloud/load_balancer_l7_policy.py +29 -16
- gcore/types/cloud/load_balancer_l7_policy_list.py +3 -3
- gcore/types/cloud/load_balancer_l7_rule.py +14 -23
- gcore/types/cloud/load_balancer_l7_rule_list.py +3 -3
- gcore/types/cloud/load_balancer_listener_detail.py +2 -2
- gcore/types/cloud/load_balancer_update_params.py +7 -2
- gcore/types/cloud/load_balancers/__init__.py +1 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +5 -10
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +7 -11
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +102 -18
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +94 -16
- gcore/types/cloud/load_balancers/listener_create_params.py +4 -1
- gcore/types/cloud/load_balancers/listener_delete_params.py +18 -0
- gcore/types/cloud/load_balancers/listener_update_params.py +4 -1
- gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
- gcore/types/cloud/network_create_params.py +4 -4
- gcore/types/cloud/network_update_params.py +7 -2
- gcore/types/cloud/networks/subnet_create_params.py +4 -4
- gcore/types/cloud/networks/subnet_update_params.py +7 -2
- gcore/types/cloud/project_create_params.py +0 -6
- gcore/types/cloud/{project_replace_params.py → project_update_params.py} +2 -2
- gcore/types/cloud/quotas/request_create_params.py +0 -3
- gcore/types/cloud/region.py +3 -3
- gcore/types/cloud/security_group.py +8 -1
- gcore/types/cloud/security_group_create_params.py +7 -5
- gcore/types/cloud/security_group_list_params.py +6 -4
- gcore/types/cloud/security_group_update_params.py +7 -2
- gcore/types/cloud/ssh_key_list_params.py +7 -0
- gcore/types/cloud/tag.py +2 -2
- gcore/types/cloud/task_id_list.py +3 -3
- gcore/types/cloud/volume_create_params.py +12 -12
- gcore/types/cloud/volume_update_params.py +7 -2
- gcore/types/dns/zone_list_params.py +1 -1
- gcore/types/iam/api_token_create.py +70 -1
- gcore/types/security/bgp_announce_list_params.py +0 -2
- gcore/types/security/client_profile.py +1 -0
- gcore/types/security/profile_create_params.py +4 -2
- gcore/types/security/profile_recreate_params.py +4 -2
- gcore/types/security/profile_replace_params.py +4 -2
- gcore/types/storage/credential_recreate_params.py +0 -17
- gcore/types/storage/storage.py +1 -1
- gcore/types/storage/storage_create_params.py +1 -1
- gcore/types/streaming/stream.py +3 -2
- gcore/types/streaming/video.py +1 -1
- gcore/types/waap/domains/custom_rule_create_params.py +1 -1
- gcore/types/waap/domains/custom_rule_update_params.py +1 -1
- gcore/types/waap/domains/waap_custom_rule.py +1 -1
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/METADATA +14 -14
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/RECORD +219 -168
- gcore/resources/cdn/logs/__init__.py +0 -19
- /gcore/types/{cdn/logs → cloud/databases}/__init__.py +0 -0
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/WHEEL +0 -0
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -182,7 +182,7 @@ class OptionsCors(BaseModel):
|
|
|
182
182
|
Possible values:
|
|
183
183
|
|
|
184
184
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
185
|
-
uploaded for requests from any domain. `"value": ["
|
|
185
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
186
186
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
187
187
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
188
188
|
requests from the domains specified in the field.
|
|
@@ -190,7 +190,7 @@ class OptionsCors(BaseModel):
|
|
|
190
190
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
191
191
|
Content will be uploaded for requests from any domain, and the domain from
|
|
192
192
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
193
|
-
header in the response. `"value": ["
|
|
193
|
+
header in the response. `"value": ["$http_origin"]`
|
|
194
194
|
"""
|
|
195
195
|
|
|
196
196
|
always: Optional[bool] = None
|
|
@@ -736,7 +736,10 @@ class OptionsProxyConnectTimeout(BaseModel):
|
|
|
736
736
|
"""
|
|
737
737
|
|
|
738
738
|
value: str
|
|
739
|
-
"""Timeout value in seconds.
|
|
739
|
+
"""Timeout value in seconds.
|
|
740
|
+
|
|
741
|
+
Supported range: **1s - 5s**.
|
|
742
|
+
"""
|
|
740
743
|
|
|
741
744
|
|
|
742
745
|
class OptionsProxyReadTimeout(BaseModel):
|
|
@@ -750,7 +753,10 @@ class OptionsProxyReadTimeout(BaseModel):
|
|
|
750
753
|
"""
|
|
751
754
|
|
|
752
755
|
value: str
|
|
753
|
-
"""Timeout value in seconds.
|
|
756
|
+
"""Timeout value in seconds.
|
|
757
|
+
|
|
758
|
+
Supported range: **1s - 30s**.
|
|
759
|
+
"""
|
|
754
760
|
|
|
755
761
|
|
|
756
762
|
class OptionsQueryParamsBlacklist(BaseModel):
|
|
@@ -889,7 +895,7 @@ class OptionsReferrerACL(BaseModel):
|
|
|
889
895
|
Examples:
|
|
890
896
|
|
|
891
897
|
- `example.com`
|
|
892
|
-
-
|
|
898
|
+
- `*.example.com`
|
|
893
899
|
"""
|
|
894
900
|
|
|
895
901
|
policy_type: Literal["allow", "deny"]
|
|
@@ -979,7 +985,7 @@ class OptionsRewrite(BaseModel):
|
|
|
979
985
|
|
|
980
986
|
Example:
|
|
981
987
|
|
|
982
|
-
- `/(
|
|
988
|
+
- `/(.*) /media/$1`
|
|
983
989
|
"""
|
|
984
990
|
|
|
985
991
|
enabled: bool
|
|
@@ -1166,7 +1172,7 @@ class OptionsStaticHeaders(BaseModel):
|
|
|
1166
1172
|
- **false** - Option is disabled.
|
|
1167
1173
|
"""
|
|
1168
1174
|
|
|
1169
|
-
value:
|
|
1175
|
+
value: object
|
|
1170
1176
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1171
1177
|
|
|
1172
1178
|
Restrictions:
|
|
@@ -1363,7 +1369,7 @@ class Options(BaseModel):
|
|
|
1363
1369
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1364
1370
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1365
1371
|
`brotli_compression` in a rule, you have to specify
|
|
1366
|
-
`"
|
|
1372
|
+
`"fetch_compressed": false` in the rule.
|
|
1367
1373
|
"""
|
|
1368
1374
|
|
|
1369
1375
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect] = None
|
|
@@ -1397,8 +1403,7 @@ class Options(BaseModel):
|
|
|
1397
1403
|
options enabled.
|
|
1398
1404
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1399
1405
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1400
|
-
`gzipON` in rules, you need to specify `"
|
|
1401
|
-
rules.
|
|
1406
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1402
1407
|
"""
|
|
1403
1408
|
|
|
1404
1409
|
host_header: Optional[OptionsHostHeader] = FieldInfo(alias="hostHeader", default=None)
|
|
@@ -258,7 +258,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
258
258
|
Possible values:
|
|
259
259
|
|
|
260
260
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
261
|
-
uploaded for requests from any domain. `"value": ["
|
|
261
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
262
262
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
263
263
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
264
264
|
requests from the domains specified in the field.
|
|
@@ -266,7 +266,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
266
266
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
267
267
|
Content will be uploaded for requests from any domain, and the domain from
|
|
268
268
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
269
|
-
header in the response. `"value": ["
|
|
269
|
+
header in the response. `"value": ["$http_origin"]`
|
|
270
270
|
"""
|
|
271
271
|
|
|
272
272
|
always: bool
|
|
@@ -812,7 +812,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
812
812
|
"""
|
|
813
813
|
|
|
814
814
|
value: Required[str]
|
|
815
|
-
"""Timeout value in seconds.
|
|
815
|
+
"""Timeout value in seconds.
|
|
816
|
+
|
|
817
|
+
Supported range: **1s - 5s**.
|
|
818
|
+
"""
|
|
816
819
|
|
|
817
820
|
|
|
818
821
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -826,7 +829,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
826
829
|
"""
|
|
827
830
|
|
|
828
831
|
value: Required[str]
|
|
829
|
-
"""Timeout value in seconds.
|
|
832
|
+
"""Timeout value in seconds.
|
|
833
|
+
|
|
834
|
+
Supported range: **1s - 30s**.
|
|
835
|
+
"""
|
|
830
836
|
|
|
831
837
|
|
|
832
838
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -965,7 +971,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
965
971
|
Examples:
|
|
966
972
|
|
|
967
973
|
- `example.com`
|
|
968
|
-
-
|
|
974
|
+
- `*.example.com`
|
|
969
975
|
"""
|
|
970
976
|
|
|
971
977
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1051,7 +1057,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1051
1057
|
|
|
1052
1058
|
Example:
|
|
1053
1059
|
|
|
1054
|
-
- `/(
|
|
1060
|
+
- `/(.*) /media/$1`
|
|
1055
1061
|
"""
|
|
1056
1062
|
|
|
1057
1063
|
enabled: Required[bool]
|
|
@@ -1240,7 +1246,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1240
1246
|
- **false** - Option is disabled.
|
|
1241
1247
|
"""
|
|
1242
1248
|
|
|
1243
|
-
value: Required[
|
|
1249
|
+
value: Required[object]
|
|
1244
1250
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1245
1251
|
|
|
1246
1252
|
Restrictions:
|
|
@@ -1437,7 +1443,7 @@ class Options(TypedDict, total=False):
|
|
|
1437
1443
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1438
1444
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1439
1445
|
`brotli_compression` in a rule, you have to specify
|
|
1440
|
-
`"
|
|
1446
|
+
`"fetch_compressed": false` in the rule.
|
|
1441
1447
|
"""
|
|
1442
1448
|
|
|
1443
1449
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1471,8 +1477,7 @@ class Options(TypedDict, total=False):
|
|
|
1471
1477
|
options enabled.
|
|
1472
1478
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1473
1479
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1474
|
-
`gzipON` in rules, you need to specify `"
|
|
1475
|
-
rules.
|
|
1480
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1476
1481
|
"""
|
|
1477
1482
|
|
|
1478
1483
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -260,7 +260,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
260
260
|
Possible values:
|
|
261
261
|
|
|
262
262
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
263
|
-
uploaded for requests from any domain. `"value": ["
|
|
263
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
264
264
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
265
265
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
266
266
|
requests from the domains specified in the field.
|
|
@@ -268,7 +268,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
268
268
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
269
269
|
Content will be uploaded for requests from any domain, and the domain from
|
|
270
270
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
271
|
-
header in the response. `"value": ["
|
|
271
|
+
header in the response. `"value": ["$http_origin"]`
|
|
272
272
|
"""
|
|
273
273
|
|
|
274
274
|
always: bool
|
|
@@ -814,7 +814,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
814
814
|
"""
|
|
815
815
|
|
|
816
816
|
value: Required[str]
|
|
817
|
-
"""Timeout value in seconds.
|
|
817
|
+
"""Timeout value in seconds.
|
|
818
|
+
|
|
819
|
+
Supported range: **1s - 5s**.
|
|
820
|
+
"""
|
|
818
821
|
|
|
819
822
|
|
|
820
823
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -828,7 +831,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
828
831
|
"""
|
|
829
832
|
|
|
830
833
|
value: Required[str]
|
|
831
|
-
"""Timeout value in seconds.
|
|
834
|
+
"""Timeout value in seconds.
|
|
835
|
+
|
|
836
|
+
Supported range: **1s - 30s**.
|
|
837
|
+
"""
|
|
832
838
|
|
|
833
839
|
|
|
834
840
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -967,7 +973,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
967
973
|
Examples:
|
|
968
974
|
|
|
969
975
|
- `example.com`
|
|
970
|
-
-
|
|
976
|
+
- `*.example.com`
|
|
971
977
|
"""
|
|
972
978
|
|
|
973
979
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1053,7 +1059,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1053
1059
|
|
|
1054
1060
|
Example:
|
|
1055
1061
|
|
|
1056
|
-
- `/(
|
|
1062
|
+
- `/(.*) /media/$1`
|
|
1057
1063
|
"""
|
|
1058
1064
|
|
|
1059
1065
|
enabled: Required[bool]
|
|
@@ -1242,7 +1248,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1242
1248
|
- **false** - Option is disabled.
|
|
1243
1249
|
"""
|
|
1244
1250
|
|
|
1245
|
-
value: Required[
|
|
1251
|
+
value: Required[object]
|
|
1246
1252
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1247
1253
|
|
|
1248
1254
|
Restrictions:
|
|
@@ -1439,7 +1445,7 @@ class Options(TypedDict, total=False):
|
|
|
1439
1445
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1440
1446
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1441
1447
|
`brotli_compression` in a rule, you have to specify
|
|
1442
|
-
`"
|
|
1448
|
+
`"fetch_compressed": false` in the rule.
|
|
1443
1449
|
"""
|
|
1444
1450
|
|
|
1445
1451
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1473,8 +1479,7 @@ class Options(TypedDict, total=False):
|
|
|
1473
1479
|
options enabled.
|
|
1474
1480
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1475
1481
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1476
|
-
`gzipON` in rules, you need to specify `"
|
|
1477
|
-
rules.
|
|
1482
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1478
1483
|
"""
|
|
1479
1484
|
|
|
1480
1485
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -260,7 +260,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
260
260
|
Possible values:
|
|
261
261
|
|
|
262
262
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
263
|
-
uploaded for requests from any domain. `"value": ["
|
|
263
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
264
264
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
265
265
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
266
266
|
requests from the domains specified in the field.
|
|
@@ -268,7 +268,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
268
268
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
269
269
|
Content will be uploaded for requests from any domain, and the domain from
|
|
270
270
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
271
|
-
header in the response. `"value": ["
|
|
271
|
+
header in the response. `"value": ["$http_origin"]`
|
|
272
272
|
"""
|
|
273
273
|
|
|
274
274
|
always: bool
|
|
@@ -814,7 +814,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
814
814
|
"""
|
|
815
815
|
|
|
816
816
|
value: Required[str]
|
|
817
|
-
"""Timeout value in seconds.
|
|
817
|
+
"""Timeout value in seconds.
|
|
818
|
+
|
|
819
|
+
Supported range: **1s - 5s**.
|
|
820
|
+
"""
|
|
818
821
|
|
|
819
822
|
|
|
820
823
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -828,7 +831,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
828
831
|
"""
|
|
829
832
|
|
|
830
833
|
value: Required[str]
|
|
831
|
-
"""Timeout value in seconds.
|
|
834
|
+
"""Timeout value in seconds.
|
|
835
|
+
|
|
836
|
+
Supported range: **1s - 30s**.
|
|
837
|
+
"""
|
|
832
838
|
|
|
833
839
|
|
|
834
840
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -967,7 +973,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
967
973
|
Examples:
|
|
968
974
|
|
|
969
975
|
- `example.com`
|
|
970
|
-
-
|
|
976
|
+
- `*.example.com`
|
|
971
977
|
"""
|
|
972
978
|
|
|
973
979
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1053,7 +1059,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1053
1059
|
|
|
1054
1060
|
Example:
|
|
1055
1061
|
|
|
1056
|
-
- `/(
|
|
1062
|
+
- `/(.*) /media/$1`
|
|
1057
1063
|
"""
|
|
1058
1064
|
|
|
1059
1065
|
enabled: Required[bool]
|
|
@@ -1242,7 +1248,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1242
1248
|
- **false** - Option is disabled.
|
|
1243
1249
|
"""
|
|
1244
1250
|
|
|
1245
|
-
value: Required[
|
|
1251
|
+
value: Required[object]
|
|
1246
1252
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1247
1253
|
|
|
1248
1254
|
Restrictions:
|
|
@@ -1439,7 +1445,7 @@ class Options(TypedDict, total=False):
|
|
|
1439
1445
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1440
1446
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1441
1447
|
`brotli_compression` in a rule, you have to specify
|
|
1442
|
-
`"
|
|
1448
|
+
`"fetch_compressed": false` in the rule.
|
|
1443
1449
|
"""
|
|
1444
1450
|
|
|
1445
1451
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1473,8 +1479,7 @@ class Options(TypedDict, total=False):
|
|
|
1473
1479
|
options enabled.
|
|
1474
1480
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1475
1481
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1476
|
-
`gzipON` in rules, you need to specify `"
|
|
1477
|
-
rules.
|
|
1482
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1478
1483
|
"""
|
|
1479
1484
|
|
|
1480
1485
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
gcore/types/cdn/rule_template.py
CHANGED
|
@@ -182,7 +182,7 @@ class OptionsCors(BaseModel):
|
|
|
182
182
|
Possible values:
|
|
183
183
|
|
|
184
184
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
185
|
-
uploaded for requests from any domain. `"value": ["
|
|
185
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
186
186
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
187
187
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
188
188
|
requests from the domains specified in the field.
|
|
@@ -190,7 +190,7 @@ class OptionsCors(BaseModel):
|
|
|
190
190
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
191
191
|
Content will be uploaded for requests from any domain, and the domain from
|
|
192
192
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
193
|
-
header in the response. `"value": ["
|
|
193
|
+
header in the response. `"value": ["$http_origin"]`
|
|
194
194
|
"""
|
|
195
195
|
|
|
196
196
|
always: Optional[bool] = None
|
|
@@ -736,7 +736,10 @@ class OptionsProxyConnectTimeout(BaseModel):
|
|
|
736
736
|
"""
|
|
737
737
|
|
|
738
738
|
value: str
|
|
739
|
-
"""Timeout value in seconds.
|
|
739
|
+
"""Timeout value in seconds.
|
|
740
|
+
|
|
741
|
+
Supported range: **1s - 5s**.
|
|
742
|
+
"""
|
|
740
743
|
|
|
741
744
|
|
|
742
745
|
class OptionsProxyReadTimeout(BaseModel):
|
|
@@ -750,7 +753,10 @@ class OptionsProxyReadTimeout(BaseModel):
|
|
|
750
753
|
"""
|
|
751
754
|
|
|
752
755
|
value: str
|
|
753
|
-
"""Timeout value in seconds.
|
|
756
|
+
"""Timeout value in seconds.
|
|
757
|
+
|
|
758
|
+
Supported range: **1s - 30s**.
|
|
759
|
+
"""
|
|
754
760
|
|
|
755
761
|
|
|
756
762
|
class OptionsQueryParamsBlacklist(BaseModel):
|
|
@@ -889,7 +895,7 @@ class OptionsReferrerACL(BaseModel):
|
|
|
889
895
|
Examples:
|
|
890
896
|
|
|
891
897
|
- `example.com`
|
|
892
|
-
-
|
|
898
|
+
- `*.example.com`
|
|
893
899
|
"""
|
|
894
900
|
|
|
895
901
|
policy_type: Literal["allow", "deny"]
|
|
@@ -979,7 +985,7 @@ class OptionsRewrite(BaseModel):
|
|
|
979
985
|
|
|
980
986
|
Example:
|
|
981
987
|
|
|
982
|
-
- `/(
|
|
988
|
+
- `/(.*) /media/$1`
|
|
983
989
|
"""
|
|
984
990
|
|
|
985
991
|
enabled: bool
|
|
@@ -1166,7 +1172,7 @@ class OptionsStaticHeaders(BaseModel):
|
|
|
1166
1172
|
- **false** - Option is disabled.
|
|
1167
1173
|
"""
|
|
1168
1174
|
|
|
1169
|
-
value:
|
|
1175
|
+
value: object
|
|
1170
1176
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1171
1177
|
|
|
1172
1178
|
Restrictions:
|
|
@@ -1363,7 +1369,7 @@ class Options(BaseModel):
|
|
|
1363
1369
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1364
1370
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1365
1371
|
`brotli_compression` in a rule, you have to specify
|
|
1366
|
-
`"
|
|
1372
|
+
`"fetch_compressed": false` in the rule.
|
|
1367
1373
|
"""
|
|
1368
1374
|
|
|
1369
1375
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect] = None
|
|
@@ -1397,8 +1403,7 @@ class Options(BaseModel):
|
|
|
1397
1403
|
options enabled.
|
|
1398
1404
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1399
1405
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1400
|
-
`gzipON` in rules, you need to specify `"
|
|
1401
|
-
rules.
|
|
1406
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1402
1407
|
"""
|
|
1403
1408
|
|
|
1404
1409
|
host_header: Optional[OptionsHostHeader] = FieldInfo(alias="hostHeader", default=None)
|
|
@@ -242,7 +242,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
242
242
|
Possible values:
|
|
243
243
|
|
|
244
244
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
245
|
-
uploaded for requests from any domain. `"value": ["
|
|
245
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
246
246
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
247
247
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
248
248
|
requests from the domains specified in the field.
|
|
@@ -250,7 +250,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
250
250
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
251
251
|
Content will be uploaded for requests from any domain, and the domain from
|
|
252
252
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
253
|
-
header in the response. `"value": ["
|
|
253
|
+
header in the response. `"value": ["$http_origin"]`
|
|
254
254
|
"""
|
|
255
255
|
|
|
256
256
|
always: bool
|
|
@@ -796,7 +796,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
796
796
|
"""
|
|
797
797
|
|
|
798
798
|
value: Required[str]
|
|
799
|
-
"""Timeout value in seconds.
|
|
799
|
+
"""Timeout value in seconds.
|
|
800
|
+
|
|
801
|
+
Supported range: **1s - 5s**.
|
|
802
|
+
"""
|
|
800
803
|
|
|
801
804
|
|
|
802
805
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -810,7 +813,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
810
813
|
"""
|
|
811
814
|
|
|
812
815
|
value: Required[str]
|
|
813
|
-
"""Timeout value in seconds.
|
|
816
|
+
"""Timeout value in seconds.
|
|
817
|
+
|
|
818
|
+
Supported range: **1s - 30s**.
|
|
819
|
+
"""
|
|
814
820
|
|
|
815
821
|
|
|
816
822
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -949,7 +955,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
949
955
|
Examples:
|
|
950
956
|
|
|
951
957
|
- `example.com`
|
|
952
|
-
-
|
|
958
|
+
- `*.example.com`
|
|
953
959
|
"""
|
|
954
960
|
|
|
955
961
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1035,7 +1041,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1035
1041
|
|
|
1036
1042
|
Example:
|
|
1037
1043
|
|
|
1038
|
-
- `/(
|
|
1044
|
+
- `/(.*) /media/$1`
|
|
1039
1045
|
"""
|
|
1040
1046
|
|
|
1041
1047
|
enabled: Required[bool]
|
|
@@ -1224,7 +1230,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1224
1230
|
- **false** - Option is disabled.
|
|
1225
1231
|
"""
|
|
1226
1232
|
|
|
1227
|
-
value: Required[
|
|
1233
|
+
value: Required[object]
|
|
1228
1234
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1229
1235
|
|
|
1230
1236
|
Restrictions:
|
|
@@ -1421,7 +1427,7 @@ class Options(TypedDict, total=False):
|
|
|
1421
1427
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1422
1428
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1423
1429
|
`brotli_compression` in a rule, you have to specify
|
|
1424
|
-
`"
|
|
1430
|
+
`"fetch_compressed": false` in the rule.
|
|
1425
1431
|
"""
|
|
1426
1432
|
|
|
1427
1433
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1455,8 +1461,7 @@ class Options(TypedDict, total=False):
|
|
|
1455
1461
|
options enabled.
|
|
1456
1462
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1457
1463
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1458
|
-
`gzipON` in rules, you need to specify `"
|
|
1459
|
-
rules.
|
|
1464
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1460
1465
|
"""
|
|
1461
1466
|
|
|
1462
1467
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -242,7 +242,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
242
242
|
Possible values:
|
|
243
243
|
|
|
244
244
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
245
|
-
uploaded for requests from any domain. `"value": ["
|
|
245
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
246
246
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
247
247
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
248
248
|
requests from the domains specified in the field.
|
|
@@ -250,7 +250,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
250
250
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
251
251
|
Content will be uploaded for requests from any domain, and the domain from
|
|
252
252
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
253
|
-
header in the response. `"value": ["
|
|
253
|
+
header in the response. `"value": ["$http_origin"]`
|
|
254
254
|
"""
|
|
255
255
|
|
|
256
256
|
always: bool
|
|
@@ -796,7 +796,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
796
796
|
"""
|
|
797
797
|
|
|
798
798
|
value: Required[str]
|
|
799
|
-
"""Timeout value in seconds.
|
|
799
|
+
"""Timeout value in seconds.
|
|
800
|
+
|
|
801
|
+
Supported range: **1s - 5s**.
|
|
802
|
+
"""
|
|
800
803
|
|
|
801
804
|
|
|
802
805
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -810,7 +813,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
810
813
|
"""
|
|
811
814
|
|
|
812
815
|
value: Required[str]
|
|
813
|
-
"""Timeout value in seconds.
|
|
816
|
+
"""Timeout value in seconds.
|
|
817
|
+
|
|
818
|
+
Supported range: **1s - 30s**.
|
|
819
|
+
"""
|
|
814
820
|
|
|
815
821
|
|
|
816
822
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -949,7 +955,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
949
955
|
Examples:
|
|
950
956
|
|
|
951
957
|
- `example.com`
|
|
952
|
-
-
|
|
958
|
+
- `*.example.com`
|
|
953
959
|
"""
|
|
954
960
|
|
|
955
961
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1035,7 +1041,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1035
1041
|
|
|
1036
1042
|
Example:
|
|
1037
1043
|
|
|
1038
|
-
- `/(
|
|
1044
|
+
- `/(.*) /media/$1`
|
|
1039
1045
|
"""
|
|
1040
1046
|
|
|
1041
1047
|
enabled: Required[bool]
|
|
@@ -1224,7 +1230,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1224
1230
|
- **false** - Option is disabled.
|
|
1225
1231
|
"""
|
|
1226
1232
|
|
|
1227
|
-
value: Required[
|
|
1233
|
+
value: Required[object]
|
|
1228
1234
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1229
1235
|
|
|
1230
1236
|
Restrictions:
|
|
@@ -1421,7 +1427,7 @@ class Options(TypedDict, total=False):
|
|
|
1421
1427
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1422
1428
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1423
1429
|
`brotli_compression` in a rule, you have to specify
|
|
1424
|
-
`"
|
|
1430
|
+
`"fetch_compressed": false` in the rule.
|
|
1425
1431
|
"""
|
|
1426
1432
|
|
|
1427
1433
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1455,8 +1461,7 @@ class Options(TypedDict, total=False):
|
|
|
1455
1461
|
options enabled.
|
|
1456
1462
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1457
1463
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1458
|
-
`gzipON` in rules, you need to specify `"
|
|
1459
|
-
rules.
|
|
1464
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1460
1465
|
"""
|
|
1461
1466
|
|
|
1462
1467
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|