mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c8fe4c95e | ||
|
|
a60df4029d |
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ generation:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
oAuth2PasswordEnabled: false
|
||||
java:
|
||||
version: 0.10.0
|
||||
version: 0.11.0
|
||||
additionalDependencies: []
|
||||
additionalPlugins: []
|
||||
artifactID: plexapi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.438.1
|
||||
speakeasyVersion: 1.459.2
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
@@ -8,19 +8,19 @@ sources:
|
||||
- latest
|
||||
plexapi:
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:15e040d800921ded49cf84650ef2bc8fb1acf32c885ee193c42e838d754bf345
|
||||
sourceBlobDigest: sha256:c178be2b4bfefb37d76c0fdaef37c51f9b6ab1410422d3698a41bb6a8d79a79f
|
||||
sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0
|
||||
sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
- speakeasy-sdk-regen-1734740746
|
||||
targets:
|
||||
plexjava:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:15e040d800921ded49cf84650ef2bc8fb1acf32c885ee193c42e838d754bf345
|
||||
sourceBlobDigest: sha256:c178be2b4bfefb37d76c0fdaef37c51f9b6ab1410422d3698a41bb6a8d79a79f
|
||||
sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0
|
||||
sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332
|
||||
codeSamplesNamespace: code-samples-java-plexjava
|
||||
codeSamplesRevisionDigest: sha256:59231703e7c16d75675e4ee5c84e901b3033cfa89204ba9a3326ff1dcb0d5183
|
||||
codeSamplesRevisionDigest: sha256:0612fff80a5399294636de519c9d3e8c24207624718af53454fe4d57a0a714e0
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
|
||||
49
README.md
49
README.md
@@ -41,13 +41,21 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
|
||||
|
||||
<!-- Start Table of Contents [toc] -->
|
||||
## Table of Contents
|
||||
<!-- $toc-max-depth=2 -->
|
||||
* [plexapi](#plexapi)
|
||||
* [Plex Media Server OpenAPI Specification](#plex-media-server-openapi-specification)
|
||||
* [Documentation](#documentation)
|
||||
* [SDKs](#sdks)
|
||||
* [SDK Installation](#sdk-installation)
|
||||
* [SDK Example Usage](#sdk-example-usage)
|
||||
* [Available Resources and Operations](#available-resources-and-operations)
|
||||
* [Error Handling](#error-handling)
|
||||
* [Server Selection](#server-selection)
|
||||
* [Authentication](#authentication)
|
||||
* [Development](#development)
|
||||
* [Maturity](#maturity)
|
||||
* [Contributions](#contributions)
|
||||
|
||||
* [SDK Installation](#sdk-installation)
|
||||
* [SDK Example Usage](#sdk-example-usage)
|
||||
* [Available Resources and Operations](#available-resources-and-operations)
|
||||
* [Error Handling](#error-handling)
|
||||
* [Server Selection](#server-selection)
|
||||
* [Authentication](#authentication)
|
||||
<!-- End Table of Contents [toc] -->
|
||||
|
||||
<!-- Start SDK Installation [installation] -->
|
||||
@@ -61,7 +69,7 @@ The samples below show how a published SDK artifact is used:
|
||||
|
||||
Gradle:
|
||||
```groovy
|
||||
implementation 'dev.plexapi:plexapi:0.10.0'
|
||||
implementation 'dev.plexapi:plexapi:0.11.0'
|
||||
```
|
||||
|
||||
Maven:
|
||||
@@ -69,7 +77,7 @@ Maven:
|
||||
<dependency>
|
||||
<groupId>dev.plexapi</groupId>
|
||||
<artifactId>plexapi</artifactId>
|
||||
<version>0.10.0</version>
|
||||
<version>0.11.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
@@ -108,11 +116,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
@@ -290,11 +293,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
@@ -337,11 +335,6 @@ public class Application {
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.serverURL("https://10.10.10.47:32400")
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
@@ -372,11 +365,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||
@@ -418,11 +406,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
|
||||
20
RELEASES.md
20
RELEASES.md
@@ -169,3 +169,23 @@ Based on:
|
||||
- [java v0.10.0] .
|
||||
### Releases
|
||||
- [Maven Central v0.10.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.10.0 - .
|
||||
|
||||
## 2024-11-14 00:25:48
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.439.0 (2.457.9) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [java v0.10.1] .
|
||||
### Releases
|
||||
- [Maven Central v0.10.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.10.1 - .
|
||||
|
||||
## 2024-12-21 00:25:42
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.459.2 (2.483.1) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [java v0.11.0] .
|
||||
### Releases
|
||||
- [Maven Central v0.11.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.0 - .
|
||||
5
USAGE.md
5
USAGE.md
@@ -14,11 +14,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
|
||||
18
build.gradle
18
build.gradle
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
|
||||
}
|
||||
|
||||
group = "dev.plexapi"
|
||||
version = "0.10.0"
|
||||
version = "0.11.0"
|
||||
|
||||
sourcesJar {
|
||||
archiveBaseName = "plexapi"
|
||||
@@ -101,7 +101,7 @@ publishing {
|
||||
maven(MavenPublication) {
|
||||
groupId = 'dev.plexapi'
|
||||
artifactId = 'plexapi'
|
||||
version = '0.10.0'
|
||||
version = '0.11.0'
|
||||
|
||||
from components.java
|
||||
|
||||
@@ -145,13 +145,13 @@ if (!project.hasProperty('skip.signing')) {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
|
||||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
|
||||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
|
||||
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
|
||||
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
||||
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
|
||||
implementation 'commons-io:commons-io:2.15.1'
|
||||
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
|
||||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
|
||||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
|
||||
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
|
||||
implementation 'org.apache.httpcomponents.client5:httpclient5:5.4.1'
|
||||
implementation 'commons-io:commons-io:2.18.0'
|
||||
}
|
||||
|
||||
|
||||
|
||||
415
codeSamples.yaml
415
codeSamples.yaml
@@ -23,11 +23,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
@@ -58,11 +53,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
||||
@@ -93,11 +83,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||
@@ -129,11 +114,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||
@@ -165,11 +145,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||
@@ -212,11 +187,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||
@@ -246,11 +216,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
||||
@@ -281,11 +246,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
||||
@@ -315,11 +275,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
||||
@@ -348,11 +303,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
||||
@@ -383,11 +333,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
||||
@@ -417,11 +362,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopTaskResponse res = sdk.butler().stopTask()
|
||||
@@ -452,11 +392,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartTaskResponse res = sdk.butler().startTask()
|
||||
@@ -486,11 +421,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
||||
@@ -521,11 +451,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||
@@ -556,11 +481,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetDevicesResponse res = sdk.server().getDevices()
|
||||
@@ -591,11 +511,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
||||
@@ -625,11 +540,6 @@ actions:
|
||||
public static void main(String[] args) throws GetGeoDataBadRequest, GetGeoDataUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetGeoDataResponse res = sdk.plex().getGeoData()
|
||||
@@ -660,11 +570,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetHomeDataResponse res = sdk.plex().getHomeData()
|
||||
@@ -696,11 +601,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||
@@ -734,11 +634,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRecentlyAddedRequest req = GetRecentlyAddedRequest.builder()
|
||||
@@ -779,16 +674,11 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PerformSearchResponse res = sdk.search().performSearch()
|
||||
.query("dylan")
|
||||
.sectionId(9372.69d)
|
||||
.sectionId(9487.87d)
|
||||
.limit(5d)
|
||||
.call();
|
||||
|
||||
@@ -815,11 +705,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||
@@ -852,17 +737,12 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||
.sectionId(6728.76d)
|
||||
.count(639.24d)
|
||||
.onlyTransient(QueryParamOnlyTransient.ONE)
|
||||
.count(6728.76d)
|
||||
.onlyTransient(QueryParamOnlyTransient.ZERO)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -888,11 +768,6 @@ actions:
|
||||
public static void main(String[] args) throws GetServerIdentityRequestTimeout, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
||||
@@ -924,11 +799,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
||||
@@ -961,11 +831,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetFileHashResponse res = sdk.library().getFileHash()
|
||||
@@ -996,11 +861,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
||||
@@ -1033,11 +893,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
||||
@@ -1078,16 +933,11 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||
.ratingKey(1539.15d)
|
||||
.includeElements("<value>")
|
||||
.includeElements("Stream")
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -1116,11 +966,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
||||
@@ -1161,11 +1006,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||
@@ -1200,11 +1040,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRecentlyAddedLibraryRequest req = GetRecentlyAddedLibraryRequest.builder()
|
||||
@@ -1263,15 +1098,11 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchAllLibrariesRequest req = GetSearchAllLibrariesRequest.builder()
|
||||
.query("<value>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.searchTypes(List.of(
|
||||
SearchTypes.PEOPLE))
|
||||
.includeCollections(QueryParamIncludeCollections.Enable)
|
||||
@@ -1307,11 +1138,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
||||
@@ -1344,11 +1170,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||
@@ -1387,11 +1208,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
||||
@@ -1422,11 +1238,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
||||
@@ -1460,11 +1271,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
||||
@@ -1496,11 +1302,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
||||
@@ -1538,11 +1339,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||
@@ -1585,11 +1381,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
LogLineResponse res = sdk.log().logLine()
|
||||
@@ -1622,15 +1413,9 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
||||
level=1&message=Test%20message%203&source=postman";
|
||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman";
|
||||
|
||||
LogMultiLineResponse res = sdk.log().logMultiLine()
|
||||
.request(req)
|
||||
@@ -1659,11 +1444,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
||||
@@ -1692,11 +1472,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
||||
@@ -1728,11 +1503,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
||||
@@ -1766,19 +1536,14 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||
.width(110d)
|
||||
.height(165d)
|
||||
.opacity(100L)
|
||||
.blur(20d)
|
||||
.minSize(MinSize.ZERO)
|
||||
.blur(0d)
|
||||
.minSize(MinSize.ONE)
|
||||
.upscale(Upscale.ONE)
|
||||
.url("/library/metadata/49564/thumb/1654258204")
|
||||
.build();
|
||||
@@ -1809,14 +1574,14 @@ actions:
|
||||
public static void main(String[] args) throws GetPinBadRequest, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPinRequest req = GetPinRequest.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.build();
|
||||
|
||||
GetPinResponse res = sdk.plex().getPin()
|
||||
@@ -1848,15 +1613,15 @@ actions:
|
||||
public static void main(String[] args) throws GetTokenByPinIdBadRequest, GetTokenByPinIdResponseBody, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTokenByPinIdRequest req = GetTokenByPinIdRequest.builder()
|
||||
.pinID(408895L)
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.build();
|
||||
|
||||
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
||||
@@ -1890,11 +1655,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
||||
@@ -1930,11 +1690,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
||||
@@ -1974,11 +1729,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
||||
@@ -2010,11 +1760,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||
@@ -2044,11 +1789,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||
@@ -2080,11 +1820,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||
@@ -2116,11 +1851,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||
@@ -2151,11 +1881,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||
@@ -2188,11 +1913,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||
@@ -2229,11 +1949,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
||||
@@ -2268,11 +1983,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
||||
@@ -2304,15 +2014,10 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
||||
.source("server://client-identifier")
|
||||
.source("provider://provider-identifier")
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -2340,11 +2045,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
||||
@@ -2375,11 +2075,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerListResponse res = sdk.server().getServerList()
|
||||
@@ -2410,11 +2105,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
||||
@@ -2446,11 +2136,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
||||
@@ -2482,11 +2167,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
||||
@@ -2518,11 +2198,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSessionsResponse res = sdk.sessions().getSessions()
|
||||
@@ -2554,15 +2229,10 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
||||
.sort("<value>")
|
||||
.sort("viewedAt:desc")
|
||||
.accountId(1L)
|
||||
.filter(QueryParamFilter.builder()
|
||||
.build())
|
||||
@@ -2594,11 +2264,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
||||
@@ -2629,11 +2294,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
||||
@@ -2665,11 +2325,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
||||
@@ -2701,11 +2356,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
||||
@@ -2735,11 +2385,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
||||
@@ -2770,11 +2415,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
||||
@@ -2806,14 +2446,14 @@ actions:
|
||||
public static void main(String[] args) throws PostUsersSignInDataBadRequest, PostUsersSignInDataUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PostUsersSignInDataRequest req = PostUsersSignInDataRequest.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.requestBody(PostUsersSignInDataRequestBody.builder()
|
||||
.login("username@email.com")
|
||||
.password("password123")
|
||||
@@ -2851,11 +2491,6 @@ actions:
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||
| `flattenSeasons` | [Optional\<GetLibraryItemsFlattenSeasons>](../../models/operations/GetLibraryItemsFlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `showOrdering` | [Optional\<GetLibraryItemsShowOrdering>](../../models/operations/GetLibraryItemsShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show <br/>None = Library default, <br/>tmdbAiring = The Movie Database (Aired), <br/>aired = TheTVDB (Aired), <br/>dvd = TheTVDB (DVD), <br/>absolute = TheTVDB (Absolute)).<br/> | dvd |
|
||||
| `showOrdering` | [Optional\<GetLibraryItemsShowOrdering>](../../models/operations/GetLibraryItemsShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -3,18 +3,18 @@
|
||||
Setting that indicates the episode ordering for the show
|
||||
None = Library default,
|
||||
tmdbAiring = The Movie Database (Aired),
|
||||
aired = TheTVDB (Aired),
|
||||
dvd = TheTVDB (DVD),
|
||||
absolute = TheTVDB (Absolute)).
|
||||
tvdbAiring = TheTVDB (Aired),
|
||||
tvdbDvd = TheTVDB (DVD),
|
||||
tvdbAbsolute = TheTVDB (Absolute)).
|
||||
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------------ | ------------ |
|
||||
| -------------- | -------------- |
|
||||
| `None` | None |
|
||||
| `TmdbAiring` | tmdbAiring |
|
||||
| `Aired` | aired |
|
||||
| `Dvd` | dvd |
|
||||
| `Absolute` | absolute |
|
||||
| `TvdbAiring` | tvdbAiring |
|
||||
| `TvdbDvd` | tvdbDvd |
|
||||
| `TvdbAbsolute` | tvdbAbsolute |
|
||||
@@ -14,6 +14,11 @@
|
||||
| `librarySectionTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Movies |
|
||||
| `librarySectionID` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `librarySectionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/sections/1 |
|
||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | The name of the album artist for the track when audio, and the name of the TV show for the episode when video. | |
|
||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | The name of the album for the track when audio, and the name of the season for the episode when TV show. | |
|
||||
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | The orginal untranslated name of the media item when non-english. | |
|
||||
| `index` | *Optional\<Long>* | :heavy_minus_sign: | The index starting from 0 of this media item in the MetaData array. | |
|
||||
| `parentIndex` | *Optional\<Long>* | :heavy_minus_sign: | The parent index starting from 0 of this media item in the parent MetaData array. | |
|
||||
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | N/A | PG-13 |
|
||||
| `summary` | *Optional\<String>* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. |
|
||||
| `rating` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 8.2 |
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *Optional\<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||
| `clientID` | *Optional\<String>* | :heavy_minus_sign: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientName` | *Optional\<String>* | :heavy_minus_sign: | The name of the client application. (Plex Web, Plex Media Server, etc.) | Plex for Roku |
|
||||
| `deviceNickname` | *Optional\<String>* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 |
|
||||
| `clientVersion` | *Optional\<String>* | :heavy_minus_sign: | The version of the client application. | 2.4.1 |
|
||||
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -24,7 +24,7 @@
|
||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||
| `flattenSeasons` | [Optional\<FlattenSeasons>](../../models/operations/FlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `showOrdering` | [Optional\<ShowOrdering>](../../models/operations/ShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show <br/>None = Library default, <br/>tmdbAiring = The Movie Database (Aired), <br/>aired = TheTVDB (Aired), <br/>dvd = TheTVDB (DVD), <br/>absolute = TheTVDB (Absolute)).<br/> | dvd |
|
||||
| `showOrdering` | [Optional\<ShowOrdering>](../../models/operations/ShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||
| `flattenSeasons` | [Optional\<GetSearchAllLibrariesFlattenSeasons>](../../models/operations/GetSearchAllLibrariesFlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `showOrdering` | [Optional\<GetSearchAllLibrariesShowOrdering>](../../models/operations/GetSearchAllLibrariesShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show <br/>None = Library default, <br/>tmdbAiring = The Movie Database (Aired), <br/>aired = TheTVDB (Aired), <br/>dvd = TheTVDB (DVD), <br/>absolute = TheTVDB (Absolute)).<br/> | dvd |
|
||||
| `showOrdering` | [Optional\<GetSearchAllLibrariesShowOrdering>](../../models/operations/GetSearchAllLibrariesShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
||||
| `query` | *String* | :heavy_check_mark: | The search query term. | |
|
||||
| `clientID` | *Optional\<String>* | :heavy_minus_sign: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `limit` | *Optional\<Long>* | :heavy_minus_sign: | Limit the number of results returned. | |
|
||||
| `searchTypes` | List\<[SearchTypes](../../models/operations/SearchTypes.md)> | :heavy_minus_sign: | A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv.<br/> | movies,music,otherVideos,people,tv |
|
||||
| `includeCollections` | [Optional\<QueryParamIncludeCollections>](../../models/operations/QueryParamIncludeCollections.md) | :heavy_minus_sign: | Whether to include collections in the search results. | 1 |
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
Setting that indicates the episode ordering for the show
|
||||
None = Library default,
|
||||
tmdbAiring = The Movie Database (Aired),
|
||||
aired = TheTVDB (Aired),
|
||||
dvd = TheTVDB (DVD),
|
||||
absolute = TheTVDB (Absolute)).
|
||||
tvdbAiring = TheTVDB (Aired),
|
||||
tvdbDvd = TheTVDB (DVD),
|
||||
tvdbAbsolute = TheTVDB (Absolute)).
|
||||
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------------ | ------------ |
|
||||
| -------------- | -------------- |
|
||||
| `None` | None |
|
||||
| `TmdbAiring` | tmdbAiring |
|
||||
| `Aired` | aired |
|
||||
| `Dvd` | dvd |
|
||||
| `Absolute` | absolute |
|
||||
| `TvdbAiring` | tvdbAiring |
|
||||
| `TvdbDvd` | tvdbDvd |
|
||||
| `TvdbAbsolute` | tvdbAbsolute |
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -8,4 +8,4 @@
|
||||
| `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: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
@@ -6,7 +6,7 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
||||
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||
| `clientID` | *Optional\<String>* | :heavy_minus_sign: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientName` | *Optional\<String>* | :heavy_minus_sign: | The name of the client application. (Plex Web, Plex Media Server, etc.) | Plex for Roku |
|
||||
| `deviceNickname` | *Optional\<String>* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 |
|
||||
| `clientVersion` | *Optional\<String>* | :heavy_minus_sign: | The version of the client application. | 2.4.1 |
|
||||
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
||||
| `clientID` | *Optional\<String>* | :heavy_minus_sign: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientName` | *Optional\<String>* | :heavy_minus_sign: | The name of the client application. (Plex Web, Plex Media Server, etc.) | Plex for Roku |
|
||||
| `deviceNickname` | *Optional\<String>* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 |
|
||||
| `clientVersion` | *Optional\<String>* | :heavy_minus_sign: | The version of the client application. | 2.4.1 |
|
||||
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -3,18 +3,18 @@
|
||||
Setting that indicates the episode ordering for the show
|
||||
None = Library default,
|
||||
tmdbAiring = The Movie Database (Aired),
|
||||
aired = TheTVDB (Aired),
|
||||
dvd = TheTVDB (DVD),
|
||||
absolute = TheTVDB (Absolute)).
|
||||
tvdbAiring = TheTVDB (Aired),
|
||||
tvdbDvd = TheTVDB (DVD),
|
||||
tvdbAbsolute = TheTVDB (Absolute)).
|
||||
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------------ | ------------ |
|
||||
| -------------- | -------------- |
|
||||
| `None` | None |
|
||||
| `TmdbAiring` | tmdbAiring |
|
||||
| `Aired` | aired |
|
||||
| `Dvd` | dvd |
|
||||
| `Absolute` | absolute |
|
||||
| `TvdbAiring` | tvdbAiring |
|
||||
| `TvdbDvd` | tvdbDvd |
|
||||
| `TvdbAbsolute` | tvdbAbsolute |
|
||||
@@ -26,3 +26,4 @@ A key representing a specific tag within the section.
|
||||
| `RESOLUTION` | resolution |
|
||||
| `FIRST_CHARACTER` | firstCharacter |
|
||||
| `FOLDER` | folder |
|
||||
| `ALBUMS` | albums |
|
||||
@@ -18,3 +18,5 @@ E.g. A movie library will not return anything with type 3 as there are no season
|
||||
| `Season` | 3 |
|
||||
| `Episode` | 4 |
|
||||
| `Audio` | 8 |
|
||||
| `Album` | 9 |
|
||||
| `Track` | 10 |
|
||||
@@ -38,11 +38,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
||||
@@ -88,11 +83,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
||||
|
||||
@@ -37,11 +37,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
||||
@@ -96,15 +91,10 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
||||
.source("server://client-identifier")
|
||||
.source("provider://provider-identifier")
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -151,11 +141,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
||||
@@ -208,14 +193,14 @@ public class Application {
|
||||
public static void main(String[] args) throws PostUsersSignInDataBadRequest, PostUsersSignInDataUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PostUsersSignInDataRequest req = PostUsersSignInDataRequest.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.requestBody(PostUsersSignInDataRequestBody.builder()
|
||||
.login("username@email.com")
|
||||
.password("password123")
|
||||
|
||||
@@ -35,11 +35,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
||||
@@ -90,11 +85,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
||||
@@ -139,11 +129,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
||||
@@ -193,11 +178,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartTaskResponse res = sdk.butler().startTask()
|
||||
@@ -250,11 +230,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopTaskResponse res = sdk.butler().stopTask()
|
||||
|
||||
@@ -34,11 +34,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||
@@ -95,11 +90,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRecentlyAddedRequest req = GetRecentlyAddedRequest.builder()
|
||||
@@ -161,17 +151,12 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||
.sectionId(6728.76d)
|
||||
.count(639.24d)
|
||||
.onlyTransient(QueryParamOnlyTransient.ONE)
|
||||
.count(6728.76d)
|
||||
.onlyTransient(QueryParamOnlyTransient.ZERO)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
|
||||
@@ -43,11 +43,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetFileHashResponse res = sdk.library().getFileHash()
|
||||
@@ -105,11 +100,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRecentlyAddedLibraryRequest req = GetRecentlyAddedLibraryRequest.builder()
|
||||
@@ -190,11 +180,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
||||
@@ -280,11 +265,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
||||
@@ -339,11 +319,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
||||
@@ -395,6 +370,7 @@ Fetches details from a specific section of the library identified by a section k
|
||||
- `resolution`: Items categorized by resolution.
|
||||
- `firstCharacter`: Items categorized by the first letter.
|
||||
- `folder`: Items categorized by folder.
|
||||
- `albums`: Items categorized by album.
|
||||
|
||||
|
||||
### Example Usage
|
||||
@@ -419,11 +395,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||
@@ -488,11 +459,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
||||
@@ -564,11 +530,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
||||
@@ -629,15 +590,11 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchAllLibrariesRequest req = GetSearchAllLibrariesRequest.builder()
|
||||
.query("<value>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.searchTypes(List.of(
|
||||
SearchTypes.PEOPLE))
|
||||
.includeCollections(QueryParamIncludeCollections.Enable)
|
||||
@@ -695,11 +652,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
||||
@@ -753,16 +705,11 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||
.ratingKey(1539.15d)
|
||||
.includeElements("<value>")
|
||||
.ratingKey(1539.14d)
|
||||
.includeElements("Stream")
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -814,11 +761,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
||||
@@ -874,11 +816,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||
|
||||
@@ -35,11 +35,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
LogLineResponse res = sdk.log().logLine()
|
||||
@@ -116,15 +111,9 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
||||
level=1&message=Test%20message%203&source=postman";
|
||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman\nlevel=1&message=Test%20message%203&source=postman";
|
||||
|
||||
LogMultiLineResponse res = sdk.log().logMultiLine()
|
||||
.request(req)
|
||||
@@ -175,11 +164,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
||||
|
||||
@@ -35,11 +35,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||
@@ -90,11 +85,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||
@@ -146,11 +136,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||
@@ -206,11 +191,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
||||
@@ -273,11 +253,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
||||
|
||||
@@ -48,18 +48,13 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
||||
.title("<value>")
|
||||
.type(CreatePlaylistQueryParamType.PHOTO)
|
||||
.smart(Smart.ONE)
|
||||
.uri("https://hoarse-testing.info/")
|
||||
.uri("https://inborn-brochure.biz")
|
||||
.build();
|
||||
|
||||
CreatePlaylistResponse res = sdk.playlists().createPlaylist()
|
||||
@@ -114,11 +109,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
||||
@@ -175,11 +165,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||
@@ -233,11 +218,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||
@@ -289,15 +269,10 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||
.playlistID(3915.00d)
|
||||
.playlistID(3915d)
|
||||
.title("<value>")
|
||||
.summary("<value>")
|
||||
.call();
|
||||
@@ -353,11 +328,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||
@@ -413,11 +383,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||
@@ -470,15 +435,10 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||
.playlistID(8502.00d)
|
||||
.playlistID(8502.01d)
|
||||
.uri("server://12345/com.plexapp.plugins.library/library/metadata/1")
|
||||
.playQueueID(123d)
|
||||
.call();
|
||||
@@ -533,11 +493,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
||||
|
||||
@@ -37,11 +37,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||
@@ -93,11 +88,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
||||
@@ -148,11 +138,6 @@ public class Application {
|
||||
public static void main(String[] args) throws GetGeoDataBadRequest, GetGeoDataUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetGeoDataResponse res = sdk.plex().getGeoData()
|
||||
@@ -204,11 +189,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetHomeDataResponse res = sdk.plex().getHomeData()
|
||||
@@ -257,11 +237,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
||||
@@ -285,7 +260,7 @@ public class Application {
|
||||
| `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: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `clientID` | *String* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
### Response
|
||||
@@ -320,14 +295,14 @@ public class Application {
|
||||
public static void main(String[] args) throws GetPinBadRequest, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetPinRequest req = GetPinRequest.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.build();
|
||||
|
||||
GetPinResponse res = sdk.plex().getPin()
|
||||
@@ -380,15 +355,15 @@ public class Application {
|
||||
public static void main(String[] args) throws GetTokenByPinIdBadRequest, GetTokenByPinIdResponseBody, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTokenByPinIdRequest req = GetTokenByPinIdRequest.builder()
|
||||
.pinID(408895L)
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.build();
|
||||
|
||||
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
||||
|
||||
@@ -26,3 +26,6 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
|
||||
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
|
||||
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
|
||||
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
|
||||
|
||||
### Available Operations
|
||||
|
||||
@@ -45,16 +45,11 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PerformSearchResponse res = sdk.search().performSearch()
|
||||
.query("dylan")
|
||||
.sectionId(9372.69d)
|
||||
.sectionId(9487.87d)
|
||||
.limit(5d)
|
||||
.call();
|
||||
|
||||
@@ -108,11 +103,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||
@@ -167,11 +157,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
||||
|
||||
@@ -39,11 +39,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||
@@ -89,11 +84,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
||||
@@ -139,11 +129,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
||||
@@ -189,11 +174,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetDevicesResponse res = sdk.server().getDevices()
|
||||
@@ -237,11 +217,6 @@ public class Application {
|
||||
public static void main(String[] args) throws GetServerIdentityRequestTimeout, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
||||
@@ -286,11 +261,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
||||
@@ -340,19 +310,14 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||
.width(110d)
|
||||
.height(165d)
|
||||
.opacity(100L)
|
||||
.blur(20d)
|
||||
.minSize(MinSize.ZERO)
|
||||
.blur(0d)
|
||||
.minSize(MinSize.ONE)
|
||||
.upscale(Upscale.ONE)
|
||||
.url("/library/metadata/49564/thumb/1654258204")
|
||||
.build();
|
||||
@@ -405,11 +370,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
||||
@@ -462,11 +422,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetServerListResponse res = sdk.server().getServerList()
|
||||
|
||||
@@ -34,11 +34,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSessionsResponse res = sdk.sessions().getSessions()
|
||||
@@ -85,15 +80,10 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
||||
.sort("<value>")
|
||||
.sort("viewedAt:desc")
|
||||
.accountId(1L)
|
||||
.filter(QueryParamFilter.builder()
|
||||
.build())
|
||||
@@ -149,11 +139,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
||||
@@ -199,11 +184,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
||||
|
||||
@@ -33,11 +33,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
||||
@@ -90,11 +85,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
||||
@@ -147,11 +137,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
||||
|
||||
@@ -34,11 +34,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
||||
@@ -85,11 +80,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
||||
@@ -143,11 +133,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
||||
|
||||
@@ -34,11 +34,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||
@@ -103,11 +98,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||
|
||||
@@ -33,11 +33,6 @@ public class Application {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||
.clientName("Plex for Roku")
|
||||
.clientVersion("2.4.1")
|
||||
.platform("Roku")
|
||||
.deviceNickname("Roku 3")
|
||||
.build();
|
||||
|
||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||
|
||||
@@ -79,9 +79,9 @@ public class Activities implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -89,7 +89,7 @@ public class Activities implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -100,7 +100,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -109,7 +109,7 @@ public class Activities implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -118,7 +118,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -229,16 +229,16 @@ public class Activities implements
|
||||
CancelServerActivitiesRequest.class,
|
||||
_baseUrl,
|
||||
"/activities/{activityUUID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -246,7 +246,7 @@ public class Activities implements
|
||||
new BeforeRequestContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -257,7 +257,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -266,7 +266,7 @@ public class Activities implements
|
||||
new AfterSuccessContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -275,7 +275,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -122,11 +122,11 @@ public class Authentication implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTransientTokenRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -134,7 +134,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -145,7 +145,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -154,7 +154,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -163,7 +163,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -275,11 +275,11 @@ public class Authentication implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSourceConnectionInformationRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -287,7 +287,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -298,7 +298,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -307,7 +307,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -316,7 +316,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -427,9 +427,9 @@ public class Authentication implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -437,7 +437,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -448,7 +448,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -457,7 +457,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -466,7 +466,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -601,8 +601,8 @@ public class Authentication implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -610,7 +610,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -621,7 +621,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -630,7 +630,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -639,7 +639,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -91,9 +91,9 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -101,7 +101,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -112,7 +112,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -121,7 +121,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -130,7 +130,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -248,9 +248,9 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -258,7 +258,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -269,7 +269,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -278,7 +278,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -287,7 +287,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -386,9 +386,9 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -396,7 +396,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -407,7 +407,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -416,7 +416,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -425,7 +425,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -535,16 +535,16 @@ public class Butler implements
|
||||
StartTaskRequest.class,
|
||||
_baseUrl,
|
||||
"/butler/{taskName}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "POST");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -552,7 +552,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -563,7 +563,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -572,7 +572,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -581,7 +581,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -683,16 +683,16 @@ public class Butler implements
|
||||
StopTaskRequest.class,
|
||||
_baseUrl,
|
||||
"/butler/{taskName}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -700,7 +700,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -711,7 +711,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -720,7 +720,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -729,7 +729,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -107,11 +107,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetGlobalHubsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -119,7 +119,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -130,7 +130,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -139,7 +139,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -148,7 +148,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -263,11 +263,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -275,7 +275,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -286,7 +286,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -295,7 +295,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -304,7 +304,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -404,7 +404,7 @@ public class Hubs implements
|
||||
GetLibraryHubsRequest.class,
|
||||
_baseUrl,
|
||||
"/hubs/sections/{sectionId}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -414,11 +414,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryHubsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -426,7 +426,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -437,7 +437,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -446,7 +446,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -455,7 +455,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -179,11 +179,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetFileHashRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -191,7 +191,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -202,7 +202,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -211,7 +211,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -220,7 +220,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -324,11 +324,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedLibraryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -336,7 +336,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -347,7 +347,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -356,7 +356,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -365,7 +365,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -485,9 +485,9 @@ public class Library implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -495,7 +495,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -506,7 +506,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -515,7 +515,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -524,7 +524,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -773,7 +773,7 @@ public class Library implements
|
||||
GetLibraryDetailsRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -783,11 +783,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryDetailsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -795,7 +795,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -806,7 +806,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -815,7 +815,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -824,7 +824,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -937,16 +937,16 @@ public class Library implements
|
||||
DeleteLibraryRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -954,7 +954,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -965,7 +965,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -974,7 +974,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -983,7 +983,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1075,6 +1075,7 @@ public class Library implements
|
||||
* - `resolution`: Items categorized by resolution.
|
||||
* - `firstCharacter`: Items categorized by the first letter.
|
||||
* - `folder`: Items categorized by folder.
|
||||
* - `albums`: Items categorized by album.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -1104,6 +1105,7 @@ public class Library implements
|
||||
* - `resolution`: Items categorized by resolution.
|
||||
* - `firstCharacter`: Items categorized by the first letter.
|
||||
* - `folder`: Items categorized by folder.
|
||||
* - `albums`: Items categorized by album.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
@@ -1117,7 +1119,7 @@ public class Library implements
|
||||
GetLibraryItemsRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/{tag}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1127,11 +1129,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryItemsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1139,7 +1141,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1150,7 +1152,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1159,7 +1161,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1168,7 +1170,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1301,7 +1303,7 @@ public class Library implements
|
||||
GetRefreshLibraryMetadataRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/refresh",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1311,11 +1313,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRefreshLibraryMetadataRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1323,7 +1325,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1334,7 +1336,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1343,7 +1345,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1352,7 +1354,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1499,7 +1501,7 @@ public class Library implements
|
||||
GetSearchLibraryRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/search",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1509,11 +1511,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchLibraryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1521,7 +1523,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1532,7 +1534,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1541,7 +1543,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1550,7 +1552,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1665,12 +1667,12 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchAllLibrariesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1678,7 +1680,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1689,7 +1691,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1698,7 +1700,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1707,7 +1709,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1820,16 +1822,16 @@ public class Library implements
|
||||
GetMetaDataByRatingKeyRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1837,7 +1839,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1848,7 +1850,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1857,7 +1859,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1866,7 +1868,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1996,7 +1998,7 @@ public class Library implements
|
||||
GetMetadataChildrenRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/children",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -2006,11 +2008,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetMetadataChildrenRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2018,7 +2020,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2029,7 +2031,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2038,7 +2040,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2047,7 +2049,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -2197,11 +2199,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTopWatchedContentRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2209,7 +2211,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2220,7 +2222,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2229,7 +2231,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2238,7 +2240,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -2348,9 +2350,9 @@ public class Library implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2358,7 +2360,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2369,7 +2371,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2378,7 +2380,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2387,7 +2389,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -106,11 +106,11 @@ public class Log implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
LogLineRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -118,7 +118,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -129,7 +129,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -138,7 +138,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -147,7 +147,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -301,9 +301,9 @@ public class Log implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -311,7 +311,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -322,7 +322,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -331,7 +331,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -340,7 +340,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -439,9 +439,9 @@ public class Log implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -449,7 +449,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -460,7 +460,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -469,7 +469,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -478,7 +478,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -102,11 +102,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
MarkPlayedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -114,7 +114,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -125,7 +125,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -134,7 +134,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -143,7 +143,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -251,11 +251,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
MarkUnplayedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -263,7 +263,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -274,7 +274,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -283,7 +283,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -292,7 +292,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -408,11 +408,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UpdatePlayProgressRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -420,7 +420,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -431,7 +431,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -440,7 +440,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -449,7 +449,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -543,7 +543,7 @@ public class Media implements
|
||||
GetBannerImageRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/banner",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "image/jpeg")
|
||||
@@ -553,12 +553,12 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetBannerImageRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -566,7 +566,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -577,7 +577,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -586,7 +586,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -595,7 +595,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -700,7 +700,7 @@ public class Media implements
|
||||
GetThumbImageRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/thumb",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "image/jpeg")
|
||||
@@ -710,12 +710,12 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetThumbImageRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -723,7 +723,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -734,7 +734,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -743,7 +743,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -752,7 +752,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -139,11 +139,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
CreatePlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -151,7 +151,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -162,7 +162,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -171,7 +171,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -180,7 +180,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -312,11 +312,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPlaylistsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -324,7 +324,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -335,7 +335,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -344,7 +344,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -353,7 +353,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -468,16 +468,16 @@ public class Playlists implements
|
||||
GetPlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -485,7 +485,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -496,7 +496,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -505,7 +505,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -514,7 +514,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -627,16 +627,16 @@ public class Playlists implements
|
||||
DeletePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -644,7 +644,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -655,7 +655,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -664,7 +664,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -673,7 +673,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -794,7 +794,7 @@ public class Playlists implements
|
||||
UpdatePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "PUT");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -804,11 +804,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UpdatePlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -816,7 +816,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -827,7 +827,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -836,7 +836,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -845,7 +845,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -962,7 +962,7 @@ public class Playlists implements
|
||||
GetPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -972,11 +972,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPlaylistContentsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -984,7 +984,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -995,7 +995,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1004,7 +1004,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1013,7 +1013,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1126,16 +1126,16 @@ public class Playlists implements
|
||||
ClearPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1143,7 +1143,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1154,7 +1154,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1163,7 +1163,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1172,7 +1172,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1298,7 +1298,7 @@ public class Playlists implements
|
||||
AddPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "PUT");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1308,11 +1308,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
AddPlaylistContentsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1320,7 +1320,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1331,7 +1331,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1340,7 +1340,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1349,7 +1349,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1486,11 +1486,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UploadPlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1498,7 +1498,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1509,7 +1509,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1518,7 +1518,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1527,7 +1527,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -165,9 +165,9 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -175,7 +175,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -186,7 +186,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -195,7 +195,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -204,7 +204,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -326,9 +326,9 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -336,7 +336,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -347,7 +347,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -356,7 +356,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -365,7 +365,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -486,7 +486,7 @@ public class Plex implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -494,7 +494,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -505,7 +505,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -514,7 +514,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -523,7 +523,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -631,9 +631,9 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -641,7 +641,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -652,7 +652,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -661,7 +661,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -670,7 +670,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -763,11 +763,13 @@ public class Plex implements
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
* @param clientID An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetServerResourcesResponse getServerResourcesDirect() throws Exception {
|
||||
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetServerResourcesResponse getServerResources(
|
||||
String clientID) throws Exception {
|
||||
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), clientID, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -787,7 +789,7 @@ public class Plex implements
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
GetServerResourcesRequest request =
|
||||
GetServerResourcesRequest
|
||||
@@ -814,12 +816,12 @@ public class Plex implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetServerResourcesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -827,7 +829,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -838,7 +840,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -847,7 +849,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -856,7 +858,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -985,9 +987,9 @@ public class Plex implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPinRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -995,7 +997,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1006,7 +1008,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1015,7 +1017,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1024,7 +1026,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1129,14 +1131,14 @@ public class Plex implements
|
||||
GetTokenByPinIdRequest.class,
|
||||
_baseUrl,
|
||||
"/pins/{pinID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1144,7 +1146,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1155,7 +1157,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1164,7 +1166,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1173,7 +1175,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*;
|
||||
import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
@@ -13,6 +12,7 @@ import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
@@ -458,89 +458,16 @@ public class PlexAPI {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientID parameter for all supported operations.
|
||||
*
|
||||
* @param clientID The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientID", clientID);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientName parameter for all supported operations.
|
||||
*
|
||||
* @param clientName The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientName(String clientName) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientName", clientName);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientVersion parameter for all supported operations.
|
||||
*
|
||||
* @param clientVersion The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientVersion(String clientVersion) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientVersion", clientVersion);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the platform parameter for all supported operations.
|
||||
*
|
||||
* @param platform The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder platform(String platform) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("platform", platform);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the deviceNickname parameter for all supported operations.
|
||||
*
|
||||
* @param deviceNickname The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder deviceNickname(String deviceNickname) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("deviceNickname", deviceNickname);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
// Visible for testing, will be accessed via reflection
|
||||
void _hooks(dev.plexapi.sdk.utils.Hooks hooks) {
|
||||
// Visible for testing, may be accessed via reflection in tests
|
||||
Builder _hooks(dev.plexapi.sdk.utils.Hooks hooks) {
|
||||
sdkConfiguration.setHooks(hooks);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Visible for testing, may be accessed via reflection in tests
|
||||
Builder _hooks(Consumer<? super dev.plexapi.sdk.utils.Hooks> consumer) {
|
||||
consumer.accept(sdkConfiguration.hooks());
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.Hook.SdkInitData;
|
||||
import dev.plexapi.sdk.utils.Hooks;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import java.lang.Object;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.ArrayList;
|
||||
@@ -24,9 +24,16 @@ class SDKConfiguration {
|
||||
public Optional<SecuritySource> securitySource() {
|
||||
return Optional.ofNullable(securitySource);
|
||||
}
|
||||
|
||||
public HTTPClient defaultClient;
|
||||
|
||||
public String serverUrl;
|
||||
|
||||
public String resolvedServerUrl() {
|
||||
return Utils.templateUrl(serverUrl, getServerVariableDefaults());
|
||||
}
|
||||
public int serverIdx = 0;
|
||||
@SuppressWarnings("serial")
|
||||
List<Map<String, String>> serverDefaults = new ArrayList<>(){ {
|
||||
add(new HashMap<>(){ {
|
||||
put("protocol", "https");
|
||||
@@ -36,8 +43,8 @@ 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.10.0";
|
||||
public static final String GEN_VERSION = "2.457.2";
|
||||
public static final String SDK_VERSION = "0.11.0";
|
||||
public static final String GEN_VERSION = "2.483.1";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
@@ -64,15 +71,12 @@ class SDKConfiguration {
|
||||
public void initialize() {
|
||||
SDKHooks.initialize(_hooks);
|
||||
// apply the sdk init hook immediately
|
||||
SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient));
|
||||
SdkInitData data = _hooks.sdkInit(new SdkInitData(resolvedServerUrl(), defaultClient));
|
||||
this.serverUrl = data.baseUrl();
|
||||
this.defaultClient = data.client();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public Map<String, Map<String, Map<String,Object>>> globals = new HashMap<>(){ {
|
||||
put("parameters", new HashMap<>());
|
||||
} };
|
||||
|
||||
|
||||
public Map<String, String> getServerVariableDefaults() {
|
||||
return serverDefaults.get(this.serverIdx);
|
||||
|
||||
@@ -146,11 +146,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
PerformSearchRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -158,7 +158,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -169,7 +169,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -178,7 +178,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -187,7 +187,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -325,11 +325,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
PerformVoiceSearchRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -337,7 +337,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -348,7 +348,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -357,7 +357,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -366,7 +366,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -474,11 +474,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchResultsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -486,7 +486,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -497,7 +497,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -506,7 +506,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -515,7 +515,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -115,9 +115,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -125,7 +125,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -136,7 +136,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -145,7 +145,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -154,7 +154,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -262,9 +262,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -272,7 +272,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -283,7 +283,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -292,7 +292,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -301,7 +301,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -409,9 +409,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -419,7 +419,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -430,7 +430,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -439,7 +439,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -448,7 +448,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -556,9 +556,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -566,7 +566,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -577,7 +577,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -586,7 +586,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -595,7 +595,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -702,7 +702,7 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -710,7 +710,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -721,7 +721,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -730,7 +730,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -739,7 +739,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -831,9 +831,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -841,7 +841,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -852,7 +852,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -861,7 +861,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -870,7 +870,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -985,11 +985,11 @@ public class Server implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetResizedPhotoRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -997,7 +997,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1008,7 +1008,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1017,7 +1017,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1026,7 +1026,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1130,11 +1130,11 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1142,7 +1142,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1153,7 +1153,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1162,7 +1162,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1171,7 +1171,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1279,9 +1279,9 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1289,7 +1289,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1300,7 +1300,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1309,7 +1309,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1318,7 +1318,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -88,9 +88,9 @@ public class Sessions implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -98,7 +98,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -109,7 +109,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -118,7 +118,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -127,7 +127,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -270,11 +270,11 @@ public class Sessions implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSessionHistoryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -282,7 +282,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -293,7 +293,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -302,7 +302,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -311,7 +311,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -419,9 +419,9 @@ public class Sessions implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -429,7 +429,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -440,7 +440,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -449,7 +449,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -458,7 +458,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -569,16 +569,16 @@ public class Sessions implements
|
||||
StopTranscodeSessionRequest.class,
|
||||
_baseUrl,
|
||||
"/transcode/sessions/{sessionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -586,7 +586,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -597,7 +597,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -606,7 +606,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -615,7 +615,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -106,11 +106,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -118,7 +118,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -129,7 +129,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -138,7 +138,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -147,7 +147,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -278,11 +278,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetResourcesStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -290,7 +290,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -301,7 +301,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -310,7 +310,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -319,7 +319,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -450,11 +450,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetBandwidthStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -462,7 +462,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -473,7 +473,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -482,7 +482,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -491,7 +491,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -83,9 +83,9 @@ public class Updater implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -93,7 +93,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -104,7 +104,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -113,7 +113,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -122,7 +122,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -251,11 +251,11 @@ public class Updater implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
CheckForUpdatesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -263,7 +263,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -274,7 +274,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -283,7 +283,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -292,7 +292,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -416,11 +416,11 @@ public class Updater implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
ApplyUpdatesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -428,7 +428,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -439,7 +439,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -448,7 +448,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -457,7 +457,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -78,11 +78,11 @@ public class Video implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTimelineRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -90,7 +90,7 @@ public class Video implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -101,7 +101,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -110,7 +110,7 @@ public class Video implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -119,7 +119,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -221,11 +221,11 @@ public class Video implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
StartUniversalTranscodeRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -233,7 +233,7 @@ public class Video implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -244,7 +244,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -253,7 +253,7 @@ public class Video implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -262,7 +262,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class Watchlist implements
|
||||
GetWatchListRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/watchlist/{filter}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -102,12 +102,12 @@ public class Watchlist implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetWatchListRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -115,7 +115,7 @@ public class Watchlist implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -126,7 +126,7 @@ public class Watchlist implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -135,7 +135,7 @@ public class Watchlist implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -144,7 +144,7 @@ public class Watchlist implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum ActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ActiveDirection> fromValue(String value) {
|
||||
for (ActiveDirection o: ActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
@@ -23,4 +25,13 @@ public enum AutoSelectSubtitle {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<AutoSelectSubtitle> fromValue(int value) {
|
||||
for (AutoSelectSubtitle o: AutoSelectSubtitle.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CreatePlaylistQueryParamType - type of playlist to create
|
||||
@@ -25,4 +27,13 @@ public enum CreatePlaylistQueryParamType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<CreatePlaylistQueryParamType> fromValue(String value) {
|
||||
for (CreatePlaylistQueryParamType o: CreatePlaylistQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum DefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultDirection> fromValue(String value) {
|
||||
for (DefaultDirection o: DefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleAccessibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleAccessibility> fromValue(int value) {
|
||||
for (DefaultSubtitleAccessibility o: DefaultSubtitleAccessibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleForced {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleForced> fromValue(int value) {
|
||||
for (DefaultSubtitleForced o: DefaultSubtitleForced.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Download - Indicate that you want to start download any updates found.
|
||||
@@ -23,4 +25,13 @@ public enum Download {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Download> fromValue(long value) {
|
||||
for (Download o: Download.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Filter - Filter
|
||||
@@ -25,4 +27,13 @@ public enum Filter {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Filter> fromValue(String value) {
|
||||
for (Filter o: Filter.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum FlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum FlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<FlattenSeasons> fromValue(String value) {
|
||||
for (FlattenSeasons o: FlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Force - Force the refresh even if the library is already being refreshed.
|
||||
@@ -23,4 +25,13 @@ public enum Force {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Force> fromValue(long value) {
|
||||
for (Force o: Force.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class GetBandwidthStatisticsRequest {
|
||||
* the exact meaning of this parameter is not known
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan")
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=timespan")
|
||||
private Optional<Long> timespan;
|
||||
|
||||
@JsonCreator
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsActiveDirection o: GetLibraryItemsActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsDefaultDirection o: GetLibraryItemsDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsFlattenSeasons> fromValue(String value) {
|
||||
for (GetLibraryItemsFlattenSeasons o: GetLibraryItemsFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsHasThumbnail> fromValue(String value) {
|
||||
for (GetLibraryItemsHasThumbnail o: GetLibraryItemsHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryActiveDirection o: GetLibraryItemsLibraryActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryDefaultDirection o: GetLibraryItemsLibraryDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponse200Type {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetLibraryItemsLibraryResponse200Type {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryResponse200Type> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryResponse200Type o: GetLibraryItemsLibraryResponse200Type.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetLibraryItemsLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryType> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryType o: GetLibraryItemsLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,9 +111,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -699,9 +699,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1219,9 +1219,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -1234,9 +1234,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
@@ -2523,9 +2523,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -2538,9 +2538,9 @@ public class GetLibraryItemsMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetLibraryItemsOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetLibraryItemsOptimizedForStreaming o: GetLibraryItemsOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum GetLibraryItemsQueryParamIncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamIncludeMeta> fromValue(int value) {
|
||||
for (GetLibraryItemsQueryParamIncludeMeta o: GetLibraryItemsQueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetLibraryItemsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetLibraryItemsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamType> fromValue(long value) {
|
||||
for (GetLibraryItemsQueryParamType o: GetLibraryItemsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum GetLibraryItemsShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsShowOrdering> fromValue(String value) {
|
||||
for (GetLibraryItemsShowOrdering o: GetLibraryItemsShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -60,6 +61,41 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionKey")
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("grandparentTitle")
|
||||
private Optional<String> grandparentTitle;
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentTitle")
|
||||
private Optional<String> parentTitle;
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("originalTitle")
|
||||
private Optional<String> originalTitle;
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("index")
|
||||
private Optional<Long> index;
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentIndex")
|
||||
private Optional<Long> parentIndex;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("contentRating")
|
||||
private Optional<String> contentRating;
|
||||
@@ -167,6 +203,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
|
||||
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
||||
@JsonProperty("grandparentTitle") Optional<String> grandparentTitle,
|
||||
@JsonProperty("parentTitle") Optional<String> parentTitle,
|
||||
@JsonProperty("originalTitle") Optional<String> originalTitle,
|
||||
@JsonProperty("index") Optional<Long> index,
|
||||
@JsonProperty("parentIndex") Optional<Long> parentIndex,
|
||||
@JsonProperty("contentRating") Optional<String> contentRating,
|
||||
@JsonProperty("summary") Optional<String> summary,
|
||||
@JsonProperty("rating") Optional<Double> rating,
|
||||
@@ -200,6 +241,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
Utils.checkNotNull(index, "index");
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
Utils.checkNotNull(summary, "summary");
|
||||
Utils.checkNotNull(rating, "rating");
|
||||
@@ -233,6 +279,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
this.parentTitle = parentTitle;
|
||||
this.originalTitle = originalTitle;
|
||||
this.index = index;
|
||||
this.parentIndex = parentIndex;
|
||||
this.contentRating = contentRating;
|
||||
this.summary = summary;
|
||||
this.rating = rating;
|
||||
@@ -260,7 +311,7 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -308,6 +359,46 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return librarySectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> grandparentTitle() {
|
||||
return grandparentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> parentTitle() {
|
||||
return parentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> originalTitle() {
|
||||
return originalTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> index() {
|
||||
return index;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> parentIndex() {
|
||||
return parentIndex;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> contentRating() {
|
||||
return contentRating;
|
||||
@@ -549,6 +640,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata withContentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -856,6 +1037,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||
Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) &&
|
||||
Objects.deepEquals(this.parentTitle, other.parentTitle) &&
|
||||
Objects.deepEquals(this.originalTitle, other.originalTitle) &&
|
||||
Objects.deepEquals(this.index, other.index) &&
|
||||
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
|
||||
Objects.deepEquals(this.contentRating, other.contentRating) &&
|
||||
Objects.deepEquals(this.summary, other.summary) &&
|
||||
Objects.deepEquals(this.rating, other.rating) &&
|
||||
@@ -894,6 +1080,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
@@ -932,6 +1123,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionKey", librarySectionKey,
|
||||
"grandparentTitle", grandparentTitle,
|
||||
"parentTitle", parentTitle,
|
||||
"originalTitle", originalTitle,
|
||||
"index", index,
|
||||
"parentIndex", parentIndex,
|
||||
"contentRating", contentRating,
|
||||
"summary", summary,
|
||||
"rating", rating,
|
||||
@@ -978,6 +1174,16 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
|
||||
private Optional<String> librarySectionKey = Optional.empty();
|
||||
|
||||
private Optional<String> grandparentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> parentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> originalTitle = Optional.empty();
|
||||
|
||||
private Optional<Long> index = Optional.empty();
|
||||
|
||||
private Optional<Long> parentIndex = Optional.empty();
|
||||
|
||||
private Optional<String> contentRating = Optional.empty();
|
||||
|
||||
private Optional<String> summary = Optional.empty();
|
||||
@@ -1138,6 +1344,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder contentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -1437,6 +1733,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
|
||||
@@ -33,7 +33,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -62,7 +62,7 @@ public class GetPinRequest {
|
||||
@JsonCreator
|
||||
public GetPinRequest(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -81,8 +81,9 @@ public class GetPinRequest {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public GetPinRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetPinRequest(
|
||||
String clientID) {
|
||||
this(Optional.empty(), clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,7 +101,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -168,15 +169,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -298,7 +290,7 @@ public class GetPinRequest {
|
||||
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -340,15 +332,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetPlaylistContentsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetPlaylistContentsQueryParamType> fromValue(long value) {
|
||||
for (GetPlaylistContentsQueryParamType o: GetPlaylistContentsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedActiveDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedActiveDirection o: GetRecentlyAddedActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedDefaultDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedDefaultDirection o: GetRecentlyAddedDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetRecentlyAddedHubsResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetRecentlyAddedHubsResponseType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsResponseType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsResponseType o: GetRecentlyAddedHubsResponseType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedHubsType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetRecentlyAddedHubsType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsType o: GetRecentlyAddedHubsType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,9 +111,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -699,9 +699,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1219,9 +1219,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||
@@ -1234,9 +1234,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
@@ -2523,9 +2523,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||
@@ -2538,9 +2538,9 @@ public class GetRecentlyAddedMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
|
||||
@@ -23,7 +23,7 @@ public class GetResourcesStatisticsRequest {
|
||||
* the exact meaning of this parameter is not known
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan")
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=timespan")
|
||||
private Optional<Long> timespan;
|
||||
|
||||
@JsonCreator
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesFlattenSeasons> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesFlattenSeasons o: GetSearchAllLibrariesFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesHasThumbnail> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesHasThumbnail o: GetSearchAllLibrariesHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesLibraryType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetSearchAllLibrariesLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesLibraryType> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesLibraryType o: GetSearchAllLibrariesLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,9 +111,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -699,9 +699,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1219,9 +1219,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -1234,9 +1234,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
@@ -2523,9 +2523,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -2538,9 +2538,9 @@ public class GetSearchAllLibrariesMetadata {
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetSearchAllLibrariesOptimizedForStreaming o: GetSearchAllLibrariesOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user