gcore 0.9.0__py3-none-any.whl → 0.11.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/_base_client.py +3 -3
- gcore/_client.py +18 -0
- gcore/_compat.py +48 -48
- gcore/_models.py +41 -41
- gcore/_types.py +35 -1
- gcore/_utils/__init__.py +9 -2
- gcore/_utils/_compat.py +45 -0
- gcore/_utils/_datetime_parse.py +136 -0
- gcore/_utils/_transform.py +11 -1
- gcore/_utils/_typing.py +6 -1
- gcore/_utils/_utils.py +0 -1
- gcore/_version.py +1 -1
- gcore/resources/__init__.py +28 -0
- gcore/resources/cloud/__init__.py +14 -0
- gcore/resources/cloud/audit_logs.py +3 -3
- gcore/resources/cloud/baremetal/images.py +3 -4
- gcore/resources/cloud/baremetal/servers.py +16 -4
- gcore/resources/cloud/cloud.py +32 -0
- gcore/resources/cloud/cost_reports.py +24 -16
- gcore/resources/cloud/file_shares/access_rules.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +30 -14
- gcore/resources/cloud/floating_ips.py +196 -4
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +1 -1
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +166 -190
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +268 -12
- gcore/resources/cloud/inference/__init__.py +14 -14
- gcore/resources/cloud/inference/applications/__init__.py +47 -0
- gcore/resources/cloud/inference/applications/applications.py +134 -0
- gcore/resources/cloud/inference/applications/deployments.py +649 -0
- gcore/resources/cloud/inference/applications/templates.py +238 -0
- gcore/resources/cloud/inference/deployments/deployments.py +41 -22
- gcore/resources/cloud/inference/inference.py +32 -32
- gcore/resources/cloud/inference/registry_credentials.py +8 -9
- gcore/resources/cloud/instances/images.py +4 -4
- gcore/resources/cloud/instances/instances.py +254 -4
- gcore/resources/cloud/instances/interfaces.py +544 -0
- gcore/resources/cloud/k8s/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/clusters.py +1391 -0
- gcore/resources/cloud/k8s/clusters/nodes.py +291 -0
- gcore/resources/cloud/k8s/clusters/pools/__init__.py +33 -0
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +303 -0
- gcore/resources/cloud/k8s/clusters/pools/pools.py +870 -0
- gcore/resources/cloud/k8s/flavors.py +209 -0
- gcore/resources/cloud/k8s/k8s.py +233 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +11 -12
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +9 -10
- gcore/resources/cloud/load_balancers/listeners.py +18 -18
- gcore/resources/cloud/load_balancers/load_balancers.py +4 -4
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +26 -10
- gcore/resources/cloud/load_balancers/pools/members.py +34 -4
- gcore/resources/cloud/load_balancers/pools/pools.py +32 -8
- gcore/resources/cloud/networks/networks.py +192 -4
- gcore/resources/cloud/networks/subnets.py +140 -8
- gcore/resources/cloud/reserved_fixed_ips/vip.py +5 -7
- gcore/resources/cloud/security_groups/security_groups.py +6 -6
- gcore/resources/cloud/tasks.py +46 -46
- gcore/resources/cloud/users/role_assignments.py +5 -4
- gcore/resources/cloud/volumes.py +4 -4
- gcore/resources/dns/__init__.py +75 -0
- gcore/resources/dns/dns.py +374 -0
- gcore/resources/dns/locations.py +288 -0
- gcore/resources/dns/metrics.py +214 -0
- gcore/resources/dns/pickers/__init__.py +33 -0
- gcore/resources/dns/pickers/pickers.py +167 -0
- gcore/resources/dns/pickers/presets.py +135 -0
- gcore/resources/dns/zones/__init__.py +47 -0
- gcore/resources/{cloud/inference/models.py → dns/zones/dnssec.py} +80 -122
- gcore/resources/dns/zones/rrsets.py +1005 -0
- gcore/resources/dns/zones/zones.py +1493 -0
- gcore/resources/security/bgp_announces.py +15 -15
- gcore/resources/storage/__init__.py +75 -0
- gcore/resources/storage/buckets/__init__.py +61 -0
- gcore/resources/storage/buckets/buckets.py +470 -0
- gcore/resources/storage/buckets/cors.py +265 -0
- gcore/resources/storage/buckets/lifecycle.py +276 -0
- gcore/resources/storage/buckets/policy.py +345 -0
- gcore/resources/storage/credentials.py +221 -0
- gcore/resources/storage/locations.py +190 -0
- gcore/resources/storage/statistics.py +364 -0
- gcore/resources/storage/storage.py +1042 -0
- gcore/resources/streaming/ai_tasks.py +56 -70
- gcore/resources/streaming/playlists.py +18 -18
- gcore/resources/streaming/quality_sets.py +8 -8
- gcore/resources/streaming/statistics.py +4 -122
- gcore/resources/streaming/streams/overlays.py +6 -6
- gcore/resources/streaming/streams/streams.py +40 -64
- gcore/resources/streaming/videos/subtitles.py +32 -30
- gcore/resources/streaming/videos/videos.py +78 -72
- gcore/resources/waap/__init__.py +14 -0
- gcore/resources/waap/custom_page_sets.py +40 -34
- gcore/resources/waap/domains/__init__.py +14 -28
- gcore/resources/waap/domains/advanced_rules.py +7 -10
- gcore/resources/waap/domains/{api_discovery/api_discovery.py → api_discovery.py} +292 -59
- gcore/resources/waap/domains/api_path_groups.py +5 -5
- gcore/resources/waap/domains/api_paths.py +28 -30
- gcore/resources/waap/domains/custom_rules.py +7 -10
- gcore/resources/waap/domains/domains.py +124 -68
- gcore/resources/waap/domains/firewall_rules.py +5 -7
- gcore/resources/waap/domains/insight_silences.py +34 -11
- gcore/resources/waap/domains/insights.py +43 -17
- gcore/resources/waap/domains/statistics.py +977 -0
- gcore/resources/waap/insights.py +233 -0
- gcore/resources/waap/ip_info/__init__.py +33 -0
- gcore/resources/waap/{ip_info.py → ip_info/ip_info.py} +149 -235
- gcore/resources/waap/ip_info/metrics.py +203 -0
- gcore/resources/waap/waap.py +40 -8
- gcore/types/cloud/__init__.py +2 -4
- gcore/types/cloud/audit_log_list_params.py +2 -1
- gcore/types/cloud/baremetal/image_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_create_params.py +8 -6
- gcore/types/cloud/baremetal/server_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_rebuild_params.py +2 -0
- gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +35 -31
- gcore/types/cloud/cost_report_get_aggregated_params.py +26 -25
- gcore/types/cloud/cost_report_get_detailed_params.py +26 -25
- gcore/types/cloud/ddos_profile.py +13 -7
- gcore/types/cloud/ddos_profile_field.py +21 -8
- gcore/types/cloud/ddos_profile_option_list.py +7 -6
- gcore/types/cloud/ddos_profile_status.py +2 -2
- gcore/types/cloud/ddos_profile_template.py +7 -3
- gcore/types/cloud/ddos_profile_template_field.py +12 -3
- gcore/types/cloud/file_share.py +2 -2
- gcore/types/cloud/file_share_create_params.py +12 -6
- gcore/types/cloud/floating_ip_list_params.py +3 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +101 -74
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +76 -93
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +17 -10
- gcore/types/cloud/gpu_baremetal_cluster_list_params.py +14 -3
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +4 -2
- gcore/types/cloud/gpu_baremetal_clusters/__init__.py +6 -0
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +74 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server.py → gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1.py} +10 -10
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1_list.py +16 -0
- gcore/types/cloud/{gpu_baremetal_flavor.py → gpu_baremetal_clusters/gpu_baremetal_flavor.py} +1 -1
- gcore/types/cloud/{gpu_baremetal_flavor_list.py → gpu_baremetal_clusters/gpu_baremetal_flavor_list.py} +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/server_list_params.py +75 -0
- gcore/types/cloud/health_monitor.py +6 -0
- gcore/types/cloud/inference/__init__.py +0 -5
- gcore/types/cloud/inference/applications/__init__.py +12 -0
- gcore/types/cloud/inference/applications/deployment_create_params.py +68 -0
- gcore/types/cloud/inference/applications/deployment_patch_params.py +62 -0
- gcore/types/cloud/inference/applications/inference_application_deployment.py +111 -0
- gcore/types/cloud/inference/applications/inference_application_deployment_list.py +16 -0
- gcore/types/cloud/inference/applications/inference_application_template.py +94 -0
- gcore/types/cloud/inference/applications/inference_application_template_list.py +16 -0
- gcore/types/cloud/inference/deployment_create_params.py +7 -6
- gcore/types/cloud/inference/deployment_update_params.py +7 -6
- gcore/types/cloud/instance_assign_security_group_params.py +4 -2
- gcore/types/cloud/instance_list_params.py +3 -2
- gcore/types/cloud/instance_unassign_security_group_params.py +4 -2
- gcore/types/cloud/instances/image_list_params.py +3 -2
- gcore/types/cloud/k8s/__init__.py +13 -0
- gcore/types/cloud/k8s/cluster_create_params.py +299 -0
- gcore/types/cloud/k8s/cluster_delete_params.py +16 -0
- gcore/types/cloud/k8s/cluster_update_params.py +203 -0
- gcore/types/cloud/k8s/cluster_upgrade_params.py +16 -0
- gcore/types/cloud/k8s/clusters/__init__.py +10 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +66 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +16 -0
- gcore/types/cloud/k8s/clusters/node_list_params.py +16 -0
- gcore/types/cloud/k8s/clusters/pool_create_params.py +53 -0
- gcore/types/cloud/k8s/clusters/pool_resize_params.py +18 -0
- gcore/types/cloud/k8s/clusters/pool_update_params.py +34 -0
- gcore/types/{waap/domains/analytics → cloud/k8s/clusters/pools}/__init__.py +1 -1
- gcore/types/cloud/k8s/clusters/pools/node_list_params.py +18 -0
- gcore/types/cloud/k8s/flavor_list_params.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster.py +209 -0
- gcore/types/cloud/k8s/k8s_cluster_certificate.py +13 -0
- gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster_list.py +16 -0
- gcore/types/cloud/k8s_cluster_version.py +10 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server_list.py → k8s_cluster_version_list.py} +4 -4
- gcore/types/cloud/load_balancer_create_params.py +31 -7
- gcore/types/cloud/load_balancer_list_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/listener_create_params.py +4 -3
- gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +27 -4
- gcore/types/cloud/load_balancers/pool_update_params.py +27 -4
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +7 -2
- gcore/types/cloud/load_balancers/pools/member_add_params.py +20 -2
- gcore/types/cloud/member.py +19 -1
- gcore/types/cloud/network_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_create_params.py +3 -2
- gcore/types/cloud/networks/subnet_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_update_params.py +3 -2
- gcore/types/cloud/project.py +9 -9
- gcore/types/cloud/region.py +0 -3
- gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +3 -2
- gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +3 -2
- gcore/types/cloud/security_group_create_params.py +4 -2
- gcore/types/cloud/security_group_list_params.py +3 -2
- gcore/types/cloud/task_id_list.py +8 -1
- gcore/types/cloud/task_list_params.py +23 -23
- gcore/types/cloud/usage_report_get_params.py +26 -25
- gcore/types/cloud/users/role_assignment.py +2 -1
- gcore/types/cloud/users/role_assignment_create_params.py +4 -2
- gcore/types/cloud/users/role_assignment_update_params.py +4 -2
- gcore/types/cloud/volume_list_params.py +3 -2
- gcore/types/dns/__init__.py +31 -0
- gcore/types/dns/dns_get_account_overview_response.py +21 -0
- gcore/types/dns/dns_label_name.py +13 -0
- gcore/types/dns/dns_location_translations.py +11 -0
- gcore/types/dns/dns_lookup_params.py +15 -0
- gcore/types/dns/dns_lookup_response.py +21 -0
- gcore/types/dns/dns_name_server.py +17 -0
- gcore/types/dns/location_list_continents_response.py +10 -0
- gcore/types/dns/location_list_countries_response.py +10 -0
- gcore/types/dns/location_list_regions_response.py +10 -0
- gcore/types/dns/location_list_response.py +16 -0
- gcore/types/dns/metric_list_params.py +24 -0
- gcore/types/dns/metric_list_response.py +7 -0
- gcore/types/dns/picker_list_response.py +10 -0
- gcore/types/dns/pickers/__init__.py +5 -0
- gcore/types/dns/pickers/preset_list_response.py +10 -0
- gcore/types/dns/zone_check_delegation_status_response.py +20 -0
- gcore/types/dns/zone_create_params.py +59 -0
- gcore/types/dns/zone_create_response.py +13 -0
- gcore/types/dns/zone_export_response.py +11 -0
- gcore/types/dns/zone_get_response.py +106 -0
- gcore/types/dns/zone_get_statistics_params.py +43 -0
- gcore/types/dns/zone_get_statistics_response.py +19 -0
- gcore/types/dns/zone_import_params.py +32 -0
- gcore/types/dns/zone_import_response.py +26 -0
- gcore/types/dns/zone_list_params.py +57 -0
- gcore/types/dns/zone_list_response.py +105 -0
- gcore/types/dns/zone_replace_params.py +61 -0
- gcore/types/dns/zones/__init__.py +15 -0
- gcore/types/dns/zones/dns_failover_log.py +19 -0
- gcore/types/dns/zones/dns_output_rrset.py +123 -0
- gcore/types/dns/zones/dnssec_get_response.py +38 -0
- gcore/types/dns/zones/dnssec_update_params.py +11 -0
- gcore/types/dns/zones/dnssec_update_response.py +38 -0
- gcore/types/dns/zones/rrset_create_params.py +82 -0
- gcore/types/dns/zones/rrset_get_failover_logs_params.py +21 -0
- gcore/types/dns/zones/rrset_get_failover_logs_response.py +15 -0
- gcore/types/dns/zones/rrset_list_params.py +21 -0
- gcore/types/dns/zones/rrset_list_response.py +14 -0
- gcore/types/dns/zones/rrset_replace_params.py +82 -0
- gcore/types/security/__init__.py +1 -1
- gcore/types/security/{bgp_announce_change_params.py → bgp_announce_toggle_params.py} +2 -2
- gcore/types/security/client_profile.py +1 -1
- gcore/types/security/profile_create_params.py +2 -2
- gcore/types/security/profile_recreate_params.py +2 -2
- gcore/types/security/profile_replace_params.py +2 -2
- gcore/types/storage/__init__.py +21 -0
- gcore/types/storage/bucket.py +15 -0
- gcore/types/storage/bucket_list_params.py +15 -0
- gcore/types/storage/buckets/__init__.py +9 -0
- gcore/types/storage/buckets/bucket_cors.py +18 -0
- gcore/types/storage/buckets/bucket_policy.py +7 -0
- gcore/types/storage/buckets/cor_create_params.py +17 -0
- gcore/types/storage/buckets/lifecycle_create_params.py +18 -0
- gcore/types/storage/buckets/policy_get_response.py +7 -0
- gcore/types/storage/credential_recreate_params.py +36 -0
- gcore/types/storage/location.py +24 -0
- gcore/types/storage/location_list_params.py +13 -0
- gcore/types/storage/statistic_get_usage_aggregated_params.py +24 -0
- gcore/types/storage/statistic_get_usage_series_params.py +38 -0
- gcore/types/storage/statistic_get_usage_series_response.py +12 -0
- gcore/types/storage/storage.py +101 -0
- gcore/types/storage/storage_create_params.py +44 -0
- gcore/types/storage/storage_list_params.py +39 -0
- gcore/types/storage/storage_restore_params.py +11 -0
- gcore/types/storage/storage_update_params.py +18 -0
- gcore/types/storage/usage_series.py +201 -0
- gcore/types/storage/usage_total.py +54 -0
- gcore/types/streaming/__init__.py +0 -4
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_nsfw.py +1 -1
- gcore/types/streaming/ai_contentmoderation_softnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_sport.py +1 -1
- gcore/types/streaming/ai_task.py +1 -5
- gcore/types/streaming/ai_task_create_params.py +2 -2
- gcore/types/streaming/ai_task_get_response.py +0 -46
- gcore/types/streaming/clip.py +2 -1
- gcore/types/streaming/create_video_param.py +13 -12
- gcore/types/streaming/max_stream_series.py +5 -5
- gcore/types/streaming/playlist.py +1 -1
- gcore/types/streaming/playlist_create_params.py +1 -1
- gcore/types/streaming/playlist_update_params.py +1 -1
- gcore/types/streaming/playlist_video.py +13 -12
- gcore/types/streaming/storage_series.py +5 -5
- gcore/types/streaming/stream.py +86 -49
- gcore/types/streaming/stream_create_clip_params.py +2 -1
- gcore/types/streaming/stream_create_params.py +9 -23
- gcore/types/streaming/stream_series.py +5 -5
- gcore/types/streaming/stream_update_params.py +9 -23
- gcore/types/streaming/video.py +53 -42
- gcore/types/streaming/video_update_params.py +13 -12
- gcore/types/streaming/vod_statistics_series.py +5 -5
- gcore/types/streaming/vod_total_stream_duration_series.py +3 -3
- gcore/types/waap/__init__.py +6 -54
- gcore/types/waap/custom_page_set_create_params.py +121 -14
- gcore/types/waap/custom_page_set_preview_params.py +11 -4
- gcore/types/waap/custom_page_set_update_params.py +122 -15
- gcore/types/waap/domain_list_params.py +2 -4
- gcore/types/waap/domain_update_params.py +1 -1
- gcore/types/waap/domains/__init__.py +28 -18
- gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
- gcore/types/waap/domains/advanced_rule_list_params.py +1 -3
- gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
- gcore/types/waap/domains/{api_discovery/scan_result_list_params.py → api_discovery_list_scan_results_params.py} +2 -2
- gcore/types/waap/domains/api_path_create_params.py +4 -3
- gcore/types/waap/domains/{api_path_group_list_response.py → api_path_group_list.py} +2 -2
- gcore/types/waap/domains/api_path_list_params.py +3 -1
- gcore/types/waap/domains/api_path_update_params.py +5 -4
- gcore/types/waap/domains/custom_rule_create_params.py +13 -14
- gcore/types/waap/domains/custom_rule_list_params.py +1 -3
- gcore/types/waap/domains/custom_rule_update_params.py +12 -13
- gcore/types/waap/domains/firewall_rule_create_params.py +3 -2
- gcore/types/waap/domains/firewall_rule_update_params.py +2 -1
- gcore/types/waap/domains/insight_list_params.py +19 -7
- gcore/types/waap/domains/insight_replace_params.py +3 -5
- gcore/types/waap/domains/insight_silence_list_params.py +17 -6
- gcore/types/waap/domains/setting_update_params.py +3 -2
- gcore/types/waap/domains/{analytics_list_ddos_attacks_params.py → statistic_get_ddos_attacks_params.py} +2 -2
- gcore/types/waap/domains/statistic_get_ddos_info_params.py +28 -0
- gcore/types/waap/domains/statistic_get_events_aggregated_params.py +33 -0
- gcore/types/waap/domains/statistic_get_requests_series_params.py +74 -0
- gcore/types/waap/domains/statistic_get_traffic_series_params.py +22 -0
- gcore/types/waap/domains/statistic_get_traffic_series_response.py +10 -0
- gcore/types/waap/{waap_advanced_rule.py → domains/waap_advanced_rule.py} +4 -3
- gcore/types/waap/domains/{api_discovery_get_settings_response.py → waap_api_discovery_settings.py} +2 -2
- gcore/types/waap/domains/{api_path_get_response.py → waap_api_path.py} +6 -6
- gcore/types/waap/domains/{api_discovery/scan_result_get_response.py → waap_api_scan_result.py} +5 -5
- gcore/types/waap/{waap_blocked_statistics.py → domains/waap_blocked_statistics.py} +1 -1
- gcore/types/waap/{waap_count_statistics.py → domains/waap_count_statistics.py} +1 -1
- gcore/types/waap/{waap_custom_rule.py → domains/waap_custom_rule.py} +5 -8
- gcore/types/waap/{waap_ddos_attack.py → domains/waap_ddos_attack.py} +1 -1
- gcore/types/waap/{waap_ddos_info.py → domains/waap_ddos_info.py} +1 -1
- gcore/types/waap/{waap_event_statistics.py → domains/waap_event_statistics.py} +1 -1
- gcore/types/waap/{waap_firewall_rule.py → domains/waap_firewall_rule.py} +4 -3
- gcore/types/waap/{waap_insight.py → domains/waap_insight.py} +4 -4
- gcore/types/waap/{waap_insight_silence.py → domains/waap_insight_silence.py} +1 -1
- gcore/types/waap/domains/waap_request_details.py +186 -0
- gcore/types/waap/{waap_request_summary.py → domains/waap_request_summary.py} +1 -1
- gcore/types/waap/domains/{api_discovery_scan_openapi_response.py → waap_task_id.py} +2 -2
- gcore/types/waap/{waap_traffic_metrics.py → domains/waap_traffic_metrics.py} +1 -1
- gcore/types/waap/insight_list_types_params.py +28 -0
- gcore/types/waap/ip_info/__init__.py +6 -0
- gcore/types/waap/{ip_info_get_counts_params.py → ip_info/metric_list_params.py} +2 -2
- gcore/types/waap/{waap_ip_info_counts.py → ip_info/waap_ip_info_counts.py} +1 -1
- gcore/types/waap/{ip_info_get_params.py → ip_info_get_ip_info_params.py} +2 -2
- gcore/types/waap/{waap_ip_info.py → ip_info_get_ip_info_response.py} +2 -2
- gcore/types/waap/ip_info_get_top_urls_response.py +12 -3
- gcore/types/waap/{ip_info_get_top_sessions_params.py → ip_info_get_top_user_sessions_params.py} +2 -2
- gcore/types/waap/{ip_info_get_top_sessions_response.py → ip_info_get_top_user_sessions_response.py} +2 -2
- gcore/types/waap/waap_custom_page_set.py +113 -13
- gcore/types/waap/waap_detailed_domain.py +2 -2
- gcore/types/waap/waap_insight_type.py +33 -0
- gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
- gcore/types/waap/waap_rule_set.py +26 -3
- gcore/types/waap/waap_summary_domain.py +2 -2
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/METADATA +7 -2
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/RECORD +362 -281
- gcore/resources/waap/domains/analytics/__init__.py +0 -33
- gcore/resources/waap/domains/analytics/analytics.py +0 -676
- gcore/resources/waap/domains/analytics/requests.py +0 -378
- gcore/resources/waap/domains/api_discovery/__init__.py +0 -33
- gcore/resources/waap/domains/api_discovery/scan_results.py +0 -352
- gcore/resources/waap/domains/policies.py +0 -173
- gcore/types/cloud/inference/inference_model.py +0 -65
- gcore/types/cloud/inference/inference_registry_credentials_create.py +0 -22
- gcore/types/cloud/inference/model_list_params.py +0 -21
- gcore/types/streaming/ai_contentmoderation_casm.py +0 -39
- gcore/types/streaming/ai_contentmoderation_weapon.py +0 -39
- gcore/types/streaming/meet_series.py +0 -23
- gcore/types/streaming/statistic_get_meet_series_params.py +0 -20
- gcore/types/waap/domains/analytics/request_list_params.py +0 -53
- gcore/types/waap/domains/analytics_get_event_statistics_params.py +0 -34
- gcore/types/waap/domains/analytics_list_ddos_info_params.py +0 -31
- gcore/types/waap/domains/analytics_list_event_traffic_params.py +0 -26
- gcore/types/waap/domains/analytics_list_event_traffic_response.py +0 -10
- gcore/types/waap/domains/api_discovery/__init__.py +0 -7
- gcore/types/waap/domains/api_discovery/scan_result_list_response.py +0 -29
- gcore/types/waap/domains/api_discovery_update_settings_response.py +0 -36
- gcore/types/waap/domains/api_discovery_upload_openapi_response.py +0 -10
- gcore/types/waap/domains/api_path_create_response.py +0 -50
- gcore/types/waap/domains/api_path_list_response.py +0 -50
- gcore/types/waap/waap_block_csrf_page_data.py +0 -28
- gcore/types/waap/waap_block_csrf_page_data_param.py +0 -28
- gcore/types/waap/waap_block_page_data.py +0 -28
- gcore/types/waap/waap_block_page_data_param.py +0 -28
- gcore/types/waap/waap_captcha_page_data.py +0 -31
- gcore/types/waap/waap_captcha_page_data_param.py +0 -31
- gcore/types/waap/waap_common_tag.py +0 -16
- gcore/types/waap/waap_cookie_disabled_page_data.py +0 -18
- gcore/types/waap/waap_cookie_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_customer_rule_state.py +0 -7
- gcore/types/waap/waap_domain_policy.py +0 -29
- gcore/types/waap/waap_domain_status.py +0 -7
- gcore/types/waap/waap_handshake_page_data.py +0 -25
- gcore/types/waap/waap_handshake_page_data_param.py +0 -25
- gcore/types/waap/waap_insight_silence_sort_by.py +0 -9
- gcore/types/waap/waap_insight_sort_by.py +0 -20
- gcore/types/waap/waap_insight_status.py +0 -7
- gcore/types/waap/waap_javascript_disabled_page_data.py +0 -18
- gcore/types/waap/waap_javascript_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_network_details.py +0 -17
- gcore/types/waap/waap_page_type.py +0 -9
- gcore/types/waap/waap_paginated_custom_page_set.py +0 -22
- gcore/types/waap/waap_paginated_ddos_attack.py +0 -22
- gcore/types/waap/waap_paginated_ddos_info.py +0 -22
- gcore/types/waap/waap_paginated_request_summary.py +0 -22
- gcore/types/waap/waap_pattern_matched_tag.py +0 -37
- gcore/types/waap/waap_policy_action.py +0 -7
- gcore/types/waap/waap_request_details.py +0 -92
- gcore/types/waap/waap_request_organization.py +0 -13
- gcore/types/waap/waap_resolution.py +0 -7
- gcore/types/waap/waap_rule_action_type.py +0 -7
- gcore/types/waap/waap_top_url.py +0 -13
- gcore/types/waap/waap_traffic_type.py +0 -28
- gcore/types/waap/waap_user_agent_details.py +0 -40
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/WHEEL +0 -0
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -80,7 +80,6 @@ class StreamsResource(SyncAPIResource):
|
|
|
80
80
|
dvr_enabled: bool | NotGiven = NOT_GIVEN,
|
|
81
81
|
hls_mpegts_endlist_tag: bool | NotGiven = NOT_GIVEN,
|
|
82
82
|
html_overlay: bool | NotGiven = NOT_GIVEN,
|
|
83
|
-
low_latency_enabled: bool | NotGiven = NOT_GIVEN,
|
|
84
83
|
projection: Literal["regular", "vr360", "vr180", "vr360tb"] | NotGiven = NOT_GIVEN,
|
|
85
84
|
pull: bool | NotGiven = NOT_GIVEN,
|
|
86
85
|
quality_set_id: int | NotGiven = NOT_GIVEN,
|
|
@@ -113,7 +112,7 @@ class StreamsResource(SyncAPIResource):
|
|
|
113
112
|
for video streams by utilizing Common Media Application Format (CMAF)
|
|
114
113
|
technology. So you obtain latency from the traditional 30-50 seconds to ±4
|
|
115
114
|
seconds only by default. If you need legacy non-low-latency HLS, then look at
|
|
116
|
-
HLS
|
|
115
|
+
HLS MPEG-TS delivery below.
|
|
117
116
|
|
|
118
117
|
You have access to additional functions such as:
|
|
119
118
|
|
|
@@ -162,7 +161,7 @@ class StreamsResource(SyncAPIResource):
|
|
|
162
161
|
entity: video source, video id, parameters, etc. We do not use this field in any
|
|
163
162
|
way when processing the stream. You can store any data in any format (string,
|
|
164
163
|
json, etc), saved as a text string. Example:
|
|
165
|
-
|
|
164
|
+
`client_entity_data = '{ "seq_id": "1234567890", "name": "John Doe", "iat": 1516239022 }'`
|
|
166
165
|
|
|
167
166
|
client_user_id: Custom meta field for storing the Identifier in your system. We do not use this
|
|
168
167
|
field in any way when processing the stream. Example: `client_user_id = 1001`
|
|
@@ -184,19 +183,6 @@ class StreamsResource(SyncAPIResource):
|
|
|
184
183
|
html_overlay: Switch on mode to insert and display real-time HTML overlay widgets on top of
|
|
185
184
|
live streams
|
|
186
185
|
|
|
187
|
-
low_latency_enabled: Deprecated, always returns "true". The only exception is that the attribute can
|
|
188
|
-
only be used by clients that have previously used the old stream format. This
|
|
189
|
-
method is outdated since we've made it easier to manage streams. For your
|
|
190
|
-
convenience, you no longer need to set this parameter at the stage of creating a
|
|
191
|
-
stream. Now all streams are prepared in 2 formats simultaniously: Low Latency
|
|
192
|
-
and Legacy. You can get the desired output format in the attributes
|
|
193
|
-
"`dash_url`", "`hls_cmaf_url`", "`hls_mpegts_url`". Or use them all at once.
|
|
194
|
-
|
|
195
|
-
---
|
|
196
|
-
|
|
197
|
-
Note: Links /streams/{id}/playlist.m3u8 are depricated too. Use value of the
|
|
198
|
-
"`hls_mpegts_url`" attribute instead.
|
|
199
|
-
|
|
200
186
|
projection: Visualization mode for 360° streams, how the stream is rendered in our web
|
|
201
187
|
player ONLY. If you would like to show video 360° in an external video player,
|
|
202
188
|
then use parameters of that video player. Modes:
|
|
@@ -210,9 +196,10 @@ class StreamsResource(SyncAPIResource):
|
|
|
210
196
|
values:
|
|
211
197
|
|
|
212
198
|
- true – stream is received by PULL method. Use this when need to get stream
|
|
213
|
-
from external server
|
|
199
|
+
from external server.
|
|
214
200
|
- false – stream is received by PUSH method. Use this when need to send stream
|
|
215
|
-
from end-device to our Streaming Platform, i.e. from mobile app
|
|
201
|
+
from end-device to our Streaming Platform, i.e. from your encoder, mobile app
|
|
202
|
+
or OBS Studio.
|
|
216
203
|
|
|
217
204
|
quality_set_id: Custom quality set ID for transcoding, if transcoding is required according to
|
|
218
205
|
your conditions. Look at GET /`quality_sets` method
|
|
@@ -230,10 +217,11 @@ class StreamsResource(SyncAPIResource):
|
|
|
230
217
|
round robin scheduling. If the first address does not respond, then the next one
|
|
231
218
|
in the list will be automatically requested, returning to the first and so on in
|
|
232
219
|
a circle. Also, if the sucessfully working stream stops sending data, then the
|
|
233
|
-
next one will be selected according to the same scheme. After
|
|
234
|
-
inactivity of your
|
|
235
|
-
|
|
236
|
-
for
|
|
220
|
+
next one will be selected according to the same scheme. After 2 hours of
|
|
221
|
+
inactivity of your original stream, the system stops PULL requests and the
|
|
222
|
+
stream is deactivated (the "active" field switches to "false"). Please, note
|
|
223
|
+
that this field is for PULL only, so is not suitable for PUSH. Look at fields
|
|
224
|
+
"`push_url`" and "`push_url_srt`" from GET method.
|
|
237
225
|
|
|
238
226
|
extra_headers: Send extra headers
|
|
239
227
|
|
|
@@ -258,7 +246,6 @@ class StreamsResource(SyncAPIResource):
|
|
|
258
246
|
"dvr_enabled": dvr_enabled,
|
|
259
247
|
"hls_mpegts_endlist_tag": hls_mpegts_endlist_tag,
|
|
260
248
|
"html_overlay": html_overlay,
|
|
261
|
-
"low_latency_enabled": low_latency_enabled,
|
|
262
249
|
"projection": projection,
|
|
263
250
|
"pull": pull,
|
|
264
251
|
"quality_set_id": quality_set_id,
|
|
@@ -318,7 +305,7 @@ class StreamsResource(SyncAPIResource):
|
|
|
318
305
|
extra_body: Body | None = None,
|
|
319
306
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
320
307
|
) -> SyncPageStreaming[Stream]:
|
|
321
|
-
"""Returns a list of streams
|
|
308
|
+
"""Returns a list of streams
|
|
322
309
|
|
|
323
310
|
Args:
|
|
324
311
|
page: Query parameter.
|
|
@@ -379,8 +366,8 @@ class StreamsResource(SyncAPIResource):
|
|
|
379
366
|
Perhaps, instead of deleting, you may use the stream deactivation:
|
|
380
367
|
|
|
381
368
|
```
|
|
382
|
-
PATCH /videos/{
|
|
383
|
-
{
|
|
369
|
+
PATCH / videos / {stream_id}
|
|
370
|
+
{"active": false}
|
|
384
371
|
```
|
|
385
372
|
|
|
386
373
|
For details, see the Product Documentation.
|
|
@@ -462,7 +449,7 @@ class StreamsResource(SyncAPIResource):
|
|
|
462
449
|
- HLS .m3u8,
|
|
463
450
|
- MP4,
|
|
464
451
|
- VOD in video hosting with a permanent link to watch video.
|
|
465
|
-

|
|
466
453
|
|
|
467
454
|
**Clip lifetime:** Instant clips are a copy of the stream, created from a live
|
|
468
455
|
stream. They are stored in memory for a limited time, after which the clip
|
|
@@ -516,7 +503,8 @@ class StreamsResource(SyncAPIResource):
|
|
|
516
503
|
deleted from memory and is no longer available via the link. You need to create
|
|
517
504
|
a new segment, or use `vod_required: true` attribute. If value is omitted, then
|
|
518
505
|
expiration is counted as +3600 seconds (1 hour) to the end of the clip (i.e.
|
|
519
|
-
`unix timestamp = + + 3600`). Allowed range: 1m <= expiration
|
|
506
|
+
`unix timestamp = <start> + <duration> + 3600`). Allowed range: 1m <= expiration
|
|
507
|
+
<= 4h. Example:
|
|
520
508
|
`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`
|
|
521
509
|
|
|
522
510
|
start: Starting point of the segment to cut. Unix timestamp in seconds, absolute value.
|
|
@@ -606,13 +594,13 @@ class StreamsResource(SyncAPIResource):
|
|
|
606
594
|
renditions list in order to get exact bitrate/quality from the set. Example:
|
|
607
595
|
|
|
608
596
|
- HLS 720p:
|
|
609
|
-
|
|
597
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_master.m3u8`
|
|
610
598
|
- HLS 720p:
|
|
611
|
-
|
|
599
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_media_1_360.m3u8`
|
|
612
600
|
- MP4 360p:
|
|
613
|
-
|
|
601
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_master.mp4`
|
|
614
602
|
- MP4 360p:
|
|
615
|
-
|
|
603
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_media_1_360.mp4`
|
|
616
604
|
|
|
617
605
|
Args:
|
|
618
606
|
extra_headers: Send extra headers
|
|
@@ -775,7 +763,6 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
775
763
|
dvr_enabled: bool | NotGiven = NOT_GIVEN,
|
|
776
764
|
hls_mpegts_endlist_tag: bool | NotGiven = NOT_GIVEN,
|
|
777
765
|
html_overlay: bool | NotGiven = NOT_GIVEN,
|
|
778
|
-
low_latency_enabled: bool | NotGiven = NOT_GIVEN,
|
|
779
766
|
projection: Literal["regular", "vr360", "vr180", "vr360tb"] | NotGiven = NOT_GIVEN,
|
|
780
767
|
pull: bool | NotGiven = NOT_GIVEN,
|
|
781
768
|
quality_set_id: int | NotGiven = NOT_GIVEN,
|
|
@@ -808,7 +795,7 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
808
795
|
for video streams by utilizing Common Media Application Format (CMAF)
|
|
809
796
|
technology. So you obtain latency from the traditional 30-50 seconds to ±4
|
|
810
797
|
seconds only by default. If you need legacy non-low-latency HLS, then look at
|
|
811
|
-
HLS
|
|
798
|
+
HLS MPEG-TS delivery below.
|
|
812
799
|
|
|
813
800
|
You have access to additional functions such as:
|
|
814
801
|
|
|
@@ -857,7 +844,7 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
857
844
|
entity: video source, video id, parameters, etc. We do not use this field in any
|
|
858
845
|
way when processing the stream. You can store any data in any format (string,
|
|
859
846
|
json, etc), saved as a text string. Example:
|
|
860
|
-
|
|
847
|
+
`client_entity_data = '{ "seq_id": "1234567890", "name": "John Doe", "iat": 1516239022 }'`
|
|
861
848
|
|
|
862
849
|
client_user_id: Custom meta field for storing the Identifier in your system. We do not use this
|
|
863
850
|
field in any way when processing the stream. Example: `client_user_id = 1001`
|
|
@@ -879,19 +866,6 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
879
866
|
html_overlay: Switch on mode to insert and display real-time HTML overlay widgets on top of
|
|
880
867
|
live streams
|
|
881
868
|
|
|
882
|
-
low_latency_enabled: Deprecated, always returns "true". The only exception is that the attribute can
|
|
883
|
-
only be used by clients that have previously used the old stream format. This
|
|
884
|
-
method is outdated since we've made it easier to manage streams. For your
|
|
885
|
-
convenience, you no longer need to set this parameter at the stage of creating a
|
|
886
|
-
stream. Now all streams are prepared in 2 formats simultaniously: Low Latency
|
|
887
|
-
and Legacy. You can get the desired output format in the attributes
|
|
888
|
-
"`dash_url`", "`hls_cmaf_url`", "`hls_mpegts_url`". Or use them all at once.
|
|
889
|
-
|
|
890
|
-
---
|
|
891
|
-
|
|
892
|
-
Note: Links /streams/{id}/playlist.m3u8 are depricated too. Use value of the
|
|
893
|
-
"`hls_mpegts_url`" attribute instead.
|
|
894
|
-
|
|
895
869
|
projection: Visualization mode for 360° streams, how the stream is rendered in our web
|
|
896
870
|
player ONLY. If you would like to show video 360° in an external video player,
|
|
897
871
|
then use parameters of that video player. Modes:
|
|
@@ -905,9 +879,10 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
905
879
|
values:
|
|
906
880
|
|
|
907
881
|
- true – stream is received by PULL method. Use this when need to get stream
|
|
908
|
-
from external server
|
|
882
|
+
from external server.
|
|
909
883
|
- false – stream is received by PUSH method. Use this when need to send stream
|
|
910
|
-
from end-device to our Streaming Platform, i.e. from mobile app
|
|
884
|
+
from end-device to our Streaming Platform, i.e. from your encoder, mobile app
|
|
885
|
+
or OBS Studio.
|
|
911
886
|
|
|
912
887
|
quality_set_id: Custom quality set ID for transcoding, if transcoding is required according to
|
|
913
888
|
your conditions. Look at GET /`quality_sets` method
|
|
@@ -925,10 +900,11 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
925
900
|
round robin scheduling. If the first address does not respond, then the next one
|
|
926
901
|
in the list will be automatically requested, returning to the first and so on in
|
|
927
902
|
a circle. Also, if the sucessfully working stream stops sending data, then the
|
|
928
|
-
next one will be selected according to the same scheme. After
|
|
929
|
-
inactivity of your
|
|
930
|
-
|
|
931
|
-
for
|
|
903
|
+
next one will be selected according to the same scheme. After 2 hours of
|
|
904
|
+
inactivity of your original stream, the system stops PULL requests and the
|
|
905
|
+
stream is deactivated (the "active" field switches to "false"). Please, note
|
|
906
|
+
that this field is for PULL only, so is not suitable for PUSH. Look at fields
|
|
907
|
+
"`push_url`" and "`push_url_srt`" from GET method.
|
|
932
908
|
|
|
933
909
|
extra_headers: Send extra headers
|
|
934
910
|
|
|
@@ -953,7 +929,6 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
953
929
|
"dvr_enabled": dvr_enabled,
|
|
954
930
|
"hls_mpegts_endlist_tag": hls_mpegts_endlist_tag,
|
|
955
931
|
"html_overlay": html_overlay,
|
|
956
|
-
"low_latency_enabled": low_latency_enabled,
|
|
957
932
|
"projection": projection,
|
|
958
933
|
"pull": pull,
|
|
959
934
|
"quality_set_id": quality_set_id,
|
|
@@ -1013,7 +988,7 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
1013
988
|
extra_body: Body | None = None,
|
|
1014
989
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1015
990
|
) -> AsyncPaginator[Stream, AsyncPageStreaming[Stream]]:
|
|
1016
|
-
"""Returns a list of streams
|
|
991
|
+
"""Returns a list of streams
|
|
1017
992
|
|
|
1018
993
|
Args:
|
|
1019
994
|
page: Query parameter.
|
|
@@ -1074,8 +1049,8 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
1074
1049
|
Perhaps, instead of deleting, you may use the stream deactivation:
|
|
1075
1050
|
|
|
1076
1051
|
```
|
|
1077
|
-
PATCH /videos/{
|
|
1078
|
-
{
|
|
1052
|
+
PATCH / videos / {stream_id}
|
|
1053
|
+
{"active": false}
|
|
1079
1054
|
```
|
|
1080
1055
|
|
|
1081
1056
|
For details, see the Product Documentation.
|
|
@@ -1157,7 +1132,7 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
1157
1132
|
- HLS .m3u8,
|
|
1158
1133
|
- MP4,
|
|
1159
1134
|
- VOD in video hosting with a permanent link to watch video.
|
|
1160
|
-

|
|
1161
1136
|
|
|
1162
1137
|
**Clip lifetime:** Instant clips are a copy of the stream, created from a live
|
|
1163
1138
|
stream. They are stored in memory for a limited time, after which the clip
|
|
@@ -1211,7 +1186,8 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
1211
1186
|
deleted from memory and is no longer available via the link. You need to create
|
|
1212
1187
|
a new segment, or use `vod_required: true` attribute. If value is omitted, then
|
|
1213
1188
|
expiration is counted as +3600 seconds (1 hour) to the end of the clip (i.e.
|
|
1214
|
-
`unix timestamp = + + 3600`). Allowed range: 1m <= expiration
|
|
1189
|
+
`unix timestamp = <start> + <duration> + 3600`). Allowed range: 1m <= expiration
|
|
1190
|
+
<= 4h. Example:
|
|
1215
1191
|
`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`
|
|
1216
1192
|
|
|
1217
1193
|
start: Starting point of the segment to cut. Unix timestamp in seconds, absolute value.
|
|
@@ -1301,13 +1277,13 @@ class AsyncStreamsResource(AsyncAPIResource):
|
|
|
1301
1277
|
renditions list in order to get exact bitrate/quality from the set. Example:
|
|
1302
1278
|
|
|
1303
1279
|
- HLS 720p:
|
|
1304
|
-
|
|
1280
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_master.m3u8`
|
|
1305
1281
|
- HLS 720p:
|
|
1306
|
-
|
|
1282
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_media_1_360.m3u8`
|
|
1307
1283
|
- MP4 360p:
|
|
1308
|
-
|
|
1284
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_master.mp4`
|
|
1309
1285
|
- MP4 360p:
|
|
1310
|
-
|
|
1286
|
+
`https://CID.domain.com/rec/111_1000/rec_d7bsli54p8n4_qsid42_media_1_360.mp4`
|
|
1311
1287
|
|
|
1312
1288
|
Args:
|
|
1313
1289
|
extra_headers: Send extra headers
|
|
@@ -62,18 +62,18 @@ class SubtitlesResource(SyncAPIResource):
|
|
|
62
62
|
formats:
|
|
63
63
|
|
|
64
64
|
- SRT – SubRip Text is described on
|
|
65
|
-
[wikipedia.org](https://en.wikipedia.org/wiki/SubRip
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
[wikipedia.org](https://en.wikipedia.org/wiki/SubRip#SubRip_file_format). Must
|
|
66
|
+
start from integer for sequence number. Use calidators to check the subtitles,
|
|
67
|
+
like
|
|
68
68
|
[srt-validator](https://taoning2014.github.io/srt-validator-website/index.html).
|
|
69
69
|
- WebVTT – Web Video Text Tracks Format is described on
|
|
70
|
-
[developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API
|
|
70
|
+
[developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API).
|
|
71
71
|
Must start from "WEBVTT" header. Use validators to check the subtitles, like
|
|
72
72
|
[W3C](https://w3c.github.io/webvtt.js/parser.html). Language is 3-letter
|
|
73
73
|
language code according to ISO-639-2 (bibliographic code). Specify language
|
|
74
74
|
you need, or just look at our list in the attribute "`audio_language`" of
|
|
75
75
|
section
|
|
76
|
-
["AI
|
|
76
|
+
["AI Speech Recognition"](/docs/api-reference/streaming/ai/create-ai-asr-task).
|
|
77
77
|
You can add multiple subtitles in the same language, language uniqueness is
|
|
78
78
|
not required. Size must be up to 5Mb.
|
|
79
79
|
|
|
@@ -84,18 +84,19 @@ class SubtitlesResource(SyncAPIResource):
|
|
|
84
84
|
subtitles based on AI. Read more:
|
|
85
85
|
|
|
86
86
|
- What is
|
|
87
|
-
["AI
|
|
88
|
-
- If the option is enabled via
|
|
89
|
-
|
|
90
|
-
created for
|
|
87
|
+
["AI Speech Recognition"](/docs/api-reference/streaming/ai/create-ai-asr-task).
|
|
88
|
+
- If the option is enabled via
|
|
89
|
+
`auto_transcribe_audio_language: auto|<language_code>`, then immediately after
|
|
90
|
+
successful transcoding, an AI task will be automatically created for
|
|
91
|
+
transcription.
|
|
91
92
|
- If you need to translate subtitles from original language to any other, then
|
|
92
93
|
AI-task of subtitles translation can be applied. Use
|
|
93
|
-
`auto_translate_subtitles_language: default
|
|
94
|
-
point several languages to translate to, then a separate
|
|
95
|
-
generated for each specified language. The created AI-task(s)
|
|
96
|
-
automatically executed, and result will also be automatically attached
|
|
97
|
-
video as subtitle(s). If AI is disabled in your account, you will
|
|
98
|
-
422 in response.
|
|
94
|
+
`auto_translate_subtitles_language: default|<language_codes,>` parameter for
|
|
95
|
+
that. Also you can point several languages to translate to, then a separate
|
|
96
|
+
subtitle will be generated for each specified language. The created AI-task(s)
|
|
97
|
+
will be automatically executed, and result will also be automatically attached
|
|
98
|
+
to this video as subtitle(s). If AI is disabled in your account, you will
|
|
99
|
+
receive code 422 in response.
|
|
99
100
|
|
|
100
101
|
**Where and how subtitles are displayed?** Subtitles are became available in the
|
|
101
102
|
API response and in playback manifests. All added subtitles are automatically
|
|
@@ -320,18 +321,18 @@ class AsyncSubtitlesResource(AsyncAPIResource):
|
|
|
320
321
|
formats:
|
|
321
322
|
|
|
322
323
|
- SRT – SubRip Text is described on
|
|
323
|
-
[wikipedia.org](https://en.wikipedia.org/wiki/SubRip
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
[wikipedia.org](https://en.wikipedia.org/wiki/SubRip#SubRip_file_format). Must
|
|
325
|
+
start from integer for sequence number. Use calidators to check the subtitles,
|
|
326
|
+
like
|
|
326
327
|
[srt-validator](https://taoning2014.github.io/srt-validator-website/index.html).
|
|
327
328
|
- WebVTT – Web Video Text Tracks Format is described on
|
|
328
|
-
[developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API
|
|
329
|
+
[developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API).
|
|
329
330
|
Must start from "WEBVTT" header. Use validators to check the subtitles, like
|
|
330
331
|
[W3C](https://w3c.github.io/webvtt.js/parser.html). Language is 3-letter
|
|
331
332
|
language code according to ISO-639-2 (bibliographic code). Specify language
|
|
332
333
|
you need, or just look at our list in the attribute "`audio_language`" of
|
|
333
334
|
section
|
|
334
|
-
["AI
|
|
335
|
+
["AI Speech Recognition"](/docs/api-reference/streaming/ai/create-ai-asr-task).
|
|
335
336
|
You can add multiple subtitles in the same language, language uniqueness is
|
|
336
337
|
not required. Size must be up to 5Mb.
|
|
337
338
|
|
|
@@ -342,18 +343,19 @@ class AsyncSubtitlesResource(AsyncAPIResource):
|
|
|
342
343
|
subtitles based on AI. Read more:
|
|
343
344
|
|
|
344
345
|
- What is
|
|
345
|
-
["AI
|
|
346
|
-
- If the option is enabled via
|
|
347
|
-
|
|
348
|
-
created for
|
|
346
|
+
["AI Speech Recognition"](/docs/api-reference/streaming/ai/create-ai-asr-task).
|
|
347
|
+
- If the option is enabled via
|
|
348
|
+
`auto_transcribe_audio_language: auto|<language_code>`, then immediately after
|
|
349
|
+
successful transcoding, an AI task will be automatically created for
|
|
350
|
+
transcription.
|
|
349
351
|
- If you need to translate subtitles from original language to any other, then
|
|
350
352
|
AI-task of subtitles translation can be applied. Use
|
|
351
|
-
`auto_translate_subtitles_language: default
|
|
352
|
-
point several languages to translate to, then a separate
|
|
353
|
-
generated for each specified language. The created AI-task(s)
|
|
354
|
-
automatically executed, and result will also be automatically attached
|
|
355
|
-
video as subtitle(s). If AI is disabled in your account, you will
|
|
356
|
-
422 in response.
|
|
353
|
+
`auto_translate_subtitles_language: default|<language_codes,>` parameter for
|
|
354
|
+
that. Also you can point several languages to translate to, then a separate
|
|
355
|
+
subtitle will be generated for each specified language. The created AI-task(s)
|
|
356
|
+
will be automatically executed, and result will also be automatically attached
|
|
357
|
+
to this video as subtitle(s). If AI is disabled in your account, you will
|
|
358
|
+
receive code 422 in response.
|
|
357
359
|
|
|
358
360
|
**Where and how subtitles are displayed?** Subtitles are became available in the
|
|
359
361
|
API response and in playback manifests. All added subtitles are automatically
|