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
|
@@ -95,7 +95,7 @@ class StorageResource(SyncAPIResource):
|
|
|
95
95
|
def create(
|
|
96
96
|
self,
|
|
97
97
|
*,
|
|
98
|
-
location:
|
|
98
|
+
location: str,
|
|
99
99
|
name: str,
|
|
100
100
|
type: Literal["sftp", "s3"],
|
|
101
101
|
generate_sftp_password: bool | Omit = omit,
|
|
@@ -499,7 +499,7 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
499
499
|
async def create(
|
|
500
500
|
self,
|
|
501
501
|
*,
|
|
502
|
-
location:
|
|
502
|
+
location: str,
|
|
503
503
|
name: str,
|
|
504
504
|
type: Literal["sftp", "s3"],
|
|
505
505
|
generate_sftp_password: bool | Omit = omit,
|
gcore/types/cdn/__init__.py
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .ssl_detail import SslDetail as SslDetail
|
|
6
|
+
from .aws_regions import AwsRegions as AwsRegions
|
|
6
7
|
from .cdn_account import CdnAccount as CdnAccount
|
|
7
8
|
from .cdn_metrics import CdnMetrics as CdnMetrics
|
|
8
9
|
from .cdn_resource import CdnResource as CdnResource
|
|
@@ -12,6 +13,7 @@ from .origin_groups import OriginGroups as OriginGroups
|
|
|
12
13
|
from .rule_template import RuleTemplate as RuleTemplate
|
|
13
14
|
from .ca_certificate import CaCertificate as CaCertificate
|
|
14
15
|
from .public_ip_list import PublicIPList as PublicIPList
|
|
16
|
+
from .alibaba_regions import AlibabaRegions as AlibabaRegions
|
|
15
17
|
from .log_list_params import LogListParams as LogListParams
|
|
16
18
|
from .ssl_detail_list import SslDetailList as SslDetailList
|
|
17
19
|
from .network_capacity import NetworkCapacity as NetworkCapacity
|
|
@@ -28,6 +30,7 @@ from .ca_certificate_list import CaCertificateList as CaCertificateList
|
|
|
28
30
|
from .cdn_audit_log_entry import CdnAuditLogEntry as CdnAuditLogEntry
|
|
29
31
|
from .log_download_params import LogDownloadParams as LogDownloadParams
|
|
30
32
|
from .public_network_list import PublicNetworkList as PublicNetworkList
|
|
33
|
+
from .ip_range_list_params import IPRangeListParams as IPRangeListParams
|
|
31
34
|
from .resource_list_params import ResourceListParams as ResourceListParams
|
|
32
35
|
from .resource_usage_stats import ResourceUsageStats as ResourceUsageStats
|
|
33
36
|
from .shield_list_response import ShieldListResponse as ShieldListResponse
|
|
@@ -40,6 +43,7 @@ from .resource_update_params import ResourceUpdateParams as ResourceUpdateParams
|
|
|
40
43
|
from .certificate_list_params import CertificateListParams as CertificateListParams
|
|
41
44
|
from .resource_replace_params import ResourceReplaceParams as ResourceReplaceParams
|
|
42
45
|
from .shield_aggregated_stats import ShieldAggregatedStats as ShieldAggregatedStats
|
|
46
|
+
from .ip_range_list_ips_params import IPRangeListIPsParams as IPRangeListIPsParams
|
|
43
47
|
from .logs_uploader_validation import LogsUploaderValidation as LogsUploaderValidation
|
|
44
48
|
from .origin_group_list_params import OriginGroupListParams as OriginGroupListParams
|
|
45
49
|
from .resource_prefetch_params import ResourcePrefetchParams as ResourcePrefetchParams
|
|
@@ -55,6 +59,7 @@ from .rule_template_update_params import RuleTemplateUpdateParams as RuleTemplat
|
|
|
55
59
|
from .rule_template_replace_params import RuleTemplateReplaceParams as RuleTemplateReplaceParams
|
|
56
60
|
from .certificate_get_status_params import CertificateGetStatusParams as CertificateGetStatusParams
|
|
57
61
|
from .cdn_list_purge_statuses_params import CdnListPurgeStatusesParams as CdnListPurgeStatusesParams
|
|
62
|
+
from .cdn_list_purge_statuses_response import CdnListPurgeStatusesResponse as CdnListPurgeStatusesResponse
|
|
58
63
|
from .trusted_ca_certificate_list_params import TrustedCaCertificateListParams as TrustedCaCertificateListParams
|
|
59
64
|
from .trusted_ca_certificate_create_params import TrustedCaCertificateCreateParams as TrustedCaCertificateCreateParams
|
|
60
65
|
from .trusted_ca_certificate_replace_params import (
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["AlibabaRegions", "AlibabaRegionItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AlibabaRegionItem(BaseModel):
|
|
12
|
+
id: Optional[int] = None
|
|
13
|
+
"""Region ID."""
|
|
14
|
+
|
|
15
|
+
code: Optional[str] = None
|
|
16
|
+
"""Region code."""
|
|
17
|
+
|
|
18
|
+
name: Optional[str] = None
|
|
19
|
+
"""Region name."""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
AlibabaRegions: TypeAlias = List[AlibabaRegionItem]
|
|
@@ -50,10 +50,10 @@ class AuditLogListParams(TypedDict, total=False):
|
|
|
50
50
|
"""Offset relative to the beginning of activity logs."""
|
|
51
51
|
|
|
52
52
|
path: str
|
|
53
|
-
"""
|
|
53
|
+
"""Exact URL path."""
|
|
54
54
|
|
|
55
55
|
remote_ip_address: str
|
|
56
|
-
"""IP address
|
|
56
|
+
"""Exact IP address from which requests are sent."""
|
|
57
57
|
|
|
58
58
|
status_code: int
|
|
59
59
|
"""Status code returned in the response.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["AwsRegions", "AwsRegionItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AwsRegionItem(BaseModel):
|
|
12
|
+
id: Optional[int] = None
|
|
13
|
+
"""Region ID."""
|
|
14
|
+
|
|
15
|
+
code: Optional[str] = None
|
|
16
|
+
"""Region code."""
|
|
17
|
+
|
|
18
|
+
name: Optional[str] = None
|
|
19
|
+
"""Region name."""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
AwsRegions: TypeAlias = List[AwsRegionItem]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .purge_status import PurgeStatus
|
|
7
|
+
|
|
8
|
+
__all__ = ["CdnListPurgeStatusesResponse"]
|
|
9
|
+
|
|
10
|
+
CdnListPurgeStatusesResponse: TypeAlias = List[PurgeStatus]
|
gcore/types/cdn/cdn_resource.py
CHANGED
|
@@ -187,7 +187,7 @@ class OptionsCors(BaseModel):
|
|
|
187
187
|
Possible values:
|
|
188
188
|
|
|
189
189
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
190
|
-
uploaded for requests from any domain. `"value": ["
|
|
190
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
191
191
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
192
192
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
193
193
|
requests from the domains specified in the field.
|
|
@@ -195,7 +195,7 @@ class OptionsCors(BaseModel):
|
|
|
195
195
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
196
196
|
Content will be uploaded for requests from any domain, and the domain from
|
|
197
197
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
198
|
-
header in the response. `"value": ["
|
|
198
|
+
header in the response. `"value": ["$http_origin"]`
|
|
199
199
|
"""
|
|
200
200
|
|
|
201
201
|
always: Optional[bool] = None
|
|
@@ -759,7 +759,10 @@ class OptionsProxyConnectTimeout(BaseModel):
|
|
|
759
759
|
"""
|
|
760
760
|
|
|
761
761
|
value: str
|
|
762
|
-
"""Timeout value in seconds.
|
|
762
|
+
"""Timeout value in seconds.
|
|
763
|
+
|
|
764
|
+
Supported range: **1s - 5s**.
|
|
765
|
+
"""
|
|
763
766
|
|
|
764
767
|
|
|
765
768
|
class OptionsProxyReadTimeout(BaseModel):
|
|
@@ -773,7 +776,10 @@ class OptionsProxyReadTimeout(BaseModel):
|
|
|
773
776
|
"""
|
|
774
777
|
|
|
775
778
|
value: str
|
|
776
|
-
"""Timeout value in seconds.
|
|
779
|
+
"""Timeout value in seconds.
|
|
780
|
+
|
|
781
|
+
Supported range: **1s - 30s**.
|
|
782
|
+
"""
|
|
777
783
|
|
|
778
784
|
|
|
779
785
|
class OptionsQueryParamsBlacklist(BaseModel):
|
|
@@ -912,7 +918,7 @@ class OptionsReferrerACL(BaseModel):
|
|
|
912
918
|
Examples:
|
|
913
919
|
|
|
914
920
|
- `example.com`
|
|
915
|
-
-
|
|
921
|
+
- `*.example.com`
|
|
916
922
|
"""
|
|
917
923
|
|
|
918
924
|
policy_type: Literal["allow", "deny"]
|
|
@@ -1002,7 +1008,7 @@ class OptionsRewrite(BaseModel):
|
|
|
1002
1008
|
|
|
1003
1009
|
Example:
|
|
1004
1010
|
|
|
1005
|
-
- `/(
|
|
1011
|
+
- `/(.*) /media/$1`
|
|
1006
1012
|
"""
|
|
1007
1013
|
|
|
1008
1014
|
enabled: bool
|
|
@@ -1189,7 +1195,7 @@ class OptionsStaticHeaders(BaseModel):
|
|
|
1189
1195
|
- **false** - Option is disabled.
|
|
1190
1196
|
"""
|
|
1191
1197
|
|
|
1192
|
-
value:
|
|
1198
|
+
value: object
|
|
1193
1199
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1194
1200
|
|
|
1195
1201
|
Restrictions:
|
|
@@ -1455,7 +1461,7 @@ class Options(BaseModel):
|
|
|
1455
1461
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1456
1462
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1457
1463
|
`brotli_compression` in a rule, you have to specify
|
|
1458
|
-
`"
|
|
1464
|
+
`"fetch_compressed": false` in the rule.
|
|
1459
1465
|
"""
|
|
1460
1466
|
|
|
1461
1467
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect] = None
|
|
@@ -1489,8 +1495,7 @@ class Options(BaseModel):
|
|
|
1489
1495
|
options enabled.
|
|
1490
1496
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1491
1497
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1492
|
-
`gzipON` in rules, you need to specify `"
|
|
1493
|
-
rules.
|
|
1498
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1494
1499
|
"""
|
|
1495
1500
|
|
|
1496
1501
|
host_header: Optional[OptionsHostHeader] = FieldInfo(alias="hostHeader", default=None)
|
|
@@ -1864,13 +1869,13 @@ class CdnResource(BaseModel):
|
|
|
1864
1869
|
proxy_ssl_ca: Optional[int] = None
|
|
1865
1870
|
"""ID of the trusted CA certificate used to verify an origin.
|
|
1866
1871
|
|
|
1867
|
-
It can be used only with `"
|
|
1872
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
1868
1873
|
"""
|
|
1869
1874
|
|
|
1870
1875
|
proxy_ssl_data: Optional[int] = None
|
|
1871
1876
|
"""ID of the SSL certificate used to verify an origin.
|
|
1872
1877
|
|
|
1873
|
-
It can be used only with `"
|
|
1878
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
1874
1879
|
"""
|
|
1875
1880
|
|
|
1876
1881
|
proxy_ssl_enabled: Optional[bool] = None
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["IPRangeListIPsParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class IPRangeListIPsParams(TypedDict, total=False):
|
|
13
|
+
format: Literal["json", "plain"]
|
|
14
|
+
"""
|
|
15
|
+
Optional format override. When set, this takes precedence over the `Accept`
|
|
16
|
+
header.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
accept: Annotated[Literal["application/json", "text/plain"], PropertyInfo(alias="Accept")]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["IPRangeListParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class IPRangeListParams(TypedDict, total=False):
|
|
13
|
+
format: Literal["json", "plain"]
|
|
14
|
+
"""
|
|
15
|
+
Optional format override. When set, this takes precedence over the `Accept`
|
|
16
|
+
header.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
accept: Annotated[Literal["application/json", "text/plain"], PropertyInfo(alias="Accept")]
|
|
@@ -138,13 +138,13 @@ class ResourceCreateParams(TypedDict, total=False):
|
|
|
138
138
|
proxy_ssl_ca: Optional[int]
|
|
139
139
|
"""ID of the trusted CA certificate used to verify an origin.
|
|
140
140
|
|
|
141
|
-
It can be used only with `"
|
|
141
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
142
142
|
"""
|
|
143
143
|
|
|
144
144
|
proxy_ssl_data: Optional[int]
|
|
145
145
|
"""ID of the SSL certificate used to verify an origin.
|
|
146
146
|
|
|
147
|
-
It can be used only with `"
|
|
147
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
148
148
|
"""
|
|
149
149
|
|
|
150
150
|
proxy_ssl_enabled: bool
|
|
@@ -310,7 +310,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
310
310
|
Possible values:
|
|
311
311
|
|
|
312
312
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
313
|
-
uploaded for requests from any domain. `"value": ["
|
|
313
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
314
314
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
315
315
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
316
316
|
requests from the domains specified in the field.
|
|
@@ -318,7 +318,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
318
318
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
319
319
|
Content will be uploaded for requests from any domain, and the domain from
|
|
320
320
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
321
|
-
header in the response. `"value": ["
|
|
321
|
+
header in the response. `"value": ["$http_origin"]`
|
|
322
322
|
"""
|
|
323
323
|
|
|
324
324
|
always: bool
|
|
@@ -882,7 +882,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
882
882
|
"""
|
|
883
883
|
|
|
884
884
|
value: Required[str]
|
|
885
|
-
"""Timeout value in seconds.
|
|
885
|
+
"""Timeout value in seconds.
|
|
886
|
+
|
|
887
|
+
Supported range: **1s - 5s**.
|
|
888
|
+
"""
|
|
886
889
|
|
|
887
890
|
|
|
888
891
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -896,7 +899,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
896
899
|
"""
|
|
897
900
|
|
|
898
901
|
value: Required[str]
|
|
899
|
-
"""Timeout value in seconds.
|
|
902
|
+
"""Timeout value in seconds.
|
|
903
|
+
|
|
904
|
+
Supported range: **1s - 30s**.
|
|
905
|
+
"""
|
|
900
906
|
|
|
901
907
|
|
|
902
908
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -1035,7 +1041,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
1035
1041
|
Examples:
|
|
1036
1042
|
|
|
1037
1043
|
- `example.com`
|
|
1038
|
-
-
|
|
1044
|
+
- `*.example.com`
|
|
1039
1045
|
"""
|
|
1040
1046
|
|
|
1041
1047
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1121,7 +1127,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1121
1127
|
|
|
1122
1128
|
Example:
|
|
1123
1129
|
|
|
1124
|
-
- `/(
|
|
1130
|
+
- `/(.*) /media/$1`
|
|
1125
1131
|
"""
|
|
1126
1132
|
|
|
1127
1133
|
enabled: Required[bool]
|
|
@@ -1310,7 +1316,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1310
1316
|
- **false** - Option is disabled.
|
|
1311
1317
|
"""
|
|
1312
1318
|
|
|
1313
|
-
value: Required[
|
|
1319
|
+
value: Required[object]
|
|
1314
1320
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1315
1321
|
|
|
1316
1322
|
Restrictions:
|
|
@@ -1576,7 +1582,7 @@ class Options(TypedDict, total=False):
|
|
|
1576
1582
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1577
1583
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1578
1584
|
`brotli_compression` in a rule, you have to specify
|
|
1579
|
-
`"
|
|
1585
|
+
`"fetch_compressed": false` in the rule.
|
|
1580
1586
|
"""
|
|
1581
1587
|
|
|
1582
1588
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1610,8 +1616,7 @@ class Options(TypedDict, total=False):
|
|
|
1610
1616
|
options enabled.
|
|
1611
1617
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1612
1618
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1613
|
-
`gzipON` in rules, you need to specify `"
|
|
1614
|
-
rules.
|
|
1619
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1615
1620
|
"""
|
|
1616
1621
|
|
|
1617
1622
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -43,16 +43,16 @@ class PurgeByPattern(TypedDict, total=False):
|
|
|
43
43
|
paths: SequenceNotStr[str]
|
|
44
44
|
"""**Purge by pattern** clears the cache that matches the pattern.
|
|
45
45
|
|
|
46
|
-
Use
|
|
47
|
-
important to note that wildcard usage (
|
|
46
|
+
Use _ operator, which replaces any number of symbols in your path. It's
|
|
47
|
+
important to note that wildcard usage (_) is permitted only at the end of a
|
|
48
48
|
pattern.
|
|
49
49
|
|
|
50
50
|
Query string added to any patterns will be ignored, and purge request will be
|
|
51
51
|
processed as if there weren't any parameters.
|
|
52
52
|
|
|
53
|
-
Purge by pattern is recursive. Both /path and /path
|
|
53
|
+
Purge by pattern is recursive. Both /path and /path* will result in recursive
|
|
54
54
|
purging, meaning all content under the specified path will be affected. As such,
|
|
55
|
-
using the pattern /path
|
|
55
|
+
using the pattern /path* is functionally equivalent to simply using /path.
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
58
|
|
|
@@ -116,13 +116,13 @@ class ResourceReplaceParams(TypedDict, total=False):
|
|
|
116
116
|
proxy_ssl_ca: Optional[int]
|
|
117
117
|
"""ID of the trusted CA certificate used to verify an origin.
|
|
118
118
|
|
|
119
|
-
It can be used only with `"
|
|
119
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
120
120
|
"""
|
|
121
121
|
|
|
122
122
|
proxy_ssl_data: Optional[int]
|
|
123
123
|
"""ID of the SSL certificate used to verify an origin.
|
|
124
124
|
|
|
125
|
-
It can be used only with `"
|
|
125
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
126
126
|
"""
|
|
127
127
|
|
|
128
128
|
proxy_ssl_enabled: bool
|
|
@@ -288,7 +288,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
288
288
|
Possible values:
|
|
289
289
|
|
|
290
290
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
291
|
-
uploaded for requests from any domain. `"value": ["
|
|
291
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
292
292
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
293
293
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
294
294
|
requests from the domains specified in the field.
|
|
@@ -296,7 +296,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
296
296
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
297
297
|
Content will be uploaded for requests from any domain, and the domain from
|
|
298
298
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
299
|
-
header in the response. `"value": ["
|
|
299
|
+
header in the response. `"value": ["$http_origin"]`
|
|
300
300
|
"""
|
|
301
301
|
|
|
302
302
|
always: bool
|
|
@@ -860,7 +860,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
860
860
|
"""
|
|
861
861
|
|
|
862
862
|
value: Required[str]
|
|
863
|
-
"""Timeout value in seconds.
|
|
863
|
+
"""Timeout value in seconds.
|
|
864
|
+
|
|
865
|
+
Supported range: **1s - 5s**.
|
|
866
|
+
"""
|
|
864
867
|
|
|
865
868
|
|
|
866
869
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -874,7 +877,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
874
877
|
"""
|
|
875
878
|
|
|
876
879
|
value: Required[str]
|
|
877
|
-
"""Timeout value in seconds.
|
|
880
|
+
"""Timeout value in seconds.
|
|
881
|
+
|
|
882
|
+
Supported range: **1s - 30s**.
|
|
883
|
+
"""
|
|
878
884
|
|
|
879
885
|
|
|
880
886
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -1013,7 +1019,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
1013
1019
|
Examples:
|
|
1014
1020
|
|
|
1015
1021
|
- `example.com`
|
|
1016
|
-
-
|
|
1022
|
+
- `*.example.com`
|
|
1017
1023
|
"""
|
|
1018
1024
|
|
|
1019
1025
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1099,7 +1105,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1099
1105
|
|
|
1100
1106
|
Example:
|
|
1101
1107
|
|
|
1102
|
-
- `/(
|
|
1108
|
+
- `/(.*) /media/$1`
|
|
1103
1109
|
"""
|
|
1104
1110
|
|
|
1105
1111
|
enabled: Required[bool]
|
|
@@ -1288,7 +1294,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1288
1294
|
- **false** - Option is disabled.
|
|
1289
1295
|
"""
|
|
1290
1296
|
|
|
1291
|
-
value: Required[
|
|
1297
|
+
value: Required[object]
|
|
1292
1298
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1293
1299
|
|
|
1294
1300
|
Restrictions:
|
|
@@ -1554,7 +1560,7 @@ class Options(TypedDict, total=False):
|
|
|
1554
1560
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1555
1561
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1556
1562
|
`brotli_compression` in a rule, you have to specify
|
|
1557
|
-
`"
|
|
1563
|
+
`"fetch_compressed": false` in the rule.
|
|
1558
1564
|
"""
|
|
1559
1565
|
|
|
1560
1566
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1588,8 +1594,7 @@ class Options(TypedDict, total=False):
|
|
|
1588
1594
|
options enabled.
|
|
1589
1595
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1590
1596
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1591
|
-
`gzipON` in rules, you need to specify `"
|
|
1592
|
-
rules.
|
|
1597
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1593
1598
|
"""
|
|
1594
1599
|
|
|
1595
1600
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -116,13 +116,13 @@ class ResourceUpdateParams(TypedDict, total=False):
|
|
|
116
116
|
proxy_ssl_ca: Optional[int]
|
|
117
117
|
"""ID of the trusted CA certificate used to verify an origin.
|
|
118
118
|
|
|
119
|
-
It can be used only with `"
|
|
119
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
120
120
|
"""
|
|
121
121
|
|
|
122
122
|
proxy_ssl_data: Optional[int]
|
|
123
123
|
"""ID of the SSL certificate used to verify an origin.
|
|
124
124
|
|
|
125
|
-
It can be used only with `"
|
|
125
|
+
It can be used only with `"proxy_ssl_enabled": true`.
|
|
126
126
|
"""
|
|
127
127
|
|
|
128
128
|
proxy_ssl_enabled: bool
|
|
@@ -279,7 +279,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
279
279
|
Possible values:
|
|
280
280
|
|
|
281
281
|
- **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
|
|
282
|
-
uploaded for requests from any domain. `"value": ["
|
|
282
|
+
uploaded for requests from any domain. `"value": ["*"]`
|
|
283
283
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
|
|
284
284
|
origin matches one of the listed domains** - Content will be uploaded only for
|
|
285
285
|
requests from the domains specified in the field.
|
|
@@ -287,7 +287,7 @@ class OptionsCors(TypedDict, total=False):
|
|
|
287
287
|
- **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
|
|
288
288
|
Content will be uploaded for requests from any domain, and the domain from
|
|
289
289
|
which the request was sent will be added to the "Access-Control-Allow-Origin"
|
|
290
|
-
header in the response. `"value": ["
|
|
290
|
+
header in the response. `"value": ["$http_origin"]`
|
|
291
291
|
"""
|
|
292
292
|
|
|
293
293
|
always: bool
|
|
@@ -851,7 +851,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
|
|
|
851
851
|
"""
|
|
852
852
|
|
|
853
853
|
value: Required[str]
|
|
854
|
-
"""Timeout value in seconds.
|
|
854
|
+
"""Timeout value in seconds.
|
|
855
|
+
|
|
856
|
+
Supported range: **1s - 5s**.
|
|
857
|
+
"""
|
|
855
858
|
|
|
856
859
|
|
|
857
860
|
class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
@@ -865,7 +868,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
|
|
|
865
868
|
"""
|
|
866
869
|
|
|
867
870
|
value: Required[str]
|
|
868
|
-
"""Timeout value in seconds.
|
|
871
|
+
"""Timeout value in seconds.
|
|
872
|
+
|
|
873
|
+
Supported range: **1s - 30s**.
|
|
874
|
+
"""
|
|
869
875
|
|
|
870
876
|
|
|
871
877
|
class OptionsQueryParamsBlacklist(TypedDict, total=False):
|
|
@@ -1004,7 +1010,7 @@ class OptionsReferrerACL(TypedDict, total=False):
|
|
|
1004
1010
|
Examples:
|
|
1005
1011
|
|
|
1006
1012
|
- `example.com`
|
|
1007
|
-
-
|
|
1013
|
+
- `*.example.com`
|
|
1008
1014
|
"""
|
|
1009
1015
|
|
|
1010
1016
|
policy_type: Required[Literal["allow", "deny"]]
|
|
@@ -1090,7 +1096,7 @@ class OptionsRewrite(TypedDict, total=False):
|
|
|
1090
1096
|
|
|
1091
1097
|
Example:
|
|
1092
1098
|
|
|
1093
|
-
- `/(
|
|
1099
|
+
- `/(.*) /media/$1`
|
|
1094
1100
|
"""
|
|
1095
1101
|
|
|
1096
1102
|
enabled: Required[bool]
|
|
@@ -1279,7 +1285,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
|
|
|
1279
1285
|
- **false** - Option is disabled.
|
|
1280
1286
|
"""
|
|
1281
1287
|
|
|
1282
|
-
value: Required[
|
|
1288
|
+
value: Required[object]
|
|
1283
1289
|
"""A MAP for static headers in a format of `header_name: header_value`.
|
|
1284
1290
|
|
|
1285
1291
|
Restrictions:
|
|
@@ -1545,7 +1551,7 @@ class Options(TypedDict, total=False):
|
|
|
1545
1551
|
2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
|
|
1546
1552
|
you enable it in CDN resource and want to use `gzipON` and
|
|
1547
1553
|
`brotli_compression` in a rule, you have to specify
|
|
1548
|
-
`"
|
|
1554
|
+
`"fetch_compressed": false` in the rule.
|
|
1549
1555
|
"""
|
|
1550
1556
|
|
|
1551
1557
|
follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
|
|
@@ -1579,8 +1585,7 @@ class Options(TypedDict, total=False):
|
|
|
1579
1585
|
options enabled.
|
|
1580
1586
|
2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
|
|
1581
1587
|
rules. If you enable `fetch_compressed` in CDN resource and want to enable
|
|
1582
|
-
`gzipON` in rules, you need to specify `"
|
|
1583
|
-
rules.
|
|
1588
|
+
`gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
|
|
1584
1589
|
"""
|
|
1585
1590
|
|
|
1586
1591
|
host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
|
|
@@ -28,7 +28,7 @@ class ResourceUsageStats(BaseModel):
|
|
|
28
28
|
Possible values:
|
|
29
29
|
|
|
30
30
|
- **`upstream_bytes`** – Traffic in bytes from an origin server to CDN servers
|
|
31
|
-
or to origin shielding
|
|
31
|
+
or to origin shielding when used.
|
|
32
32
|
- **`sent_bytes`** – Traffic in bytes from CDN servers to clients.
|
|
33
33
|
- **`shield_bytes`** – Traffic in bytes from origin shielding to CDN servers.
|
|
34
34
|
- **`backblaze_bytes`** - Traffic in bytes from Backblaze origin.
|
|
@@ -45,39 +45,40 @@ class ResourceUsageStats(BaseModel):
|
|
|
45
45
|
- **`response_types`** – Statistics by content type. It returns a number of
|
|
46
46
|
responses for content with different MIME types.
|
|
47
47
|
- **`cache_hit_traffic_ratio`** – Formula: 1 - `upstream_bytes` / `sent_bytes`.
|
|
48
|
-
We deduct the non-cached traffic from the total traffic
|
|
49
|
-
- **`cache_hit_requests_ratio`** –
|
|
50
|
-
|
|
51
|
-
- **`shield_traffic_ratio`** –
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
We deduct the non-cached traffic from the total traffic amount.
|
|
49
|
+
- **`cache_hit_requests_ratio`** – Formula: `responses_hit` / requests. The
|
|
50
|
+
share of sending cached content.
|
|
51
|
+
- **`shield_traffic_ratio`** – Formula: (`shield_bytes` - `upstream_bytes`) /
|
|
52
|
+
`shield_bytes`. The efficiency of the Origin Shielding: how much more traffic
|
|
53
|
+
is sent from the Origin Shielding than from the origin.
|
|
54
54
|
- **`image_processed`** - Number of images transformed on the Image optimization
|
|
55
55
|
service.
|
|
56
56
|
- **`request_time`** - Time elapsed between the first bytes of a request were
|
|
57
57
|
processed and logging after the last bytes were sent to a user.
|
|
58
58
|
- **`upstream_response_time`** - Number of milliseconds it took to receive a
|
|
59
59
|
response from an origin. If upstream `response_time_` contains several
|
|
60
|
-
indications for one request (
|
|
61
|
-
them.
|
|
60
|
+
indications for one request (in case of more than 1 origin), we summarize
|
|
61
|
+
them. In case of aggregating several queries, the average of this amount is
|
|
62
|
+
calculated.
|
|
62
63
|
|
|
63
64
|
Metrics **`upstream_response_time`** and **`request_time`** should be requested
|
|
64
65
|
separately from other metrics
|
|
65
66
|
"""
|
|
66
67
|
|
|
67
68
|
region: Optional[object] = None
|
|
68
|
-
"""
|
|
69
|
+
"""Regions for which data is displayed.
|
|
69
70
|
|
|
70
71
|
Possible values:
|
|
71
72
|
|
|
73
|
+
- **na** – North America
|
|
74
|
+
- **eu** – Europe
|
|
75
|
+
- **cis** – Commonwealth of Independent States
|
|
72
76
|
- **asia** – Asia
|
|
73
77
|
- **au** – Australia
|
|
74
|
-
- **cis** – CIS (Commonwealth of Independent States)
|
|
75
|
-
- **eu** – Europe
|
|
76
78
|
- **latam** – Latin America
|
|
77
79
|
- **me** – Middle East
|
|
78
|
-
- **
|
|
79
|
-
- **
|
|
80
|
-
- **sa** – South America
|
|
80
|
+
- **africa** - Africa
|
|
81
|
+
- **sa** - South America
|
|
81
82
|
"""
|
|
82
83
|
|
|
83
84
|
resource: Optional[object] = None
|