Compare commits

..

2 Commits

Author SHA1 Message Date
speakeasybot
64bc159be2 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 2024-09-30 00:28:31 +00:00
speakeasybot
8100bcbf96 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 2024-09-29 00:30:08 +00:00
25 changed files with 472 additions and 56 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1732900d-e173-47c1-a90d-d45182eb35d9
management:
docChecksum: e7673f3f46e5b0bf495c378378aa7ad6
docChecksum: f387ae03f10decba230886eaab322b20
docVersion: 0.0.3
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.6.0
configChecksum: 3170f0dc35d813b7d5122d31a2dfaf65
releaseVersion: 0.6.2
configChecksum: 046f14829c0f092a936a69c12a4534a8
repoURL: https://github.com/LukeHagar/plexjava.git
published: true
features:
@@ -2034,6 +2034,7 @@ examples:
includeHttps: 1
includeRelay: 1
includeIPv6: 1
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
responses:
"401":
application/json: {"errors": []}

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
java:
version: 0.6.0
version: 0.6.2
additionalDependencies: []
additionalPlugins: []
artifactID: plexapi

View File

@@ -8,8 +8,8 @@ sources:
- latest
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c
sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98
tags:
- latest
- main
@@ -17,10 +17,10 @@ targets:
plexjava:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c
sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98
codeSamplesNamespace: code-samples-java-plexjava
codeSamplesRevisionDigest: sha256:4286e602eb7c7bb7994a5820d46e703830d79724b86399aac3a75e9f2994c975
codeSamplesRevisionDigest: sha256:40bad00663958b34b9255a105a42474263029fd25e58660da79a50057fc50f7a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

View File

@@ -25,7 +25,7 @@ Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
@@ -62,7 +62,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
implementation 'dev.plexapi:plexapi:0.6.0'
implementation 'dev.plexapi:plexapi:0.6.2'
```
Maven:
@@ -70,7 +70,7 @@ Maven:
<dependency>
<groupId>dev.plexapi</groupId>
<artifactId>plexapi</artifactId>
<version>0.6.0</version>
<version>0.6.2</version>
</dependency>
```
@@ -265,7 +265,7 @@ public class Application {
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
### Available Globals
@@ -290,16 +290,20 @@ This is used to track the client application and its usage
package hello.world;
import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.models.errors.GetPinBadRequest;
import dev.plexapi.sdk.models.operations.GetPinRequest;
import dev.plexapi.sdk.models.operations.GetPinResponse;
import dev.plexapi.sdk.models.errors.GetServerResourcesBadRequest;
import dev.plexapi.sdk.models.errors.GetServerResourcesUnauthorized;
import dev.plexapi.sdk.models.operations.GetServerResourcesResponse;
import dev.plexapi.sdk.models.operations.IncludeHttps;
import dev.plexapi.sdk.models.operations.IncludeIPv6;
import dev.plexapi.sdk.models.operations.IncludeRelay;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws GetPinBadRequest, Exception {
public static void main(String[] args) throws GetServerResourcesBadRequest, GetServerResourcesUnauthorized, Exception {
PlexAPI sdk = PlexAPI.builder()
.accessToken("<YOUR_API_KEY_HERE>")
.clientID("gcgzw5rz2xovp84b4vha3a40")
.clientName("Plex Web")
.clientVersion("4.133.0")
@@ -307,14 +311,14 @@ public class Application {
.deviceName("Linux")
.build();
GetPinRequest req = GetPinRequest.builder()
.build();
GetPinResponse res = sdk.plex().getPin()
.request(req)
GetServerResourcesResponse res = sdk.plex().getServerResources()
.includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call();
if (res.authPinContainer().isPresent()) {
if (res.plexDevices().isPresent()) {
// handle response
}
}

View File

@@ -108,4 +108,24 @@ Based on:
### Generated
- [java v0.6.0] .
### Releases
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.0 - .
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.0 - .
## 2024-09-29 00:28:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.1] .
### Releases
- [Maven Central v0.6.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.1 - .
## 2024-09-30 00:26:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.2] .
### Releases
- [Maven Central v0.6.2] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.2 - .

View File

@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}
group = "dev.plexapi"
version = "0.6.0"
version = "0.6.2"
sourcesJar {
archiveBaseName = "plexapi"
@@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.plexapi'
artifactId = 'plexapi'
version = '0.6.0'
version = '0.6.2'
from components.java

View File

@@ -2191,6 +2191,7 @@ actions:
.includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call();
if (res.plexDevices().isPresent()) {

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -3,8 +3,9 @@
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -272,6 +272,7 @@ public class Application {
.includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call();
if (res.plexDevices().isPresent()) {
@@ -283,12 +284,13 @@ public class Application {
### Parameters
| Parameter | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
| Parameter | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
### Response

View File

@@ -14,7 +14,7 @@ Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |

View File

@@ -767,7 +767,7 @@ public class Plex implements
* @throws Exception if the API call fails
*/
public GetServerResourcesResponse getServerResourcesDirect() throws Exception {
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -778,6 +778,10 @@ public class Plex implements
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
* @param includeIPv6 Include IPv6 entries in the results
* @param clientID The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
* @param serverURL Overrides the server URL.
* @return The response from the API call
* @throws Exception if the API call fails
@@ -786,6 +790,7 @@ public class Plex implements
Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID,
Optional<String> serverURL) throws Exception {
GetServerResourcesRequest request =
GetServerResourcesRequest
@@ -793,6 +798,7 @@ public class Plex implements
.includeHttps(includeHttps)
.includeRelay(includeRelay)
.includeIPv6(includeIPv6)
.clientID(clientID)
.build();
String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap<String, String>());

View File

@@ -28,7 +28,7 @@ import java.util.Optional;
*
* ## SDKs
*
* The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
* The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
*
* | Language | Repository | Releases | Other |
* | --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |

View File

@@ -36,7 +36,7 @@ class SDKConfiguration {
} };
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.0.3";
public static final String SDK_VERSION = "0.6.0";
public static final String SDK_VERSION = "0.6.2";
public static final String GEN_VERSION = "2.426.2";
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
public static final String USER_AGENT =

View File

@@ -15,28 +15,43 @@ public enum Features {
TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum Features {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard");
WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue
private final String value;

View File

@@ -40,21 +40,33 @@ public class GetServerResourcesRequest {
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6")
private Optional<? extends IncludeIPv6> includeIPv6;
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
private Optional<String> clientID;
@JsonCreator
public GetServerResourcesRequest(
Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6) {
Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID) {
Utils.checkNotNull(includeHttps, "includeHttps");
Utils.checkNotNull(includeRelay, "includeRelay");
Utils.checkNotNull(includeIPv6, "includeIPv6");
Utils.checkNotNull(clientID, "clientID");
this.includeHttps = includeHttps;
this.includeRelay = includeRelay;
this.includeIPv6 = includeIPv6;
this.clientID = clientID;
}
public GetServerResourcesRequest() {
this(Optional.empty(), Optional.empty(), Optional.empty());
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -86,6 +98,17 @@ public class GetServerResourcesRequest {
return (Optional<IncludeIPv6>) includeIPv6;
}
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
@JsonIgnore
public Optional<String> clientID() {
return clientID;
}
public final static Builder builder() {
return new Builder();
}
@@ -147,6 +170,30 @@ public class GetServerResourcesRequest {
this.includeIPv6 = includeIPv6;
return this;
}
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
public GetServerResourcesRequest withClientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
@@ -160,7 +207,8 @@ public class GetServerResourcesRequest {
return
Objects.deepEquals(this.includeHttps, other.includeHttps) &&
Objects.deepEquals(this.includeRelay, other.includeRelay) &&
Objects.deepEquals(this.includeIPv6, other.includeIPv6);
Objects.deepEquals(this.includeIPv6, other.includeIPv6) &&
Objects.deepEquals(this.clientID, other.clientID);
}
@Override
@@ -168,7 +216,8 @@ public class GetServerResourcesRequest {
return Objects.hash(
includeHttps,
includeRelay,
includeIPv6);
includeIPv6,
clientID);
}
@Override
@@ -176,7 +225,8 @@ public class GetServerResourcesRequest {
return Utils.toString(GetServerResourcesRequest.class,
"includeHttps", includeHttps,
"includeRelay", includeRelay,
"includeIPv6", includeIPv6);
"includeIPv6", includeIPv6,
"clientID", clientID);
}
public final static class Builder {
@@ -185,7 +235,9 @@ public class GetServerResourcesRequest {
private Optional<? extends IncludeRelay> includeRelay;
private Optional<? extends IncludeIPv6> includeIPv6;
private Optional<? extends IncludeIPv6> includeIPv6;
private Optional<String> clientID = Optional.empty();
private Builder() {
// force use of static builder() method
@@ -248,6 +300,30 @@ public class GetServerResourcesRequest {
this.includeIPv6 = includeIPv6;
return this;
}
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
public Builder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* The unique identifier for the client application
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/
public Builder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public GetServerResourcesRequest build() {
if (includeHttps == null) {
@@ -261,7 +337,8 @@ public class GetServerResourcesRequest {
} return new GetServerResourcesRequest(
includeHttps,
includeRelay,
includeIPv6);
includeIPv6,
clientID);
}
private static final LazySingletonValue<Optional<? extends IncludeHttps>> _SINGLETON_VALUE_IncludeHttps =

View File

@@ -24,6 +24,7 @@ public class GetServerResourcesRequestBuilder {
"includeIPv6",
"0",
new TypeReference<Optional<? extends IncludeIPv6>>() {});
private Optional<String> clientID = Optional.empty();
private Optional<String> serverURL = Optional.empty();
private final SDKMethodInterfaces.MethodCallGetServerResources sdk;
@@ -67,6 +68,18 @@ public class GetServerResourcesRequestBuilder {
return this;
}
public GetServerResourcesRequestBuilder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.of(clientID);
return this;
}
public GetServerResourcesRequestBuilder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public GetServerResourcesRequestBuilder serverURL(String serverURL) {
Utils.checkNotNull(serverURL, "serverURL");
this.serverURL = Optional.of(serverURL);
@@ -93,6 +106,7 @@ public class GetServerResourcesRequestBuilder {
includeHttps,
includeRelay,
includeIPv6,
clientID,
serverURL);
}

View File

@@ -15,28 +15,43 @@ public enum GetTokenDetailsFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum GetTokenDetailsFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard");
WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue
private final String value;

View File

@@ -15,28 +15,43 @@ public enum PostUsersSignInDataAuthenticationFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum PostUsersSignInDataAuthenticationFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard");
WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue
private final String value;

View File

@@ -15,28 +15,43 @@ public enum PostUsersSignInDataFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum PostUsersSignInDataFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard");
WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue
private final String value;

View File

@@ -170,6 +170,7 @@ public class SDKMethodInterfaces {
Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID,
Optional<String> serverURL) throws Exception;
}

View File

@@ -190,6 +190,7 @@ public class PlexTests {
.includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call();
assertEquals(