Fetch the latest metadata for a generated video. Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-lev
(
self,
video_id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
)
| 208 | return video |
| 209 | |
| 210 | def retrieve( |
| 211 | self, |
| 212 | video_id: str, |
| 213 | *, |
| 214 | class="cm"># Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 215 | class="cm"># The extra values given here take precedence over values defined on the client or passed to this method. |
| 216 | extra_headers: Headers | None = None, |
| 217 | extra_query: Query | None = None, |
| 218 | extra_body: Body | None = None, |
| 219 | timeout: float | httpx.Timeout | None | NotGiven = not_given, |
| 220 | ) -> Video: |
| 221 | class="st">""" |
| 222 | Fetch the latest metadata for a generated video. |
| 223 | |
| 224 | Args: |
| 225 | extra_headers: Send extra headers |
| 226 | |
| 227 | extra_query: Add additional query parameters to the request |
| 228 | |
| 229 | extra_body: Add additional JSON properties to the request |
| 230 | |
| 231 | timeout: Override the client-level default timeout for this request, in seconds |
| 232 | class="st">""" |
| 233 | if not video_id: |
| 234 | raise ValueError(fclass="st">"Expected a non-empty value for `video_id` but received {video_id!r}") |
| 235 | return self._get( |
| 236 | path_template(class="st">"/videos/{video_id}", video_id=video_id), |
| 237 | options=make_request_options( |
| 238 | extra_headers=extra_headers, |
| 239 | extra_query=extra_query, |
| 240 | extra_body=extra_body, |
| 241 | timeout=timeout, |
| 242 | security={class="st">"bearer_auth": True}, |
| 243 | ), |
| 244 | cast_to=Video, |
| 245 | ) |
| 246 | |
| 247 | def list( |
| 248 | self, |
no test coverage detected