|
| 1 | +# Stream |
| 2 | + |
| 3 | +Types: |
| 4 | + |
| 5 | +```python |
| 6 | +from cloudflare.types.stream import AllowedOrigins, Video |
| 7 | +``` |
| 8 | + |
| 9 | +Methods: |
| 10 | + |
| 11 | +- <code title="post /accounts/{account_id}/stream">client.stream.<a href="./src/cloudflare/resources/stream/stream.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/stream_create_params.py">params</a>) -> None</code> |
| 12 | +- <code title="get /accounts/{account_id}/stream">client.stream.<a href="./src/cloudflare/resources/stream/stream.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/stream_list_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/video.py">SyncSinglePage[Video]</a></code> |
| 13 | +- <code title="delete /accounts/{account_id}/stream/{identifier}">client.stream.<a href="./src/cloudflare/resources/stream/stream.py">delete</a>(identifier, \*, account_id) -> None</code> |
| 14 | +- <code title="post /accounts/{account_id}/stream/{identifier}">client.stream.<a href="./src/cloudflare/resources/stream/stream.py">edit</a>(identifier, \*, account_id, \*\*<a href="src/cloudflare/types/stream/stream_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/video.py">Optional[Video]</a></code> |
| 15 | +- <code title="get /accounts/{account_id}/stream/{identifier}">client.stream.<a href="./src/cloudflare/resources/stream/stream.py">get</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/video.py">Optional[Video]</a></code> |
| 16 | + |
| 17 | +## AudioTracks |
| 18 | + |
| 19 | +Types: |
| 20 | + |
| 21 | +```python |
| 22 | +from cloudflare.types.stream import Audio, AudioTrackDeleteResponse, AudioTrackGetResponse |
| 23 | +``` |
| 24 | + |
| 25 | +Methods: |
| 26 | + |
| 27 | +- <code title="delete /accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}">client.stream.audio_tracks.<a href="./src/cloudflare/resources/stream/audio_tracks.py">delete</a>(audio_identifier, \*, account_id, identifier) -> <a href="./src/cloudflare/types/stream/audio_track_delete_response.py">str</a></code> |
| 28 | +- <code title="post /accounts/{account_id}/stream/{identifier}/audio/copy">client.stream.audio_tracks.<a href="./src/cloudflare/resources/stream/audio_tracks.py">copy</a>(identifier, \*, account_id, \*\*<a href="src/cloudflare/types/stream/audio_track_copy_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/audio.py">Optional[Audio]</a></code> |
| 29 | +- <code title="patch /accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}">client.stream.audio_tracks.<a href="./src/cloudflare/resources/stream/audio_tracks.py">edit</a>(audio_identifier, \*, account_id, identifier, \*\*<a href="src/cloudflare/types/stream/audio_track_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/audio.py">Optional[Audio]</a></code> |
| 30 | +- <code title="get /accounts/{account_id}/stream/{identifier}/audio">client.stream.audio_tracks.<a href="./src/cloudflare/resources/stream/audio_tracks.py">get</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/audio_track_get_response.py">Optional[AudioTrackGetResponse]</a></code> |
| 31 | + |
| 32 | +## Videos |
| 33 | + |
| 34 | +Types: |
| 35 | + |
| 36 | +```python |
| 37 | +from cloudflare.types.stream import VideoStorageUsageResponse |
| 38 | +``` |
| 39 | + |
| 40 | +Methods: |
| 41 | + |
| 42 | +- <code title="get /accounts/{account_id}/stream/storage-usage">client.stream.videos.<a href="./src/cloudflare/resources/stream/videos.py">storage_usage</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/video_storage_usage_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/video_storage_usage_response.py">Optional[VideoStorageUsageResponse]</a></code> |
| 43 | + |
| 44 | +## Clip |
| 45 | + |
| 46 | +Types: |
| 47 | + |
| 48 | +```python |
| 49 | +from cloudflare.types.stream import Clip |
| 50 | +``` |
| 51 | + |
| 52 | +Methods: |
| 53 | + |
| 54 | +- <code title="post /accounts/{account_id}/stream/clip">client.stream.clip.<a href="./src/cloudflare/resources/stream/clip.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/clip_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/video.py">Optional[Video]</a></code> |
| 55 | + |
| 56 | +## Copy |
| 57 | + |
| 58 | +Methods: |
| 59 | + |
| 60 | +- <code title="post /accounts/{account_id}/stream/copy">client.stream.copy.<a href="./src/cloudflare/resources/stream/copy.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/copy_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/video.py">Optional[Video]</a></code> |
| 61 | + |
| 62 | +## DirectUpload |
| 63 | + |
| 64 | +Types: |
| 65 | + |
| 66 | +```python |
| 67 | +from cloudflare.types.stream import DirectUploadCreateResponse |
| 68 | +``` |
| 69 | + |
| 70 | +Methods: |
| 71 | + |
| 72 | +- <code title="post /accounts/{account_id}/stream/direct_upload">client.stream.direct_upload.<a href="./src/cloudflare/resources/stream/direct_upload.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/direct_upload_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/direct_upload_create_response.py">Optional[DirectUploadCreateResponse]</a></code> |
| 73 | + |
| 74 | +## Keys |
| 75 | + |
| 76 | +Types: |
| 77 | + |
| 78 | +```python |
| 79 | +from cloudflare.types.stream import Keys, KeyDeleteResponse, KeyGetResponse |
| 80 | +``` |
| 81 | + |
| 82 | +Methods: |
| 83 | + |
| 84 | +- <code title="post /accounts/{account_id}/stream/keys">client.stream.keys.<a href="./src/cloudflare/resources/stream/keys.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/key_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/keys.py">Optional[Keys]</a></code> |
| 85 | +- <code title="delete /accounts/{account_id}/stream/keys/{identifier}">client.stream.keys.<a href="./src/cloudflare/resources/stream/keys.py">delete</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/key_delete_response.py">str</a></code> |
| 86 | +- <code title="get /accounts/{account_id}/stream/keys">client.stream.keys.<a href="./src/cloudflare/resources/stream/keys.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/stream/key_get_response.py">SyncSinglePage[KeyGetResponse]</a></code> |
| 87 | + |
| 88 | +## LiveInputs |
| 89 | + |
| 90 | +Types: |
| 91 | + |
| 92 | +```python |
| 93 | +from cloudflare.types.stream import LiveInput, LiveInputListResponse |
| 94 | +``` |
| 95 | + |
| 96 | +Methods: |
| 97 | + |
| 98 | +- <code title="post /accounts/{account_id}/stream/live_inputs">client.stream.live_inputs.<a href="./src/cloudflare/resources/stream/live_inputs/live_inputs.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/live_input_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/live_input.py">Optional[LiveInput]</a></code> |
| 99 | +- <code title="put /accounts/{account_id}/stream/live_inputs/{live_input_identifier}">client.stream.live_inputs.<a href="./src/cloudflare/resources/stream/live_inputs/live_inputs.py">update</a>(live_input_identifier, \*, account_id, \*\*<a href="src/cloudflare/types/stream/live_input_update_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/live_input.py">Optional[LiveInput]</a></code> |
| 100 | +- <code title="get /accounts/{account_id}/stream/live_inputs">client.stream.live_inputs.<a href="./src/cloudflare/resources/stream/live_inputs/live_inputs.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/live_input_list_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/live_input_list_response.py">Optional[LiveInputListResponse]</a></code> |
| 101 | +- <code title="delete /accounts/{account_id}/stream/live_inputs/{live_input_identifier}">client.stream.live_inputs.<a href="./src/cloudflare/resources/stream/live_inputs/live_inputs.py">delete</a>(live_input_identifier, \*, account_id) -> None</code> |
| 102 | +- <code title="get /accounts/{account_id}/stream/live_inputs/{live_input_identifier}">client.stream.live_inputs.<a href="./src/cloudflare/resources/stream/live_inputs/live_inputs.py">get</a>(live_input_identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/live_input.py">Optional[LiveInput]</a></code> |
| 103 | + |
| 104 | +### Outputs |
| 105 | + |
| 106 | +Types: |
| 107 | + |
| 108 | +```python |
| 109 | +from cloudflare.types.stream.live_inputs import Output |
| 110 | +``` |
| 111 | + |
| 112 | +Methods: |
| 113 | + |
| 114 | +- <code title="post /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs">client.stream.live_inputs.outputs.<a href="./src/cloudflare/resources/stream/live_inputs/outputs.py">create</a>(live_input_identifier, \*, account_id, \*\*<a href="src/cloudflare/types/stream/live_inputs/output_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/live_inputs/output.py">Optional[Output]</a></code> |
| 115 | +- <code title="put /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}">client.stream.live_inputs.outputs.<a href="./src/cloudflare/resources/stream/live_inputs/outputs.py">update</a>(output_identifier, \*, account_id, live_input_identifier, \*\*<a href="src/cloudflare/types/stream/live_inputs/output_update_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/live_inputs/output.py">Optional[Output]</a></code> |
| 116 | +- <code title="get /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs">client.stream.live_inputs.outputs.<a href="./src/cloudflare/resources/stream/live_inputs/outputs.py">list</a>(live_input_identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/live_inputs/output.py">SyncSinglePage[Output]</a></code> |
| 117 | +- <code title="delete /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}">client.stream.live_inputs.outputs.<a href="./src/cloudflare/resources/stream/live_inputs/outputs.py">delete</a>(output_identifier, \*, account_id, live_input_identifier) -> None</code> |
| 118 | + |
| 119 | +## Watermarks |
| 120 | + |
| 121 | +Types: |
| 122 | + |
| 123 | +```python |
| 124 | +from cloudflare.types.stream import Watermark, WatermarkDeleteResponse |
| 125 | +``` |
| 126 | + |
| 127 | +Methods: |
| 128 | + |
| 129 | +- <code title="post /accounts/{account_id}/stream/watermarks">client.stream.watermarks.<a href="./src/cloudflare/resources/stream/watermarks.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/watermark_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/watermark.py">Optional[Watermark]</a></code> |
| 130 | +- <code title="get /accounts/{account_id}/stream/watermarks">client.stream.watermarks.<a href="./src/cloudflare/resources/stream/watermarks.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/stream/watermark.py">SyncSinglePage[Watermark]</a></code> |
| 131 | +- <code title="delete /accounts/{account_id}/stream/watermarks/{identifier}">client.stream.watermarks.<a href="./src/cloudflare/resources/stream/watermarks.py">delete</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/watermark_delete_response.py">str</a></code> |
| 132 | +- <code title="get /accounts/{account_id}/stream/watermarks/{identifier}">client.stream.watermarks.<a href="./src/cloudflare/resources/stream/watermarks.py">get</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/watermark.py">Optional[Watermark]</a></code> |
| 133 | + |
| 134 | +## Webhooks |
| 135 | + |
| 136 | +Types: |
| 137 | + |
| 138 | +```python |
| 139 | +from cloudflare.types.stream import WebhookUpdateResponse, WebhookDeleteResponse, WebhookGetResponse |
| 140 | +``` |
| 141 | + |
| 142 | +Methods: |
| 143 | + |
| 144 | +- <code title="put /accounts/{account_id}/stream/webhook">client.stream.webhooks.<a href="./src/cloudflare/resources/stream/webhooks.py">update</a>(\*, account_id, \*\*<a href="src/cloudflare/types/stream/webhook_update_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/webhook_update_response.py">Optional[WebhookUpdateResponse]</a></code> |
| 145 | +- <code title="delete /accounts/{account_id}/stream/webhook">client.stream.webhooks.<a href="./src/cloudflare/resources/stream/webhooks.py">delete</a>(\*, account_id) -> <a href="./src/cloudflare/types/stream/webhook_delete_response.py">str</a></code> |
| 146 | +- <code title="get /accounts/{account_id}/stream/webhook">client.stream.webhooks.<a href="./src/cloudflare/resources/stream/webhooks.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/stream/webhook_get_response.py">Optional[WebhookGetResponse]</a></code> |
| 147 | + |
| 148 | +## Captions |
| 149 | + |
| 150 | +Types: |
| 151 | + |
| 152 | +```python |
| 153 | +from cloudflare.types.stream import Caption |
| 154 | +``` |
| 155 | + |
| 156 | +Methods: |
| 157 | + |
| 158 | +- <code title="get /accounts/{account_id}/stream/{identifier}/captions">client.stream.captions.<a href="./src/cloudflare/resources/stream/captions/captions.py">get</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/caption.py">SyncSinglePage[Caption]</a></code> |
| 159 | + |
| 160 | +### Language |
| 161 | + |
| 162 | +Types: |
| 163 | + |
| 164 | +```python |
| 165 | +from cloudflare.types.stream.captions import LanguageDeleteResponse |
| 166 | +``` |
| 167 | + |
| 168 | +Methods: |
| 169 | + |
| 170 | +- <code title="post /accounts/{account_id}/stream/{identifier}/captions/{language}/generate">client.stream.captions.language.<a href="./src/cloudflare/resources/stream/captions/language/language.py">create</a>(language, \*, account_id, identifier) -> <a href="./src/cloudflare/types/stream/caption.py">Optional[Caption]</a></code> |
| 171 | +- <code title="put /accounts/{account_id}/stream/{identifier}/captions/{language}">client.stream.captions.language.<a href="./src/cloudflare/resources/stream/captions/language/language.py">update</a>(language, \*, account_id, identifier, \*\*<a href="src/cloudflare/types/stream/captions/language_update_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/caption.py">Optional[Caption]</a></code> |
| 172 | +- <code title="delete /accounts/{account_id}/stream/{identifier}/captions/{language}">client.stream.captions.language.<a href="./src/cloudflare/resources/stream/captions/language/language.py">delete</a>(language, \*, account_id, identifier) -> <a href="./src/cloudflare/types/stream/captions/language_delete_response.py">str</a></code> |
| 173 | +- <code title="get /accounts/{account_id}/stream/{identifier}/captions/{language}">client.stream.captions.language.<a href="./src/cloudflare/resources/stream/captions/language/language.py">get</a>(language, \*, account_id, identifier) -> <a href="./src/cloudflare/types/stream/caption.py">Optional[Caption]</a></code> |
| 174 | + |
| 175 | +#### Vtt |
| 176 | + |
| 177 | +Types: |
| 178 | + |
| 179 | +```python |
| 180 | +from cloudflare.types.stream.captions.language import VttGetResponse |
| 181 | +``` |
| 182 | + |
| 183 | +Methods: |
| 184 | + |
| 185 | +- <code title="get /accounts/{account_id}/stream/{identifier}/captions/{language}/vtt">client.stream.captions.language.vtt.<a href="./src/cloudflare/resources/stream/captions/language/vtt.py">get</a>(language, \*, account_id, identifier) -> str</code> |
| 186 | + |
| 187 | +## Downloads |
| 188 | + |
| 189 | +Types: |
| 190 | + |
| 191 | +```python |
| 192 | +from cloudflare.types.stream import ( |
| 193 | + DownloadCreateResponse, |
| 194 | + DownloadDeleteResponse, |
| 195 | + DownloadGetResponse, |
| 196 | +) |
| 197 | +``` |
| 198 | + |
| 199 | +Methods: |
| 200 | + |
| 201 | +- <code title="post /accounts/{account_id}/stream/{identifier}/downloads">client.stream.downloads.<a href="./src/cloudflare/resources/stream/downloads.py">create</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/download_create_response.py">Optional[DownloadCreateResponse]</a></code> |
| 202 | +- <code title="delete /accounts/{account_id}/stream/{identifier}/downloads">client.stream.downloads.<a href="./src/cloudflare/resources/stream/downloads.py">delete</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/download_delete_response.py">str</a></code> |
| 203 | +- <code title="get /accounts/{account_id}/stream/{identifier}/downloads">client.stream.downloads.<a href="./src/cloudflare/resources/stream/downloads.py">get</a>(identifier, \*, account_id) -> <a href="./src/cloudflare/types/stream/download_get_response.py">Optional[DownloadGetResponse]</a></code> |
| 204 | + |
| 205 | +## Embed |
| 206 | + |
| 207 | +Types: |
| 208 | + |
| 209 | +```python |
| 210 | +from cloudflare.types.stream import EmbedGetResponse |
| 211 | +``` |
| 212 | + |
| 213 | +Methods: |
| 214 | + |
| 215 | +- <code title="get /accounts/{account_id}/stream/{identifier}/embed">client.stream.embed.<a href="./src/cloudflare/resources/stream/embed.py">get</a>(identifier, \*, account_id) -> str</code> |
| 216 | + |
| 217 | +## Token |
| 218 | + |
| 219 | +Types: |
| 220 | + |
| 221 | +```python |
| 222 | +from cloudflare.types.stream import TokenCreateResponse |
| 223 | +``` |
| 224 | + |
| 225 | +Methods: |
| 226 | + |
| 227 | +- <code title="post /accounts/{account_id}/stream/{identifier}/token">client.stream.token.<a href="./src/cloudflare/resources/stream/token.py">create</a>(identifier, \*, account_id, \*\*<a href="src/cloudflare/types/stream/token_create_params.py">params</a>) -> <a href="./src/cloudflare/types/stream/token_create_response.py">Optional[TokenCreateResponse]</a></code> |
0 commit comments