gcore 0.13.0__py3-none-any.whl → 0.14.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +3 -1
- gcore/_base_client.py +9 -9
- gcore/_client.py +25 -10
- gcore/_models.py +10 -4
- gcore/_qs.py +7 -7
- gcore/_types.py +18 -11
- gcore/_utils/_transform.py +2 -2
- gcore/_utils/_utils.py +4 -4
- gcore/_version.py +1 -1
- gcore/pagination.py +137 -0
- gcore/resources/__init__.py +14 -0
- gcore/resources/cdn/__init__.py +201 -0
- gcore/resources/cdn/audit_log.py +406 -0
- gcore/resources/cdn/cdn.py +957 -0
- gcore/resources/cdn/certificates.py +1062 -0
- gcore/resources/cdn/ip_ranges.py +224 -0
- gcore/resources/cdn/logs/__init__.py +33 -0
- gcore/resources/cdn/logs/logs.py +1424 -0
- gcore/resources/cdn/logs/settings.py +1081 -0
- gcore/resources/cdn/logs_uploader/__init__.py +61 -0
- gcore/resources/cdn/logs_uploader/configs.py +868 -0
- gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
- gcore/resources/cdn/logs_uploader/policies.py +1060 -0
- gcore/resources/cdn/logs_uploader/targets.py +811 -0
- gcore/resources/cdn/metrics.py +419 -0
- gcore/resources/cdn/network_capacity.py +139 -0
- gcore/resources/cdn/origin_groups.py +1496 -0
- gcore/resources/cdn/resources/__init__.py +47 -0
- gcore/resources/cdn/resources/resources.py +2060 -0
- gcore/resources/cdn/resources/rules.py +1027 -0
- gcore/resources/cdn/resources/shield.py +259 -0
- gcore/resources/cdn/rule_templates.py +883 -0
- gcore/resources/cdn/shields.py +139 -0
- gcore/resources/cdn/statistics.py +1408 -0
- gcore/resources/cdn/trusted_ca_certificates.py +592 -0
- gcore/resources/cloud/audit_logs.py +33 -29
- gcore/resources/cloud/baremetal/flavors.py +21 -17
- gcore/resources/cloud/baremetal/images.py +19 -15
- gcore/resources/cloud/baremetal/servers.py +141 -119
- gcore/resources/cloud/billing_reservations.py +41 -33
- gcore/resources/cloud/cloud.py +24 -0
- gcore/resources/cloud/cost_reports.py +149 -119
- gcore/resources/cloud/file_shares/access_rules.py +25 -13
- gcore/resources/cloud/file_shares/file_shares.py +107 -71
- gcore/resources/cloud/floating_ips.py +101 -59
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
- gcore/resources/cloud/inference/api_keys.py +51 -31
- gcore/resources/cloud/inference/applications/deployments.py +49 -31
- gcore/resources/cloud/inference/applications/templates.py +17 -9
- gcore/resources/cloud/inference/deployments/deployments.py +171 -139
- gcore/resources/cloud/inference/deployments/logs.py +17 -13
- gcore/resources/cloud/inference/flavors.py +21 -13
- gcore/resources/cloud/inference/inference.py +9 -5
- gcore/resources/cloud/inference/registry_credentials.py +45 -25
- gcore/resources/cloud/inference/secrets.py +45 -25
- gcore/resources/cloud/instances/flavors.py +17 -13
- gcore/resources/cloud/instances/images.py +153 -129
- gcore/resources/cloud/instances/instances.py +287 -213
- gcore/resources/cloud/instances/interfaces.py +165 -161
- gcore/resources/cloud/instances/metrics.py +9 -5
- gcore/resources/cloud/ip_ranges.py +25 -15
- gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
- gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
- gcore/resources/cloud/k8s/flavors.py +13 -9
- gcore/resources/cloud/k8s/k8s.py +9 -5
- gcore/resources/cloud/load_balancers/flavors.py +11 -7
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
- gcore/resources/cloud/load_balancers/listeners.py +125 -105
- gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
- gcore/resources/cloud/load_balancers/metrics.py +9 -5
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
- gcore/resources/cloud/load_balancers/pools/members.py +31 -23
- gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
- gcore/resources/cloud/load_balancers/statuses.py +17 -9
- gcore/resources/cloud/networks/networks.py +79 -55
- gcore/resources/cloud/networks/routers.py +75 -47
- gcore/resources/cloud/networks/subnets.py +105 -81
- gcore/resources/cloud/placement_groups.py +33 -17
- gcore/resources/cloud/projects.py +53 -41
- gcore/resources/cloud/quotas/quotas.py +25 -13
- gcore/resources/cloud/quotas/requests.py +41 -25
- gcore/resources/cloud/regions.py +25 -23
- gcore/resources/cloud/registries/artifacts.py +17 -9
- gcore/resources/cloud/registries/registries.py +55 -29
- gcore/resources/cloud/registries/repositories.py +17 -9
- gcore/resources/cloud/registries/tags.py +9 -5
- gcore/resources/cloud/registries/users.py +65 -35
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +123 -107
- gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
- gcore/resources/cloud/secrets.py +43 -27
- gcore/resources/cloud/security_groups/rules.py +55 -43
- gcore/resources/cloud/security_groups/security_groups.py +79 -47
- gcore/resources/cloud/ssh_keys.py +51 -31
- gcore/resources/cloud/tasks.py +57 -45
- gcore/resources/cloud/usage_reports.py +27 -23
- gcore/resources/cloud/users/role_assignments.py +49 -33
- gcore/resources/cloud/volumes.py +237 -201
- gcore/resources/dns/dns.py +17 -13
- gcore/resources/dns/locations.py +29 -17
- gcore/resources/dns/metrics.py +13 -9
- gcore/resources/dns/pickers/pickers.py +5 -5
- gcore/resources/dns/pickers/presets.py +9 -5
- gcore/resources/dns/zones/dnssec.py +19 -11
- gcore/resources/dns/zones/rrsets.py +149 -91
- gcore/resources/dns/zones/zones.py +245 -187
- gcore/resources/fastedge/apps/apps.py +105 -89
- gcore/resources/fastedge/apps/logs.py +25 -21
- gcore/resources/fastedge/binaries.py +33 -17
- gcore/resources/fastedge/fastedge.py +5 -5
- gcore/resources/fastedge/kv_stores.py +43 -31
- gcore/resources/fastedge/secrets.py +69 -45
- gcore/resources/fastedge/statistics.py +25 -17
- gcore/resources/fastedge/templates.py +59 -39
- gcore/resources/iam/api_tokens.py +43 -27
- gcore/resources/iam/iam.py +5 -5
- gcore/resources/iam/users.py +97 -65
- gcore/resources/security/bgp_announces.py +27 -19
- gcore/resources/security/events.py +23 -19
- gcore/resources/security/profile_templates.py +9 -5
- gcore/resources/security/profiles.py +69 -45
- gcore/resources/storage/buckets/buckets.py +37 -25
- gcore/resources/storage/buckets/cors.py +19 -11
- gcore/resources/storage/buckets/lifecycle.py +19 -11
- gcore/resources/storage/buckets/policy.py +25 -13
- gcore/resources/storage/credentials.py +19 -15
- gcore/resources/storage/locations.py +13 -9
- gcore/resources/storage/statistics.py +39 -31
- gcore/resources/storage/storage.py +105 -69
- gcore/resources/streaming/ai_tasks.py +307 -197
- gcore/resources/streaming/broadcasts.py +63 -35
- gcore/resources/streaming/directories.py +65 -39
- gcore/resources/streaming/players.py +47 -31
- gcore/resources/streaming/playlists.py +189 -123
- gcore/resources/streaming/quality_sets.py +69 -39
- gcore/resources/streaming/restreams.py +47 -27
- gcore/resources/streaming/statistics.py +613 -407
- gcore/resources/streaming/streams/overlays.py +107 -67
- gcore/resources/streaming/streams/streams.py +403 -263
- gcore/resources/streaming/videos/subtitles.py +131 -75
- gcore/resources/streaming/videos/videos.py +429 -279
- gcore/resources/waap/advanced_rules.py +9 -5
- gcore/resources/waap/custom_page_sets.py +99 -75
- gcore/resources/waap/domains/advanced_rules.py +157 -99
- gcore/resources/waap/domains/api_discovery.py +71 -47
- gcore/resources/waap/domains/api_path_groups.py +9 -5
- gcore/resources/waap/domains/api_paths.py +79 -83
- gcore/resources/waap/domains/custom_rules.py +89 -59
- gcore/resources/waap/domains/domains.py +59 -41
- gcore/resources/waap/domains/firewall_rules.py +83 -55
- gcore/resources/waap/domains/insight_silences.py +59 -39
- gcore/resources/waap/domains/insights.py +39 -27
- gcore/resources/waap/domains/settings.py +21 -13
- gcore/resources/waap/domains/statistics.py +99 -75
- gcore/resources/waap/insights.py +23 -21
- gcore/resources/waap/ip_info/ip_info.py +65 -33
- gcore/resources/waap/ip_info/metrics.py +11 -7
- gcore/resources/waap/organizations.py +17 -13
- gcore/resources/waap/statistics.py +9 -5
- gcore/resources/waap/tags.py +17 -17
- gcore/resources/waap/waap.py +5 -5
- gcore/types/cdn/__init__.py +80 -0
- gcore/types/cdn/audit_log_list_params.py +73 -0
- gcore/types/cdn/ca_certificate.py +53 -0
- gcore/types/cdn/ca_certificate_list.py +10 -0
- gcore/types/cdn/cdn_account.py +86 -0
- gcore/types/cdn/cdn_account_limits.py +27 -0
- gcore/types/cdn/cdn_audit_log_entry.py +66 -0
- gcore/types/cdn/cdn_available_features.py +46 -0
- gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
- gcore/types/cdn/cdn_log_entry.py +70 -0
- gcore/types/cdn/cdn_metrics.py +22 -0
- gcore/types/cdn/cdn_metrics_groups.py +13 -0
- gcore/types/cdn/cdn_metrics_values.py +19 -0
- gcore/types/cdn/cdn_resource.py +1977 -0
- gcore/types/cdn/cdn_resource_list.py +10 -0
- gcore/types/cdn/cdn_update_account_params.py +15 -0
- gcore/types/cdn/certificate_create_params.py +51 -0
- gcore/types/cdn/certificate_get_status_params.py +14 -0
- gcore/types/cdn/certificate_list_params.py +29 -0
- gcore/types/cdn/certificate_replace_params.py +39 -0
- gcore/types/cdn/log_download_params.py +279 -0
- gcore/types/cdn/log_list_params.py +273 -0
- gcore/types/cdn/logs/__init__.py +7 -0
- gcore/types/cdn/logs/log_settings.py +172 -0
- gcore/types/cdn/logs/setting_create_params.py +200 -0
- gcore/types/cdn/logs/setting_update_params.py +200 -0
- gcore/types/cdn/logs_aggregated_stats.py +23 -0
- gcore/types/cdn/logs_uploader/__init__.py +23 -0
- gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
- gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
- gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
- gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
- gcore/types/cdn/logs_uploader_validation.py +23 -0
- gcore/types/cdn/metric_list_params.py +168 -0
- gcore/types/cdn/network_capacity.py +22 -0
- gcore/types/cdn/origin_group_create_params.py +184 -0
- gcore/types/cdn/origin_group_list_params.py +24 -0
- gcore/types/cdn/origin_group_replace_params.py +190 -0
- gcore/types/cdn/origin_group_update_params.py +190 -0
- gcore/types/cdn/origin_groups.py +212 -0
- gcore/types/cdn/origin_groups_list.py +10 -0
- gcore/types/cdn/public_ip_list.py +15 -0
- gcore/types/cdn/public_network_list.py +15 -0
- gcore/types/cdn/purge_status.py +55 -0
- gcore/types/cdn/resource_aggregated_stats.py +80 -0
- gcore/types/cdn/resource_create_params.py +1825 -0
- gcore/types/cdn/resource_list_params.py +107 -0
- gcore/types/cdn/resource_prefetch_params.py +17 -0
- gcore/types/cdn/resource_purge_params.py +71 -0
- gcore/types/cdn/resource_replace_params.py +1803 -0
- gcore/types/cdn/resource_update_params.py +1794 -0
- gcore/types/cdn/resource_usage_stats.py +111 -0
- gcore/types/cdn/resources/__init__.py +11 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +1695 -0
- gcore/types/cdn/resources/origin_shielding.py +15 -0
- gcore/types/cdn/resources/rule_create_params.py +1652 -0
- gcore/types/cdn/resources/rule_list_response.py +10 -0
- gcore/types/cdn/resources/rule_replace_params.py +1654 -0
- gcore/types/cdn/resources/rule_update_params.py +1654 -0
- gcore/types/cdn/resources/shield_replace_params.py +16 -0
- gcore/types/cdn/rule_template.py +1666 -0
- gcore/types/cdn/rule_template_create_params.py +1636 -0
- gcore/types/cdn/rule_template_list.py +10 -0
- gcore/types/cdn/rule_template_replace_params.py +1636 -0
- gcore/types/cdn/rule_template_update_params.py +1636 -0
- gcore/types/cdn/shield_aggregated_stats.py +23 -0
- gcore/types/cdn/shield_list_response.py +25 -0
- gcore/types/cdn/ssl_detail.py +62 -0
- gcore/types/cdn/ssl_detail_list.py +10 -0
- gcore/types/cdn/ssl_request_status.py +135 -0
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
- gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
- gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
- gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
- gcore/types/cdn/usage_series_stats.py +31 -0
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/file_share.py +4 -0
- gcore/types/cloud/file_share_create_params.py +20 -0
- gcore/types/cloud/file_share_update_params.py +40 -3
- gcore/types/cloud/floating_ip_update_params.py +3 -1
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
- gcore/types/cloud/inference/inference_deployment.py +3 -1
- gcore/types/cloud/instance_create_params.py +3 -1
- gcore/types/cloud/k8s/cluster_create_params.py +46 -4
- gcore/types/cloud/k8s/cluster_update_params.py +60 -6
- gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
- gcore/types/cloud/k8s/k8s_cluster.py +40 -3
- gcore/types/cloud/load_balancer_update_params.py +3 -1
- gcore/types/cloud/network_update_params.py +3 -1
- gcore/types/cloud/networks/subnet_update_params.py +3 -1
- gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
- gcore/types/cloud/registries/user_create_params.py +5 -3
- gcore/types/cloud/registry_create_params.py +5 -3
- gcore/types/cloud/security_group_update_params.py +3 -1
- gcore/types/cloud/ssh_key_created.py +6 -3
- gcore/types/cloud/volume_update_params.py +3 -1
- gcore/types/dns/zone_get_statistics_params.py +12 -9
- gcore/types/dns/zone_get_statistics_response.py +3 -1
- gcore/types/dns/zone_import_params.py +21 -15
- gcore/types/dns/zones/dns_output_rrset.py +7 -3
- gcore/types/iam/account_overview.py +7 -2
- gcore/types/iam/user.py +7 -2
- gcore/types/iam/user_detailed.py +7 -2
- gcore/types/iam/user_invite_params.py +4 -1
- gcore/types/iam/user_update.py +7 -2
- gcore/types/iam/user_update_params.py +7 -2
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
- gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
- gcore/types/streaming/ai_task.py +20 -11
- gcore/types/streaming/ai_task_create_params.py +20 -11
- gcore/types/streaming/ai_task_get_response.py +5 -4
- gcore/types/streaming/ai_task_list_params.py +11 -5
- gcore/types/streaming/clip.py +33 -22
- gcore/types/streaming/create_video_param.py +75 -43
- gcore/types/streaming/playlist.py +7 -5
- gcore/types/streaming/playlist_create_params.py +7 -5
- gcore/types/streaming/playlist_update_params.py +7 -5
- gcore/types/streaming/playlist_video.py +75 -43
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
- gcore/types/streaming/stream.py +207 -136
- gcore/types/streaming/stream_create_clip_params.py +33 -22
- gcore/types/streaming/stream_create_params.py +41 -24
- gcore/types/streaming/stream_update_params.py +41 -24
- gcore/types/streaming/video.py +138 -76
- gcore/types/streaming/video_list_params.py +4 -2
- gcore/types/streaming/video_update_params.py +75 -43
- gcore/types/waap/domain_update_params.py +2 -2
- gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
- gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
- gcore/types/waap/domains/api_path_create_params.py +0 -3
- gcore/types/waap/domains/api_path_update_params.py +1 -3
- gcore/types/waap/domains/custom_rule_create_params.py +36 -35
- gcore/types/waap/domains/custom_rule_update_params.py +31 -33
- gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
- gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
- gcore/types/waap/domains/waap_advanced_rule.py +17 -9
- gcore/types/waap/domains/waap_custom_rule.py +5 -2
- gcore/types/waap/domains/waap_firewall_rule.py +1 -1
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/insight_list_types_params.py +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/METADATA +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/RECORD +334 -214
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/WHEEL +0 -0
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -26,9 +26,12 @@ class SSHKeyCreated(BaseModel):
|
|
|
26
26
|
"""The private part of an SSH key is the confidential portion of the key pair.
|
|
27
27
|
|
|
28
28
|
It should never be shared or exposed. This key is used to prove your identity
|
|
29
|
-
when connecting to a server.
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
when connecting to a server.
|
|
30
|
+
|
|
31
|
+
If you omit the `public_key`, the platform will generate a key for you. The
|
|
32
|
+
`private_key` will be returned **once** in the API response. Be sure to save it
|
|
33
|
+
securely, as it cannot be retrieved again later.
|
|
34
|
+
|
|
32
35
|
Best practice: Save the private key to a secure location on your machine (e.g.,
|
|
33
36
|
`~/.ssh/id_ed25519`) and set the file permissions to be readable only by you.
|
|
34
37
|
"""
|
|
@@ -25,7 +25,9 @@ class VolumeUpdateParams(TypedDict, total=False):
|
|
|
25
25
|
|
|
26
26
|
Provide key-value pairs to add or update tags. Set tag values to `null` to
|
|
27
27
|
remove tags. Unspecified tags remain unchanged. Read-only tags are always
|
|
28
|
-
preserved and cannot be modified.
|
|
28
|
+
preserved and cannot be modified.
|
|
29
|
+
|
|
30
|
+
**Examples:**
|
|
29
31
|
|
|
30
32
|
- **Add/update tags:**
|
|
31
33
|
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
@@ -11,20 +11,23 @@ __all__ = ["ZoneGetStatisticsParams"]
|
|
|
11
11
|
|
|
12
12
|
class ZoneGetStatisticsParams(TypedDict, total=False):
|
|
13
13
|
from_: Annotated[int, PropertyInfo(alias="from")]
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
&from=1709068637
|
|
14
|
+
"""Beginning of the requested time period (Unix Timestamp, UTC.)
|
|
15
|
+
|
|
16
|
+
In a query string: &from=1709068637
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
granularity: str
|
|
20
20
|
"""
|
|
21
21
|
Granularity parameter string is a sequence of decimal numbers, each with
|
|
22
|
-
optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m".
|
|
23
|
-
|
|
22
|
+
optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m".
|
|
23
|
+
|
|
24
|
+
Valid time units are "s", "m", "h".
|
|
24
25
|
"""
|
|
25
26
|
|
|
26
27
|
record_type: str
|
|
27
|
-
"""DNS record type.
|
|
28
|
+
"""DNS record type.
|
|
29
|
+
|
|
30
|
+
Possible values:
|
|
28
31
|
|
|
29
32
|
- A
|
|
30
33
|
- AAAA
|
|
@@ -37,7 +40,7 @@ class ZoneGetStatisticsParams(TypedDict, total=False):
|
|
|
37
40
|
"""
|
|
38
41
|
|
|
39
42
|
to: int
|
|
40
|
-
"""
|
|
41
|
-
|
|
42
|
-
&to=1709673437
|
|
43
|
+
"""End of the requested time period (Unix Timestamp, UTC.)
|
|
44
|
+
|
|
45
|
+
In a query string: &to=1709673437
|
|
43
46
|
"""
|
|
@@ -11,7 +11,9 @@ class ZoneGetStatisticsResponse(BaseModel):
|
|
|
11
11
|
requests: Optional[object] = None
|
|
12
12
|
"""
|
|
13
13
|
Requests amount (values) for particular zone fractionated by time intervals
|
|
14
|
-
(keys).
|
|
14
|
+
(keys).
|
|
15
|
+
|
|
16
|
+
Example of response:
|
|
15
17
|
`{ "requests": { "1598608080000": 14716, "1598608140000": 51167, "1598608200000": 53432, "1598611020000": 51050, "1598611080000": 52611, "1598611140000": 46884 } }`
|
|
16
18
|
"""
|
|
17
19
|
|
|
@@ -14,19 +14,25 @@ class ZoneImportParams(TypedDict, total=False):
|
|
|
14
14
|
It returns the number of bytes read (0 <= n <= len(p)) and any error
|
|
15
15
|
encountered. Even if Read returns n < len(p), it may use all of p as scratch
|
|
16
16
|
space during the call. If some data is available but not len(p) bytes, Read
|
|
17
|
-
conventionally returns what is available instead of waiting for more.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
conventionally returns what is available instead of waiting for more.
|
|
18
|
+
|
|
19
|
+
When Read encounters an error or end-of-file condition after successfully
|
|
20
|
+
reading n > 0 bytes, it returns the number of bytes read. It may return the
|
|
21
|
+
(non-nil) error from the same call or return the error (and n == 0) from a
|
|
22
|
+
subsequent call. An instance of this general case is that a Reader returning a
|
|
23
|
+
non-zero number of bytes at the end of the input stream may return either err ==
|
|
24
|
+
EOF or err == nil. The next Read should return 0, EOF.
|
|
25
|
+
|
|
26
|
+
Callers should always process the n > 0 bytes returned before considering the
|
|
27
|
+
error err. Doing so correctly handles I/O errors that happen after reading some
|
|
28
|
+
bytes and also both of the allowed EOF behaviors.
|
|
29
|
+
|
|
30
|
+
If len(p) == 0, Read should always return n == 0. It may return a non-nil error
|
|
31
|
+
if some error condition is known, such as EOF.
|
|
32
|
+
|
|
33
|
+
Implementations of Read are discouraged from returning a zero byte count with a
|
|
34
|
+
nil error, except when len(p) == 0. Callers should treat a return of 0 and nil
|
|
35
|
+
as indicating that nothing happened; in particular it does not indicate EOF.
|
|
36
|
+
|
|
37
|
+
Implementations must not retain p.
|
|
32
38
|
"""
|
|
@@ -42,9 +42,13 @@ class ResourceRecord(BaseModel):
|
|
|
42
42
|
6. `backup` (bool)
|
|
43
43
|
7. `notes` (string)
|
|
44
44
|
8. `weight` (float)
|
|
45
|
-
9. `ip` (string)
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
9. `ip` (string)
|
|
46
|
+
|
|
47
|
+
Some keys are reserved for balancing, @see
|
|
48
|
+
https://api.gcore.com/dns/v2/info/meta
|
|
49
|
+
|
|
50
|
+
This meta will be used to decide which resource record should pass through
|
|
51
|
+
filters from the filter set
|
|
48
52
|
"""
|
|
49
53
|
|
|
50
54
|
|
|
@@ -372,7 +372,9 @@ class User(BaseModel):
|
|
|
372
372
|
"""User's email address."""
|
|
373
373
|
|
|
374
374
|
groups: Optional[List[UserGroup]] = None
|
|
375
|
-
"""User's group in the current account.
|
|
375
|
+
"""User's group in the current account.
|
|
376
|
+
|
|
377
|
+
IAM supports 5 groups:
|
|
376
378
|
|
|
377
379
|
- Users
|
|
378
380
|
- Administrators
|
|
@@ -382,7 +384,10 @@ class User(BaseModel):
|
|
|
382
384
|
"""
|
|
383
385
|
|
|
384
386
|
lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
|
|
385
|
-
"""User's language.
|
|
387
|
+
"""User's language.
|
|
388
|
+
|
|
389
|
+
Defines language of the control panel and email messages.
|
|
390
|
+
"""
|
|
386
391
|
|
|
387
392
|
name: Optional[str] = None
|
|
388
393
|
"""User's name."""
|
gcore/types/iam/user.py
CHANGED
|
@@ -51,7 +51,9 @@ class User(BaseModel):
|
|
|
51
51
|
"""User's email address."""
|
|
52
52
|
|
|
53
53
|
groups: Optional[List[Group]] = None
|
|
54
|
-
"""User's group in the current account.
|
|
54
|
+
"""User's group in the current account.
|
|
55
|
+
|
|
56
|
+
IAM supports 5 groups:
|
|
55
57
|
|
|
56
58
|
- Users
|
|
57
59
|
- Administrators
|
|
@@ -61,7 +63,10 @@ class User(BaseModel):
|
|
|
61
63
|
"""
|
|
62
64
|
|
|
63
65
|
lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
|
|
64
|
-
"""User's language.
|
|
66
|
+
"""User's language.
|
|
67
|
+
|
|
68
|
+
Defines language of the control panel and email messages.
|
|
69
|
+
"""
|
|
65
70
|
|
|
66
71
|
name: Optional[str] = None
|
|
67
72
|
"""User's name."""
|
gcore/types/iam/user_detailed.py
CHANGED
|
@@ -66,7 +66,9 @@ class UserDetailed(BaseModel):
|
|
|
66
66
|
"""User's email address."""
|
|
67
67
|
|
|
68
68
|
groups: Optional[List[Group]] = None
|
|
69
|
-
"""User's group in the current account.
|
|
69
|
+
"""User's group in the current account.
|
|
70
|
+
|
|
71
|
+
IAM supports 5 groups:
|
|
70
72
|
|
|
71
73
|
- Users
|
|
72
74
|
- Administrators
|
|
@@ -79,7 +81,10 @@ class UserDetailed(BaseModel):
|
|
|
79
81
|
"""User activity flag."""
|
|
80
82
|
|
|
81
83
|
lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
|
|
82
|
-
"""User's language.
|
|
84
|
+
"""User's language.
|
|
85
|
+
|
|
86
|
+
Defines language of the control panel and email messages.
|
|
87
|
+
"""
|
|
83
88
|
|
|
84
89
|
name: Optional[str] = None
|
|
85
90
|
"""User's name."""
|
|
@@ -17,7 +17,10 @@ class UserInviteParams(TypedDict, total=False):
|
|
|
17
17
|
user_role: Required[UserRole]
|
|
18
18
|
|
|
19
19
|
lang: Literal["de", "en", "ru", "zh", "az"]
|
|
20
|
-
"""User's language.
|
|
20
|
+
"""User's language.
|
|
21
|
+
|
|
22
|
+
Defines language of the control panel and email messages.
|
|
23
|
+
"""
|
|
21
24
|
|
|
22
25
|
name: str
|
|
23
26
|
"""User name."""
|
gcore/types/iam/user_update.py
CHANGED
|
@@ -66,7 +66,9 @@ class UserUpdate(BaseModel):
|
|
|
66
66
|
"""User's email address."""
|
|
67
67
|
|
|
68
68
|
groups: Optional[List[Group]] = None
|
|
69
|
-
"""User's group in the current account.
|
|
69
|
+
"""User's group in the current account.
|
|
70
|
+
|
|
71
|
+
IAM supports 5 groups:
|
|
70
72
|
|
|
71
73
|
- Users
|
|
72
74
|
- Administrators
|
|
@@ -79,7 +81,10 @@ class UserUpdate(BaseModel):
|
|
|
79
81
|
"""User activity flag."""
|
|
80
82
|
|
|
81
83
|
lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
|
|
82
|
-
"""User's language.
|
|
84
|
+
"""User's language.
|
|
85
|
+
|
|
86
|
+
Defines language of the control panel and email messages.
|
|
87
|
+
"""
|
|
83
88
|
|
|
84
89
|
name: Optional[str] = None
|
|
85
90
|
"""User's name."""
|
|
@@ -19,7 +19,9 @@ class UserUpdateParams(TypedDict, total=False):
|
|
|
19
19
|
"""User's email address."""
|
|
20
20
|
|
|
21
21
|
groups: Iterable[Group]
|
|
22
|
-
"""User's group in the current account.
|
|
22
|
+
"""User's group in the current account.
|
|
23
|
+
|
|
24
|
+
IAM supports 5 groups:
|
|
23
25
|
|
|
24
26
|
- Users
|
|
25
27
|
- Administrators
|
|
@@ -29,7 +31,10 @@ class UserUpdateParams(TypedDict, total=False):
|
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
33
|
lang: Literal["de", "en", "ru", "zh", "az"]
|
|
32
|
-
"""User's language.
|
|
34
|
+
"""User's language.
|
|
35
|
+
|
|
36
|
+
Defines language of the control panel and email messages.
|
|
37
|
+
"""
|
|
33
38
|
|
|
34
39
|
name: Optional[str]
|
|
35
40
|
"""User's name."""
|
|
@@ -25,10 +25,12 @@ class AIContentmoderationHardnudity(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
Meta parameter, designed to store your own extra information about a video
|
|
27
27
|
entity: video source, video id, etc. It is not used in any way in video
|
|
28
|
-
processing.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
processing.
|
|
29
|
+
|
|
30
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
31
|
+
with the AI auto-processing option (nudity detection, etc), then the ID of the
|
|
32
|
+
associated video for which the task was performed will be explicitly indicated
|
|
33
|
+
here.
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
client_user_id: Optional[str] = None
|
|
@@ -25,10 +25,12 @@ class AIContentmoderationNsfw(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
Meta parameter, designed to store your own extra information about a video
|
|
27
27
|
entity: video source, video id, etc. It is not used in any way in video
|
|
28
|
-
processing.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
processing.
|
|
29
|
+
|
|
30
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
31
|
+
with the AI auto-processing option (nudity detection, etc), then the ID of the
|
|
32
|
+
associated video for which the task was performed will be explicitly indicated
|
|
33
|
+
here.
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
client_user_id: Optional[str] = None
|
|
@@ -25,10 +25,12 @@ class AIContentmoderationSoftnudity(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
Meta parameter, designed to store your own extra information about a video
|
|
27
27
|
entity: video source, video id, etc. It is not used in any way in video
|
|
28
|
-
processing.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
processing.
|
|
29
|
+
|
|
30
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
31
|
+
with the AI auto-processing option (nudity detection, etc), then the ID of the
|
|
32
|
+
associated video for which the task was performed will be explicitly indicated
|
|
33
|
+
here.
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
client_user_id: Optional[str] = None
|
|
@@ -25,10 +25,12 @@ class AIContentmoderationSport(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
Meta parameter, designed to store your own extra information about a video
|
|
27
27
|
entity: video source, video id, etc. It is not used in any way in video
|
|
28
|
-
processing.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
processing.
|
|
29
|
+
|
|
30
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
31
|
+
with the AI auto-processing option (nudity detection, etc), then the ID of the
|
|
32
|
+
associated video for which the task was performed will be explicitly indicated
|
|
33
|
+
here.
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
client_user_id: Optional[str] = None
|
gcore/types/streaming/ai_task.py
CHANGED
|
@@ -25,14 +25,20 @@ class TaskDataAITranscribe(BaseModel):
|
|
|
25
25
|
audio_language: Optional[str] = None
|
|
26
26
|
"""Language in original audio (transcription only).
|
|
27
27
|
|
|
28
|
-
This value is used to determine the language from which to transcribe.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
This value is used to determine the language from which to transcribe.
|
|
29
|
+
|
|
30
|
+
If this is not set, the system will run auto language identification and the
|
|
31
|
+
subtitles will be in the detected language. The method also works based on AI
|
|
32
|
+
analysis. It's fairly accurate, but if it's wrong, then set the language
|
|
33
|
+
explicitly.
|
|
34
|
+
|
|
32
35
|
Additionally, when this is not set, we also support recognition of alternate
|
|
33
|
-
languages in the video (language code-switching).
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
languages in the video (language code-switching).
|
|
37
|
+
|
|
38
|
+
Language is set by 3-letter language code according to ISO-639-2 (bibliographic
|
|
39
|
+
code).
|
|
40
|
+
|
|
41
|
+
We can process languages:
|
|
36
42
|
|
|
37
43
|
- 'afr': Afrikaans
|
|
38
44
|
- 'alb': Albanian
|
|
@@ -139,10 +145,12 @@ class TaskDataAITranscribe(BaseModel):
|
|
|
139
145
|
"""
|
|
140
146
|
Meta parameter, designed to store your own extra information about a video
|
|
141
147
|
entity: video source, video id, etc. It is not used in any way in video
|
|
142
|
-
processing.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
processing.
|
|
149
|
+
|
|
150
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
151
|
+
with the AI auto-processing option (transcribing, translationing), then the ID
|
|
152
|
+
of the associated video for which the task was performed will be explicitly
|
|
153
|
+
indicated here.
|
|
146
154
|
"""
|
|
147
155
|
|
|
148
156
|
client_user_id: Optional[str] = None
|
|
@@ -156,6 +164,7 @@ class TaskDataAITranscribe(BaseModel):
|
|
|
156
164
|
"""
|
|
157
165
|
Indicates which language it is clearly necessary to translate into. If this is
|
|
158
166
|
not set, the original language will be used from attribute "`audio_language`".
|
|
167
|
+
|
|
159
168
|
Please note that:
|
|
160
169
|
|
|
161
170
|
- transcription into the original language is a free procedure,
|
|
@@ -20,14 +20,20 @@ class AITaskCreateParams(TypedDict, total=False):
|
|
|
20
20
|
audio_language: str
|
|
21
21
|
"""Language in original audio (transcription only).
|
|
22
22
|
|
|
23
|
-
This value is used to determine the language from which to transcribe.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
This value is used to determine the language from which to transcribe.
|
|
24
|
+
|
|
25
|
+
If this is not set, the system will run auto language identification and the
|
|
26
|
+
subtitles will be in the detected language. The method also works based on AI
|
|
27
|
+
analysis. It's fairly accurate, but if it's wrong, then set the language
|
|
28
|
+
explicitly.
|
|
29
|
+
|
|
27
30
|
Additionally, when this is not set, we also support recognition of alternate
|
|
28
|
-
languages in the video (language code-switching).
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
languages in the video (language code-switching).
|
|
32
|
+
|
|
33
|
+
Language is set by 3-letter language code according to ISO-639-2 (bibliographic
|
|
34
|
+
code).
|
|
35
|
+
|
|
36
|
+
We can process languages:
|
|
31
37
|
|
|
32
38
|
- 'afr': Afrikaans
|
|
33
39
|
- 'alb': Albanian
|
|
@@ -140,10 +146,12 @@ class AITaskCreateParams(TypedDict, total=False):
|
|
|
140
146
|
"""
|
|
141
147
|
Meta parameter, designed to store your own extra information about a video
|
|
142
148
|
entity: video source, video id, etc. It is not used in any way in video
|
|
143
|
-
processing.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
processing.
|
|
150
|
+
|
|
151
|
+
For example, if an AI-task was created automatically when you uploaded a video
|
|
152
|
+
with the AI auto-processing option (nudity detection, etc), then the ID of the
|
|
153
|
+
associated video for which the task was performed will be explicitly indicated
|
|
154
|
+
here.
|
|
147
155
|
"""
|
|
148
156
|
|
|
149
157
|
client_user_id: str
|
|
@@ -157,6 +165,7 @@ class AITaskCreateParams(TypedDict, total=False):
|
|
|
157
165
|
"""
|
|
158
166
|
Indicates which language it is clearly necessary to translate into. If this is
|
|
159
167
|
not set, the original language will be used from attribute "`audio_language`".
|
|
168
|
+
|
|
160
169
|
Please note that:
|
|
161
170
|
|
|
162
171
|
- transcription into the original language is a free procedure,
|
|
@@ -65,10 +65,11 @@ class AITaskGetResponseResultAIResultsTranscribe(BaseModel):
|
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
67
|
speech_detected: Optional[bool] = None
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
"SUCCESS" status and speech was not found in the
|
|
71
|
-
be indicated here and the `subtitles` field will
|
|
68
|
+
"""Determines whether speech was detected or not.
|
|
69
|
+
|
|
70
|
+
Please note: If the task is in "SUCCESS" status and speech was not found in the
|
|
71
|
+
entire file, then "false" will be indicated here and the `subtitles` field will
|
|
72
|
+
be empty.
|
|
72
73
|
"""
|
|
73
74
|
|
|
74
75
|
subtitles: Optional[List[AITaskGetResponseResultAIResultsTranscribeSubtitle]] = None
|
|
@@ -17,8 +17,10 @@ class AITaskListParams(TypedDict, total=False):
|
|
|
17
17
|
ordering: Literal["task_id", "status", "task_name", "started_at"]
|
|
18
18
|
"""
|
|
19
19
|
Which field to use when ordering the results: `task_id`, status, and
|
|
20
|
-
`task_name`. Sorting is done in ascending (ASC) order.
|
|
21
|
-
|
|
20
|
+
`task_name`. Sorting is done in ascending (ASC) order.
|
|
21
|
+
|
|
22
|
+
If parameter is omitted then "`started_at` DESC" is used for ordering by
|
|
23
|
+
default.
|
|
22
24
|
"""
|
|
23
25
|
|
|
24
26
|
page: int
|
|
@@ -27,9 +29,13 @@ class AITaskListParams(TypedDict, total=False):
|
|
|
27
29
|
search: str
|
|
28
30
|
"""
|
|
29
31
|
This is an field for combined text search in the following fields: `task_id`,
|
|
30
|
-
`task_name`, status, and `task_data`.
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
`task_name`, status, and `task_data`.
|
|
33
|
+
|
|
34
|
+
Both full and partial searches are possible inside specified above fields. For
|
|
35
|
+
example, you can filter tasks of a certain category, or tasks by a specific
|
|
36
|
+
original file.
|
|
37
|
+
|
|
38
|
+
Example:
|
|
33
39
|
|
|
34
40
|
- To filter tasks of Content Moderation NSFW method:
|
|
35
41
|
`GET /streaming/ai/tasks?search=nsfw`
|
gcore/types/streaming/clip.py
CHANGED
|
@@ -12,34 +12,43 @@ class Clip(BaseModel):
|
|
|
12
12
|
"""ID of the clip"""
|
|
13
13
|
|
|
14
14
|
duration: int
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
based on the idea of instantly creating a clip,
|
|
18
|
-
final segment may be:
|
|
15
|
+
"""Requested segment duration in seconds to be cut.
|
|
16
|
+
|
|
17
|
+
Please, note that cutting is based on the idea of instantly creating a clip,
|
|
18
|
+
instead of precise timing. So final segment may be:
|
|
19
19
|
|
|
20
20
|
- Less than the specified value if there is less data in the DVR than the
|
|
21
21
|
requested segment.
|
|
22
22
|
- Greater than the specified value, because segment is aligned to the first and
|
|
23
23
|
last key frames of already stored fragment in DVR, this way -1 and +1 chunks
|
|
24
|
-
can be added to left and right.
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
can be added to left and right.
|
|
25
|
+
|
|
26
|
+
Duration of cutted segment cannot be greater than DVR duration for this stream.
|
|
27
|
+
Therefore, to change the maximum, use "`dvr_duration`" parameter of this stream.
|
|
27
28
|
"""
|
|
28
29
|
|
|
29
30
|
created_at: Optional[str] = None
|
|
30
31
|
"""Creation date and time. Format is date time in ISO 8601"""
|
|
31
32
|
|
|
32
33
|
expiration: Optional[int] = None
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
"""Expire time of the clip via a public link.
|
|
35
|
+
|
|
36
|
+
Unix timestamp in seconds, absolute value.
|
|
37
|
+
|
|
38
|
+
This is the time how long the instant clip will be stored in the server memory
|
|
39
|
+
and can be accessed via public HLS/MP4 links. Download and/or use the instant
|
|
40
|
+
clip before this time expires.
|
|
41
|
+
|
|
42
|
+
After the time has expired, the clip is deleted from memory and is no longer
|
|
43
|
+
available via the link. You need to create a new segment, or use
|
|
44
|
+
`vod_required: true` attribute.
|
|
45
|
+
|
|
46
|
+
If value is omitted, then expiration is counted as +3600 seconds (1 hour) to the
|
|
47
|
+
end of the clip (i.e. `unix timestamp = <start> + <duration> + 3600`).
|
|
48
|
+
|
|
49
|
+
Allowed range: 1m <= expiration <= 4h.
|
|
50
|
+
|
|
51
|
+
Example:
|
|
43
52
|
`24.05.2024 14:00:00 (GMT) + 60 seconds of duration + 3600 seconds of expiration = 24.05.2024 15:01:00 (GMT) is Unix timestamp = 1716562860`
|
|
44
53
|
"""
|
|
45
54
|
|
|
@@ -65,11 +74,13 @@ class Clip(BaseModel):
|
|
|
65
74
|
"""List of available rendition heights"""
|
|
66
75
|
|
|
67
76
|
start: Optional[int] = None
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
"""Starting point of the segment to cut.
|
|
78
|
+
|
|
79
|
+
Unix timestamp in seconds, absolute value. Example:
|
|
80
|
+
`24.05.2024 14:00:00 (GMT) is Unix timestamp = 1716559200`
|
|
81
|
+
|
|
82
|
+
If a value from the past is specified, it is used as the starting point for the
|
|
83
|
+
segment to cut. If the value is omitted, then clip will start from now.
|
|
73
84
|
"""
|
|
74
85
|
|
|
75
86
|
video_id: Optional[int] = None
|