Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.487.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Feb 8, 2025
1 parent ee4b86e commit ee0e41a
Show file tree
Hide file tree
Showing 92 changed files with 2,920 additions and 1,205 deletions.
110 changes: 86 additions & 24 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.22.0
version: 0.22.1
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.487.0
speakeasyVersion: 1.487.1
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -8,19 +8,19 @@ sources:
- latest
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:e6ab335dd91a4165f4510e4a3af8a55819c6310b7e66251266d2384376f3ccae
sourceBlobDigest: sha256:89d1b1133e400c89f0d06efe5e5168f5ba25a413e1ab8380d442d6b233e2e5a9
sourceRevisionDigest: sha256:49536684a97842ea7c069f909012b31a22a046d8277aee47b50a334494bf2c64
sourceBlobDigest: sha256:eac671ea32ce31e1e558839153f7effef39bb35b4e461c6e95661d0eaf4ce1c8
tags:
- latest
- speakeasy-sdk-regen-1738886477
- speakeasy-sdk-regen-1738972888
targets:
plexpy:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:e6ab335dd91a4165f4510e4a3af8a55819c6310b7e66251266d2384376f3ccae
sourceBlobDigest: sha256:89d1b1133e400c89f0d06efe5e5168f5ba25a413e1ab8380d442d6b233e2e5a9
sourceRevisionDigest: sha256:49536684a97842ea7c069f909012b31a22a046d8277aee47b50a334494bf2c64
sourceBlobDigest: sha256:eac671ea32ce31e1e558839153f7effef39bb35b4e461c6e95661d0eaf4ce1c8
codeSamplesNamespace: code-samples-python-plexpy
codeSamplesRevisionDigest: sha256:7c876b753cb5ce60e78319a51e8a0a436679e86c4e4a90d423d73532459dac53
codeSamplesRevisionDigest: sha256:ad966264da2ccb1f43501d2435d91d5bf795538ec83e99a3f4a2f97acee1293a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ asyncio.run(main())
* [get_search_library](docs/sdks/library/README.md#get_search_library) - Search Library
* [get_genres_library](docs/sdks/library/README.md#get_genres_library) - Get Genres of library media
* [get_countries_library](docs/sdks/library/README.md#get_countries_library) - Get Countries of library media
* [get_actors_library](docs/sdks/library/README.md#get_actors_library) - Get Actors of library media
* [get_search_all_libraries](docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
* [get_meta_data_by_rating_key](docs/sdks/library/README.md#get_meta_data_by_rating_key) - Get Metadata by RatingKey
* [get_media_meta_data](docs/sdks/library/README.md#get_media_meta_data) - Get Media Metadata
* [get_metadata_children](docs/sdks/library/README.md#get_metadata_children) - Get Items Children
* [get_top_watched_content](docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
* [get_on_deck](docs/sdks/library/README.md#get_on_deck) - Get On Deck
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,4 +928,14 @@ Based on:
### Generated
- [python v0.22.0] .
### Releases
- [PyPI v0.22.0] https://pypi.org/project/plex-api-client/0.22.0 - .
- [PyPI v0.22.0] https://pypi.org/project/plex-api-client/0.22.0 - .

## 2025-02-08 00:01:13
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.487.1 (2.506.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.22.1] .
### Releases
- [PyPI v0.22.1] https://pypi.org/project/plex-api-client/0.22.1 - .
44 changes: 40 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,30 @@ actions:
update:
x-codeSamples:
- lang: python
label: key
label: data
source: |-
from plex_api_client import PlexAPI
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
) as plex_api:
res = plex_api.library.get_meta_data_by_rating_key(rating_key=9518)
res = plex_api.library.get_media_meta_data(request={
"rating_key": 9518,
"include_concerts": True,
"include_extras": True,
"include_on_deck": True,
"include_popular_leaves": True,
"include_preferences": True,
"include_reviews": True,
"include_chapters": True,
"include_stations": True,
"include_external_media": True,
"async_augment_metadata": True,
"async_check_files": True,
"async_refresh_analysis": True,
"async_refresh_local_media_agent": True,
})
assert res.object is not None
Expand Down Expand Up @@ -745,6 +760,25 @@ actions:
assert res.object is not None
# Handle response
print(res.object)
- target: $["paths"]["/library/sections/{sectionKey}/actor"]["get"]
update:
x-codeSamples:
- lang: python
label: library
source: |-
from plex_api_client import PlexAPI
from plex_api_client.models import operations
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
) as plex_api:
res = plex_api.library.get_actors_library(section_key=9518, type_=operations.GetActorsLibraryQueryParamType.TV_SHOW)
assert res.object is not None
# Handle response
print(res.object)
- target: $["paths"]["/library/sections/{sectionKey}/country"]["get"]
Expand All @@ -754,12 +788,13 @@ actions:
label: library
source: |-
from plex_api_client import PlexAPI
from plex_api_client.models import operations
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
) as plex_api:
res = plex_api.library.get_countries_library(section_key=9518)
res = plex_api.library.get_countries_library(section_key=9518, type_=operations.GetCountriesLibraryQueryParamType.TV_SHOW)
assert res.object is not None
Expand All @@ -772,12 +807,13 @@ actions:
label: library
source: |-
from plex_api_client import PlexAPI
from plex_api_client.models import operations
with PlexAPI(
access_token="<YOUR_API_KEY_HERE>",
) as plex_api:
res = plex_api.library.get_genres_library(section_key=9518)
res = plex_api.library.get_genres_library(section_key=9518, type_=operations.GetGenresLibraryQueryParamType.TV_SHOW)
assert res.object is not None
Expand Down
11 changes: 11 additions & 0 deletions docs/models/errors/getactorslibrarybadrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetActorsLibraryBadRequest

Bad Request - A parameter was not specified, or was specified incorrectly.


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `errors` | List[[errors.GetActorsLibraryErrors](../../models/errors/getactorslibraryerrors.md)] | :heavy_minus_sign: | N/A |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetMetaDataByRatingKeyErrors
# GetActorsLibraryErrors


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetMetaDataByRatingKeyLibraryErrors
# GetActorsLibraryLibraryErrors


## Fields
Expand Down
11 changes: 11 additions & 0 deletions docs/models/errors/getactorslibraryunauthorized.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetActorsLibraryUnauthorized

Unauthorized - Returned if the X-Plex-Token is missing from the header or query.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `errors` | List[[errors.GetActorsLibraryLibraryErrors](../../models/errors/getactorslibrarylibraryerrors.md)] | :heavy_minus_sign: | N/A |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
11 changes: 11 additions & 0 deletions docs/models/errors/getmediametadatabadrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetMediaMetaDataBadRequest

Bad Request - A parameter was not specified, or was specified incorrectly.


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `errors` | List[[errors.GetMediaMetaDataErrors](../../models/errors/getmediametadataerrors.md)] | :heavy_minus_sign: | N/A |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10 changes: 10 additions & 0 deletions docs/models/errors/getmediametadataerrors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetMediaMetaDataErrors


## Fields

| Field | Type | Required | Description | Example |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| `code` | *Optional[int]* | :heavy_minus_sign: | N/A | 1000 |
| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
| `status` | *Optional[int]* | :heavy_minus_sign: | N/A | 400 |
10 changes: 10 additions & 0 deletions docs/models/errors/getmediametadatalibraryerrors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetMediaMetaDataLibraryErrors


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
| `code` | *Optional[int]* | :heavy_minus_sign: | N/A | 1001 |
| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | User could not be authenticated |
| `status` | *Optional[int]* | :heavy_minus_sign: | N/A | 401 |
11 changes: 11 additions & 0 deletions docs/models/errors/getmediametadataunauthorized.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetMediaMetaDataUnauthorized

Unauthorized - Returned if the X-Plex-Token is missing from the header or query.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `errors` | List[[errors.GetMediaMetaDataLibraryErrors](../../models/errors/getmediametadatalibraryerrors.md)] | :heavy_minus_sign: | N/A |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
11 changes: 0 additions & 11 deletions docs/models/errors/getmetadatabyratingkeybadrequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/models/errors/getmetadatabyratingkeyunauthorized.md

This file was deleted.

Loading

0 comments on commit ee0e41a

Please sign in to comment.