gcore 0.5.0__py3-none-any.whl → 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/_client.py +9 -0
- gcore/_models.py +24 -3
- gcore/_version.py +1 -1
- gcore/pagination.py +101 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/__init__.py +42 -0
- gcore/resources/cloud/audit_logs.py +480 -0
- gcore/resources/cloud/cloud.py +96 -0
- gcore/resources/cloud/cost_reports.py +811 -0
- gcore/resources/cloud/file_shares/file_shares.py +74 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +61 -26
- gcore/resources/cloud/inference/__init__.py +14 -0
- gcore/resources/cloud/inference/api_keys.py +621 -0
- gcore/resources/cloud/inference/inference.py +32 -0
- gcore/resources/cloud/inference/registry_credentials.py +4 -6
- gcore/resources/cloud/load_balancers/pools/members.py +22 -6
- gcore/resources/cloud/usage_reports.py +337 -0
- gcore/resources/streaming/__init__.py +159 -0
- gcore/resources/streaming/ai_tasks.py +1288 -0
- gcore/resources/streaming/broadcasts.py +579 -0
- gcore/resources/streaming/directories.py +515 -0
- gcore/resources/streaming/players.py +577 -0
- gcore/resources/streaming/playlists.py +1059 -0
- gcore/resources/streaming/quality_sets.py +331 -0
- gcore/resources/streaming/restreams.py +484 -0
- gcore/resources/streaming/statistics.py +3224 -0
- gcore/resources/streaming/streaming.py +390 -0
- gcore/resources/streaming/streams/__init__.py +33 -0
- gcore/resources/streaming/streams/overlays.py +716 -0
- gcore/resources/streaming/streams/streams.py +1592 -0
- gcore/resources/streaming/videos/__init__.py +33 -0
- gcore/resources/streaming/videos/subtitles.py +623 -0
- gcore/resources/streaming/videos/videos.py +1553 -0
- gcore/resources/waap/ip_info.py +28 -10
- gcore/types/cloud/__init__.py +12 -0
- gcore/types/cloud/audit_log_entry.py +254 -0
- gcore/types/cloud/audit_log_list_params.py +158 -0
- gcore/types/cloud/cost_report_aggregated.py +865 -0
- gcore/types/cloud/cost_report_aggregated_monthly.py +865 -0
- gcore/types/cloud/cost_report_detailed.py +1343 -0
- gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +394 -0
- gcore/types/cloud/cost_report_get_aggregated_params.py +409 -0
- gcore/types/cloud/cost_report_get_detailed_params.py +435 -0
- gcore/types/cloud/file_share.py +37 -3
- gcore/types/cloud/file_share_create_params.py +16 -0
- gcore/types/cloud/file_share_update_params.py +29 -3
- gcore/types/cloud/gpu_baremetal_cluster.py +2 -2
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +9 -0
- gcore/types/cloud/inference/__init__.py +5 -0
- gcore/types/cloud/inference/api_key_create_params.py +21 -0
- gcore/types/cloud/inference/api_key_list_params.py +21 -0
- gcore/types/cloud/inference/api_key_update_params.py +16 -0
- gcore/types/cloud/inference/inference_api_key.py +24 -0
- gcore/types/cloud/inference/inference_api_key_create.py +27 -0
- gcore/types/cloud/load_balancer_create_params.py +14 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +14 -3
- gcore/types/cloud/load_balancers/pool_update_params.py +14 -3
- gcore/types/cloud/load_balancers/pools/member_add_params.py +14 -3
- gcore/types/cloud/member.py +12 -4
- gcore/types/cloud/quota_get_all_response.py +24 -2
- gcore/types/cloud/quota_get_by_region_response.py +24 -2
- gcore/types/cloud/quotas/request_create_params.py +12 -1
- gcore/types/cloud/quotas/request_get_response.py +12 -1
- gcore/types/cloud/quotas/request_list_response.py +12 -1
- gcore/types/cloud/usage_report.py +1612 -0
- gcore/types/cloud/usage_report_get_params.py +432 -0
- gcore/types/streaming/__init__.py +143 -0
- gcore/types/streaming/ai_contentmoderation_casm.py +39 -0
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +54 -0
- gcore/types/streaming/ai_contentmoderation_nsfw.py +39 -0
- gcore/types/streaming/ai_contentmoderation_softnudity.py +66 -0
- gcore/types/streaming/ai_contentmoderation_sport.py +39 -0
- gcore/types/streaming/ai_contentmoderation_weapon.py +39 -0
- gcore/types/streaming/ai_task.py +205 -0
- gcore/types/streaming/ai_task_cancel_response.py +12 -0
- gcore/types/streaming/ai_task_create_params.py +168 -0
- gcore/types/streaming/ai_task_create_response.py +10 -0
- gcore/types/streaming/ai_task_get_ai_settings_params.py +27 -0
- gcore/types/streaming/ai_task_get_ai_settings_response.py +12 -0
- gcore/types/streaming/ai_task_get_response.py +313 -0
- gcore/types/streaming/ai_task_list_params.py +50 -0
- gcore/types/streaming/broadcast.py +71 -0
- gcore/types/streaming/broadcast_create_params.py +76 -0
- gcore/types/streaming/broadcast_list_params.py +12 -0
- gcore/types/streaming/broadcast_spectators_count.py +12 -0
- gcore/types/streaming/broadcast_update_params.py +76 -0
- gcore/types/streaming/clip.py +78 -0
- gcore/types/streaming/create_video_param.py +214 -0
- gcore/types/streaming/direct_upload_parameters.py +33 -0
- gcore/types/streaming/directories_tree.py +19 -0
- gcore/types/streaming/directory_base.py +31 -0
- gcore/types/streaming/directory_create_params.py +15 -0
- gcore/types/streaming/directory_get_response.py +19 -0
- gcore/types/streaming/directory_item.py +13 -0
- gcore/types/streaming/directory_update_params.py +18 -0
- gcore/types/streaming/directory_video.py +13 -0
- gcore/types/streaming/ffprobes.py +25 -0
- gcore/types/streaming/max_stream_series.py +21 -0
- gcore/types/streaming/meet_series.py +23 -0
- gcore/types/streaming/player.py +114 -0
- gcore/types/streaming/player_create_params.py +18 -0
- gcore/types/streaming/player_list_params.py +12 -0
- gcore/types/streaming/player_param.py +114 -0
- gcore/types/streaming/player_update_params.py +18 -0
- gcore/types/streaming/playlist.py +102 -0
- gcore/types/streaming/playlist_create.py +12 -0
- gcore/types/streaming/playlist_create_params.py +102 -0
- gcore/types/streaming/playlist_list_params.py +12 -0
- gcore/types/streaming/playlist_list_videos_response.py +10 -0
- gcore/types/streaming/playlist_update_params.py +102 -0
- gcore/types/streaming/playlist_video.py +215 -0
- gcore/types/streaming/popular_videos.py +17 -0
- gcore/types/streaming/quality_set_set_default_params.py +23 -0
- gcore/types/streaming/quality_sets.py +57 -0
- gcore/types/streaming/restream.py +37 -0
- gcore/types/streaming/restream_create_params.py +41 -0
- gcore/types/streaming/restream_list_params.py +12 -0
- gcore/types/streaming/restream_update_params.py +41 -0
- gcore/types/streaming/statistic_get_ffprobes_params.py +22 -0
- gcore/types/streaming/statistic_get_live_unique_viewers_params.py +26 -0
- gcore/types/streaming/statistic_get_live_unique_viewers_response.py +25 -0
- gcore/types/streaming/statistic_get_live_watch_time_cdn_params.py +32 -0
- gcore/types/streaming/statistic_get_live_watch_time_total_cdn_params.py +30 -0
- gcore/types/streaming/statistic_get_max_streams_series_params.py +20 -0
- gcore/types/streaming/statistic_get_meet_series_params.py +20 -0
- gcore/types/streaming/statistic_get_popular_videos_params.py +15 -0
- gcore/types/streaming/statistic_get_storage_series_params.py +20 -0
- gcore/types/streaming/statistic_get_stream_series_params.py +20 -0
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +27 -0
- gcore/types/streaming/statistic_get_unique_viewers_params.py +34 -0
- gcore/types/streaming/statistic_get_views_by_browsers_params.py +15 -0
- gcore/types/streaming/statistic_get_views_by_country_params.py +15 -0
- gcore/types/streaming/statistic_get_views_by_hostname_params.py +15 -0
- gcore/types/streaming/statistic_get_views_by_operating_system_params.py +15 -0
- gcore/types/streaming/statistic_get_views_by_referer_params.py +15 -0
- gcore/types/streaming/statistic_get_views_by_region_params.py +15 -0
- gcore/types/streaming/statistic_get_views_heatmap_params.py +21 -0
- gcore/types/streaming/statistic_get_views_params.py +34 -0
- gcore/types/streaming/statistic_get_vod_storage_volume_params.py +17 -0
- gcore/types/streaming/statistic_get_vod_transcoding_duration_params.py +17 -0
- gcore/types/streaming/statistic_get_vod_unique_viewers_cdn_params.py +26 -0
- gcore/types/streaming/statistic_get_vod_watch_time_cdn_params.py +32 -0
- gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_params.py +30 -0
- gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_response.py +22 -0
- gcore/types/streaming/storage_series.py +23 -0
- gcore/types/streaming/stream.py +420 -0
- gcore/types/streaming/stream_create_clip_params.py +48 -0
- gcore/types/streaming/stream_create_params.py +165 -0
- gcore/types/streaming/stream_list_clips_response.py +10 -0
- gcore/types/streaming/stream_list_params.py +18 -0
- gcore/types/streaming/stream_series.py +21 -0
- gcore/types/streaming/stream_start_recording_response.py +76 -0
- gcore/types/streaming/stream_update_params.py +169 -0
- gcore/types/streaming/streams/__init__.py +11 -0
- gcore/types/streaming/streams/overlay.py +43 -0
- gcore/types/streaming/streams/overlay_create_params.py +36 -0
- gcore/types/streaming/streams/overlay_create_response.py +10 -0
- gcore/types/streaming/streams/overlay_list_response.py +10 -0
- gcore/types/streaming/streams/overlay_update_multiple_params.py +39 -0
- gcore/types/streaming/streams/overlay_update_multiple_response.py +10 -0
- gcore/types/streaming/streams/overlay_update_params.py +33 -0
- gcore/types/streaming/subtitle.py +12 -0
- gcore/types/streaming/subtitle_base.py +18 -0
- gcore/types/streaming/subtitle_base_param.py +18 -0
- gcore/types/streaming/unique_viewers.py +35 -0
- gcore/types/streaming/unique_viewers_cdn.py +17 -0
- gcore/types/streaming/video.py +444 -0
- gcore/types/streaming/video_create_multiple_params.py +28 -0
- gcore/types/streaming/video_create_multiple_response.py +10 -0
- gcore/types/streaming/video_create_params.py +13 -0
- gcore/types/streaming/video_create_response.py +10 -0
- gcore/types/streaming/video_list_names_params.py +13 -0
- gcore/types/streaming/video_list_params.py +59 -0
- gcore/types/streaming/video_update_params.py +214 -0
- gcore/types/streaming/videos/__init__.py +7 -0
- gcore/types/streaming/videos/subtitle_create_params.py +17 -0
- gcore/types/streaming/videos/subtitle_list_response.py +10 -0
- gcore/types/streaming/videos/subtitle_update_params.py +20 -0
- gcore/types/streaming/views.py +35 -0
- gcore/types/streaming/views_by_browser.py +17 -0
- gcore/types/streaming/views_by_country.py +19 -0
- gcore/types/streaming/views_by_hostname.py +17 -0
- gcore/types/streaming/views_by_operating_system.py +17 -0
- gcore/types/streaming/views_by_referer.py +17 -0
- gcore/types/streaming/views_by_region.py +19 -0
- gcore/types/streaming/views_heatmap.py +19 -0
- gcore/types/streaming/vod_statistics_series.py +21 -0
- gcore/types/streaming/vod_total_stream_duration_series.py +22 -0
- gcore/types/waap/domains/custom_rule_create_params.py +4 -4
- gcore/types/waap/domains/custom_rule_update_params.py +4 -4
- gcore/types/waap/ip_info_get_blocked_requests_params.py +5 -1
- gcore/types/waap/ip_info_get_counts_params.py +2 -1
- gcore/types/waap/ip_info_get_top_sessions_params.py +5 -1
- gcore/types/waap/ip_info_get_top_urls_params.py +5 -1
- gcore/types/waap/ip_info_get_top_user_agents_params.py +5 -1
- gcore/types/waap/waap_custom_rule.py +4 -4
- {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/METADATA +2 -3
- {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/RECORD +200 -43
- {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/WHEEL +0 -0
- {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["StatisticGetStreamSeriesParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetStreamSeriesParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
15
|
+
|
|
16
|
+
to: Required[str]
|
|
17
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
18
|
+
|
|
19
|
+
granularity: Literal["1m", "5m", "15m", "1h", "1d"]
|
|
20
|
+
"""specifies the time interval for grouping data"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetUniqueViewersCdnParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetUniqueViewersCdnParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Format is date time in ISO 8601."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Format is date time in ISO 8601."""
|
|
16
|
+
|
|
17
|
+
id: str
|
|
18
|
+
"""Filter by entity's id.
|
|
19
|
+
|
|
20
|
+
Put ID of a Live stream, VOD or a playlist to be calculated. If the value is
|
|
21
|
+
omitted, then the calculation is done for all videos/streams of the specified
|
|
22
|
+
type. When using this "id" parameter, be sure to specify the "type" parameter
|
|
23
|
+
too. If you do not specify a type, the "id" will be ignored.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
type: Literal["live", "vod", "playlist"]
|
|
27
|
+
"""Filter by entity's type"""
|
|
@@ -0,0 +1,34 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["StatisticGetUniqueViewersParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatisticGetUniqueViewersParams(TypedDict, total=False):
|
|
12
|
+
date_from: Required[str]
|
|
13
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
14
|
+
|
|
15
|
+
date_to: Required[str]
|
|
16
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
17
|
+
|
|
18
|
+
id: str
|
|
19
|
+
"""filter by entity's id"""
|
|
20
|
+
|
|
21
|
+
country: str
|
|
22
|
+
"""filter by country"""
|
|
23
|
+
|
|
24
|
+
event: Literal["init", "start", "watch"]
|
|
25
|
+
"""filter by event's name"""
|
|
26
|
+
|
|
27
|
+
group: List[Literal["date", "host", "os", "browser", "platform", "ip", "country", "event", "id"]]
|
|
28
|
+
"""group=1,2,4 OR group=1&group=2&group=3"""
|
|
29
|
+
|
|
30
|
+
host: str
|
|
31
|
+
"""filter by host"""
|
|
32
|
+
|
|
33
|
+
type: Literal["live", "vod", "playlist"]
|
|
34
|
+
"""filter by entity's type"""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByBrowsersParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByBrowsersParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByCountryParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByCountryParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByHostnameParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByHostnameParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByOperatingSystemParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByOperatingSystemParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByRefererParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByRefererParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,15 @@
|
|
|
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, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsByRegionParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsByRegionParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StatisticGetViewsHeatmapParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatisticGetViewsHeatmapParams(TypedDict, total=False):
|
|
11
|
+
date_from: Required[str]
|
|
12
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
13
|
+
|
|
14
|
+
date_to: Required[str]
|
|
15
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
16
|
+
|
|
17
|
+
stream_id: Required[str]
|
|
18
|
+
"""video streaming ID"""
|
|
19
|
+
|
|
20
|
+
type: Required[Literal["live", "vod", "playlist"]]
|
|
21
|
+
"""entity's type"""
|
|
@@ -0,0 +1,34 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["StatisticGetViewsParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatisticGetViewsParams(TypedDict, total=False):
|
|
12
|
+
date_from: Required[str]
|
|
13
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
14
|
+
|
|
15
|
+
date_to: Required[str]
|
|
16
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
17
|
+
|
|
18
|
+
id: str
|
|
19
|
+
"""filter by entity's id"""
|
|
20
|
+
|
|
21
|
+
country: str
|
|
22
|
+
"""filter by country"""
|
|
23
|
+
|
|
24
|
+
event: Literal["init", "start", "watch"]
|
|
25
|
+
"""filter by event's name"""
|
|
26
|
+
|
|
27
|
+
group: List[Literal["host", "os", "browser", "platform", "ip", "country", "event", "id"]]
|
|
28
|
+
"""group=1,2,4 OR group=1&group=2&group=3"""
|
|
29
|
+
|
|
30
|
+
host: str
|
|
31
|
+
"""filter by host"""
|
|
32
|
+
|
|
33
|
+
type: Literal["live", "vod", "playlist"]
|
|
34
|
+
"""filter by entity's type"""
|
|
@@ -0,0 +1,17 @@
|
|
|
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__ = ["StatisticGetVodStorageVolumeParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetVodStorageVolumeParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
15
|
+
|
|
16
|
+
to: Required[str]
|
|
17
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,17 @@
|
|
|
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__ = ["StatisticGetVodTranscodingDurationParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetVodTranscodingDurationParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""Start of time frame. Datetime in ISO 8601 format."""
|
|
15
|
+
|
|
16
|
+
to: Required[str]
|
|
17
|
+
"""End of time frame. Datetime in ISO 8601 format."""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["StatisticGetVodUniqueViewersCdnParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetVodUniqueViewersCdnParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""Start of time frame. Format is date time in ISO 8601"""
|
|
15
|
+
|
|
16
|
+
to: Required[str]
|
|
17
|
+
"""End of time frame. Format is date time in ISO 8601"""
|
|
18
|
+
|
|
19
|
+
client_user_id: int
|
|
20
|
+
"""Filter by user "id" """
|
|
21
|
+
|
|
22
|
+
granularity: Literal["1m", "5m", "15m", "1h", "1d"]
|
|
23
|
+
"""Specifies the time interval for grouping data"""
|
|
24
|
+
|
|
25
|
+
slug: str
|
|
26
|
+
"""Filter by video "slug" """
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["StatisticGetVodWatchTimeCdnParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetVodWatchTimeCdnParams(TypedDict, total=False):
|
|
13
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
14
|
+
"""Start of the time period for counting minutes of watching.
|
|
15
|
+
|
|
16
|
+
Format is date time in ISO 8601.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
client_user_id: int
|
|
20
|
+
"""Filter by field "`client_user_id`" """
|
|
21
|
+
|
|
22
|
+
granularity: Literal["1m", "5m", "15m", "1h", "1d", "1mo"]
|
|
23
|
+
"""Data is grouped by the specified time interval"""
|
|
24
|
+
|
|
25
|
+
slug: str
|
|
26
|
+
"""Filter by video's slug"""
|
|
27
|
+
|
|
28
|
+
to: str
|
|
29
|
+
"""End of time frame.
|
|
30
|
+
|
|
31
|
+
Datetime in ISO 8601 format. If omitted, then the current time is taken.
|
|
32
|
+
"""
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["StatisticGetVodWatchTimeTotalCdnParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatisticGetVodWatchTimeTotalCdnParams(TypedDict, total=False):
|
|
13
|
+
client_user_id: int
|
|
14
|
+
"""Filter by field "`client_user_id`" """
|
|
15
|
+
|
|
16
|
+
from_: Annotated[str, PropertyInfo(alias="from")]
|
|
17
|
+
"""Start of the time period for counting minutes of watching.
|
|
18
|
+
|
|
19
|
+
Format is date time in ISO 8601. If omitted, the earliest start time for viewing
|
|
20
|
+
is taken
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
slug: str
|
|
24
|
+
"""Filter by video's slug"""
|
|
25
|
+
|
|
26
|
+
to: str
|
|
27
|
+
"""End of time frame.
|
|
28
|
+
|
|
29
|
+
Datetime in ISO 8601 format. If omitted, then the current time is taken
|
|
30
|
+
"""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["StatisticGetVodWatchTimeTotalCdnResponse", "StatisticGetVodWatchTimeTotalCdnResponseItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatisticGetVodWatchTimeTotalCdnResponseItem(BaseModel):
|
|
12
|
+
client: int
|
|
13
|
+
|
|
14
|
+
duration: int
|
|
15
|
+
"""count of minutes"""
|
|
16
|
+
|
|
17
|
+
client_user_id: Optional[int] = None
|
|
18
|
+
|
|
19
|
+
slug: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
StatisticGetVodWatchTimeTotalCdnResponse: TypeAlias = List[StatisticGetVodWatchTimeTotalCdnResponseItem]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["StorageSeries", "StorageSeryItem", "StorageSeryItemMetrics"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StorageSeryItemMetrics(BaseModel):
|
|
12
|
+
max_volume_usage: List[int]
|
|
13
|
+
|
|
14
|
+
storage: List[List[int]]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class StorageSeryItem(BaseModel):
|
|
18
|
+
client: int
|
|
19
|
+
|
|
20
|
+
metrics: StorageSeryItemMetrics
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
StorageSeries: TypeAlias = List[StorageSeryItem]
|