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,390 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .players import (
|
|
6
|
+
PlayersResource,
|
|
7
|
+
AsyncPlayersResource,
|
|
8
|
+
PlayersResourceWithRawResponse,
|
|
9
|
+
AsyncPlayersResourceWithRawResponse,
|
|
10
|
+
PlayersResourceWithStreamingResponse,
|
|
11
|
+
AsyncPlayersResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
13
|
+
from .ai_tasks import (
|
|
14
|
+
AITasksResource,
|
|
15
|
+
AsyncAITasksResource,
|
|
16
|
+
AITasksResourceWithRawResponse,
|
|
17
|
+
AsyncAITasksResourceWithRawResponse,
|
|
18
|
+
AITasksResourceWithStreamingResponse,
|
|
19
|
+
AsyncAITasksResourceWithStreamingResponse,
|
|
20
|
+
)
|
|
21
|
+
from ..._compat import cached_property
|
|
22
|
+
from .playlists import (
|
|
23
|
+
PlaylistsResource,
|
|
24
|
+
AsyncPlaylistsResource,
|
|
25
|
+
PlaylistsResourceWithRawResponse,
|
|
26
|
+
AsyncPlaylistsResourceWithRawResponse,
|
|
27
|
+
PlaylistsResourceWithStreamingResponse,
|
|
28
|
+
AsyncPlaylistsResourceWithStreamingResponse,
|
|
29
|
+
)
|
|
30
|
+
from .restreams import (
|
|
31
|
+
RestreamsResource,
|
|
32
|
+
AsyncRestreamsResource,
|
|
33
|
+
RestreamsResourceWithRawResponse,
|
|
34
|
+
AsyncRestreamsResourceWithRawResponse,
|
|
35
|
+
RestreamsResourceWithStreamingResponse,
|
|
36
|
+
AsyncRestreamsResourceWithStreamingResponse,
|
|
37
|
+
)
|
|
38
|
+
from .broadcasts import (
|
|
39
|
+
BroadcastsResource,
|
|
40
|
+
AsyncBroadcastsResource,
|
|
41
|
+
BroadcastsResourceWithRawResponse,
|
|
42
|
+
AsyncBroadcastsResourceWithRawResponse,
|
|
43
|
+
BroadcastsResourceWithStreamingResponse,
|
|
44
|
+
AsyncBroadcastsResourceWithStreamingResponse,
|
|
45
|
+
)
|
|
46
|
+
from .statistics import (
|
|
47
|
+
StatisticsResource,
|
|
48
|
+
AsyncStatisticsResource,
|
|
49
|
+
StatisticsResourceWithRawResponse,
|
|
50
|
+
AsyncStatisticsResourceWithRawResponse,
|
|
51
|
+
StatisticsResourceWithStreamingResponse,
|
|
52
|
+
AsyncStatisticsResourceWithStreamingResponse,
|
|
53
|
+
)
|
|
54
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
55
|
+
from .directories import (
|
|
56
|
+
DirectoriesResource,
|
|
57
|
+
AsyncDirectoriesResource,
|
|
58
|
+
DirectoriesResourceWithRawResponse,
|
|
59
|
+
AsyncDirectoriesResourceWithRawResponse,
|
|
60
|
+
DirectoriesResourceWithStreamingResponse,
|
|
61
|
+
AsyncDirectoriesResourceWithStreamingResponse,
|
|
62
|
+
)
|
|
63
|
+
from .quality_sets import (
|
|
64
|
+
QualitySetsResource,
|
|
65
|
+
AsyncQualitySetsResource,
|
|
66
|
+
QualitySetsResourceWithRawResponse,
|
|
67
|
+
AsyncQualitySetsResourceWithRawResponse,
|
|
68
|
+
QualitySetsResourceWithStreamingResponse,
|
|
69
|
+
AsyncQualitySetsResourceWithStreamingResponse,
|
|
70
|
+
)
|
|
71
|
+
from .videos.videos import (
|
|
72
|
+
VideosResource,
|
|
73
|
+
AsyncVideosResource,
|
|
74
|
+
VideosResourceWithRawResponse,
|
|
75
|
+
AsyncVideosResourceWithRawResponse,
|
|
76
|
+
VideosResourceWithStreamingResponse,
|
|
77
|
+
AsyncVideosResourceWithStreamingResponse,
|
|
78
|
+
)
|
|
79
|
+
from .streams.streams import (
|
|
80
|
+
StreamsResource,
|
|
81
|
+
AsyncStreamsResource,
|
|
82
|
+
StreamsResourceWithRawResponse,
|
|
83
|
+
AsyncStreamsResourceWithRawResponse,
|
|
84
|
+
StreamsResourceWithStreamingResponse,
|
|
85
|
+
AsyncStreamsResourceWithStreamingResponse,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
__all__ = ["StreamingResource", "AsyncStreamingResource"]
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class StreamingResource(SyncAPIResource):
|
|
92
|
+
@cached_property
|
|
93
|
+
def ai_tasks(self) -> AITasksResource:
|
|
94
|
+
return AITasksResource(self._client)
|
|
95
|
+
|
|
96
|
+
@cached_property
|
|
97
|
+
def broadcasts(self) -> BroadcastsResource:
|
|
98
|
+
return BroadcastsResource(self._client)
|
|
99
|
+
|
|
100
|
+
@cached_property
|
|
101
|
+
def directories(self) -> DirectoriesResource:
|
|
102
|
+
return DirectoriesResource(self._client)
|
|
103
|
+
|
|
104
|
+
@cached_property
|
|
105
|
+
def players(self) -> PlayersResource:
|
|
106
|
+
return PlayersResource(self._client)
|
|
107
|
+
|
|
108
|
+
@cached_property
|
|
109
|
+
def quality_sets(self) -> QualitySetsResource:
|
|
110
|
+
return QualitySetsResource(self._client)
|
|
111
|
+
|
|
112
|
+
@cached_property
|
|
113
|
+
def playlists(self) -> PlaylistsResource:
|
|
114
|
+
return PlaylistsResource(self._client)
|
|
115
|
+
|
|
116
|
+
@cached_property
|
|
117
|
+
def videos(self) -> VideosResource:
|
|
118
|
+
return VideosResource(self._client)
|
|
119
|
+
|
|
120
|
+
@cached_property
|
|
121
|
+
def streams(self) -> StreamsResource:
|
|
122
|
+
return StreamsResource(self._client)
|
|
123
|
+
|
|
124
|
+
@cached_property
|
|
125
|
+
def restreams(self) -> RestreamsResource:
|
|
126
|
+
return RestreamsResource(self._client)
|
|
127
|
+
|
|
128
|
+
@cached_property
|
|
129
|
+
def statistics(self) -> StatisticsResource:
|
|
130
|
+
return StatisticsResource(self._client)
|
|
131
|
+
|
|
132
|
+
@cached_property
|
|
133
|
+
def with_raw_response(self) -> StreamingResourceWithRawResponse:
|
|
134
|
+
"""
|
|
135
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
136
|
+
the raw response object instead of the parsed content.
|
|
137
|
+
|
|
138
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
139
|
+
"""
|
|
140
|
+
return StreamingResourceWithRawResponse(self)
|
|
141
|
+
|
|
142
|
+
@cached_property
|
|
143
|
+
def with_streaming_response(self) -> StreamingResourceWithStreamingResponse:
|
|
144
|
+
"""
|
|
145
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
146
|
+
|
|
147
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
148
|
+
"""
|
|
149
|
+
return StreamingResourceWithStreamingResponse(self)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
class AsyncStreamingResource(AsyncAPIResource):
|
|
153
|
+
@cached_property
|
|
154
|
+
def ai_tasks(self) -> AsyncAITasksResource:
|
|
155
|
+
return AsyncAITasksResource(self._client)
|
|
156
|
+
|
|
157
|
+
@cached_property
|
|
158
|
+
def broadcasts(self) -> AsyncBroadcastsResource:
|
|
159
|
+
return AsyncBroadcastsResource(self._client)
|
|
160
|
+
|
|
161
|
+
@cached_property
|
|
162
|
+
def directories(self) -> AsyncDirectoriesResource:
|
|
163
|
+
return AsyncDirectoriesResource(self._client)
|
|
164
|
+
|
|
165
|
+
@cached_property
|
|
166
|
+
def players(self) -> AsyncPlayersResource:
|
|
167
|
+
return AsyncPlayersResource(self._client)
|
|
168
|
+
|
|
169
|
+
@cached_property
|
|
170
|
+
def quality_sets(self) -> AsyncQualitySetsResource:
|
|
171
|
+
return AsyncQualitySetsResource(self._client)
|
|
172
|
+
|
|
173
|
+
@cached_property
|
|
174
|
+
def playlists(self) -> AsyncPlaylistsResource:
|
|
175
|
+
return AsyncPlaylistsResource(self._client)
|
|
176
|
+
|
|
177
|
+
@cached_property
|
|
178
|
+
def videos(self) -> AsyncVideosResource:
|
|
179
|
+
return AsyncVideosResource(self._client)
|
|
180
|
+
|
|
181
|
+
@cached_property
|
|
182
|
+
def streams(self) -> AsyncStreamsResource:
|
|
183
|
+
return AsyncStreamsResource(self._client)
|
|
184
|
+
|
|
185
|
+
@cached_property
|
|
186
|
+
def restreams(self) -> AsyncRestreamsResource:
|
|
187
|
+
return AsyncRestreamsResource(self._client)
|
|
188
|
+
|
|
189
|
+
@cached_property
|
|
190
|
+
def statistics(self) -> AsyncStatisticsResource:
|
|
191
|
+
return AsyncStatisticsResource(self._client)
|
|
192
|
+
|
|
193
|
+
@cached_property
|
|
194
|
+
def with_raw_response(self) -> AsyncStreamingResourceWithRawResponse:
|
|
195
|
+
"""
|
|
196
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
197
|
+
the raw response object instead of the parsed content.
|
|
198
|
+
|
|
199
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
200
|
+
"""
|
|
201
|
+
return AsyncStreamingResourceWithRawResponse(self)
|
|
202
|
+
|
|
203
|
+
@cached_property
|
|
204
|
+
def with_streaming_response(self) -> AsyncStreamingResourceWithStreamingResponse:
|
|
205
|
+
"""
|
|
206
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
207
|
+
|
|
208
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
209
|
+
"""
|
|
210
|
+
return AsyncStreamingResourceWithStreamingResponse(self)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
class StreamingResourceWithRawResponse:
|
|
214
|
+
def __init__(self, streaming: StreamingResource) -> None:
|
|
215
|
+
self._streaming = streaming
|
|
216
|
+
|
|
217
|
+
@cached_property
|
|
218
|
+
def ai_tasks(self) -> AITasksResourceWithRawResponse:
|
|
219
|
+
return AITasksResourceWithRawResponse(self._streaming.ai_tasks)
|
|
220
|
+
|
|
221
|
+
@cached_property
|
|
222
|
+
def broadcasts(self) -> BroadcastsResourceWithRawResponse:
|
|
223
|
+
return BroadcastsResourceWithRawResponse(self._streaming.broadcasts)
|
|
224
|
+
|
|
225
|
+
@cached_property
|
|
226
|
+
def directories(self) -> DirectoriesResourceWithRawResponse:
|
|
227
|
+
return DirectoriesResourceWithRawResponse(self._streaming.directories)
|
|
228
|
+
|
|
229
|
+
@cached_property
|
|
230
|
+
def players(self) -> PlayersResourceWithRawResponse:
|
|
231
|
+
return PlayersResourceWithRawResponse(self._streaming.players)
|
|
232
|
+
|
|
233
|
+
@cached_property
|
|
234
|
+
def quality_sets(self) -> QualitySetsResourceWithRawResponse:
|
|
235
|
+
return QualitySetsResourceWithRawResponse(self._streaming.quality_sets)
|
|
236
|
+
|
|
237
|
+
@cached_property
|
|
238
|
+
def playlists(self) -> PlaylistsResourceWithRawResponse:
|
|
239
|
+
return PlaylistsResourceWithRawResponse(self._streaming.playlists)
|
|
240
|
+
|
|
241
|
+
@cached_property
|
|
242
|
+
def videos(self) -> VideosResourceWithRawResponse:
|
|
243
|
+
return VideosResourceWithRawResponse(self._streaming.videos)
|
|
244
|
+
|
|
245
|
+
@cached_property
|
|
246
|
+
def streams(self) -> StreamsResourceWithRawResponse:
|
|
247
|
+
return StreamsResourceWithRawResponse(self._streaming.streams)
|
|
248
|
+
|
|
249
|
+
@cached_property
|
|
250
|
+
def restreams(self) -> RestreamsResourceWithRawResponse:
|
|
251
|
+
return RestreamsResourceWithRawResponse(self._streaming.restreams)
|
|
252
|
+
|
|
253
|
+
@cached_property
|
|
254
|
+
def statistics(self) -> StatisticsResourceWithRawResponse:
|
|
255
|
+
return StatisticsResourceWithRawResponse(self._streaming.statistics)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class AsyncStreamingResourceWithRawResponse:
|
|
259
|
+
def __init__(self, streaming: AsyncStreamingResource) -> None:
|
|
260
|
+
self._streaming = streaming
|
|
261
|
+
|
|
262
|
+
@cached_property
|
|
263
|
+
def ai_tasks(self) -> AsyncAITasksResourceWithRawResponse:
|
|
264
|
+
return AsyncAITasksResourceWithRawResponse(self._streaming.ai_tasks)
|
|
265
|
+
|
|
266
|
+
@cached_property
|
|
267
|
+
def broadcasts(self) -> AsyncBroadcastsResourceWithRawResponse:
|
|
268
|
+
return AsyncBroadcastsResourceWithRawResponse(self._streaming.broadcasts)
|
|
269
|
+
|
|
270
|
+
@cached_property
|
|
271
|
+
def directories(self) -> AsyncDirectoriesResourceWithRawResponse:
|
|
272
|
+
return AsyncDirectoriesResourceWithRawResponse(self._streaming.directories)
|
|
273
|
+
|
|
274
|
+
@cached_property
|
|
275
|
+
def players(self) -> AsyncPlayersResourceWithRawResponse:
|
|
276
|
+
return AsyncPlayersResourceWithRawResponse(self._streaming.players)
|
|
277
|
+
|
|
278
|
+
@cached_property
|
|
279
|
+
def quality_sets(self) -> AsyncQualitySetsResourceWithRawResponse:
|
|
280
|
+
return AsyncQualitySetsResourceWithRawResponse(self._streaming.quality_sets)
|
|
281
|
+
|
|
282
|
+
@cached_property
|
|
283
|
+
def playlists(self) -> AsyncPlaylistsResourceWithRawResponse:
|
|
284
|
+
return AsyncPlaylistsResourceWithRawResponse(self._streaming.playlists)
|
|
285
|
+
|
|
286
|
+
@cached_property
|
|
287
|
+
def videos(self) -> AsyncVideosResourceWithRawResponse:
|
|
288
|
+
return AsyncVideosResourceWithRawResponse(self._streaming.videos)
|
|
289
|
+
|
|
290
|
+
@cached_property
|
|
291
|
+
def streams(self) -> AsyncStreamsResourceWithRawResponse:
|
|
292
|
+
return AsyncStreamsResourceWithRawResponse(self._streaming.streams)
|
|
293
|
+
|
|
294
|
+
@cached_property
|
|
295
|
+
def restreams(self) -> AsyncRestreamsResourceWithRawResponse:
|
|
296
|
+
return AsyncRestreamsResourceWithRawResponse(self._streaming.restreams)
|
|
297
|
+
|
|
298
|
+
@cached_property
|
|
299
|
+
def statistics(self) -> AsyncStatisticsResourceWithRawResponse:
|
|
300
|
+
return AsyncStatisticsResourceWithRawResponse(self._streaming.statistics)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
class StreamingResourceWithStreamingResponse:
|
|
304
|
+
def __init__(self, streaming: StreamingResource) -> None:
|
|
305
|
+
self._streaming = streaming
|
|
306
|
+
|
|
307
|
+
@cached_property
|
|
308
|
+
def ai_tasks(self) -> AITasksResourceWithStreamingResponse:
|
|
309
|
+
return AITasksResourceWithStreamingResponse(self._streaming.ai_tasks)
|
|
310
|
+
|
|
311
|
+
@cached_property
|
|
312
|
+
def broadcasts(self) -> BroadcastsResourceWithStreamingResponse:
|
|
313
|
+
return BroadcastsResourceWithStreamingResponse(self._streaming.broadcasts)
|
|
314
|
+
|
|
315
|
+
@cached_property
|
|
316
|
+
def directories(self) -> DirectoriesResourceWithStreamingResponse:
|
|
317
|
+
return DirectoriesResourceWithStreamingResponse(self._streaming.directories)
|
|
318
|
+
|
|
319
|
+
@cached_property
|
|
320
|
+
def players(self) -> PlayersResourceWithStreamingResponse:
|
|
321
|
+
return PlayersResourceWithStreamingResponse(self._streaming.players)
|
|
322
|
+
|
|
323
|
+
@cached_property
|
|
324
|
+
def quality_sets(self) -> QualitySetsResourceWithStreamingResponse:
|
|
325
|
+
return QualitySetsResourceWithStreamingResponse(self._streaming.quality_sets)
|
|
326
|
+
|
|
327
|
+
@cached_property
|
|
328
|
+
def playlists(self) -> PlaylistsResourceWithStreamingResponse:
|
|
329
|
+
return PlaylistsResourceWithStreamingResponse(self._streaming.playlists)
|
|
330
|
+
|
|
331
|
+
@cached_property
|
|
332
|
+
def videos(self) -> VideosResourceWithStreamingResponse:
|
|
333
|
+
return VideosResourceWithStreamingResponse(self._streaming.videos)
|
|
334
|
+
|
|
335
|
+
@cached_property
|
|
336
|
+
def streams(self) -> StreamsResourceWithStreamingResponse:
|
|
337
|
+
return StreamsResourceWithStreamingResponse(self._streaming.streams)
|
|
338
|
+
|
|
339
|
+
@cached_property
|
|
340
|
+
def restreams(self) -> RestreamsResourceWithStreamingResponse:
|
|
341
|
+
return RestreamsResourceWithStreamingResponse(self._streaming.restreams)
|
|
342
|
+
|
|
343
|
+
@cached_property
|
|
344
|
+
def statistics(self) -> StatisticsResourceWithStreamingResponse:
|
|
345
|
+
return StatisticsResourceWithStreamingResponse(self._streaming.statistics)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
class AsyncStreamingResourceWithStreamingResponse:
|
|
349
|
+
def __init__(self, streaming: AsyncStreamingResource) -> None:
|
|
350
|
+
self._streaming = streaming
|
|
351
|
+
|
|
352
|
+
@cached_property
|
|
353
|
+
def ai_tasks(self) -> AsyncAITasksResourceWithStreamingResponse:
|
|
354
|
+
return AsyncAITasksResourceWithStreamingResponse(self._streaming.ai_tasks)
|
|
355
|
+
|
|
356
|
+
@cached_property
|
|
357
|
+
def broadcasts(self) -> AsyncBroadcastsResourceWithStreamingResponse:
|
|
358
|
+
return AsyncBroadcastsResourceWithStreamingResponse(self._streaming.broadcasts)
|
|
359
|
+
|
|
360
|
+
@cached_property
|
|
361
|
+
def directories(self) -> AsyncDirectoriesResourceWithStreamingResponse:
|
|
362
|
+
return AsyncDirectoriesResourceWithStreamingResponse(self._streaming.directories)
|
|
363
|
+
|
|
364
|
+
@cached_property
|
|
365
|
+
def players(self) -> AsyncPlayersResourceWithStreamingResponse:
|
|
366
|
+
return AsyncPlayersResourceWithStreamingResponse(self._streaming.players)
|
|
367
|
+
|
|
368
|
+
@cached_property
|
|
369
|
+
def quality_sets(self) -> AsyncQualitySetsResourceWithStreamingResponse:
|
|
370
|
+
return AsyncQualitySetsResourceWithStreamingResponse(self._streaming.quality_sets)
|
|
371
|
+
|
|
372
|
+
@cached_property
|
|
373
|
+
def playlists(self) -> AsyncPlaylistsResourceWithStreamingResponse:
|
|
374
|
+
return AsyncPlaylistsResourceWithStreamingResponse(self._streaming.playlists)
|
|
375
|
+
|
|
376
|
+
@cached_property
|
|
377
|
+
def videos(self) -> AsyncVideosResourceWithStreamingResponse:
|
|
378
|
+
return AsyncVideosResourceWithStreamingResponse(self._streaming.videos)
|
|
379
|
+
|
|
380
|
+
@cached_property
|
|
381
|
+
def streams(self) -> AsyncStreamsResourceWithStreamingResponse:
|
|
382
|
+
return AsyncStreamsResourceWithStreamingResponse(self._streaming.streams)
|
|
383
|
+
|
|
384
|
+
@cached_property
|
|
385
|
+
def restreams(self) -> AsyncRestreamsResourceWithStreamingResponse:
|
|
386
|
+
return AsyncRestreamsResourceWithStreamingResponse(self._streaming.restreams)
|
|
387
|
+
|
|
388
|
+
@cached_property
|
|
389
|
+
def statistics(self) -> AsyncStatisticsResourceWithStreamingResponse:
|
|
390
|
+
return AsyncStatisticsResourceWithStreamingResponse(self._streaming.statistics)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .streams import (
|
|
4
|
+
StreamsResource,
|
|
5
|
+
AsyncStreamsResource,
|
|
6
|
+
StreamsResourceWithRawResponse,
|
|
7
|
+
AsyncStreamsResourceWithRawResponse,
|
|
8
|
+
StreamsResourceWithStreamingResponse,
|
|
9
|
+
AsyncStreamsResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .overlays import (
|
|
12
|
+
OverlaysResource,
|
|
13
|
+
AsyncOverlaysResource,
|
|
14
|
+
OverlaysResourceWithRawResponse,
|
|
15
|
+
AsyncOverlaysResourceWithRawResponse,
|
|
16
|
+
OverlaysResourceWithStreamingResponse,
|
|
17
|
+
AsyncOverlaysResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"OverlaysResource",
|
|
22
|
+
"AsyncOverlaysResource",
|
|
23
|
+
"OverlaysResourceWithRawResponse",
|
|
24
|
+
"AsyncOverlaysResourceWithRawResponse",
|
|
25
|
+
"OverlaysResourceWithStreamingResponse",
|
|
26
|
+
"AsyncOverlaysResourceWithStreamingResponse",
|
|
27
|
+
"StreamsResource",
|
|
28
|
+
"AsyncStreamsResource",
|
|
29
|
+
"StreamsResourceWithRawResponse",
|
|
30
|
+
"AsyncStreamsResourceWithRawResponse",
|
|
31
|
+
"StreamsResourceWithStreamingResponse",
|
|
32
|
+
"AsyncStreamsResourceWithStreamingResponse",
|
|
33
|
+
]
|