ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.459.2

This commit is contained in:
speakeasybot
2024-12-21 00:03:07 +00:00
parent d6ce868807
commit e6c93bcf32
92 changed files with 2422 additions and 2783 deletions

View File

@@ -21,20 +21,16 @@ Get Global Hubs filtered by the parameters provided.
```python
from plex_api_client import PlexAPI
s = PlexAPI(
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name="Plex for Roku",
client_version="2.4.1",
platform="Roku",
device_nickname="Roku 3",
)
) as plex_api:
res = s.hubs.get_global_hubs()
res = plex_api.hubs.get_global_hubs()
if res.object is not None:
# handle response
pass
assert res.object is not None
# Handle response
print(res.object)
```
@@ -69,27 +65,23 @@ This endpoint will return the recently added content.
from plex_api_client import PlexAPI
from plex_api_client.models import operations
s = PlexAPI(
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name="Plex for Roku",
client_version="2.4.1",
platform="Roku",
device_nickname="Roku 3",
)
) as plex_api:
res = s.hubs.get_recently_added(request={
"content_directory_id": 470161,
"type": operations.Type.TV_SHOW,
"section_id": 2,
"include_meta": operations.IncludeMeta.ENABLE,
"x_plex_container_start": 0,
"x_plex_container_size": 50,
})
res = plex_api.hubs.get_recently_added(request={
"content_directory_id": 470161,
"type": operations.Type.TV_SHOW,
"section_id": 2,
"include_meta": operations.IncludeMeta.ENABLE,
"x_plex_container_start": 0,
"x_plex_container_size": 50,
})
if res.object is not None:
# handle response
pass
assert res.object is not None
# Handle response
print(res.object)
```
@@ -120,20 +112,16 @@ This endpoint will return a list of library specific hubs
```python
from plex_api_client import PlexAPI
s = PlexAPI(
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
client_name="Plex for Roku",
client_version="2.4.1",
platform="Roku",
device_nickname="Roku 3",
)
) as plex_api:
res = s.hubs.get_library_hubs(section_id=6728.76)
res = plex_api.hubs.get_library_hubs(section_id=6728.76)
if res.object is not None:
# handle response
pass
assert res.object is not None
# Handle response
print(res.object)
```