gcore 0.12.0__py3-none-any.whl → 0.14.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +3 -1
- gcore/_base_client.py +9 -9
- gcore/_client.py +25 -10
- gcore/_models.py +10 -4
- gcore/_qs.py +7 -7
- gcore/_types.py +18 -11
- gcore/_utils/_transform.py +2 -2
- gcore/_utils/_utils.py +4 -4
- gcore/_version.py +1 -1
- gcore/pagination.py +137 -0
- gcore/resources/__init__.py +14 -0
- gcore/resources/cdn/__init__.py +201 -0
- gcore/resources/cdn/audit_log.py +406 -0
- gcore/resources/cdn/cdn.py +957 -0
- gcore/resources/cdn/certificates.py +1062 -0
- gcore/resources/cdn/ip_ranges.py +224 -0
- gcore/resources/cdn/logs/__init__.py +33 -0
- gcore/resources/cdn/logs/logs.py +1424 -0
- gcore/resources/cdn/logs/settings.py +1081 -0
- gcore/resources/cdn/logs_uploader/__init__.py +61 -0
- gcore/resources/cdn/logs_uploader/configs.py +868 -0
- gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
- gcore/resources/cdn/logs_uploader/policies.py +1060 -0
- gcore/resources/cdn/logs_uploader/targets.py +811 -0
- gcore/resources/cdn/metrics.py +419 -0
- gcore/resources/cdn/network_capacity.py +139 -0
- gcore/resources/cdn/origin_groups.py +1496 -0
- gcore/resources/cdn/resources/__init__.py +47 -0
- gcore/resources/cdn/resources/resources.py +2060 -0
- gcore/resources/cdn/resources/rules.py +1027 -0
- gcore/resources/cdn/resources/shield.py +259 -0
- gcore/resources/cdn/rule_templates.py +883 -0
- gcore/resources/cdn/shields.py +139 -0
- gcore/resources/cdn/statistics.py +1408 -0
- gcore/resources/cdn/trusted_ca_certificates.py +592 -0
- gcore/resources/cloud/audit_logs.py +33 -29
- gcore/resources/cloud/baremetal/flavors.py +21 -17
- gcore/resources/cloud/baremetal/images.py +19 -15
- gcore/resources/cloud/baremetal/servers.py +141 -119
- gcore/resources/cloud/billing_reservations.py +41 -33
- gcore/resources/cloud/cloud.py +24 -0
- gcore/resources/cloud/cost_reports.py +149 -119
- gcore/resources/cloud/file_shares/access_rules.py +25 -13
- gcore/resources/cloud/file_shares/file_shares.py +107 -71
- gcore/resources/cloud/floating_ips.py +270 -52
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
- gcore/resources/cloud/inference/api_keys.py +51 -31
- gcore/resources/cloud/inference/applications/deployments.py +49 -31
- gcore/resources/cloud/inference/applications/templates.py +17 -9
- gcore/resources/cloud/inference/deployments/deployments.py +171 -139
- gcore/resources/cloud/inference/deployments/logs.py +17 -13
- gcore/resources/cloud/inference/flavors.py +21 -13
- gcore/resources/cloud/inference/inference.py +9 -5
- gcore/resources/cloud/inference/registry_credentials.py +45 -25
- gcore/resources/cloud/inference/secrets.py +45 -25
- gcore/resources/cloud/instances/flavors.py +17 -13
- gcore/resources/cloud/instances/images.py +153 -129
- gcore/resources/cloud/instances/instances.py +287 -213
- gcore/resources/cloud/instances/interfaces.py +165 -161
- gcore/resources/cloud/instances/metrics.py +9 -5
- gcore/resources/cloud/ip_ranges.py +25 -15
- gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
- gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
- gcore/resources/cloud/k8s/flavors.py +13 -9
- gcore/resources/cloud/k8s/k8s.py +9 -5
- gcore/resources/cloud/load_balancers/flavors.py +11 -7
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
- gcore/resources/cloud/load_balancers/listeners.py +125 -105
- gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
- gcore/resources/cloud/load_balancers/metrics.py +9 -5
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
- gcore/resources/cloud/load_balancers/pools/members.py +31 -23
- gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
- gcore/resources/cloud/load_balancers/statuses.py +17 -9
- gcore/resources/cloud/networks/networks.py +79 -55
- gcore/resources/cloud/networks/routers.py +75 -47
- gcore/resources/cloud/networks/subnets.py +105 -81
- gcore/resources/cloud/placement_groups.py +33 -17
- gcore/resources/cloud/projects.py +53 -41
- gcore/resources/cloud/quotas/quotas.py +25 -13
- gcore/resources/cloud/quotas/requests.py +41 -25
- gcore/resources/cloud/regions.py +25 -23
- gcore/resources/cloud/registries/artifacts.py +17 -9
- gcore/resources/cloud/registries/registries.py +55 -29
- gcore/resources/cloud/registries/repositories.py +17 -9
- gcore/resources/cloud/registries/tags.py +9 -5
- gcore/resources/cloud/registries/users.py +65 -35
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +123 -107
- gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
- gcore/resources/cloud/secrets.py +43 -27
- gcore/resources/cloud/security_groups/rules.py +55 -43
- gcore/resources/cloud/security_groups/security_groups.py +79 -47
- gcore/resources/cloud/ssh_keys.py +51 -31
- gcore/resources/cloud/tasks.py +57 -45
- gcore/resources/cloud/usage_reports.py +27 -23
- gcore/resources/cloud/users/role_assignments.py +49 -33
- gcore/resources/cloud/volumes.py +237 -201
- gcore/resources/dns/dns.py +17 -13
- gcore/resources/dns/locations.py +29 -17
- gcore/resources/dns/metrics.py +13 -9
- gcore/resources/dns/pickers/pickers.py +5 -5
- gcore/resources/dns/pickers/presets.py +9 -5
- gcore/resources/dns/zones/dnssec.py +19 -11
- gcore/resources/dns/zones/rrsets.py +149 -91
- gcore/resources/dns/zones/zones.py +247 -189
- gcore/resources/fastedge/apps/apps.py +105 -89
- gcore/resources/fastedge/apps/logs.py +25 -21
- gcore/resources/fastedge/binaries.py +33 -17
- gcore/resources/fastedge/fastedge.py +5 -5
- gcore/resources/fastedge/kv_stores.py +43 -31
- gcore/resources/fastedge/secrets.py +69 -45
- gcore/resources/fastedge/statistics.py +25 -17
- gcore/resources/fastedge/templates.py +59 -39
- gcore/resources/iam/api_tokens.py +43 -27
- gcore/resources/iam/iam.py +5 -5
- gcore/resources/iam/users.py +97 -65
- gcore/resources/security/bgp_announces.py +27 -19
- gcore/resources/security/events.py +23 -19
- gcore/resources/security/profile_templates.py +9 -5
- gcore/resources/security/profiles.py +69 -45
- gcore/resources/storage/buckets/buckets.py +37 -25
- gcore/resources/storage/buckets/cors.py +19 -11
- gcore/resources/storage/buckets/lifecycle.py +19 -11
- gcore/resources/storage/buckets/policy.py +25 -13
- gcore/resources/storage/credentials.py +19 -15
- gcore/resources/storage/locations.py +13 -9
- gcore/resources/storage/statistics.py +39 -31
- gcore/resources/storage/storage.py +105 -69
- gcore/resources/streaming/ai_tasks.py +307 -197
- gcore/resources/streaming/broadcasts.py +63 -35
- gcore/resources/streaming/directories.py +65 -39
- gcore/resources/streaming/players.py +47 -31
- gcore/resources/streaming/playlists.py +189 -123
- gcore/resources/streaming/quality_sets.py +69 -39
- gcore/resources/streaming/restreams.py +47 -27
- gcore/resources/streaming/statistics.py +613 -407
- gcore/resources/streaming/streams/overlays.py +107 -67
- gcore/resources/streaming/streams/streams.py +403 -263
- gcore/resources/streaming/videos/subtitles.py +131 -75
- gcore/resources/streaming/videos/videos.py +429 -279
- gcore/resources/waap/advanced_rules.py +9 -5
- gcore/resources/waap/custom_page_sets.py +99 -75
- gcore/resources/waap/domains/advanced_rules.py +157 -99
- gcore/resources/waap/domains/api_discovery.py +71 -47
- gcore/resources/waap/domains/api_path_groups.py +9 -5
- gcore/resources/waap/domains/api_paths.py +79 -83
- gcore/resources/waap/domains/custom_rules.py +89 -59
- gcore/resources/waap/domains/domains.py +59 -41
- gcore/resources/waap/domains/firewall_rules.py +83 -55
- gcore/resources/waap/domains/insight_silences.py +59 -39
- gcore/resources/waap/domains/insights.py +39 -27
- gcore/resources/waap/domains/settings.py +21 -13
- gcore/resources/waap/domains/statistics.py +99 -75
- gcore/resources/waap/insights.py +23 -21
- gcore/resources/waap/ip_info/ip_info.py +70 -38
- gcore/resources/waap/ip_info/metrics.py +11 -7
- gcore/resources/waap/organizations.py +17 -13
- gcore/resources/waap/statistics.py +9 -5
- gcore/resources/waap/tags.py +17 -17
- gcore/resources/waap/waap.py +5 -5
- gcore/types/cdn/__init__.py +80 -0
- gcore/types/cdn/audit_log_list_params.py +73 -0
- gcore/types/cdn/ca_certificate.py +53 -0
- gcore/types/cdn/ca_certificate_list.py +10 -0
- gcore/types/cdn/cdn_account.py +86 -0
- gcore/types/cdn/cdn_account_limits.py +27 -0
- gcore/types/cdn/cdn_audit_log_entry.py +66 -0
- gcore/types/cdn/cdn_available_features.py +46 -0
- gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
- gcore/types/cdn/cdn_log_entry.py +70 -0
- gcore/types/cdn/cdn_metrics.py +22 -0
- gcore/types/cdn/cdn_metrics_groups.py +13 -0
- gcore/types/cdn/cdn_metrics_values.py +19 -0
- gcore/types/cdn/cdn_resource.py +1977 -0
- gcore/types/cdn/cdn_resource_list.py +10 -0
- gcore/types/cdn/cdn_update_account_params.py +15 -0
- gcore/types/cdn/certificate_create_params.py +51 -0
- gcore/types/cdn/certificate_get_status_params.py +14 -0
- gcore/types/cdn/certificate_list_params.py +29 -0
- gcore/types/cdn/certificate_replace_params.py +39 -0
- gcore/types/cdn/log_download_params.py +279 -0
- gcore/types/cdn/log_list_params.py +273 -0
- gcore/types/cdn/logs/__init__.py +7 -0
- gcore/types/cdn/logs/log_settings.py +172 -0
- gcore/types/cdn/logs/setting_create_params.py +200 -0
- gcore/types/cdn/logs/setting_update_params.py +200 -0
- gcore/types/cdn/logs_aggregated_stats.py +23 -0
- gcore/types/cdn/logs_uploader/__init__.py +23 -0
- gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
- gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
- gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
- gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
- gcore/types/cdn/logs_uploader_validation.py +23 -0
- gcore/types/cdn/metric_list_params.py +168 -0
- gcore/types/cdn/network_capacity.py +22 -0
- gcore/types/cdn/origin_group_create_params.py +184 -0
- gcore/types/cdn/origin_group_list_params.py +24 -0
- gcore/types/cdn/origin_group_replace_params.py +190 -0
- gcore/types/cdn/origin_group_update_params.py +190 -0
- gcore/types/cdn/origin_groups.py +212 -0
- gcore/types/cdn/origin_groups_list.py +10 -0
- gcore/types/cdn/public_ip_list.py +15 -0
- gcore/types/cdn/public_network_list.py +15 -0
- gcore/types/cdn/purge_status.py +55 -0
- gcore/types/cdn/resource_aggregated_stats.py +80 -0
- gcore/types/cdn/resource_create_params.py +1825 -0
- gcore/types/cdn/resource_list_params.py +107 -0
- gcore/types/cdn/resource_prefetch_params.py +17 -0
- gcore/types/cdn/resource_purge_params.py +71 -0
- gcore/types/cdn/resource_replace_params.py +1803 -0
- gcore/types/cdn/resource_update_params.py +1794 -0
- gcore/types/cdn/resource_usage_stats.py +111 -0
- gcore/types/cdn/resources/__init__.py +11 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +1695 -0
- gcore/types/cdn/resources/origin_shielding.py +15 -0
- gcore/types/cdn/resources/rule_create_params.py +1652 -0
- gcore/types/cdn/resources/rule_list_response.py +10 -0
- gcore/types/cdn/resources/rule_replace_params.py +1654 -0
- gcore/types/cdn/resources/rule_update_params.py +1654 -0
- gcore/types/cdn/resources/shield_replace_params.py +16 -0
- gcore/types/cdn/rule_template.py +1666 -0
- gcore/types/cdn/rule_template_create_params.py +1636 -0
- gcore/types/cdn/rule_template_list.py +10 -0
- gcore/types/cdn/rule_template_replace_params.py +1636 -0
- gcore/types/cdn/rule_template_update_params.py +1636 -0
- gcore/types/cdn/shield_aggregated_stats.py +23 -0
- gcore/types/cdn/shield_list_response.py +25 -0
- gcore/types/cdn/ssl_detail.py +62 -0
- gcore/types/cdn/ssl_detail_list.py +10 -0
- gcore/types/cdn/ssl_request_status.py +135 -0
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
- gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
- gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
- gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
- gcore/types/cdn/usage_series_stats.py +31 -0
- gcore/types/cloud/__init__.py +2 -0
- gcore/types/cloud/file_share.py +4 -0
- gcore/types/cloud/file_share_create_params.py +20 -0
- gcore/types/cloud/file_share_update_params.py +40 -3
- gcore/types/cloud/floating_ip.py +1 -1
- gcore/types/cloud/floating_ip_detailed.py +1 -1
- gcore/types/cloud/floating_ip_update_params.py +43 -0
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
- gcore/types/cloud/inference/inference_deployment.py +3 -1
- gcore/types/cloud/instance_create_params.py +3 -1
- gcore/types/cloud/k8s/cluster_create_params.py +46 -4
- gcore/types/cloud/k8s/cluster_update_params.py +60 -6
- gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
- gcore/types/cloud/k8s/k8s_cluster.py +40 -3
- gcore/types/cloud/load_balancer_update_params.py +3 -1
- gcore/types/cloud/network_update_params.py +3 -1
- gcore/types/cloud/networks/subnet_update_params.py +3 -1
- gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
- gcore/types/cloud/registries/user_create_params.py +5 -3
- gcore/types/cloud/registry_create_params.py +5 -3
- gcore/types/cloud/security_group_update_params.py +3 -1
- gcore/types/cloud/ssh_key_created.py +6 -3
- gcore/types/cloud/volume_update_params.py +3 -1
- gcore/types/dns/zone_get_statistics_params.py +12 -9
- gcore/types/dns/zone_get_statistics_response.py +3 -1
- gcore/types/dns/zone_import_params.py +21 -15
- gcore/types/dns/zones/dns_output_rrset.py +7 -3
- gcore/types/iam/account_overview.py +7 -2
- gcore/types/iam/user.py +7 -2
- gcore/types/iam/user_detailed.py +7 -2
- gcore/types/iam/user_invite_params.py +4 -1
- gcore/types/iam/user_update.py +7 -2
- gcore/types/iam/user_update_params.py +7 -2
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
- gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
- gcore/types/streaming/ai_task.py +20 -11
- gcore/types/streaming/ai_task_create_params.py +20 -11
- gcore/types/streaming/ai_task_get_response.py +5 -4
- gcore/types/streaming/ai_task_list_params.py +11 -5
- gcore/types/streaming/clip.py +33 -22
- gcore/types/streaming/create_video_param.py +75 -43
- gcore/types/streaming/playlist.py +7 -5
- gcore/types/streaming/playlist_create_params.py +7 -5
- gcore/types/streaming/playlist_update_params.py +7 -5
- gcore/types/streaming/playlist_video.py +75 -43
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
- gcore/types/streaming/stream.py +207 -136
- gcore/types/streaming/stream_create_clip_params.py +33 -22
- gcore/types/streaming/stream_create_params.py +41 -24
- gcore/types/streaming/stream_update_params.py +41 -24
- gcore/types/streaming/video.py +138 -76
- gcore/types/streaming/video_list_params.py +4 -2
- gcore/types/streaming/video_update_params.py +75 -43
- gcore/types/waap/__init__.py +2 -1
- gcore/types/waap/domain_update_params.py +2 -2
- gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
- gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
- gcore/types/waap/domains/api_path_create_params.py +0 -3
- gcore/types/waap/domains/api_path_update_params.py +1 -3
- gcore/types/waap/domains/custom_rule_create_params.py +36 -35
- gcore/types/waap/domains/custom_rule_update_params.py +31 -33
- gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
- gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
- gcore/types/waap/domains/waap_advanced_rule.py +17 -9
- gcore/types/waap/domains/waap_custom_rule.py +5 -2
- gcore/types/waap/domains/waap_firewall_rule.py +1 -1
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/insight_list_types_params.py +1 -1
- gcore/types/waap/ip_info_get_top_urls_response.py +3 -12
- gcore/types/waap/{ip_info_get_ip_info_response.py → waap_ip_info.py} +2 -2
- gcore/types/waap/waap_top_url.py +13 -0
- {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/METADATA +1 -1
- {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/RECORD +340 -218
- {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/WHEEL +0 -0
- {gcore-0.12.0.dist-info → gcore-0.14.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,273 @@
|
|
|
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 Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["LogListParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LogListParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""
|
|
15
|
+
Start date and time of the requested time period (ISO 8601/RFC 3339 format,
|
|
16
|
+
UTC.)
|
|
17
|
+
|
|
18
|
+
Difference between "from" and "to" cannot exceed 6 hours.
|
|
19
|
+
|
|
20
|
+
Examples:
|
|
21
|
+
|
|
22
|
+
- &from=2021-06-14T00:00:00Z
|
|
23
|
+
- &from=2021-06-14T00:00:00.000Z
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
to: Required[str]
|
|
27
|
+
"""End date and time of the requested time period (ISO 8601/RFC 3339 format, UTC.)
|
|
28
|
+
|
|
29
|
+
Difference between "from" and "to" cannot exceed 6 hours.
|
|
30
|
+
|
|
31
|
+
Examples:
|
|
32
|
+
|
|
33
|
+
- &to=2021-06-15T00:00:00Z
|
|
34
|
+
- &to=2021-06-15T00:00:00.000Z
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
cache_status_eq: Annotated[str, PropertyInfo(alias="cache_status__eq")]
|
|
38
|
+
"""Caching status.
|
|
39
|
+
|
|
40
|
+
Possible values: 'MISS', 'BYPASS', 'EXPIRED', 'STALE', 'PENDING', 'UPDATING',
|
|
41
|
+
'REVALIDATED', 'HIT', '-'.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
cache_status_in: Annotated[str, PropertyInfo(alias="cache_status__in")]
|
|
45
|
+
"""List of caching statuses.
|
|
46
|
+
|
|
47
|
+
Possible values: 'MISS', 'BYPASS', 'EXPIRED', 'STALE', 'PENDING', 'UPDATING',
|
|
48
|
+
'REVALIDATED', 'HIT', '-'. Values should be separated by a comma.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
cache_status_ne: Annotated[str, PropertyInfo(alias="cache_status__ne")]
|
|
52
|
+
"""Caching status not equal to the specified value.
|
|
53
|
+
|
|
54
|
+
Possible values: 'MISS', 'BYPASS', 'EXPIRED', 'STALE', 'PENDING', 'UPDATING',
|
|
55
|
+
'REVALIDATED', 'HIT', '-'.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
cache_status_not_in: Annotated[str, PropertyInfo(alias="cache_status__not_in")]
|
|
59
|
+
"""List of caching statuses not equal to the specified values.
|
|
60
|
+
|
|
61
|
+
Possible values: 'MISS', 'BYPASS', 'EXPIRED', 'STALE', 'PENDING', 'UPDATING',
|
|
62
|
+
'REVALIDATED', 'HIT', '-'. Values should be separated by a comma.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
client_ip_eq: Annotated[str, PropertyInfo(alias="client_ip__eq")]
|
|
66
|
+
"""IP address of the client who sent the request."""
|
|
67
|
+
|
|
68
|
+
client_ip_in: Annotated[str, PropertyInfo(alias="client_ip__in")]
|
|
69
|
+
"""List of IP addresses of the clients who sent the request."""
|
|
70
|
+
|
|
71
|
+
client_ip_ne: Annotated[str, PropertyInfo(alias="client_ip__ne")]
|
|
72
|
+
"""IP address of the client who did not send the request."""
|
|
73
|
+
|
|
74
|
+
client_ip_not_in: Annotated[str, PropertyInfo(alias="client_ip__not_in")]
|
|
75
|
+
"""List of IP addresses of the clients who did not send the request."""
|
|
76
|
+
|
|
77
|
+
cname_contains: Annotated[str, PropertyInfo(alias="cname__contains")]
|
|
78
|
+
"""Part of the custom domain of the requested CDN resource.
|
|
79
|
+
|
|
80
|
+
Minimum length is 3 characters.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
cname_eq: Annotated[str, PropertyInfo(alias="cname__eq")]
|
|
84
|
+
"""Custom domain of the requested CDN resource."""
|
|
85
|
+
|
|
86
|
+
cname_in: Annotated[str, PropertyInfo(alias="cname__in")]
|
|
87
|
+
"""List of custom domains of the requested CDN resource.
|
|
88
|
+
|
|
89
|
+
Values should be separated by a comma.
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
cname_ne: Annotated[str, PropertyInfo(alias="cname__ne")]
|
|
93
|
+
"""Custom domain of the requested CDN resource not equal to the specified value."""
|
|
94
|
+
|
|
95
|
+
cname_not_in: Annotated[str, PropertyInfo(alias="cname__not_in")]
|
|
96
|
+
"""
|
|
97
|
+
List of custom domains of the requested CDN resource not equal to the specified
|
|
98
|
+
values. Values should be separated by a comma.
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
datacenter_eq: Annotated[str, PropertyInfo(alias="datacenter__eq")]
|
|
102
|
+
"""Data center where request was processed."""
|
|
103
|
+
|
|
104
|
+
datacenter_in: Annotated[str, PropertyInfo(alias="datacenter__in")]
|
|
105
|
+
"""List of data centers where request was processed.
|
|
106
|
+
|
|
107
|
+
Values should be separated by a comma.
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
datacenter_ne: Annotated[str, PropertyInfo(alias="datacenter__ne")]
|
|
111
|
+
"""Data center where request was not processed."""
|
|
112
|
+
|
|
113
|
+
datacenter_not_in: Annotated[str, PropertyInfo(alias="datacenter__not_in")]
|
|
114
|
+
"""List of data centers where request was not processed.
|
|
115
|
+
|
|
116
|
+
Values should be separated by a comma.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
fields: str
|
|
120
|
+
"""A comma-separated list of returned fields.
|
|
121
|
+
|
|
122
|
+
Supported fields are presented in the responses section.
|
|
123
|
+
|
|
124
|
+
Example:
|
|
125
|
+
|
|
126
|
+
- &fields=timestamp,path,status
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
limit: int
|
|
130
|
+
"""Maximum number of log records in the response."""
|
|
131
|
+
|
|
132
|
+
method_eq: Annotated[str, PropertyInfo(alias="method__eq")]
|
|
133
|
+
"""Request HTTP method.
|
|
134
|
+
|
|
135
|
+
Possible values: 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST',
|
|
136
|
+
'PUT', 'TRACE'.
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
method_in: Annotated[str, PropertyInfo(alias="method__in")]
|
|
140
|
+
"""Request HTTP method.
|
|
141
|
+
|
|
142
|
+
Possible values: 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST',
|
|
143
|
+
'PUT', 'TRACE'. Values should be separated by a comma.
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
method_ne: Annotated[str, PropertyInfo(alias="method__ne")]
|
|
147
|
+
"""Request HTTP method.
|
|
148
|
+
|
|
149
|
+
Possible values: 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST',
|
|
150
|
+
'PUT', 'TRACE'.
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
method_not_in: Annotated[str, PropertyInfo(alias="method__not_in")]
|
|
154
|
+
"""Request HTTP method.
|
|
155
|
+
|
|
156
|
+
Possible values: 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST',
|
|
157
|
+
'PUT', 'TRACE'. Values should be separated by a comma.
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
offset: int
|
|
161
|
+
"""
|
|
162
|
+
Number of log records to skip starting from the beginning of the requested
|
|
163
|
+
period.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
ordering: str
|
|
167
|
+
"""Sorting rules.
|
|
168
|
+
|
|
169
|
+
Possible values:
|
|
170
|
+
|
|
171
|
+
- **method** - Request HTTP method.
|
|
172
|
+
- **`client_ip`** - IP address of the client who sent the request.
|
|
173
|
+
- **status** - Status code in the response.
|
|
174
|
+
- **size** - Response size in bytes.
|
|
175
|
+
- **cname** - Custom domain of the requested resource.
|
|
176
|
+
- **`resource_id`** - ID of the requested CDN resource.
|
|
177
|
+
- **`cache_status`** - Caching status.
|
|
178
|
+
- **datacenter** - Data center where request was processed.
|
|
179
|
+
- **timestamp** - Date and time when the request was made.
|
|
180
|
+
|
|
181
|
+
Parameter may have multiple values separated by a comma.
|
|
182
|
+
|
|
183
|
+
By default, ascending sorting is applied. To sort in descending order, add '-'
|
|
184
|
+
prefix.
|
|
185
|
+
|
|
186
|
+
Example:
|
|
187
|
+
|
|
188
|
+
- &ordering=-timestamp,status
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
resource_id_eq: Annotated[int, PropertyInfo(alias="resource_id__eq")]
|
|
192
|
+
"""ID of the requested CDN resource equal to the specified value."""
|
|
193
|
+
|
|
194
|
+
resource_id_gt: Annotated[int, PropertyInfo(alias="resource_id__gt")]
|
|
195
|
+
"""ID of the requested CDN resource greater than the specified value."""
|
|
196
|
+
|
|
197
|
+
resource_id_gte: Annotated[int, PropertyInfo(alias="resource_id__gte")]
|
|
198
|
+
"""ID of the requested CDN resource greater than or equal to the specified value."""
|
|
199
|
+
|
|
200
|
+
resource_id_in: Annotated[str, PropertyInfo(alias="resource_id__in")]
|
|
201
|
+
"""List of IDs of the requested CDN resource.
|
|
202
|
+
|
|
203
|
+
Values should be separated by a comma.
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
resource_id_lt: Annotated[int, PropertyInfo(alias="resource_id__lt")]
|
|
207
|
+
"""ID of the requested CDN resource less than the specified value."""
|
|
208
|
+
|
|
209
|
+
resource_id_lte: Annotated[int, PropertyInfo(alias="resource_id__lte")]
|
|
210
|
+
"""ID of the requested CDN resource less than or equal to the specified value."""
|
|
211
|
+
|
|
212
|
+
resource_id_ne: Annotated[int, PropertyInfo(alias="resource_id__ne")]
|
|
213
|
+
"""ID of the requested CDN resource not equal to the specified value."""
|
|
214
|
+
|
|
215
|
+
resource_id_not_in: Annotated[str, PropertyInfo(alias="resource_id__not_in")]
|
|
216
|
+
"""List of IDs of the requested CDN resource not equal to the specified values.
|
|
217
|
+
|
|
218
|
+
Values should be separated by a comma.
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
size_eq: Annotated[int, PropertyInfo(alias="size__eq")]
|
|
222
|
+
"""Response size in bytes equal to the specified value."""
|
|
223
|
+
|
|
224
|
+
size_gt: Annotated[int, PropertyInfo(alias="size__gt")]
|
|
225
|
+
"""Response size in bytes greater than the specified value."""
|
|
226
|
+
|
|
227
|
+
size_gte: Annotated[int, PropertyInfo(alias="size__gte")]
|
|
228
|
+
"""Response size in bytes greater than or equal to the specified value."""
|
|
229
|
+
|
|
230
|
+
size_in: Annotated[str, PropertyInfo(alias="size__in")]
|
|
231
|
+
"""List of response sizes in bytes. Values should be separated by a comma."""
|
|
232
|
+
|
|
233
|
+
size_lt: Annotated[int, PropertyInfo(alias="size__lt")]
|
|
234
|
+
"""Response size in bytes less than the specified value."""
|
|
235
|
+
|
|
236
|
+
size_lte: Annotated[int, PropertyInfo(alias="size__lte")]
|
|
237
|
+
"""Response size in bytes less than or equal to the specified value."""
|
|
238
|
+
|
|
239
|
+
size_ne: Annotated[int, PropertyInfo(alias="size__ne")]
|
|
240
|
+
"""Response size in bytes not equal to the specified value."""
|
|
241
|
+
|
|
242
|
+
size_not_in: Annotated[str, PropertyInfo(alias="size__not_in")]
|
|
243
|
+
"""List of response sizes in bytes not equal to the specified values.
|
|
244
|
+
|
|
245
|
+
Values should be separated by
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
status_eq: Annotated[int, PropertyInfo(alias="status__eq")]
|
|
249
|
+
"""Status code in the response equal to the specified value."""
|
|
250
|
+
|
|
251
|
+
status_gt: Annotated[int, PropertyInfo(alias="status__gt")]
|
|
252
|
+
"""Status code in the response greater than the specified value."""
|
|
253
|
+
|
|
254
|
+
status_gte: Annotated[int, PropertyInfo(alias="status__gte")]
|
|
255
|
+
"""Status code in the response greater than or equal to the specified value."""
|
|
256
|
+
|
|
257
|
+
status_in: Annotated[str, PropertyInfo(alias="status__in")]
|
|
258
|
+
"""List of status codes in the response. Values should be separated by a comma."""
|
|
259
|
+
|
|
260
|
+
status_lt: Annotated[int, PropertyInfo(alias="status__lt")]
|
|
261
|
+
"""Status code in the response less than the specified value."""
|
|
262
|
+
|
|
263
|
+
status_lte: Annotated[int, PropertyInfo(alias="status__lte")]
|
|
264
|
+
"""Status code in the response less than or equal to the specified value."""
|
|
265
|
+
|
|
266
|
+
status_ne: Annotated[int, PropertyInfo(alias="status__ne")]
|
|
267
|
+
"""Status code in the response not equal to the specified value."""
|
|
268
|
+
|
|
269
|
+
status_not_in: Annotated[str, PropertyInfo(alias="status__not_in")]
|
|
270
|
+
"""List of status codes not in the response.
|
|
271
|
+
|
|
272
|
+
Values should be separated by a comma.
|
|
273
|
+
"""
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .log_settings import LogSettings as LogSettings
|
|
6
|
+
from .setting_create_params import SettingCreateParams as SettingCreateParams
|
|
7
|
+
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["LogSettings", "Folder"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Folder(BaseModel):
|
|
11
|
+
id: Optional[int] = None
|
|
12
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
13
|
+
|
|
14
|
+
- **s3** - S3 bucket ID.
|
|
15
|
+
- **ftp/sftp** - FTP/SFTP folder ID.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
bucket: Optional[str] = None
|
|
19
|
+
"""S3 bucket name.
|
|
20
|
+
|
|
21
|
+
The field is required if "`storage_type`": **s3**.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
cdn_resource: Optional[int] = None
|
|
25
|
+
"""CDN resource ID."""
|
|
26
|
+
|
|
27
|
+
folder: Optional[str] = None
|
|
28
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
29
|
+
|
|
30
|
+
- **s3** - S3 bucket sub-folder name (optional.)
|
|
31
|
+
- **ftp/sftp** - FTP/SFTP folder name (required.)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class LogSettings(BaseModel):
|
|
36
|
+
all_resources_bucket: Optional[str] = None
|
|
37
|
+
"""Name of the S3 bucket to which logs of all CDN resources are delivered.
|
|
38
|
+
|
|
39
|
+
Applicable for "`storage_type`": S3.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
all_resources_folder: Optional[str] = None
|
|
43
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
44
|
+
|
|
45
|
+
- **s3** - Name of the S3 bucket sub-folder to which logs for all CDN resources
|
|
46
|
+
are delivered.
|
|
47
|
+
- **ftp/sftp** - Name of the folder (or path) to which logs for all CDN
|
|
48
|
+
resources are delivered.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
archive_size_mb: Optional[int] = None
|
|
52
|
+
"""
|
|
53
|
+
The size of a single piece of the archive in MB. In case of **null** value logs
|
|
54
|
+
are delivered without slicing.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
client: Optional[int] = None
|
|
58
|
+
"""Client ID."""
|
|
59
|
+
|
|
60
|
+
comment: Optional[str] = None
|
|
61
|
+
"""System comment on the status of settings, if they are suspended."""
|
|
62
|
+
|
|
63
|
+
enabled: Optional[bool] = None
|
|
64
|
+
"""Enables or disables a log forwarding feature.
|
|
65
|
+
|
|
66
|
+
Possible values:
|
|
67
|
+
|
|
68
|
+
- **true** - log forwarding feature is active.
|
|
69
|
+
- **false** - log forwarding feature is deactivated.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
folders: Optional[List[Folder]] = None
|
|
73
|
+
"""List of folders/buckets for receiving CDN resources logs."""
|
|
74
|
+
|
|
75
|
+
for_all_resources: Optional[bool] = None
|
|
76
|
+
"""
|
|
77
|
+
Defines whether logs of all CDN resources are delivered to one folder/bucket or
|
|
78
|
+
to separate ones.
|
|
79
|
+
|
|
80
|
+
Possible values:
|
|
81
|
+
|
|
82
|
+
- **true** - Logs of all CDN resources are delivered to one folder/bucket.
|
|
83
|
+
- **false** - Logs of CDN resources are delivered to separate folders/buckets.
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
ftp_hostname: Optional[str] = None
|
|
87
|
+
"""FTP storage hostname."""
|
|
88
|
+
|
|
89
|
+
ftp_login: Optional[str] = None
|
|
90
|
+
"""FTP storage login."""
|
|
91
|
+
|
|
92
|
+
ftp_prepend_folder: Optional[str] = None
|
|
93
|
+
"""Name of prepend FTP folder for log delivery."""
|
|
94
|
+
|
|
95
|
+
ignore_empty_logs: Optional[bool] = None
|
|
96
|
+
"""Enables or disables the forwarding of empty logs.
|
|
97
|
+
|
|
98
|
+
Possible values:
|
|
99
|
+
|
|
100
|
+
- **true** - Empty logs are not sent.
|
|
101
|
+
- **false** - Empty logs are sent.
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
s3_access_key_id: Optional[str] = None
|
|
105
|
+
"""Access key ID for the S3 account.
|
|
106
|
+
|
|
107
|
+
Access Key ID is 20 alpha-numeric characters like 022QF06E7MXBSH9DHM02
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
s3_aws_region: Optional[str] = None
|
|
111
|
+
"""Amazon AWS region."""
|
|
112
|
+
|
|
113
|
+
s3_bucket_location: Optional[str] = None
|
|
114
|
+
"""S3 storage location.
|
|
115
|
+
|
|
116
|
+
Restrictions:
|
|
117
|
+
|
|
118
|
+
- Maximum 255 symbols.
|
|
119
|
+
- Latin letters (A-Z, a-z,) digits (0-9,) dots, colons, dashes, and underscores
|
|
120
|
+
(.:\\__-).
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
s3_host_bucket: Optional[str] = None
|
|
124
|
+
"""S3 storage bucket hostname.
|
|
125
|
+
|
|
126
|
+
Restrictions:
|
|
127
|
+
|
|
128
|
+
- Maximum 255 symbols.
|
|
129
|
+
- Latin letters (A-Z, a-z,) digits (0-9,) dots, colons, dashes, and underscores.
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
s3_hostname: Optional[str] = None
|
|
133
|
+
"""S3 storage hostname."""
|
|
134
|
+
|
|
135
|
+
s3_type: Optional[str] = None
|
|
136
|
+
"""Storage type compatible with S3.
|
|
137
|
+
|
|
138
|
+
Possible values:
|
|
139
|
+
|
|
140
|
+
- **amazon** – AWS S3 storage.
|
|
141
|
+
- **other** – Other (not AWS) S3 compatible storage.
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
sftp_hostname: Optional[str] = None
|
|
145
|
+
"""SFTP storage hostname."""
|
|
146
|
+
|
|
147
|
+
sftp_login: Optional[str] = None
|
|
148
|
+
"""SFTP storage login."""
|
|
149
|
+
|
|
150
|
+
sftp_prepend_folder: Optional[str] = None
|
|
151
|
+
"""Name of prepend SFTP folder for log delivery."""
|
|
152
|
+
|
|
153
|
+
status: Optional[str] = None
|
|
154
|
+
"""Log delivery status.
|
|
155
|
+
|
|
156
|
+
Possible values:
|
|
157
|
+
|
|
158
|
+
- **ok** – All/part of attempts to deliver logs were successful.
|
|
159
|
+
- **failed** – All attempts to deliver logs failed.
|
|
160
|
+
- **pending** - No logs delivery attempts yet.
|
|
161
|
+
- **disabled** - Log delivery is disabled.
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
storage_type: Optional[str] = None
|
|
165
|
+
"""Storage type.
|
|
166
|
+
|
|
167
|
+
Possible values:
|
|
168
|
+
|
|
169
|
+
- **ftp**
|
|
170
|
+
- **sftp**
|
|
171
|
+
- **s3**
|
|
172
|
+
"""
|
|
@@ -0,0 +1,200 @@
|
|
|
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 Iterable, Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["SettingCreateParams", "Folder"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SettingCreateParams(TypedDict, total=False):
|
|
12
|
+
all_resources_bucket: Required[str]
|
|
13
|
+
"""Name of the S3 bucket to which logs for all CDN resources are delivered."""
|
|
14
|
+
|
|
15
|
+
all_resources_folder: Required[str]
|
|
16
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
17
|
+
|
|
18
|
+
- If "`storage_type`": s3 - Name of the S3 bucket sub-folder to which logs for
|
|
19
|
+
all CDN resources are delivered.
|
|
20
|
+
- If "`storage_type`": ftp/sftp - Name of the folder (or path) to which logs for
|
|
21
|
+
all CDN resources are delivered.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
folders: Required[Iterable[Folder]]
|
|
25
|
+
"""List of folders/buckets for receiving CDN resources logs."""
|
|
26
|
+
|
|
27
|
+
for_all_resources: Required[bool]
|
|
28
|
+
"""
|
|
29
|
+
Defines whether logs of all CDN resources are delivered to one folder/bucket or
|
|
30
|
+
to separate ones.
|
|
31
|
+
|
|
32
|
+
Possible values:
|
|
33
|
+
|
|
34
|
+
- **true** - Logs of all CDN resources are delivered to one folder/bucket.
|
|
35
|
+
- **false** - Logs of different CDN resources are delivered to separate
|
|
36
|
+
folders/buckets.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
ftp_hostname: Required[str]
|
|
40
|
+
"""FTP storage hostname."""
|
|
41
|
+
|
|
42
|
+
ftp_login: Required[str]
|
|
43
|
+
"""FTP storage login."""
|
|
44
|
+
|
|
45
|
+
ftp_password: Required[str]
|
|
46
|
+
"""FTP storage password."""
|
|
47
|
+
|
|
48
|
+
s3_access_key_id: Required[str]
|
|
49
|
+
"""Access key ID for the S3 account.
|
|
50
|
+
|
|
51
|
+
Access Key ID is 20 alpha-numeric characters like 022QF06E7MXBSH9DHM02
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
s3_hostname: Required[str]
|
|
55
|
+
"""S3 storage hostname.
|
|
56
|
+
|
|
57
|
+
It is required if "`s3_type`": other.
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
s3_secret_key: Required[str]
|
|
61
|
+
"""Secret access key for the S3 account.
|
|
62
|
+
|
|
63
|
+
Secret Access Key is 20-50 alpha-numeric-slash-plus characters like
|
|
64
|
+
kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
s3_type: Required[str]
|
|
68
|
+
"""Storage type compatible with S3.
|
|
69
|
+
|
|
70
|
+
Possible values:
|
|
71
|
+
|
|
72
|
+
- **amazon** – AWS S3 storage.
|
|
73
|
+
- **other** – Other (not AWS) S3 compatible storage.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
sftp_hostname: Required[str]
|
|
77
|
+
"""SFTP storage hostname."""
|
|
78
|
+
|
|
79
|
+
sftp_login: Required[str]
|
|
80
|
+
"""SFTP storage login."""
|
|
81
|
+
|
|
82
|
+
sftp_password: Required[str]
|
|
83
|
+
"""SFTP storage password.
|
|
84
|
+
|
|
85
|
+
It should be empty if "`sftp_private_key`" is set.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
storage_type: Required[str]
|
|
89
|
+
"""Storage type.
|
|
90
|
+
|
|
91
|
+
Possible values:
|
|
92
|
+
|
|
93
|
+
- **ftp**
|
|
94
|
+
- **sftp**
|
|
95
|
+
- **s3**
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
archive_size_mb: Optional[int]
|
|
99
|
+
"""
|
|
100
|
+
The size of a single piece of the archive in MB. In case of **null** value logs
|
|
101
|
+
are delivered without slicing.
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
enabled: bool
|
|
105
|
+
"""Enables or disables a log forwarding feature.
|
|
106
|
+
|
|
107
|
+
Possible values:
|
|
108
|
+
|
|
109
|
+
- **true** - log forwarding feature is active.
|
|
110
|
+
- **false** - log forwarding feature is deactivated.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
ftp_prepend_folder: str
|
|
114
|
+
"""Name of the FTP prepend folder for log delivery.
|
|
115
|
+
|
|
116
|
+
**Null** is allowed.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
ignore_empty_logs: bool
|
|
120
|
+
"""Enables or disables the forwarding of empty logs.
|
|
121
|
+
|
|
122
|
+
Possible values:
|
|
123
|
+
|
|
124
|
+
- **true** - Empty logs are not sent.
|
|
125
|
+
- **false** - Empty logs are sent.
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
s3_aws_region: int
|
|
129
|
+
"""Amazon AWS region."""
|
|
130
|
+
|
|
131
|
+
s3_bucket_location: str
|
|
132
|
+
"""Location of S3 storage.
|
|
133
|
+
|
|
134
|
+
Restrictions:
|
|
135
|
+
|
|
136
|
+
- Maximum of 255 symbols.
|
|
137
|
+
- Latin letters (A-Z, a-z), digits (0-9), dots, colons, dashes, and underscores
|
|
138
|
+
(.:\\__-).
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
s3_host_bucket: str
|
|
142
|
+
"""S3 bucket hostname.
|
|
143
|
+
|
|
144
|
+
Restrictions:
|
|
145
|
+
|
|
146
|
+
- Maximum of 255 symbols.
|
|
147
|
+
- Latin letters (A-Z, a-z,) digits (0-9,) dots, colons, dashes, and underscores.
|
|
148
|
+
- Required if "`s3_type`": other.
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
sftp_key_passphrase: str
|
|
152
|
+
"""Passphrase for SFTP private key.
|
|
153
|
+
|
|
154
|
+
Restrictions:
|
|
155
|
+
|
|
156
|
+
- Should be set if private key encoded with passphrase.
|
|
157
|
+
- Should be empty if "`sftp_password`" is set.
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
sftp_prepend_folder: str
|
|
161
|
+
"""Name of the SFTP prepend folder for log delivery.
|
|
162
|
+
|
|
163
|
+
**Null** is allowed.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
sftp_private_key: str
|
|
167
|
+
"""Private key for SFTP authorization.
|
|
168
|
+
|
|
169
|
+
Possible values:
|
|
170
|
+
|
|
171
|
+
- **RSA**
|
|
172
|
+
- **ED25519**
|
|
173
|
+
|
|
174
|
+
It should be empty if "`sftp_password`" is set.
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class Folder(TypedDict, total=False):
|
|
179
|
+
id: int
|
|
180
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
181
|
+
|
|
182
|
+
- **s3** - S3 bucket ID.
|
|
183
|
+
- **ftp/sftp** - FTP/SFTP folder ID.
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
bucket: str
|
|
187
|
+
"""S3 bucket name.
|
|
188
|
+
|
|
189
|
+
The field is required if "`storage_type`": **s3**.
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
cdn_resource: int
|
|
193
|
+
"""CDN resource ID."""
|
|
194
|
+
|
|
195
|
+
folder: str
|
|
196
|
+
"""Parameter meaning depends on the value of the "`storage_type`" value:
|
|
197
|
+
|
|
198
|
+
- **s3** - S3 bucket sub-folder name (optional.)
|
|
199
|
+
- **ftp/sftp** - FTP/SFTP folder name (required.)
|
|
200
|
+
"""
|