Skip to content

Commit 96122a9

Browse files
Merge pull request #87 from apivideo/Update-get-live-streams-sortby-attribute
Update get live streams sortby attribute
2 parents ff2c347 + af5fa0c commit 96122a9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

apivideo/api/live_streams_api.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def list(
572572
Keyword Args:
573573
stream_key (str): The unique stream key that allows you to stream videos.. [optional]
574574
name (str): You can filter live streams by their name or a part of their name.. [optional]
575-
sort_by (str): Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format.. [optional]
575+
sort_by (str): Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. . [optional]
576576
sort_order (str): Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending.. [optional]
577577
current_page (int): Choose the number of search results to return per page. Minimum value: 1. [optional] if omitted the server will use the default value of 1
578578
page_size (int): Results per page. Allowed values 1-100, default is 25.. [optional] if omitted the server will use the default value of 25
@@ -623,6 +623,7 @@ def list(
623623
'_request_timeout'
624624
],
625625
'enum': [
626+
'sort_by',
626627
'sort_order',
627628
],
628629
'validation': [
@@ -631,6 +632,12 @@ def list(
631632
validations = {
632633
}
633634
allowed_values = {
635+
('sort_by',): {
636+
637+
"NAME": "name",
638+
"CREATEDAT": "createdAt",
639+
"UPDATEDAT": "updatedAt"
640+
},
634641
('sort_order',): {
635642

636643
"ASC": "asc",

docs/LiveStreamsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ with apivideo.AuthenticatedApiClient(__API_KEY__) as api_client:
282282
api_instance = live_streams_api.LiveStreamsApi(api_client)
283283
stream_key = "dw-dew8-q6w9-k67w-1ws8" # str | The unique stream key that allows you to stream videos. (optional)
284284
name = "My Video" # str | You can filter live streams by their name or a part of their name. (optional)
285-
sort_by = "createdAt" # str | Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format. (optional)
285+
sort_by = "createdAt" # str | Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. (optional)
286286
sort_order = "desc" # str | Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending. (optional)
287287
current_page = 2 # int | Choose the number of search results to return per page. Minimum value: 1 (optional) if omitted the server will use the default value of 1
288288
page_size = 30 # int | Results per page. Allowed values 1-100, default is 25. (optional) if omitted the server will use the default value of 25
@@ -304,7 +304,7 @@ Name | Type | Description | Notes
304304
------------- | ------------- | ------------- | -------------
305305
**stream_key** | **str**| The unique stream key that allows you to stream videos. | [optional]
306306
**name** | **str**| You can filter live streams by their name or a part of their name. | [optional]
307-
**sort_by** | **str**| Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format. | [optional]
307+
**sort_by** | **str**| Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. | [optional]
308308
**sort_order** | **str**| Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending. | [optional]
309309
**current_page** | **int**| Choose the number of search results to return per page. Minimum value: 1 | [optional] if omitted the server will use the default value of 1
310310
**page_size** | **int**| Results per page. Allowed values 1-100, default is 25. | [optional] if omitted the server will use the default value of 25

0 commit comments

Comments
 (0)