mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ generation:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
oAuth2PasswordEnabled: false
|
||||
java:
|
||||
version: 0.13.1
|
||||
version: 0.14.0
|
||||
additionalDependencies: []
|
||||
additionalPlugins: []
|
||||
artifactID: plexapi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.513.4
|
||||
speakeasyVersion: 1.526.6
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
@@ -8,19 +8,19 @@ sources:
|
||||
- latest
|
||||
plexapi:
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf
|
||||
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||
tags:
|
||||
- latest
|
||||
- speakeasy-sdk-regen-1741479884
|
||||
- speakeasy-sdk-regen-1743440866
|
||||
targets:
|
||||
plexjava:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf
|
||||
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||
codeSamplesNamespace: code-samples-java-plexjava
|
||||
codeSamplesRevisionDigest: sha256:4064f5ad7cfcedb8f9c65f1154bc2cdf5c92ebf8c60ba752d5537bb5692305e7
|
||||
codeSamplesRevisionDigest: sha256:efd9a529c906a73b2d32257e52235b87cdb19f16486800f6eb2172eec9454726
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
@@ -42,3 +42,5 @@ workflow:
|
||||
output: codeSamples.yaml
|
||||
registry:
|
||||
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-java-plexjava
|
||||
labelOverride:
|
||||
fixedValue: PlexJava
|
||||
|
||||
@@ -15,8 +15,8 @@ targets:
|
||||
gpgSecretKey: $java_gpg_secret_key
|
||||
gpgPassPhrase: $java_gpg_passphrase
|
||||
codeSamples:
|
||||
labelOverride:
|
||||
fixedValue: PlexJava
|
||||
output: codeSamples.yaml
|
||||
registry:
|
||||
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-java-plexjava
|
||||
labelOverride:
|
||||
fixedValue: PlexJava
|
||||
|
||||
@@ -69,7 +69,7 @@ The samples below show how a published SDK artifact is used:
|
||||
|
||||
Gradle:
|
||||
```groovy
|
||||
implementation 'dev.plexapi:plexapi:0.13.1'
|
||||
implementation 'dev.plexapi:plexapi:0.14.0'
|
||||
```
|
||||
|
||||
Maven:
|
||||
@@ -77,7 +77,7 @@ Maven:
|
||||
<dependency>
|
||||
<groupId>dev.plexapi</groupId>
|
||||
<artifactId>plexapi</artifactId>
|
||||
<version>0.13.1</version>
|
||||
<version>0.14.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
@@ -332,6 +332,7 @@ The default server `{protocol}://{ip}:{port}` contains variables and is set to `
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.SDK.Builder.ServerProtocol;
|
||||
import dev.plexapi.sdk.models.errors.GetServerCapabilitiesBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetServerCapabilitiesUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetServerCapabilitiesResponse;
|
||||
@@ -342,7 +343,7 @@ public class Application {
|
||||
public static void main(String[] args) throws GetServerCapabilitiesBadRequest, GetServerCapabilitiesUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.protocol("https")
|
||||
.protocol(ServerProtocol.HTTPS)
|
||||
.ip("e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9")
|
||||
.port("40311")
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -278,4 +278,14 @@ Based on:
|
||||
### Generated
|
||||
- [java v0.13.1] .
|
||||
### Releases
|
||||
- [Maven Central v0.13.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.1 - .
|
||||
- [Maven Central v0.13.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.1 - .
|
||||
|
||||
## 2025-03-31 17:07:30
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [java v0.14.0] .
|
||||
### Releases
|
||||
- [Maven Central v0.14.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.14.0 - .
|
||||
26
build.gradle
26
build.gradle
@@ -39,9 +39,12 @@ model {
|
||||
}
|
||||
}
|
||||
|
||||
version = "${version}"
|
||||
group = "${groupId}"
|
||||
|
||||
jar {
|
||||
dependsOn(":generatePomFileForMavenPublication")
|
||||
archiveBaseName = "plexapi"
|
||||
archiveBaseName = "${artifactId}"
|
||||
|
||||
into("META-INF/maven/dev.plexapi/plexapi") {
|
||||
from("$buildDir/pom.xml")
|
||||
@@ -62,15 +65,12 @@ tasks.withType(Javadoc) {
|
||||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
|
||||
group = "dev.plexapi"
|
||||
version = "0.13.1"
|
||||
|
||||
sourcesJar {
|
||||
archiveBaseName = "plexapi"
|
||||
archiveBaseName = "${artifactId}"
|
||||
}
|
||||
|
||||
javadocJar {
|
||||
archiveBaseName = "plexapi"
|
||||
archiveBaseName = "${artifactId}"
|
||||
}
|
||||
sonatypeCentralUpload {
|
||||
// This is your Sonatype generated username
|
||||
@@ -80,9 +80,9 @@ sonatypeCentralUpload {
|
||||
|
||||
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
|
||||
archives = files(
|
||||
"$buildDir/libs/plexapi-${version}.jar",
|
||||
"$buildDir/libs/plexapi-${version}-sources.jar",
|
||||
"$buildDir/libs/plexapi-${version}-javadoc.jar"
|
||||
"$buildDir/libs/${artifactId}-${version}.jar",
|
||||
"$buildDir/libs/${artifactId}-${version}-sources.jar",
|
||||
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
|
||||
)
|
||||
|
||||
// This is the pom file to upload. This is required by central
|
||||
@@ -99,9 +99,11 @@ publishing {
|
||||
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
groupId = 'dev.plexapi'
|
||||
artifactId = 'plexapi'
|
||||
version = '0.13.1'
|
||||
// note that properties can't yet be used below!
|
||||
// https://github.com/gradle/gradle/issues/18619
|
||||
groupId = "dev.plexapi"
|
||||
artifactId = "plexapi"
|
||||
version = "0.14.0"
|
||||
|
||||
from components.java
|
||||
|
||||
|
||||
300
codeSamples.yaml
300
codeSamples.yaml
@@ -7,7 +7,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getServerCapabilities
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -37,7 +37,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getServerPreferences
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -67,7 +67,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: updatePlayProgress
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -87,7 +87,7 @@ actions:
|
||||
|
||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||
.key("<key>")
|
||||
.time(90000d)
|
||||
.time(90000)
|
||||
.state("played")
|
||||
.call();
|
||||
|
||||
@@ -98,7 +98,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: markPlayed
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -117,7 +117,7 @@ actions:
|
||||
.build();
|
||||
|
||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||
.key(59398d)
|
||||
.key(59398)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -127,16 +127,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTimeline
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetTimelineBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetTimelineUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetTimelineRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetTimelineResponse;
|
||||
import dev.plexapi.plexapi.models.operations.State;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -148,16 +146,16 @@ actions:
|
||||
.build();
|
||||
|
||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||
.ratingKey(23409d)
|
||||
.ratingKey(23409)
|
||||
.key("/library/metadata/23409")
|
||||
.state(State.PLAYING)
|
||||
.hasMDE(1d)
|
||||
.time(2000d)
|
||||
.duration(10000d)
|
||||
.hasMDE(1)
|
||||
.time(2000)
|
||||
.duration(10000)
|
||||
.context("home:hub.continueWatching")
|
||||
.playQueueItemID(1d)
|
||||
.playBackTime(2000d)
|
||||
.row(1d)
|
||||
.playQueueItemID(1)
|
||||
.playBackTime(2000)
|
||||
.row(1)
|
||||
.build();
|
||||
|
||||
GetTimelineResponse res = sdk.video().getTimeline()
|
||||
@@ -171,7 +169,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: markUnplayed
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -190,7 +188,7 @@ actions:
|
||||
.build();
|
||||
|
||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||
.key(59398d)
|
||||
.key(59398)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -200,7 +198,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getServerActivities
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -230,7 +228,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: cancelServerActivities
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -259,7 +257,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: stopAllTasks
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -287,7 +285,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getButlerTasks
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -317,7 +315,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: startAllTasks
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -345,7 +343,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: stopTask
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -375,7 +373,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: startTask
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -405,7 +403,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getAvailableClients
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -435,7 +433,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getCompanionsData
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -465,7 +463,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getDevices
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -495,7 +493,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getUserFriends
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -525,7 +523,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getGeoData
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -554,7 +552,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getHomeData
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -584,7 +582,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getGlobalHubs
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -604,7 +602,7 @@ actions:
|
||||
.build();
|
||||
|
||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||
.count(1262.49d)
|
||||
.count(1262.49)
|
||||
.onlyTransient(OnlyTransient.ONE)
|
||||
.call();
|
||||
|
||||
@@ -617,14 +615,12 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-recently-added
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedResponse;
|
||||
import dev.plexapi.plexapi.models.operations.Type;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -654,7 +650,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: performSearch
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -674,8 +670,8 @@ actions:
|
||||
|
||||
PerformSearchResponse res = sdk.search().performSearch()
|
||||
.query("dylan")
|
||||
.sectionId(9487.88d)
|
||||
.limit(5d)
|
||||
.sectionId(9487.88)
|
||||
.limit(5)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -685,7 +681,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: performVoiceSearch
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -705,8 +701,8 @@ actions:
|
||||
|
||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||
.query("dead+poop")
|
||||
.sectionId(4094.8d)
|
||||
.limit(5d)
|
||||
.sectionId(4094.8)
|
||||
.limit(5)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -716,7 +712,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getLibraryHubs
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -736,8 +732,8 @@ actions:
|
||||
.build();
|
||||
|
||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||
.sectionId(6728.76d)
|
||||
.count(6728.76d)
|
||||
.sectionId(6728.76)
|
||||
.count(6728.76)
|
||||
.onlyTransient(QueryParamOnlyTransient.ZERO)
|
||||
.call();
|
||||
|
||||
@@ -750,7 +746,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-server-identity
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -778,7 +774,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTopWatchedContent
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -811,7 +807,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getFileHash
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -831,7 +827,7 @@ actions:
|
||||
|
||||
GetFileHashResponse res = sdk.library().getFileHash()
|
||||
.url("file://C:\Image.png&type=13")
|
||||
.type(4462.17d)
|
||||
.type(4462.17)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -841,7 +837,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-media-meta-data
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -890,7 +886,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-banner-image
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -931,7 +927,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getMetadataChildren
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -950,7 +946,7 @@ actions:
|
||||
.build();
|
||||
|
||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||
.ratingKey(1539.14d)
|
||||
.ratingKey(1539.14)
|
||||
.includeElements("Stream")
|
||||
.call();
|
||||
|
||||
@@ -963,7 +959,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-thumb-image
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1004,16 +1000,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-recently-added-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryResponse;
|
||||
import dev.plexapi.plexapi.models.operations.QueryParamType;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1057,16 +1051,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-search-all-libraries
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesResponse;
|
||||
import dev.plexapi.plexapi.models.operations.SearchTypes;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1098,7 +1090,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-all-libraries
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1128,16 +1120,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-watch-list
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetWatchListBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetWatchListUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.Filter;
|
||||
import dev.plexapi.plexapi.models.operations.GetWatchListRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetWatchListResponse;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1166,7 +1156,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: deleteLibrary
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1195,7 +1185,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-library-details
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1228,7 +1218,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-actors-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1261,16 +1251,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-all-media-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetAllMediaLibraryBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetAllMediaLibraryUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryQueryParamType;
|
||||
import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetAllMediaLibraryResponse;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1299,7 +1287,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-countries-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1332,7 +1320,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-genres-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1365,7 +1353,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-refresh-library-metadata
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1396,7 +1384,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-search-library
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1429,17 +1417,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-library-items
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetLibraryItemsBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetLibraryItemsUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsQueryParamType;
|
||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsResponse;
|
||||
import dev.plexapi.plexapi.models.operations.Tag;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1469,7 +1454,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: logLine
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1501,7 +1486,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: logMultiLine
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1533,7 +1518,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: enablePaperTrail
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1561,7 +1546,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-media-providers
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1592,7 +1577,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getMyPlexAccount
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1622,17 +1607,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getResizedPhoto
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetResizedPhotoBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetResizedPhotoUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetResizedPhotoRequest;
|
||||
import dev.plexapi.plexapi.models.operations.GetResizedPhotoResponse;
|
||||
import dev.plexapi.plexapi.models.operations.MinSize;
|
||||
import dev.plexapi.plexapi.models.operations.Upscale;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1644,10 +1626,10 @@ actions:
|
||||
.build();
|
||||
|
||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||
.width(110d)
|
||||
.height(165d)
|
||||
.width(110)
|
||||
.height(165)
|
||||
.opacity(100L)
|
||||
.blur(0d)
|
||||
.blur(0)
|
||||
.minSize(MinSize.ONE)
|
||||
.upscale(Upscale.ONE)
|
||||
.url("/library/metadata/49564/thumb/1654258204")
|
||||
@@ -1664,7 +1646,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getPin
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1702,7 +1684,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTokenByPinId
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1742,16 +1724,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getPlaylists
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetPlaylistsBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetPlaylistsUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetPlaylistsResponse;
|
||||
import dev.plexapi.plexapi.models.operations.PlaylistType;
|
||||
import dev.plexapi.plexapi.models.operations.QueryParamSmart;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1776,17 +1756,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: createPlaylist
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.CreatePlaylistBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.CreatePlaylistUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.CreatePlaylistQueryParamType;
|
||||
import dev.plexapi.plexapi.models.operations.CreatePlaylistRequest;
|
||||
import dev.plexapi.plexapi.models.operations.CreatePlaylistResponse;
|
||||
import dev.plexapi.plexapi.models.operations.Smart;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -1817,7 +1794,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: uploadPlaylist
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1849,7 +1826,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: deletePlaylist
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1868,7 +1845,7 @@ actions:
|
||||
.build();
|
||||
|
||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||
.playlistID(216.22d)
|
||||
.playlistID(216.22)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -1878,7 +1855,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getPlaylist
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1897,7 +1874,7 @@ actions:
|
||||
.build();
|
||||
|
||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||
.playlistID(4109.48d)
|
||||
.playlistID(4109.48)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -1909,7 +1886,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: updatePlaylist
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1928,7 +1905,7 @@ actions:
|
||||
.build();
|
||||
|
||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||
.playlistID(3915d)
|
||||
.playlistID(3915)
|
||||
.title("<value>")
|
||||
.summary("<value>")
|
||||
.call();
|
||||
@@ -1940,7 +1917,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: clearPlaylistContents
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1959,7 +1936,7 @@ actions:
|
||||
.build();
|
||||
|
||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||
.playlistID(1893.18d)
|
||||
.playlistID(1893.18)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -1969,7 +1946,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getPlaylistContents
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -1989,7 +1966,7 @@ actions:
|
||||
.build();
|
||||
|
||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||
.playlistID(5004.46d)
|
||||
.playlistID(5004.46)
|
||||
.type(GetPlaylistContentsQueryParamType.TvShow)
|
||||
.call();
|
||||
|
||||
@@ -2002,7 +1979,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: addPlaylistContents
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2021,9 +1998,9 @@ actions:
|
||||
.build();
|
||||
|
||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||
.playlistID(8502.01d)
|
||||
.playlistID(8502.01)
|
||||
.uri("server://12345/com.plexapp.plugins.library/library/metadata/1")
|
||||
.playQueueID(123d)
|
||||
.playQueueID(123)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -2035,17 +2012,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-server-resources
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetServerResourcesBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetServerResourcesUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetServerResourcesResponse;
|
||||
import dev.plexapi.plexapi.models.operations.IncludeHttps;
|
||||
import dev.plexapi.plexapi.models.operations.IncludeIPv6;
|
||||
import dev.plexapi.plexapi.models.operations.IncludeRelay;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -2072,7 +2046,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getSearchResults
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2103,7 +2077,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getSourceConnectionInformation
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2132,16 +2106,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTransientToken
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetTransientTokenBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetTransientTokenUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType;
|
||||
import dev.plexapi.plexapi.models.operations.GetTransientTokenResponse;
|
||||
import dev.plexapi.plexapi.models.operations.Scope;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -2164,7 +2136,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getServerList
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2194,7 +2166,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getBandwidthStatistics
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2225,7 +2197,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getStatistics
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2256,7 +2228,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getResourcesStatistics
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2287,7 +2259,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getSessions
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2317,7 +2289,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getSessionHistory
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2353,7 +2325,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTranscodeSessions
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2383,7 +2355,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: stopTranscodeSession
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2412,16 +2384,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: applyUpdates
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.ApplyUpdatesBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.ApplyUpdatesUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.ApplyUpdatesResponse;
|
||||
import dev.plexapi.plexapi.models.operations.Skip;
|
||||
import dev.plexapi.plexapi.models.operations.Tonight;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -2444,7 +2414,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: checkForUpdates
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2474,7 +2444,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getUpdateStatus
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2504,7 +2474,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getTokenDetails
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2534,7 +2504,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: get-users
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2581,16 +2551,14 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: post-users-sign-in-data
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.PostUsersSignInDataBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.PostUsersSignInDataUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.PostUsersSignInDataRequest;
|
||||
import dev.plexapi.plexapi.models.operations.PostUsersSignInDataRequestBody;
|
||||
import dev.plexapi.plexapi.models.operations.PostUsersSignInDataResponse;
|
||||
import dev.plexapi.plexapi.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -2626,7 +2594,7 @@ actions:
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: startUniversalTranscode
|
||||
label: PlexJava
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
@@ -2646,22 +2614,22 @@ actions:
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||
.hasMDE(1d)
|
||||
.hasMDE(1)
|
||||
.path("/library/metadata/23409")
|
||||
.mediaIndex(0d)
|
||||
.partIndex(0d)
|
||||
.mediaIndex(0)
|
||||
.partIndex(0)
|
||||
.protocol("hls")
|
||||
.fastSeek(0d)
|
||||
.directPlay(0d)
|
||||
.directStream(0d)
|
||||
.subtitleSize(100d)
|
||||
.fastSeek(0)
|
||||
.directPlay(0)
|
||||
.directStream(0)
|
||||
.subtitleSize(100)
|
||||
.subtites("burn")
|
||||
.audioBoost(100d)
|
||||
.audioBoost(100)
|
||||
.location("lan")
|
||||
.mediaBufferSize(102400d)
|
||||
.mediaBufferSize(102400)
|
||||
.session("zvcage8b7rkioqcm8f4uns4c")
|
||||
.addDebugOverlay(0d)
|
||||
.autoAdjustQuality(0d)
|
||||
.addDebugOverlay(0)
|
||||
.autoAdjustQuality(0)
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeResponse res = sdk.video().startUniversalTranscode()
|
||||
|
||||
@@ -26,9 +26,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetTransientTokenBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetTransientTokenUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetTransientTokenQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetTransientTokenResponse;
|
||||
import dev.plexapi.sdk.models.operations.Scope;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -183,9 +181,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.PostUsersSignInDataBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.PostUsersSignInDataUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequest;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataRequestBody;
|
||||
import dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
@@ -37,7 +37,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||
.count(1262.49d)
|
||||
.count(1262.49)
|
||||
.onlyTransient(OnlyTransient.ONE)
|
||||
.call();
|
||||
|
||||
@@ -78,9 +78,7 @@ This endpoint will return the recently added content.
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse;
|
||||
import dev.plexapi.sdk.models.operations.Type;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -150,8 +148,8 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||
.sectionId(6728.76d)
|
||||
.count(6728.76d)
|
||||
.sectionId(6728.76)
|
||||
.count(6728.76)
|
||||
.onlyTransient(QueryParamOnlyTransient.ZERO)
|
||||
.call();
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Application {
|
||||
|
||||
GetFileHashResponse res = sdk.library().getFileHash()
|
||||
.url("file://C:\Image.png&type=13")
|
||||
.type(4462.17d)
|
||||
.type(4462.17)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -90,9 +90,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse;
|
||||
import dev.plexapi.sdk.models.operations.QueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
import java.util.List;
|
||||
|
||||
@@ -380,10 +378,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse;
|
||||
import dev.plexapi.sdk.models.operations.Tag;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -442,9 +437,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetAllMediaLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetAllMediaLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetAllMediaLibraryQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.GetAllMediaLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetAllMediaLibraryResponse;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -797,9 +790,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesResponse;
|
||||
import dev.plexapi.sdk.models.operations.SearchTypes;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
import java.util.List;
|
||||
|
||||
@@ -943,7 +934,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||
.ratingKey(1539.14d)
|
||||
.ratingKey(1539.14)
|
||||
.includeElements("Stream")
|
||||
.call();
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||
.key(59398d)
|
||||
.key(59398)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -88,7 +88,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||
.key(59398d)
|
||||
.key(59398)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -140,7 +140,7 @@ public class Application {
|
||||
|
||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||
.key("<key>")
|
||||
.time(90000d)
|
||||
.time(90000)
|
||||
.state("played")
|
||||
.call();
|
||||
|
||||
|
||||
@@ -36,10 +36,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.CreatePlaylistBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.CreatePlaylistUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.CreatePlaylistQueryParamType;
|
||||
import dev.plexapi.sdk.models.operations.CreatePlaylistRequest;
|
||||
import dev.plexapi.sdk.models.operations.CreatePlaylistResponse;
|
||||
import dev.plexapi.sdk.models.operations.Smart;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -98,9 +95,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetPlaylistsBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetPlaylistsUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetPlaylistsResponse;
|
||||
import dev.plexapi.sdk.models.operations.PlaylistType;
|
||||
import dev.plexapi.sdk.models.operations.QueryParamSmart;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -168,7 +163,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||
.playlistID(4109.48d)
|
||||
.playlistID(4109.48)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
@@ -221,7 +216,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||
.playlistID(216.22d)
|
||||
.playlistID(216.22)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -272,7 +267,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||
.playlistID(3915d)
|
||||
.playlistID(3915)
|
||||
.title("<value>")
|
||||
.summary("<value>")
|
||||
.call();
|
||||
@@ -331,7 +326,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||
.playlistID(5004.46d)
|
||||
.playlistID(5004.46)
|
||||
.type(GetPlaylistContentsQueryParamType.TvShow)
|
||||
.call();
|
||||
|
||||
@@ -386,7 +381,7 @@ public class Application {
|
||||
.build();
|
||||
|
||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||
.playlistID(1893.18d)
|
||||
.playlistID(1893.18)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -438,9 +433,9 @@ public class Application {
|
||||
.build();
|
||||
|
||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||
.playlistID(8502.01d)
|
||||
.playlistID(8502.01)
|
||||
.uri("server://12345/com.plexapp.plugins.library/library/metadata/1")
|
||||
.playQueueID(123d)
|
||||
.playQueueID(123)
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
|
||||
@@ -225,10 +225,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetServerResourcesBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetServerResourcesUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetServerResourcesResponse;
|
||||
import dev.plexapi.sdk.models.operations.IncludeHttps;
|
||||
import dev.plexapi.sdk.models.operations.IncludeIPv6;
|
||||
import dev.plexapi.sdk.models.operations.IncludeRelay;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
@@ -49,8 +49,8 @@ public class Application {
|
||||
|
||||
PerformSearchResponse res = sdk.search().performSearch()
|
||||
.query("dylan")
|
||||
.sectionId(9487.88d)
|
||||
.limit(5d)
|
||||
.sectionId(9487.88)
|
||||
.limit(5)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
@@ -107,8 +107,8 @@ public class Application {
|
||||
|
||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||
.query("dead+poop")
|
||||
.sectionId(4094.8d)
|
||||
.limit(5d)
|
||||
.sectionId(4094.8)
|
||||
.limit(5)
|
||||
.call();
|
||||
|
||||
// handle response
|
||||
|
||||
@@ -298,10 +298,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetResizedPhotoBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetResizedPhotoUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetResizedPhotoRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetResizedPhotoResponse;
|
||||
import dev.plexapi.sdk.models.operations.MinSize;
|
||||
import dev.plexapi.sdk.models.operations.Upscale;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -313,10 +310,10 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||
.width(110d)
|
||||
.height(165d)
|
||||
.width(110)
|
||||
.height(165)
|
||||
.opacity(100L)
|
||||
.blur(0d)
|
||||
.blur(0)
|
||||
.minSize(MinSize.ONE)
|
||||
.upscale(Upscale.ONE)
|
||||
.url("/library/metadata/49564/thumb/1654258204")
|
||||
|
||||
@@ -122,9 +122,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.ApplyUpdatesBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.ApplyUpdatesUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.ApplyUpdatesResponse;
|
||||
import dev.plexapi.sdk.models.operations.Skip;
|
||||
import dev.plexapi.sdk.models.operations.Tonight;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
@@ -23,9 +23,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetTimelineBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetTimelineUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetTimelineRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetTimelineResponse;
|
||||
import dev.plexapi.sdk.models.operations.State;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
@@ -37,16 +35,16 @@ public class Application {
|
||||
.build();
|
||||
|
||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||
.ratingKey(23409d)
|
||||
.ratingKey(23409)
|
||||
.key("/library/metadata/23409")
|
||||
.state(State.PLAYING)
|
||||
.hasMDE(1d)
|
||||
.time(2000d)
|
||||
.duration(10000d)
|
||||
.hasMDE(1)
|
||||
.time(2000)
|
||||
.duration(10000)
|
||||
.context("home:hub.continueWatching")
|
||||
.playQueueItemID(1d)
|
||||
.playBackTime(2000d)
|
||||
.row(1d)
|
||||
.playQueueItemID(1)
|
||||
.playBackTime(2000)
|
||||
.row(1)
|
||||
.build();
|
||||
|
||||
GetTimelineResponse res = sdk.video().getTimeline()
|
||||
@@ -101,22 +99,22 @@ public class Application {
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||
.hasMDE(1d)
|
||||
.hasMDE(1)
|
||||
.path("/library/metadata/23409")
|
||||
.mediaIndex(0d)
|
||||
.partIndex(0d)
|
||||
.mediaIndex(0)
|
||||
.partIndex(0)
|
||||
.protocol("hls")
|
||||
.fastSeek(0d)
|
||||
.directPlay(0d)
|
||||
.directStream(0d)
|
||||
.subtitleSize(100d)
|
||||
.fastSeek(0)
|
||||
.directPlay(0)
|
||||
.directStream(0)
|
||||
.subtitleSize(100)
|
||||
.subtites("burn")
|
||||
.audioBoost(100d)
|
||||
.audioBoost(100)
|
||||
.location("lan")
|
||||
.mediaBufferSize(102400d)
|
||||
.mediaBufferSize(102400)
|
||||
.session("zvcage8b7rkioqcm8f4uns4c")
|
||||
.addDebugOverlay(0d)
|
||||
.autoAdjustQuality(0d)
|
||||
.addDebugOverlay(0)
|
||||
.autoAdjustQuality(0)
|
||||
.build();
|
||||
|
||||
StartUniversalTranscodeResponse res = sdk.video().startUniversalTranscode()
|
||||
|
||||
@@ -22,9 +22,7 @@ package hello.world;
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetWatchListBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetWatchListUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.Filter;
|
||||
import dev.plexapi.sdk.models.operations.GetWatchListRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetWatchListResponse;
|
||||
import dev.plexapi.sdk.models.operations.*;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
3
gradle.properties
Normal file
3
gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
groupId=dev.plexapi
|
||||
artifactId=plexapi
|
||||
version=0.14.0
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -29,7 +28,9 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints.
|
||||
@@ -39,7 +40,6 @@ import java.util.Optional;
|
||||
* - They must contain an `type` which is used by clients to distinguish the specific activity.
|
||||
* - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.)
|
||||
* - The may contain a `Response` object which attributes which represent the result of the asynchronous operation.
|
||||
*
|
||||
*/
|
||||
public class Activities implements
|
||||
MethodCallGetServerActivities,
|
||||
@@ -54,7 +54,9 @@ public class Activities implements
|
||||
|
||||
/**
|
||||
* Get Server Activities
|
||||
* Get Server Activities
|
||||
*
|
||||
* <p>Get Server Activities
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerActivitiesRequestBuilder getServerActivities() {
|
||||
@@ -63,7 +65,9 @@ public class Activities implements
|
||||
|
||||
/**
|
||||
* Get Server Activities
|
||||
* Get Server Activities
|
||||
*
|
||||
* <p>Get Server Activities
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -87,6 +91,7 @@ public class Activities implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -98,6 +103,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -107,6 +113,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -116,6 +123,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -209,7 +217,9 @@ public class Activities implements
|
||||
|
||||
/**
|
||||
* Cancel Server Activities
|
||||
* Cancel Server Activities
|
||||
*
|
||||
* <p>Cancel Server Activities
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public CancelServerActivitiesRequestBuilder cancelServerActivities() {
|
||||
@@ -218,7 +228,9 @@ public class Activities implements
|
||||
|
||||
/**
|
||||
* Cancel Server Activities
|
||||
* Cancel Server Activities
|
||||
*
|
||||
* <p>Cancel Server Activities
|
||||
*
|
||||
* @param activityUUID The UUID of the activity to cancel.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -252,6 +264,7 @@ public class Activities implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -263,6 +276,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -272,6 +286,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -281,6 +296,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -46,11 +45,12 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls regarding authentication for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public class Authentication implements
|
||||
MethodCallGetTransientToken,
|
||||
@@ -81,7 +81,8 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get a Transient Token
|
||||
* This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||
*
|
||||
* <p>This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -91,7 +92,8 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get a Transient Token
|
||||
* This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||
*
|
||||
* <p>This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||
*
|
||||
* @param type `delegation` - This is the only supported `type` parameter.
|
||||
* @param scope `all` - This is the only supported `scope` parameter.
|
||||
@@ -132,6 +134,7 @@ public class Authentication implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -143,6 +146,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -152,6 +156,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -161,6 +166,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -243,7 +249,8 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get Source Connection Information
|
||||
* If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||
*
|
||||
* <p>If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||
* Note: requires Plex Media Server >= 1.15.4.
|
||||
*
|
||||
* @return The call builder
|
||||
@@ -254,7 +261,8 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get Source Connection Information
|
||||
* If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||
*
|
||||
* <p>If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||
* Note: requires Plex Media Server >= 1.15.4.
|
||||
*
|
||||
* @param source The source identifier with an included prefix.
|
||||
@@ -293,6 +301,7 @@ public class Authentication implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -304,6 +313,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -313,6 +323,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -322,6 +333,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -404,7 +416,9 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get Token Details
|
||||
* Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* <p>Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetTokenDetailsRequestBuilder getTokenDetails() {
|
||||
@@ -413,7 +427,9 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get Token Details
|
||||
* Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* <p>Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -423,16 +439,20 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get Token Details
|
||||
* Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* <p>Get the User data from the provided X-Plex-Token
|
||||
*
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetTokenDetailsResponse getTokenDetails(
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_TOKEN_DETAILS_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_TOKEN_DETAILS_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -451,6 +471,7 @@ public class Authentication implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -462,6 +483,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -471,6 +493,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -480,6 +503,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -573,7 +597,9 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get User Sign In Data
|
||||
* Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* <p>Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public PostUsersSignInDataRequestBuilder postUsersSignInData() {
|
||||
@@ -582,7 +608,9 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get User Sign In Data
|
||||
* Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* <p>Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -594,7 +622,9 @@ public class Authentication implements
|
||||
|
||||
/**
|
||||
* Get User Sign In Data
|
||||
* Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* <p>Sign in user with username and password and return user data with Plex authentication token
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -603,9 +633,11 @@ public class Authentication implements
|
||||
public PostUsersSignInDataResponse postUsersSignInData(
|
||||
PostUsersSignInDataRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(POST_USERS_SIGN_IN_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -632,6 +664,7 @@ public class Authentication implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -643,6 +676,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -652,6 +686,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -661,6 +696,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -44,11 +43,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Butler is the task manager of the Plex Media Server Ecosystem.
|
||||
*
|
||||
*/
|
||||
public class Butler implements
|
||||
MethodCallGetButlerTasks,
|
||||
@@ -66,7 +66,9 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Get Butler tasks
|
||||
* Returns a list of butler tasks
|
||||
*
|
||||
* <p>Returns a list of butler tasks
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetButlerTasksRequestBuilder getButlerTasks() {
|
||||
@@ -75,7 +77,9 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Get Butler tasks
|
||||
* Returns a list of butler tasks
|
||||
*
|
||||
* <p>Returns a list of butler tasks
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -99,6 +103,7 @@ public class Butler implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -110,6 +115,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -119,6 +125,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -128,6 +135,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -221,7 +229,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Start all Butler tasks
|
||||
* This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
*
|
||||
* <p>This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
* 1. Any tasks not scheduled to run on the current day will be skipped.
|
||||
* 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately.
|
||||
* 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window.
|
||||
@@ -235,7 +244,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Start all Butler tasks
|
||||
* This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
*
|
||||
* <p>This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
* 1. Any tasks not scheduled to run on the current day will be skipped.
|
||||
* 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately.
|
||||
* 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window.
|
||||
@@ -264,6 +274,7 @@ public class Butler implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -275,6 +286,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -284,6 +296,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -293,6 +306,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -375,7 +389,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Stop all Butler tasks
|
||||
* This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue.
|
||||
*
|
||||
* <p>This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -385,7 +400,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Stop all Butler tasks
|
||||
* This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue.
|
||||
*
|
||||
* <p>This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -410,6 +426,7 @@ public class Butler implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -421,6 +438,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -430,6 +448,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -439,6 +458,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -521,7 +541,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Start a single Butler task
|
||||
* This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
*
|
||||
* <p>This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
* 1. Any tasks not scheduled to run on the current day will be skipped.
|
||||
* 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately.
|
||||
* 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window.
|
||||
@@ -535,7 +556,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Start a single Butler task
|
||||
* This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
*
|
||||
* <p>This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria:
|
||||
* 1. Any tasks not scheduled to run on the current day will be skipped.
|
||||
* 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately.
|
||||
* 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window.
|
||||
@@ -574,6 +596,7 @@ public class Butler implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -585,6 +608,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -594,6 +618,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -603,6 +628,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -685,7 +711,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Stop a single Butler task
|
||||
* This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint.
|
||||
*
|
||||
* <p>This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -695,7 +722,8 @@ public class Butler implements
|
||||
|
||||
/**
|
||||
* Stop a single Butler task
|
||||
* This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint.
|
||||
*
|
||||
* <p>This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint.
|
||||
*
|
||||
* @param taskName The name of the task to be started.
|
||||
* @return The response from the API call
|
||||
@@ -730,6 +758,7 @@ public class Butler implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -741,6 +770,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -750,6 +780,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -759,6 +790,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -38,11 +37,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
*
|
||||
*/
|
||||
public class Hubs implements
|
||||
MethodCallGetGlobalHubs,
|
||||
@@ -58,7 +58,9 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get Global Hubs
|
||||
* Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* <p>Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetGlobalHubsRequestBuilder getGlobalHubs() {
|
||||
@@ -67,7 +69,9 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get Global Hubs
|
||||
* Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* <p>Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -77,7 +81,9 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get Global Hubs
|
||||
* Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* <p>Get Global Hubs filtered by the parameters provided.
|
||||
*
|
||||
* @param count The number of items to return with each hub.
|
||||
* @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
* @return The response from the API call
|
||||
@@ -117,6 +123,7 @@ public class Hubs implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -128,6 +135,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -137,6 +145,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -146,6 +155,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -239,7 +249,8 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* <p>This endpoint will return the recently added content.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -249,7 +260,8 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get Recently Added
|
||||
* This endpoint will return the recently added content.
|
||||
*
|
||||
* <p>This endpoint will return the recently added content.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
@@ -281,6 +293,7 @@ public class Hubs implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -292,6 +305,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -301,6 +315,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -310,6 +325,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -371,7 +387,8 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get library specific hubs
|
||||
* This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* <p>This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -381,7 +398,8 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get library specific hubs
|
||||
* This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* <p>This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* @param sectionId the Id of the library to query
|
||||
* @return The response from the API call
|
||||
@@ -394,7 +412,8 @@ public class Hubs implements
|
||||
|
||||
/**
|
||||
* Get library specific hubs
|
||||
* This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* <p>This endpoint will return a list of library specific hubs
|
||||
*
|
||||
* @param sectionId the Id of the library to query
|
||||
* @param count The number of items to return with each hub.
|
||||
@@ -440,6 +459,7 @@ public class Hubs implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -451,6 +471,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -460,6 +481,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -469,6 +491,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -36,11 +35,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Submit logs to the Log Handler for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public class Log implements
|
||||
MethodCallLogLine,
|
||||
@@ -56,7 +56,8 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Logging a single line message.
|
||||
* This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log.
|
||||
*
|
||||
* <p>This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -66,15 +67,16 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Logging a single line message.
|
||||
* This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log.
|
||||
*
|
||||
* <p>This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log.
|
||||
*
|
||||
* @param level An integer log level to write to the PMS log with.
|
||||
0: Error
|
||||
1: Warning
|
||||
2: Info
|
||||
3: Debug
|
||||
4: Verbose
|
||||
|
||||
* 0: Error
|
||||
* 1: Warning
|
||||
* 2: Info
|
||||
* 3: Debug
|
||||
* 4: Verbose
|
||||
*
|
||||
* @param message The text of the message to write to the log.
|
||||
* @param source a string indicating the source of the message.
|
||||
* @return The response from the API call
|
||||
@@ -116,6 +118,7 @@ public class Log implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -127,6 +130,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -136,6 +140,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -145,6 +150,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -227,27 +233,28 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Logging a multi-line message
|
||||
* This endpoint allows for the batch addition of log entries to the main Plex Media Server log.
|
||||
*
|
||||
* <p>This endpoint allows for the batch addition of log entries to the main Plex Media Server log.
|
||||
* It accepts a text/plain request body, where each line represents a distinct log entry.
|
||||
* Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'.
|
||||
*
|
||||
* Log entries are separated by a newline character (`\n`).
|
||||
* <p>Log entries are separated by a newline character (`\n`).
|
||||
* Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters.
|
||||
* This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests.
|
||||
*
|
||||
* The 'level' parameter specifies the log entry's severity or importance, with the following integer values:
|
||||
* <p>The 'level' parameter specifies the log entry's severity or importance, with the following integer values:
|
||||
* - `0`: Error - Critical issues that require immediate attention.
|
||||
* - `1`: Warning - Important events that are not critical but may indicate potential issues.
|
||||
* - `2`: Info - General informational messages about system operation.
|
||||
* - `3`: Debug - Detailed information useful for debugging purposes.
|
||||
* - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis.
|
||||
*
|
||||
* The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module).
|
||||
* <p>The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module).
|
||||
*
|
||||
* Example of a single log entry format:
|
||||
* <p>Example of a single log entry format:
|
||||
* `level=4&message=Sample%20log%20entry&source=applicationName`
|
||||
*
|
||||
* Ensure each parameter is properly URL-encoded to avoid interpretation issues.
|
||||
* <p>Ensure each parameter is properly URL-encoded to avoid interpretation issues.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -257,27 +264,28 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Logging a multi-line message
|
||||
* This endpoint allows for the batch addition of log entries to the main Plex Media Server log.
|
||||
*
|
||||
* <p>This endpoint allows for the batch addition of log entries to the main Plex Media Server log.
|
||||
* It accepts a text/plain request body, where each line represents a distinct log entry.
|
||||
* Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'.
|
||||
*
|
||||
* Log entries are separated by a newline character (`\n`).
|
||||
* <p>Log entries are separated by a newline character (`\n`).
|
||||
* Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters.
|
||||
* This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests.
|
||||
*
|
||||
* The 'level' parameter specifies the log entry's severity or importance, with the following integer values:
|
||||
* <p>The 'level' parameter specifies the log entry's severity or importance, with the following integer values:
|
||||
* - `0`: Error - Critical issues that require immediate attention.
|
||||
* - `1`: Warning - Important events that are not critical but may indicate potential issues.
|
||||
* - `2`: Info - General informational messages about system operation.
|
||||
* - `3`: Debug - Detailed information useful for debugging purposes.
|
||||
* - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis.
|
||||
*
|
||||
* The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module).
|
||||
* <p>The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module).
|
||||
*
|
||||
* Example of a single log entry format:
|
||||
* <p>Example of a single log entry format:
|
||||
* `level=4&message=Sample%20log%20entry&source=applicationName`
|
||||
*
|
||||
* Ensure each parameter is properly URL-encoded to avoid interpretation issues.
|
||||
* <p>Ensure each parameter is properly URL-encoded to avoid interpretation issues.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
@@ -317,6 +325,7 @@ public class Log implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -328,6 +337,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -337,6 +347,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -346,6 +357,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -428,7 +440,8 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Enabling Papertrail
|
||||
* This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time.
|
||||
*
|
||||
* <p>This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -438,7 +451,8 @@ public class Log implements
|
||||
|
||||
/**
|
||||
* Enabling Papertrail
|
||||
* This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time.
|
||||
*
|
||||
* <p>This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -463,6 +477,7 @@ public class Log implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -474,6 +489,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -483,6 +499,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -492,6 +509,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -44,11 +43,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Media
|
||||
*
|
||||
*/
|
||||
public class Media implements
|
||||
MethodCallMarkPlayed,
|
||||
@@ -66,7 +66,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Mark Media Played
|
||||
* This will mark the provided media key as Played.
|
||||
*
|
||||
* <p>This will mark the provided media key as Played.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public MarkPlayedRequestBuilder markPlayed() {
|
||||
@@ -75,7 +77,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Mark Media Played
|
||||
* This will mark the provided media key as Played.
|
||||
*
|
||||
* <p>This will mark the provided media key as Played.
|
||||
*
|
||||
* @param key The media key to mark as played
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -112,6 +116,7 @@ public class Media implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -123,6 +128,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -132,6 +138,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -141,6 +148,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -223,7 +231,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Mark Media Unplayed
|
||||
* This will mark the provided media key as Unplayed.
|
||||
*
|
||||
* <p>This will mark the provided media key as Unplayed.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public MarkUnplayedRequestBuilder markUnplayed() {
|
||||
@@ -232,7 +242,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Mark Media Unplayed
|
||||
* This will mark the provided media key as Unplayed.
|
||||
*
|
||||
* <p>This will mark the provided media key as Unplayed.
|
||||
*
|
||||
* @param key The media key to mark as Unplayed
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -269,6 +281,7 @@ public class Media implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -280,6 +293,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -289,6 +303,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -298,6 +313,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -380,7 +396,8 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Update Media Play Progress
|
||||
* This API command can be used to update the play progress of a media item.
|
||||
*
|
||||
* <p>This API command can be used to update the play progress of a media item.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -390,7 +407,8 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Update Media Play Progress
|
||||
* This API command can be used to update the play progress of a media item.
|
||||
*
|
||||
* <p>This API command can be used to update the play progress of a media item.
|
||||
*
|
||||
* @param key the media key
|
||||
* @param time The time, in milliseconds, used to set the media playback progress.
|
||||
@@ -434,6 +452,7 @@ public class Media implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -445,6 +464,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -454,6 +474,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -463,6 +484,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -545,7 +567,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Get Banner Image
|
||||
* Gets the banner image of the media item
|
||||
*
|
||||
* <p>Gets the banner image of the media item
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetBannerImageRequestBuilder getBannerImage() {
|
||||
@@ -554,7 +578,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Get Banner Image
|
||||
* Gets the banner image of the media item
|
||||
*
|
||||
* <p>Gets the banner image of the media item
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -588,6 +614,7 @@ public class Media implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -599,6 +626,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -608,6 +636,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -617,6 +646,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -710,7 +740,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Get Thumb Image
|
||||
* Gets the thumbnail image of the media item
|
||||
*
|
||||
* <p>Gets the thumbnail image of the media item
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetThumbImageRequestBuilder getThumbImage() {
|
||||
@@ -719,7 +751,9 @@ public class Media implements
|
||||
|
||||
/**
|
||||
* Get Thumb Image
|
||||
* Gets the thumbnail image of the media item
|
||||
*
|
||||
* <p>Gets the thumbnail image of the media item
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -753,6 +787,7 @@ public class Media implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -764,6 +799,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -773,6 +809,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -782,6 +819,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -74,14 +73,15 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017").
|
||||
* They can be organized in (optionally nesting) folders.
|
||||
* Retrieving a playlist, or its items, will trigger a refresh of its metadata.
|
||||
* This may cause the duration and number of items to change.
|
||||
*
|
||||
*/
|
||||
public class Playlists implements
|
||||
MethodCallCreatePlaylist,
|
||||
@@ -103,7 +103,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Create a Playlist
|
||||
* Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass:
|
||||
*
|
||||
* <p>Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass:
|
||||
* - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`).
|
||||
* - `playQueueID` - To create a playlist from an existing play queue.
|
||||
*
|
||||
@@ -115,7 +116,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Create a Playlist
|
||||
* Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass:
|
||||
*
|
||||
* <p>Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass:
|
||||
* - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`).
|
||||
* - `playQueueID` - To create a playlist from an existing play queue.
|
||||
*
|
||||
@@ -149,6 +151,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -160,6 +163,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -169,6 +173,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -178,6 +183,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -271,7 +277,9 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Get All Playlists
|
||||
* Get All Playlists given the specified filters.
|
||||
*
|
||||
* <p>Get All Playlists given the specified filters.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetPlaylistsRequestBuilder getPlaylists() {
|
||||
@@ -280,7 +288,9 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Get All Playlists
|
||||
* Get All Playlists given the specified filters.
|
||||
*
|
||||
* <p>Get All Playlists given the specified filters.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -290,7 +300,9 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Get All Playlists
|
||||
* Get All Playlists given the specified filters.
|
||||
*
|
||||
* <p>Get All Playlists given the specified filters.
|
||||
*
|
||||
* @param playlistType limit to a type of playlist.
|
||||
* @param smart type of playlists to return (default is all).
|
||||
* @return The response from the API call
|
||||
@@ -330,6 +342,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -341,6 +354,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -350,6 +364,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -359,6 +374,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -452,7 +468,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Retrieve Playlist
|
||||
* Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item:
|
||||
*
|
||||
* <p>Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item:
|
||||
* Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing.
|
||||
*
|
||||
* @return The call builder
|
||||
@@ -463,7 +480,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Retrieve Playlist
|
||||
* Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item:
|
||||
*
|
||||
* <p>Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item:
|
||||
* Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
@@ -499,6 +517,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -510,6 +529,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -519,6 +539,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -528,6 +549,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -621,7 +643,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Deletes a Playlist
|
||||
* This endpoint will delete a playlist
|
||||
*
|
||||
* <p>This endpoint will delete a playlist
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -631,7 +654,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Deletes a Playlist
|
||||
* This endpoint will delete a playlist
|
||||
*
|
||||
* <p>This endpoint will delete a playlist
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @return The response from the API call
|
||||
@@ -666,6 +690,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -677,6 +702,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -686,6 +712,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -695,6 +722,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -777,7 +805,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Update a Playlist
|
||||
* From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* <p>From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -787,7 +816,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Update a Playlist
|
||||
* From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* <p>From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @return The response from the API call
|
||||
@@ -800,7 +830,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Update a Playlist
|
||||
* From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* <p>From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @param title name of the playlist
|
||||
@@ -846,6 +877,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -857,6 +889,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -866,6 +899,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -875,6 +909,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -957,7 +992,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Retrieve Playlist Contents
|
||||
* Gets the contents of a playlist. Should be paged by clients via standard mechanisms.
|
||||
*
|
||||
* <p>Gets the contents of a playlist. Should be paged by clients via standard mechanisms.
|
||||
* By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter.
|
||||
* For example, you could use this to display a list of recently added albums vis a smart playlist.
|
||||
* Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items.
|
||||
@@ -970,19 +1006,20 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Retrieve Playlist Contents
|
||||
* Gets the contents of a playlist. Should be paged by clients via standard mechanisms.
|
||||
*
|
||||
* <p>Gets the contents of a playlist. Should be paged by clients via standard mechanisms.
|
||||
* By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter.
|
||||
* For example, you could use this to display a list of recently added albums vis a smart playlist.
|
||||
* Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @param type The type of media to retrieve or filter by.
|
||||
1 = movie
|
||||
2 = show
|
||||
3 = season
|
||||
4 = episode
|
||||
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -1022,6 +1059,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1033,6 +1071,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1042,6 +1081,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1051,6 +1091,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1144,7 +1185,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Delete Playlist Contents
|
||||
* Clears a playlist, only works with dumb playlists. Returns the playlist.
|
||||
*
|
||||
* <p>Clears a playlist, only works with dumb playlists. Returns the playlist.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -1154,7 +1196,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Delete Playlist Contents
|
||||
* Clears a playlist, only works with dumb playlists. Returns the playlist.
|
||||
*
|
||||
* <p>Clears a playlist, only works with dumb playlists. Returns the playlist.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
* @return The response from the API call
|
||||
@@ -1189,6 +1232,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1200,6 +1244,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1209,6 +1254,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1218,6 +1264,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1300,7 +1347,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Adding to a Playlist
|
||||
* Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
*
|
||||
* <p>Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
* With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist.
|
||||
*
|
||||
* @return The call builder
|
||||
@@ -1311,7 +1359,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Adding to a Playlist
|
||||
* Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
*
|
||||
* <p>Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
* With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
@@ -1327,7 +1376,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Adding to a Playlist
|
||||
* Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
*
|
||||
* <p>Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist.
|
||||
* With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist.
|
||||
*
|
||||
* @param playlistID the ID of the playlist
|
||||
@@ -1374,6 +1424,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1385,6 +1436,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1394,6 +1446,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1403,6 +1456,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1496,7 +1550,8 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Upload Playlist
|
||||
* Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
||||
*
|
||||
* <p>Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -1506,20 +1561,21 @@ public class Playlists implements
|
||||
|
||||
/**
|
||||
* Upload Playlist
|
||||
* Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
||||
*
|
||||
* <p>Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
||||
*
|
||||
* @param path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
|
||||
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
|
||||
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
|
||||
The GUID of each playlist is based on the filename.
|
||||
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
|
||||
The GUID of each playlist is based on the filename.
|
||||
|
||||
* If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
|
||||
* Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
|
||||
* The GUID of each playlist is based on the filename.
|
||||
* If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
|
||||
* The GUID of each playlist is based on the filename.
|
||||
*
|
||||
* @param force Force overwriting of duplicate playlists.
|
||||
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
|
||||
The `force` argument is used to disable overwriting.
|
||||
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
||||
|
||||
* By default, a playlist file uploaded with the same path will overwrite the existing playlist.
|
||||
* The `force` argument is used to disable overwriting.
|
||||
* If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
||||
*
|
||||
* @param sectionID Possibly the section ID to upload the playlist to, we are not certain.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -1560,6 +1616,7 @@ public class Playlists implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1571,6 +1628,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1580,6 +1638,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1589,6 +1648,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -60,11 +59,12 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform operations directly against https://Plex.tv
|
||||
*
|
||||
*/
|
||||
public class Plex implements
|
||||
MethodCallGetCompanionsData,
|
||||
@@ -126,7 +126,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Companions Data
|
||||
* Get Companions Data
|
||||
*
|
||||
* <p>Get Companions Data
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetCompanionsDataRequestBuilder getCompanionsData() {
|
||||
@@ -135,7 +137,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Companions Data
|
||||
* Get Companions Data
|
||||
*
|
||||
* <p>Get Companions Data
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -145,16 +149,20 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Companions Data
|
||||
* Get Companions Data
|
||||
*
|
||||
* <p>Get Companions Data
|
||||
*
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetCompanionsDataResponse getCompanionsData(
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_COMPANIONS_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_COMPANIONS_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -173,6 +181,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -184,6 +193,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -193,6 +203,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -202,6 +213,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -295,7 +307,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get list of friends of the user logged in
|
||||
* Get friends of provided auth token.
|
||||
*
|
||||
* <p>Get friends of provided auth token.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetUserFriendsRequestBuilder getUserFriends() {
|
||||
@@ -304,7 +318,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get list of friends of the user logged in
|
||||
* Get friends of provided auth token.
|
||||
*
|
||||
* <p>Get friends of provided auth token.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -314,16 +330,20 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get list of friends of the user logged in
|
||||
* Get friends of provided auth token.
|
||||
*
|
||||
* <p>Get friends of provided auth token.
|
||||
*
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetUserFriendsResponse getUserFriends(
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_USER_FRIENDS_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_USER_FRIENDS_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -342,6 +362,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -353,6 +374,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -362,6 +384,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -371,6 +394,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -464,7 +488,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Geo Data
|
||||
* Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* <p>Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetGeoDataRequestBuilder getGeoData() {
|
||||
@@ -473,7 +499,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Geo Data
|
||||
* Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* <p>Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -483,16 +511,20 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Geo Data
|
||||
* Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* <p>Returns the geolocation and locale data of the caller
|
||||
*
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetGeoDataResponse getGeoData(
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_GEO_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_GEO_DATA_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -508,6 +540,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -519,6 +552,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -528,6 +562,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -537,6 +572,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -630,7 +666,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Plex Home Data
|
||||
* Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status.
|
||||
*
|
||||
* <p>Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetHomeDataRequestBuilder getHomeData() {
|
||||
@@ -639,7 +677,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Plex Home Data
|
||||
* Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status.
|
||||
*
|
||||
* <p>Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -663,6 +703,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -674,6 +715,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -683,6 +725,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -692,6 +735,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -785,7 +829,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
*
|
||||
* <p>Get Plex server access tokens and server connections
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerResourcesRequestBuilder getServerResources() {
|
||||
@@ -794,7 +840,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
*
|
||||
* <p>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
|
||||
@@ -806,11 +854,13 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
*
|
||||
* <p>Get Plex server access tokens and server connections
|
||||
*
|
||||
* @param includeHttps Include Https entries in the results
|
||||
* @param includeRelay Include Relay addresses in the results
|
||||
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
|
||||
|
||||
* E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
|
||||
*
|
||||
* @param includeIPv6 Include IPv6 entries in the results
|
||||
* @param clientID An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
* @param serverURL Overrides the server URL.
|
||||
@@ -832,9 +882,11 @@ public class Plex implements
|
||||
.clientID(clientID)
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -859,6 +911,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -870,6 +923,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -879,6 +933,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -888,6 +943,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -981,7 +1037,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* <p>Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetPinRequestBuilder getPin() {
|
||||
@@ -990,7 +1048,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* <p>Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -1002,7 +1062,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* <p>Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -1011,9 +1073,11 @@ public class Plex implements
|
||||
public GetPinResponse getPin(
|
||||
GetPinRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -1035,6 +1099,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1046,6 +1111,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1055,6 +1121,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1064,6 +1131,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1141,7 +1209,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Access Token by PinId
|
||||
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* <p>Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetTokenByPinIdRequestBuilder getTokenByPinId() {
|
||||
@@ -1150,7 +1220,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Access Token by PinId
|
||||
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* <p>Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -1162,7 +1234,9 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get Access Token by PinId
|
||||
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* <p>Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -1171,9 +1245,11 @@ public class Plex implements
|
||||
public GetTokenByPinIdResponse getTokenByPinId(
|
||||
GetTokenByPinIdRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
GetTokenByPinIdRequest.class,
|
||||
@@ -1192,6 +1268,7 @@ public class Plex implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1203,6 +1280,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1212,6 +1290,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1221,6 +1300,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -11,26 +10,30 @@ import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
* # Plex Media Server OpenAPI Specification
|
||||
*
|
||||
* An Open Source OpenAPI Specification for Plex Media Server
|
||||
* <p># Plex Media Server OpenAPI Specification
|
||||
*
|
||||
* Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
* <p>An Open Source OpenAPI Specification for Plex Media Server
|
||||
*
|
||||
* ## Documentation
|
||||
* <p>Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
*
|
||||
* [API Documentation](https://plexapi.dev)
|
||||
* <p>## Documentation
|
||||
*
|
||||
* ## SDKs
|
||||
* <p>[API Documentation](https://plexapi.dev)
|
||||
*
|
||||
* The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
|
||||
* <p>## SDKs
|
||||
*
|
||||
* | Language | Repository | Releases | Other |
|
||||
* <p>The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
|
||||
*
|
||||
* <p>| Language | Repository | Releases | Other |
|
||||
* | --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
|
||||
* | Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
|
||||
* | JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
|
||||
@@ -40,7 +43,6 @@ import java.util.function.Consumer;
|
||||
* | 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) | -
|
||||
*
|
||||
*/
|
||||
public class PlexAPI {
|
||||
|
||||
@@ -57,19 +59,16 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Operations against the Plex Media Server System.
|
||||
*
|
||||
*/
|
||||
private final Server server;
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Media
|
||||
*
|
||||
*/
|
||||
private final Media media;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Videos
|
||||
*
|
||||
*/
|
||||
private final Video video;
|
||||
|
||||
@@ -81,49 +80,41 @@ public class PlexAPI {
|
||||
* - They must contain an `type` which is used by clients to distinguish the specific activity.
|
||||
* - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.)
|
||||
* - The may contain a `Response` object which attributes which represent the result of the asynchronous operation.
|
||||
*
|
||||
*/
|
||||
private final Activities activities;
|
||||
|
||||
/**
|
||||
* Butler is the task manager of the Plex Media Server Ecosystem.
|
||||
*
|
||||
*/
|
||||
private final Butler butler;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations directly against https://Plex.tv
|
||||
*
|
||||
*/
|
||||
private final Plex plex;
|
||||
|
||||
/**
|
||||
* Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
*
|
||||
*/
|
||||
private final Hubs hubs;
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Search search;
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Libraries
|
||||
*
|
||||
*/
|
||||
private final Library library;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
private final Watchlist watchlist;
|
||||
|
||||
/**
|
||||
* Submit logs to the Log Handler for Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Log log;
|
||||
|
||||
@@ -132,32 +123,27 @@ public class PlexAPI {
|
||||
* They can be organized in (optionally nesting) folders.
|
||||
* Retrieving a playlist, or its items, will trigger a refresh of its metadata.
|
||||
* This may cause the duration and number of items to change.
|
||||
*
|
||||
*/
|
||||
private final Playlists playlists;
|
||||
|
||||
/**
|
||||
* API Calls regarding authentication for Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Authentication authentication;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Statistics
|
||||
*
|
||||
*/
|
||||
private final Statistics statistics;
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server Sessions
|
||||
*
|
||||
*/
|
||||
private final Sessions sessions;
|
||||
|
||||
/**
|
||||
* This describes the API for searching and applying updates to the Plex Media Server.
|
||||
* Updates to the status can be observed via the Event API.
|
||||
*
|
||||
*/
|
||||
private final Updater updater;
|
||||
|
||||
@@ -165,7 +151,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Operations against the Plex Media Server System.
|
||||
*
|
||||
*/
|
||||
public Server server() {
|
||||
return server;
|
||||
@@ -173,7 +158,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Media
|
||||
*
|
||||
*/
|
||||
public Media media() {
|
||||
return media;
|
||||
@@ -181,7 +165,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Videos
|
||||
*
|
||||
*/
|
||||
public Video video() {
|
||||
return video;
|
||||
@@ -195,7 +178,6 @@ public class PlexAPI {
|
||||
* - They must contain an `type` which is used by clients to distinguish the specific activity.
|
||||
* - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.)
|
||||
* - The may contain a `Response` object which attributes which represent the result of the asynchronous operation.
|
||||
*
|
||||
*/
|
||||
public Activities activities() {
|
||||
return activities;
|
||||
@@ -203,7 +185,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Butler is the task manager of the Plex Media Server Ecosystem.
|
||||
*
|
||||
*/
|
||||
public Butler butler() {
|
||||
return butler;
|
||||
@@ -211,7 +192,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations directly against https://Plex.tv
|
||||
*
|
||||
*/
|
||||
public Plex plex() {
|
||||
return plex;
|
||||
@@ -219,7 +199,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
*
|
||||
*/
|
||||
public Hubs hubs() {
|
||||
return hubs;
|
||||
@@ -227,7 +206,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Search search() {
|
||||
return search;
|
||||
@@ -235,7 +213,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Libraries
|
||||
*
|
||||
*/
|
||||
public Library library() {
|
||||
return library;
|
||||
@@ -243,7 +220,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
public Watchlist watchlist() {
|
||||
return watchlist;
|
||||
@@ -251,7 +227,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Submit logs to the Log Handler for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Log log() {
|
||||
return log;
|
||||
@@ -262,7 +237,6 @@ public class PlexAPI {
|
||||
* They can be organized in (optionally nesting) folders.
|
||||
* Retrieving a playlist, or its items, will trigger a refresh of its metadata.
|
||||
* This may cause the duration and number of items to change.
|
||||
*
|
||||
*/
|
||||
public Playlists playlists() {
|
||||
return playlists;
|
||||
@@ -270,7 +244,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls regarding authentication for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Authentication authentication() {
|
||||
return authentication;
|
||||
@@ -278,7 +251,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Statistics
|
||||
*
|
||||
*/
|
||||
public Statistics statistics() {
|
||||
return statistics;
|
||||
@@ -286,7 +258,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server Sessions
|
||||
*
|
||||
*/
|
||||
public Sessions sessions() {
|
||||
return sessions;
|
||||
@@ -295,7 +266,6 @@ public class PlexAPI {
|
||||
/**
|
||||
* This describes the API for searching and applying updates to the Plex Media Server.
|
||||
* Updates to the status can be observed via the Event API.
|
||||
*
|
||||
*/
|
||||
public Updater updater() {
|
||||
return updater;
|
||||
@@ -342,6 +312,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Configures the SDK to use a custom security source.
|
||||
*
|
||||
* @param securitySource The security source to use for all requests.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
@@ -396,7 +367,9 @@ public class PlexAPI {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* ServerProtocol - The protocol to use for the server connection
|
||||
* ServerProtocol
|
||||
*
|
||||
* <p>The protocol to use for the server connection
|
||||
*/
|
||||
public enum ServerProtocol {
|
||||
HTTP("http"),
|
||||
@@ -412,6 +385,15 @@ public class PlexAPI {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ServerProtocol> fromValue(String value) {
|
||||
for (ServerProtocol o: ServerProtocol.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Sets the protocol variable for url substitution.
|
||||
@@ -478,6 +460,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Builds a new instance of the SDK.
|
||||
*
|
||||
* @return The SDK instance.
|
||||
*/
|
||||
public PlexAPI build() {
|
||||
@@ -500,6 +483,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Get a new instance of the SDK builder to configure a new instance of the SDK.
|
||||
*
|
||||
* @return The SDK builder instance.
|
||||
*/
|
||||
public static Builder builder() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import dev.plexapi.sdk.hooks.SDKHooks;
|
||||
@@ -18,6 +17,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
class SDKConfiguration {
|
||||
public SecuritySource securitySource;
|
||||
|
||||
@@ -43,8 +44,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.13.1";
|
||||
public static final String GEN_VERSION = "2.545.4";
|
||||
public static final String SDK_VERSION = "0.14.0";
|
||||
public static final String GEN_VERSION = "2.563.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",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -36,11 +35,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server
|
||||
*
|
||||
*/
|
||||
public class Search implements
|
||||
MethodCallPerformSearch,
|
||||
@@ -56,18 +56,19 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a search
|
||||
* This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
* <p>This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* - `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* <p>In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
*
|
||||
* <p>- `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* - `section`: There are multiple identical results from different sections.
|
||||
* - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language).
|
||||
* - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor`
|
||||
* - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold").
|
||||
* - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID.
|
||||
*
|
||||
* This request is intended to be very fast, and called as the user types.
|
||||
* <p>This request is intended to be very fast, and called as the user types.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -77,18 +78,19 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a search
|
||||
* This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
* <p>This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* - `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* <p>In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
*
|
||||
* <p>- `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* - `section`: There are multiple identical results from different sections.
|
||||
* - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language).
|
||||
* - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor`
|
||||
* - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold").
|
||||
* - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID.
|
||||
*
|
||||
* This request is intended to be very fast, and called as the user types.
|
||||
* <p>This request is intended to be very fast, and called as the user types.
|
||||
*
|
||||
* @param query The query term
|
||||
* @return The response from the API call
|
||||
@@ -101,18 +103,19 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a search
|
||||
* This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
* <p>This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor).
|
||||
*
|
||||
* - `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* <p>In the response's items, the following extra attributes are returned to further describe or disambiguate the result:
|
||||
*
|
||||
* <p>- `reason`: The reason for the result, if not because of a direct search term match; can be either:
|
||||
* - `section`: There are multiple identical results from different sections.
|
||||
* - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language).
|
||||
* - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor`
|
||||
* - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold").
|
||||
* - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID.
|
||||
*
|
||||
* This request is intended to be very fast, and called as the user types.
|
||||
* <p>This request is intended to be very fast, and called as the user types.
|
||||
*
|
||||
* @param query The query term
|
||||
* @param sectionId This gives context to the search, and can result in re-ordering of search result hubs
|
||||
@@ -156,6 +159,7 @@ public class Search implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -167,6 +171,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -176,6 +181,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -185,6 +191,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -267,7 +274,8 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a voice search
|
||||
* This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
*
|
||||
* <p>This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
* It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint.
|
||||
* Whenever possible, clients should limit the search to the appropriate type.
|
||||
* Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality.
|
||||
@@ -280,7 +288,8 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a voice search
|
||||
* This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
*
|
||||
* <p>This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
* It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint.
|
||||
* Whenever possible, clients should limit the search to the appropriate type.
|
||||
* Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality.
|
||||
@@ -296,7 +305,8 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Perform a voice search
|
||||
* This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
*
|
||||
* <p>This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint.
|
||||
* It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint.
|
||||
* Whenever possible, clients should limit the search to the appropriate type.
|
||||
* Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality.
|
||||
@@ -343,6 +353,7 @@ public class Search implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -354,6 +365,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -363,6 +375,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -372,6 +385,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -454,7 +468,9 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Get Search Results
|
||||
* This will search the database for the string provided.
|
||||
*
|
||||
* <p>This will search the database for the string provided.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetSearchResultsRequestBuilder getSearchResults() {
|
||||
@@ -463,7 +479,9 @@ public class Search implements
|
||||
|
||||
/**
|
||||
* Get Search Results
|
||||
* This will search the database for the string provided.
|
||||
*
|
||||
* <p>This will search the database for the string provided.
|
||||
*
|
||||
* @param query The search query string to use
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -500,6 +518,7 @@ public class Search implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -511,6 +530,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -520,6 +540,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -529,6 +550,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,27 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import dev.plexapi.sdk.models.shared.Security;
|
||||
import dev.plexapi.sdk.utils.HasSecurity;
|
||||
|
||||
|
||||
|
||||
public interface SecuritySource {
|
||||
|
||||
Security getSecurity();
|
||||
HasSecurity getSecurity();
|
||||
|
||||
public static SecuritySource of(Security security) {
|
||||
public static SecuritySource of(HasSecurity security) {
|
||||
return new DefaultSecuritySource(security);
|
||||
}
|
||||
|
||||
public static class DefaultSecuritySource implements SecuritySource {
|
||||
private Security security;
|
||||
private HasSecurity security;
|
||||
|
||||
public DefaultSecuritySource(Security security) {
|
||||
public DefaultSecuritySource(HasSecurity security) {
|
||||
this.security = security;
|
||||
}
|
||||
|
||||
public Security getSecurity() {
|
||||
public HasSecurity getSecurity() {
|
||||
return security;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -64,11 +63,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Operations against the Plex Media Server System.
|
||||
*
|
||||
*/
|
||||
public class Server implements
|
||||
MethodCallGetServerCapabilities,
|
||||
@@ -90,7 +90,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Capabilities
|
||||
* Get Server Capabilities
|
||||
*
|
||||
* <p>Get Server Capabilities
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerCapabilitiesRequestBuilder getServerCapabilities() {
|
||||
@@ -99,7 +101,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Capabilities
|
||||
* Get Server Capabilities
|
||||
*
|
||||
* <p>Get Server Capabilities
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -123,6 +127,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -134,6 +139,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -143,6 +149,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -152,6 +159,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -245,7 +253,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Preferences
|
||||
* Get Server Preferences
|
||||
*
|
||||
* <p>Get Server Preferences
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerPreferencesRequestBuilder getServerPreferences() {
|
||||
@@ -254,7 +264,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Preferences
|
||||
* Get Server Preferences
|
||||
*
|
||||
* <p>Get Server Preferences
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -278,6 +290,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -289,6 +302,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -298,6 +312,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -307,6 +322,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -400,7 +416,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Available Clients
|
||||
* Get Available Clients
|
||||
*
|
||||
* <p>Get Available Clients
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetAvailableClientsRequestBuilder getAvailableClients() {
|
||||
@@ -409,7 +427,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Available Clients
|
||||
* Get Available Clients
|
||||
*
|
||||
* <p>Get Available Clients
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -433,6 +453,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -444,6 +465,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -453,6 +475,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -462,6 +485,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -555,7 +579,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Devices
|
||||
* Get Devices
|
||||
*
|
||||
* <p>Get Devices
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetDevicesRequestBuilder getDevices() {
|
||||
@@ -564,7 +590,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Devices
|
||||
* Get Devices
|
||||
*
|
||||
* <p>Get Devices
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -588,6 +616,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -599,6 +628,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -608,6 +638,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -617,6 +648,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -710,7 +742,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Identity
|
||||
* This request is useful to determine if the server is online or offline
|
||||
*
|
||||
* <p>This request is useful to determine if the server is online or offline
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerIdentityRequestBuilder getServerIdentity() {
|
||||
@@ -719,7 +753,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server Identity
|
||||
* This request is useful to determine if the server is online or offline
|
||||
*
|
||||
* <p>This request is useful to determine if the server is online or offline
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -740,6 +776,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -751,6 +788,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -760,6 +798,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -769,6 +808,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -846,7 +886,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get MyPlex Account
|
||||
* Returns MyPlex Account Information
|
||||
*
|
||||
* <p>Returns MyPlex Account Information
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetMyPlexAccountRequestBuilder getMyPlexAccount() {
|
||||
@@ -855,7 +897,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get MyPlex Account
|
||||
* Returns MyPlex Account Information
|
||||
*
|
||||
* <p>Returns MyPlex Account Information
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -879,6 +923,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -890,6 +935,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -899,6 +945,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -908,6 +955,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1001,7 +1049,8 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get a Resized Photo
|
||||
* Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
|
||||
*
|
||||
* <p>Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -1011,7 +1060,8 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get a Resized Photo
|
||||
* Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
|
||||
*
|
||||
* <p>Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
@@ -1043,6 +1093,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1054,6 +1105,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1063,6 +1115,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1072,6 +1125,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1154,7 +1208,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Media Providers
|
||||
* Retrieves media providers and their features from the Plex server.
|
||||
*
|
||||
* <p>Retrieves media providers and their features from the Plex server.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetMediaProvidersRequestBuilder getMediaProviders() {
|
||||
@@ -1163,7 +1219,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Media Providers
|
||||
* Retrieves media providers and their features from the Plex server.
|
||||
*
|
||||
* <p>Retrieves media providers and their features from the Plex server.
|
||||
*
|
||||
* @param xPlexToken An authentication token, obtained from plex.tv
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -1196,6 +1254,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1207,6 +1266,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1216,6 +1276,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1225,6 +1286,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1318,7 +1380,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server List
|
||||
* Get Server List
|
||||
*
|
||||
* <p>Get Server List
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetServerListRequestBuilder getServerList() {
|
||||
@@ -1327,7 +1391,9 @@ public class Server implements
|
||||
|
||||
/**
|
||||
* Get Server List
|
||||
* Get Server List
|
||||
*
|
||||
* <p>Get Server List
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -1351,6 +1417,7 @@ public class Server implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1362,6 +1429,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1371,6 +1439,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -1380,6 +1449,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -42,11 +41,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server Sessions
|
||||
*
|
||||
*/
|
||||
public class Sessions implements
|
||||
MethodCallGetSessions,
|
||||
@@ -63,7 +63,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Active Sessions
|
||||
* This will retrieve the "Now Playing" Information of the PMS.
|
||||
*
|
||||
* <p>This will retrieve the "Now Playing" Information of the PMS.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetSessionsRequestBuilder getSessions() {
|
||||
@@ -72,7 +74,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Active Sessions
|
||||
* This will retrieve the "Now Playing" Information of the PMS.
|
||||
*
|
||||
* <p>This will retrieve the "Now Playing" Information of the PMS.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -96,6 +100,7 @@ public class Sessions implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -107,6 +112,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -116,6 +122,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -125,6 +132,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -218,7 +226,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Session History
|
||||
* This will Retrieve a listing of all history views.
|
||||
*
|
||||
* <p>This will Retrieve a listing of all history views.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetSessionHistoryRequestBuilder getSessionHistory() {
|
||||
@@ -227,7 +237,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Session History
|
||||
* This will Retrieve a listing of all history views.
|
||||
*
|
||||
* <p>This will Retrieve a listing of all history views.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -237,16 +249,18 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Session History
|
||||
* This will Retrieve a listing of all history views.
|
||||
*
|
||||
* <p>This will Retrieve a listing of all history views.
|
||||
*
|
||||
* @param sort Sorts the results by the specified field followed by the direction (asc, desc)
|
||||
|
||||
*
|
||||
* @param accountId Filter results by those that are related to a specific users id
|
||||
|
||||
*
|
||||
* @param filter Filters content by field and direction/equality
|
||||
(Unknown if viewedAt is the only supported column)
|
||||
|
||||
* (Unknown if viewedAt is the only supported column)
|
||||
*
|
||||
* @param librarySectionID Filters the results based on the id of a valid library section
|
||||
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -288,6 +302,7 @@ public class Sessions implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -299,6 +314,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -308,6 +324,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -317,6 +334,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -410,7 +428,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Transcode Sessions
|
||||
* Get Transcode Sessions
|
||||
*
|
||||
* <p>Get Transcode Sessions
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetTranscodeSessionsRequestBuilder getTranscodeSessions() {
|
||||
@@ -419,7 +439,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Get Transcode Sessions
|
||||
* Get Transcode Sessions
|
||||
*
|
||||
* <p>Get Transcode Sessions
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -443,6 +465,7 @@ public class Sessions implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -454,6 +477,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -463,6 +487,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -472,6 +497,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -565,7 +591,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Stop a Transcode Session
|
||||
* Stop a Transcode Session
|
||||
*
|
||||
* <p>Stop a Transcode Session
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public StopTranscodeSessionRequestBuilder stopTranscodeSession() {
|
||||
@@ -574,7 +602,9 @@ public class Sessions implements
|
||||
|
||||
/**
|
||||
* Stop a Transcode Session
|
||||
* Stop a Transcode Session
|
||||
*
|
||||
* <p>Stop a Transcode Session
|
||||
*
|
||||
* @param sessionKey the Key of the transcode session to stop
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -608,6 +638,7 @@ public class Sessions implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -619,6 +650,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -628,6 +660,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -637,6 +670,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -38,11 +37,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Statistics
|
||||
*
|
||||
*/
|
||||
public class Statistics implements
|
||||
MethodCallGetStatistics,
|
||||
@@ -58,7 +58,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Media Statistics
|
||||
* This will return the media statistics for the server
|
||||
*
|
||||
* <p>This will return the media statistics for the server
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetStatisticsRequestBuilder getStatistics() {
|
||||
@@ -67,7 +69,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Media Statistics
|
||||
* This will return the media statistics for the server
|
||||
*
|
||||
* <p>This will return the media statistics for the server
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -77,10 +81,12 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Media Statistics
|
||||
* This will return the media statistics for the server
|
||||
*
|
||||
* <p>This will return the media statistics for the server
|
||||
*
|
||||
* @param timespan The timespan to retrieve statistics for
|
||||
the exact meaning of this parameter is not known
|
||||
|
||||
* the exact meaning of this parameter is not known
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -116,6 +122,7 @@ public class Statistics implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -127,6 +134,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -136,6 +144,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -145,6 +154,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -238,7 +248,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Resources Statistics
|
||||
* This will return the resources for the server
|
||||
*
|
||||
* <p>This will return the resources for the server
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetResourcesStatisticsRequestBuilder getResourcesStatistics() {
|
||||
@@ -247,7 +259,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Resources Statistics
|
||||
* This will return the resources for the server
|
||||
*
|
||||
* <p>This will return the resources for the server
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -257,10 +271,12 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Resources Statistics
|
||||
* This will return the resources for the server
|
||||
*
|
||||
* <p>This will return the resources for the server
|
||||
*
|
||||
* @param timespan The timespan to retrieve statistics for
|
||||
the exact meaning of this parameter is not known
|
||||
|
||||
* the exact meaning of this parameter is not known
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -296,6 +312,7 @@ public class Statistics implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -307,6 +324,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -316,6 +334,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -325,6 +344,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -418,7 +438,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Bandwidth Statistics
|
||||
* This will return the bandwidth statistics for the server
|
||||
*
|
||||
* <p>This will return the bandwidth statistics for the server
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetBandwidthStatisticsRequestBuilder getBandwidthStatistics() {
|
||||
@@ -427,7 +449,9 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Bandwidth Statistics
|
||||
* This will return the bandwidth statistics for the server
|
||||
*
|
||||
* <p>This will return the bandwidth statistics for the server
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -437,10 +461,12 @@ public class Statistics implements
|
||||
|
||||
/**
|
||||
* Get Bandwidth Statistics
|
||||
* This will return the bandwidth statistics for the server
|
||||
*
|
||||
* <p>This will return the bandwidth statistics for the server
|
||||
*
|
||||
* @param timespan The timespan to retrieve statistics for
|
||||
the exact meaning of this parameter is not known
|
||||
|
||||
* the exact meaning of this parameter is not known
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -476,6 +502,7 @@ public class Statistics implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -487,6 +514,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -496,6 +524,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -505,6 +534,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -37,12 +36,13 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This describes the API for searching and applying updates to the Plex Media Server.
|
||||
* Updates to the status can be observed via the Event API.
|
||||
*
|
||||
*/
|
||||
public class Updater implements
|
||||
MethodCallGetUpdateStatus,
|
||||
@@ -58,7 +58,9 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Querying status of updates
|
||||
* Querying status of updates
|
||||
*
|
||||
* <p>Querying status of updates
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetUpdateStatusRequestBuilder getUpdateStatus() {
|
||||
@@ -67,7 +69,9 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Querying status of updates
|
||||
* Querying status of updates
|
||||
*
|
||||
* <p>Querying status of updates
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -91,6 +95,7 @@ public class Updater implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -102,6 +107,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -111,6 +117,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -120,6 +127,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -213,7 +221,9 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Checking for updates
|
||||
* Checking for updates
|
||||
*
|
||||
* <p>Checking for updates
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public CheckForUpdatesRequestBuilder checkForUpdates() {
|
||||
@@ -222,7 +232,9 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Checking for updates
|
||||
* Checking for updates
|
||||
*
|
||||
* <p>Checking for updates
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
@@ -232,7 +244,9 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Checking for updates
|
||||
* Checking for updates
|
||||
*
|
||||
* <p>Checking for updates
|
||||
*
|
||||
* @param download Indicate that you want to start download any updates found.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -269,6 +283,7 @@ public class Updater implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -280,6 +295,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -289,6 +305,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -298,6 +315,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -380,7 +398,8 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Apply Updates
|
||||
* Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* <p>Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -390,7 +409,8 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Apply Updates
|
||||
* Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* <p>Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -401,7 +421,8 @@ public class Updater implements
|
||||
|
||||
/**
|
||||
* Apply Updates
|
||||
* Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* <p>Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed
|
||||
*
|
||||
* @param tonight Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
* @param skip Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.
|
||||
@@ -442,6 +463,7 @@ public class Updater implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -453,6 +475,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -462,6 +485,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -471,6 +495,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -25,7 +24,9 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
public class Users implements
|
||||
MethodCallGetUsers {
|
||||
@@ -46,7 +47,9 @@ public class Users implements
|
||||
|
||||
/**
|
||||
* Get list of all connected users
|
||||
* Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* <p>Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetUsersRequestBuilder getUsers() {
|
||||
@@ -55,7 +58,9 @@ public class Users implements
|
||||
|
||||
/**
|
||||
* Get list of all connected users
|
||||
* Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* <p>Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -67,7 +72,9 @@ public class Users implements
|
||||
|
||||
/**
|
||||
* Get list of all connected users
|
||||
* Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* <p>Get list of all users that are friends and have library access with the provided Plex authentication token
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -76,9 +83,11 @@ public class Users implements
|
||||
public GetUsersResponse getUsers(
|
||||
GetUsersRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_USERS_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_USERS_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
@@ -95,6 +104,7 @@ public class Users implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -106,6 +116,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -115,6 +126,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -124,6 +136,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -29,11 +28,12 @@ import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Videos
|
||||
*
|
||||
*/
|
||||
public class Video implements
|
||||
MethodCallGetTimeline,
|
||||
@@ -48,7 +48,9 @@ public class Video implements
|
||||
|
||||
/**
|
||||
* Get the timeline for a media item
|
||||
* Get the timeline for a media item
|
||||
*
|
||||
* <p>Get the timeline for a media item
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetTimelineRequestBuilder getTimeline() {
|
||||
@@ -57,7 +59,9 @@ public class Video implements
|
||||
|
||||
/**
|
||||
* Get the timeline for a media item
|
||||
* Get the timeline for a media item
|
||||
*
|
||||
* <p>Get the timeline for a media item
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -88,6 +92,7 @@ public class Video implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -99,6 +104,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -108,6 +114,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -117,6 +124,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -199,7 +207,9 @@ public class Video implements
|
||||
|
||||
/**
|
||||
* Start Universal Transcode
|
||||
* Begin a Universal Transcode Session
|
||||
*
|
||||
* <p>Begin a Universal Transcode Session
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public StartUniversalTranscodeRequestBuilder startUniversalTranscode() {
|
||||
@@ -208,7 +218,9 @@ public class Video implements
|
||||
|
||||
/**
|
||||
* Start Universal Transcode
|
||||
* Begin a Universal Transcode Session
|
||||
*
|
||||
* <p>Begin a Universal Transcode Session
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -239,6 +251,7 @@ public class Video implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -250,6 +263,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -259,6 +273,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -268,6 +283,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
@@ -26,11 +25,12 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
public class Watchlist implements
|
||||
MethodCallGetWatchList {
|
||||
@@ -54,7 +54,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetWatchListRequestBuilder getWatchList() {
|
||||
@@ -63,7 +65,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -75,7 +79,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -84,9 +90,11 @@ public class Watchlist implements
|
||||
public GetWatchListResponse getWatchList(
|
||||
GetWatchListRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
GetWatchListRequest.class,
|
||||
@@ -113,6 +121,7 @@ public class Watchlist implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -124,6 +133,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -133,6 +143,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -142,6 +153,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* AddPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* AddPlaylistContentsBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<AddPlaylistContentsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<AddPlaylistContentsErrors>> errors() {
|
||||
return (Optional<List<AddPlaylistContentsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public AddPlaylistContentsBadRequest withErrors(List<AddPlaylistContentsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public AddPlaylistContentsBadRequest withErrors(Optional<? extends List<AddPlaylistContentsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
AddPlaylistContentsBadRequest other = (AddPlaylistContentsBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(AddPlaylistContentsBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<AddPlaylistContentsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<AddPlaylistContentsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public AddPlaylistContentsBadRequest build() {
|
||||
return new AddPlaylistContentsBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class AddPlaylistContentsBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class AddPlaylistContentsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public AddPlaylistContentsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class AddPlaylistContentsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class AddPlaylistContentsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class AddPlaylistContentsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class AddPlaylistContentsPlaylistsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public AddPlaylistContentsPlaylistsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class AddPlaylistContentsPlaylistsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class AddPlaylistContentsPlaylistsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class AddPlaylistContentsPlaylistsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* AddPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* AddPlaylistContentsUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<AddPlaylistContentsPlaylistsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<AddPlaylistContentsPlaylistsErrors>> errors() {
|
||||
return (Optional<List<AddPlaylistContentsPlaylistsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public AddPlaylistContentsUnauthorized withErrors(List<AddPlaylistContentsPlaylistsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public AddPlaylistContentsUnauthorized withErrors(Optional<? extends List<AddPlaylistContentsPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
AddPlaylistContentsUnauthorized other = (AddPlaylistContentsUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(AddPlaylistContentsUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<AddPlaylistContentsPlaylistsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<AddPlaylistContentsPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public AddPlaylistContentsUnauthorized build() {
|
||||
return new AddPlaylistContentsUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class AddPlaylistContentsUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ApplyUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* ApplyUpdatesBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<ApplyUpdatesErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<ApplyUpdatesErrors>> errors() {
|
||||
return (Optional<List<ApplyUpdatesErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ApplyUpdatesBadRequest withErrors(List<ApplyUpdatesErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ApplyUpdatesBadRequest withErrors(Optional<? extends List<ApplyUpdatesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
ApplyUpdatesBadRequest other = (ApplyUpdatesBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(ApplyUpdatesBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<ApplyUpdatesErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<ApplyUpdatesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ApplyUpdatesBadRequest build() {
|
||||
return new ApplyUpdatesBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class ApplyUpdatesBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class ApplyUpdatesErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ApplyUpdatesErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class ApplyUpdatesErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class ApplyUpdatesErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class ApplyUpdatesErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ApplyUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* ApplyUpdatesUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<ApplyUpdatesUpdaterErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<ApplyUpdatesUpdaterErrors>> errors() {
|
||||
return (Optional<List<ApplyUpdatesUpdaterErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ApplyUpdatesUnauthorized withErrors(List<ApplyUpdatesUpdaterErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ApplyUpdatesUnauthorized withErrors(Optional<? extends List<ApplyUpdatesUpdaterErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
ApplyUpdatesUnauthorized other = (ApplyUpdatesUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(ApplyUpdatesUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<ApplyUpdatesUpdaterErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<ApplyUpdatesUpdaterErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ApplyUpdatesUnauthorized build() {
|
||||
return new ApplyUpdatesUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class ApplyUpdatesUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class ApplyUpdatesUpdaterErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ApplyUpdatesUpdaterErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class ApplyUpdatesUpdaterErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class ApplyUpdatesUpdaterErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class ApplyUpdatesUpdaterErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CancelServerActivitiesActivitiesErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CancelServerActivitiesActivitiesErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CancelServerActivitiesActivitiesErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CancelServerActivitiesActivitiesErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CancelServerActivitiesActivitiesErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CancelServerActivitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* CancelServerActivitiesBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CancelServerActivitiesErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CancelServerActivitiesErrors>> errors() {
|
||||
return (Optional<List<CancelServerActivitiesErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CancelServerActivitiesBadRequest withErrors(List<CancelServerActivitiesErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CancelServerActivitiesBadRequest withErrors(Optional<? extends List<CancelServerActivitiesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CancelServerActivitiesBadRequest other = (CancelServerActivitiesBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CancelServerActivitiesBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CancelServerActivitiesErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CancelServerActivitiesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CancelServerActivitiesBadRequest build() {
|
||||
return new CancelServerActivitiesBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CancelServerActivitiesBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CancelServerActivitiesErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CancelServerActivitiesErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CancelServerActivitiesErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CancelServerActivitiesErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CancelServerActivitiesErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CancelServerActivitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* CancelServerActivitiesUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CancelServerActivitiesActivitiesErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CancelServerActivitiesActivitiesErrors>> errors() {
|
||||
return (Optional<List<CancelServerActivitiesActivitiesErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CancelServerActivitiesUnauthorized withErrors(List<CancelServerActivitiesActivitiesErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CancelServerActivitiesUnauthorized withErrors(Optional<? extends List<CancelServerActivitiesActivitiesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CancelServerActivitiesUnauthorized other = (CancelServerActivitiesUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CancelServerActivitiesUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CancelServerActivitiesActivitiesErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CancelServerActivitiesActivitiesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CancelServerActivitiesUnauthorized build() {
|
||||
return new CancelServerActivitiesUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CancelServerActivitiesUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CheckForUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* CheckForUpdatesBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CheckForUpdatesErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CheckForUpdatesErrors>> errors() {
|
||||
return (Optional<List<CheckForUpdatesErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CheckForUpdatesBadRequest withErrors(List<CheckForUpdatesErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CheckForUpdatesBadRequest withErrors(Optional<? extends List<CheckForUpdatesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CheckForUpdatesBadRequest other = (CheckForUpdatesBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CheckForUpdatesBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CheckForUpdatesErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CheckForUpdatesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CheckForUpdatesBadRequest build() {
|
||||
return new CheckForUpdatesBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CheckForUpdatesBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CheckForUpdatesErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CheckForUpdatesErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CheckForUpdatesErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CheckForUpdatesErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CheckForUpdatesErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CheckForUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* CheckForUpdatesUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CheckForUpdatesUpdaterErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CheckForUpdatesUpdaterErrors>> errors() {
|
||||
return (Optional<List<CheckForUpdatesUpdaterErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CheckForUpdatesUnauthorized withErrors(List<CheckForUpdatesUpdaterErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CheckForUpdatesUnauthorized withErrors(Optional<? extends List<CheckForUpdatesUpdaterErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CheckForUpdatesUnauthorized other = (CheckForUpdatesUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CheckForUpdatesUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CheckForUpdatesUpdaterErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CheckForUpdatesUpdaterErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CheckForUpdatesUnauthorized build() {
|
||||
return new CheckForUpdatesUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CheckForUpdatesUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CheckForUpdatesUpdaterErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CheckForUpdatesUpdaterErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CheckForUpdatesUpdaterErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CheckForUpdatesUpdaterErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CheckForUpdatesUpdaterErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ClearPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* ClearPlaylistContentsBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<ClearPlaylistContentsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<ClearPlaylistContentsErrors>> errors() {
|
||||
return (Optional<List<ClearPlaylistContentsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ClearPlaylistContentsBadRequest withErrors(List<ClearPlaylistContentsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ClearPlaylistContentsBadRequest withErrors(Optional<? extends List<ClearPlaylistContentsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
ClearPlaylistContentsBadRequest other = (ClearPlaylistContentsBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(ClearPlaylistContentsBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<ClearPlaylistContentsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<ClearPlaylistContentsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ClearPlaylistContentsBadRequest build() {
|
||||
return new ClearPlaylistContentsBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class ClearPlaylistContentsBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class ClearPlaylistContentsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ClearPlaylistContentsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class ClearPlaylistContentsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class ClearPlaylistContentsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class ClearPlaylistContentsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class ClearPlaylistContentsPlaylistsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ClearPlaylistContentsPlaylistsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class ClearPlaylistContentsPlaylistsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class ClearPlaylistContentsPlaylistsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class ClearPlaylistContentsPlaylistsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ClearPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* ClearPlaylistContentsUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<ClearPlaylistContentsPlaylistsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<ClearPlaylistContentsPlaylistsErrors>> errors() {
|
||||
return (Optional<List<ClearPlaylistContentsPlaylistsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public ClearPlaylistContentsUnauthorized withErrors(List<ClearPlaylistContentsPlaylistsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ClearPlaylistContentsUnauthorized withErrors(Optional<? extends List<ClearPlaylistContentsPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
ClearPlaylistContentsUnauthorized other = (ClearPlaylistContentsUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(ClearPlaylistContentsUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<ClearPlaylistContentsPlaylistsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<ClearPlaylistContentsPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public ClearPlaylistContentsUnauthorized build() {
|
||||
return new ClearPlaylistContentsUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class ClearPlaylistContentsUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CreatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* CreatePlaylistBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CreatePlaylistErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CreatePlaylistErrors>> errors() {
|
||||
return (Optional<List<CreatePlaylistErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CreatePlaylistBadRequest withErrors(List<CreatePlaylistErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CreatePlaylistBadRequest withErrors(Optional<? extends List<CreatePlaylistErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CreatePlaylistBadRequest other = (CreatePlaylistBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CreatePlaylistBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CreatePlaylistErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CreatePlaylistErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CreatePlaylistBadRequest build() {
|
||||
return new CreatePlaylistBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CreatePlaylistBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CreatePlaylistErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CreatePlaylistErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CreatePlaylistErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CreatePlaylistErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CreatePlaylistErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class CreatePlaylistPlaylistsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CreatePlaylistPlaylistsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class CreatePlaylistPlaylistsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class CreatePlaylistPlaylistsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class CreatePlaylistPlaylistsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CreatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* CreatePlaylistUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<CreatePlaylistPlaylistsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<CreatePlaylistPlaylistsErrors>> errors() {
|
||||
return (Optional<List<CreatePlaylistPlaylistsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public CreatePlaylistUnauthorized withErrors(List<CreatePlaylistPlaylistsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CreatePlaylistUnauthorized withErrors(Optional<? extends List<CreatePlaylistPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
CreatePlaylistUnauthorized other = (CreatePlaylistUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(CreatePlaylistUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<CreatePlaylistPlaylistsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<CreatePlaylistPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CreatePlaylistUnauthorized build() {
|
||||
return new CreatePlaylistUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class CreatePlaylistUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DeleteLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* DeleteLibraryBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<DeleteLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<DeleteLibraryErrors>> errors() {
|
||||
return (Optional<List<DeleteLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeleteLibraryBadRequest withErrors(List<DeleteLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeleteLibraryBadRequest withErrors(Optional<? extends List<DeleteLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
DeleteLibraryBadRequest other = (DeleteLibraryBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(DeleteLibraryBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<DeleteLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<DeleteLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeleteLibraryBadRequest build() {
|
||||
return new DeleteLibraryBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class DeleteLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class DeleteLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeleteLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class DeleteLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class DeleteLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class DeleteLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class DeleteLibraryLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeleteLibraryLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class DeleteLibraryLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class DeleteLibraryLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class DeleteLibraryLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DeleteLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* DeleteLibraryUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<DeleteLibraryLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<DeleteLibraryLibraryErrors>> errors() {
|
||||
return (Optional<List<DeleteLibraryLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeleteLibraryUnauthorized withErrors(List<DeleteLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeleteLibraryUnauthorized withErrors(Optional<? extends List<DeleteLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
DeleteLibraryUnauthorized other = (DeleteLibraryUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(DeleteLibraryUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<DeleteLibraryLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<DeleteLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeleteLibraryUnauthorized build() {
|
||||
return new DeleteLibraryUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class DeleteLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DeletePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* DeletePlaylistBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<DeletePlaylistErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<DeletePlaylistErrors>> errors() {
|
||||
return (Optional<List<DeletePlaylistErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeletePlaylistBadRequest withErrors(List<DeletePlaylistErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeletePlaylistBadRequest withErrors(Optional<? extends List<DeletePlaylistErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
DeletePlaylistBadRequest other = (DeletePlaylistBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(DeletePlaylistBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<DeletePlaylistErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<DeletePlaylistErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeletePlaylistBadRequest build() {
|
||||
return new DeletePlaylistBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class DeletePlaylistBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class DeletePlaylistErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeletePlaylistErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class DeletePlaylistErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class DeletePlaylistErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class DeletePlaylistErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class DeletePlaylistPlaylistsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeletePlaylistPlaylistsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class DeletePlaylistPlaylistsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class DeletePlaylistPlaylistsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class DeletePlaylistPlaylistsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DeletePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* DeletePlaylistUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<DeletePlaylistPlaylistsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<DeletePlaylistPlaylistsErrors>> errors() {
|
||||
return (Optional<List<DeletePlaylistPlaylistsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public DeletePlaylistUnauthorized withErrors(List<DeletePlaylistPlaylistsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeletePlaylistUnauthorized withErrors(Optional<? extends List<DeletePlaylistPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
DeletePlaylistUnauthorized other = (DeletePlaylistUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(DeletePlaylistUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<DeletePlaylistPlaylistsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<DeletePlaylistPlaylistsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public DeletePlaylistUnauthorized build() {
|
||||
return new DeletePlaylistUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class DeletePlaylistUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* EnablePaperTrailBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* EnablePaperTrailBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<EnablePaperTrailErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<EnablePaperTrailErrors>> errors() {
|
||||
return (Optional<List<EnablePaperTrailErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public EnablePaperTrailBadRequest withErrors(List<EnablePaperTrailErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public EnablePaperTrailBadRequest withErrors(Optional<? extends List<EnablePaperTrailErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
EnablePaperTrailBadRequest other = (EnablePaperTrailBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(EnablePaperTrailBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<EnablePaperTrailErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<EnablePaperTrailErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public EnablePaperTrailBadRequest build() {
|
||||
return new EnablePaperTrailBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class EnablePaperTrailBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class EnablePaperTrailErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public EnablePaperTrailErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class EnablePaperTrailErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class EnablePaperTrailErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class EnablePaperTrailErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class EnablePaperTrailLogErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public EnablePaperTrailLogErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class EnablePaperTrailLogErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class EnablePaperTrailLogErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class EnablePaperTrailLogErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* EnablePaperTrailUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* EnablePaperTrailUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<EnablePaperTrailLogErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<EnablePaperTrailLogErrors>> errors() {
|
||||
return (Optional<List<EnablePaperTrailLogErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public EnablePaperTrailUnauthorized withErrors(List<EnablePaperTrailLogErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public EnablePaperTrailUnauthorized withErrors(Optional<? extends List<EnablePaperTrailLogErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
EnablePaperTrailUnauthorized other = (EnablePaperTrailUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(EnablePaperTrailUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<EnablePaperTrailLogErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<EnablePaperTrailLogErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public EnablePaperTrailUnauthorized build() {
|
||||
return new EnablePaperTrailUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class EnablePaperTrailUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class Errors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public Errors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class Errors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class Errors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class Errors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetActorsLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetActorsLibraryBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetActorsLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetActorsLibraryErrors>> errors() {
|
||||
return (Optional<List<GetActorsLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetActorsLibraryBadRequest withErrors(List<GetActorsLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetActorsLibraryBadRequest withErrors(Optional<? extends List<GetActorsLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetActorsLibraryBadRequest other = (GetActorsLibraryBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetActorsLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetActorsLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetActorsLibraryBadRequest build() {
|
||||
return new GetActorsLibraryBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetActorsLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetActorsLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetActorsLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetActorsLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetActorsLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetActorsLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetActorsLibraryLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetActorsLibraryLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetActorsLibraryLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetActorsLibraryLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetActorsLibraryLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetActorsLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetActorsLibraryUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetActorsLibraryLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetActorsLibraryLibraryErrors>> errors() {
|
||||
return (Optional<List<GetActorsLibraryLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetActorsLibraryUnauthorized withErrors(List<GetActorsLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetActorsLibraryUnauthorized withErrors(Optional<? extends List<GetActorsLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetActorsLibraryUnauthorized other = (GetActorsLibraryUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetActorsLibraryUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetActorsLibraryLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetActorsLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetActorsLibraryUnauthorized build() {
|
||||
return new GetActorsLibraryUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetActorsLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllLibrariesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetAllLibrariesBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAllLibrariesErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllLibrariesErrors>> errors() {
|
||||
return (Optional<List<GetAllLibrariesErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllLibrariesBadRequest withErrors(List<GetAllLibrariesErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllLibrariesBadRequest withErrors(Optional<? extends List<GetAllLibrariesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAllLibrariesBadRequest other = (GetAllLibrariesBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllLibrariesBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAllLibrariesErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllLibrariesErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllLibrariesBadRequest build() {
|
||||
return new GetAllLibrariesBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAllLibrariesBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAllLibrariesErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllLibrariesErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAllLibrariesErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAllLibrariesErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAllLibrariesErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAllLibrariesLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllLibrariesLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAllLibrariesLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAllLibrariesLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAllLibrariesLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllLibrariesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetAllLibrariesUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAllLibrariesLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllLibrariesLibraryErrors>> errors() {
|
||||
return (Optional<List<GetAllLibrariesLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllLibrariesUnauthorized withErrors(List<GetAllLibrariesLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllLibrariesUnauthorized withErrors(Optional<? extends List<GetAllLibrariesLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAllLibrariesUnauthorized other = (GetAllLibrariesUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllLibrariesUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAllLibrariesLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllLibrariesLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllLibrariesUnauthorized build() {
|
||||
return new GetAllLibrariesUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAllLibrariesUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetAllMediaLibraryBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAllMediaLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryErrors>> errors() {
|
||||
return (Optional<List<GetAllMediaLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryBadRequest withErrors(List<GetAllMediaLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllMediaLibraryBadRequest withErrors(Optional<? extends List<GetAllMediaLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryBadRequest other = (GetAllMediaLibraryBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllMediaLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllMediaLibraryBadRequest build() {
|
||||
return new GetAllMediaLibraryBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAllMediaLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAllMediaLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAllMediaLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAllMediaLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetAllMediaLibraryUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAllMediaLibraryLibraryErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryLibraryErrors>> errors() {
|
||||
return (Optional<List<GetAllMediaLibraryLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUnauthorized withErrors(List<GetAllMediaLibraryLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllMediaLibraryUnauthorized withErrors(Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryUnauthorized other = (GetAllMediaLibraryUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAllMediaLibraryUnauthorized build() {
|
||||
return new GetAllMediaLibraryUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAvailableClientsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetAvailableClientsBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAvailableClientsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAvailableClientsErrors>> errors() {
|
||||
return (Optional<List<GetAvailableClientsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAvailableClientsBadRequest withErrors(List<GetAvailableClientsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAvailableClientsBadRequest withErrors(Optional<? extends List<GetAvailableClientsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAvailableClientsBadRequest other = (GetAvailableClientsBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAvailableClientsBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAvailableClientsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAvailableClientsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAvailableClientsBadRequest build() {
|
||||
return new GetAvailableClientsBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAvailableClientsBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAvailableClientsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAvailableClientsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAvailableClientsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAvailableClientsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAvailableClientsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetAvailableClientsServerErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAvailableClientsServerErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetAvailableClientsServerErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetAvailableClientsServerErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetAvailableClientsServerErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAvailableClientsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetAvailableClientsUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetAvailableClientsServerErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAvailableClientsServerErrors>> errors() {
|
||||
return (Optional<List<GetAvailableClientsServerErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetAvailableClientsUnauthorized withErrors(List<GetAvailableClientsServerErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAvailableClientsUnauthorized withErrors(Optional<? extends List<GetAvailableClientsServerErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetAvailableClientsUnauthorized other = (GetAvailableClientsUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAvailableClientsUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetAvailableClientsServerErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAvailableClientsServerErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetAvailableClientsUnauthorized build() {
|
||||
return new GetAvailableClientsUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetAvailableClientsUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetBandwidthStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetBandwidthStatisticsBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetBandwidthStatisticsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetBandwidthStatisticsErrors>> errors() {
|
||||
return (Optional<List<GetBandwidthStatisticsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBandwidthStatisticsBadRequest withErrors(List<GetBandwidthStatisticsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBandwidthStatisticsBadRequest withErrors(Optional<? extends List<GetBandwidthStatisticsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetBandwidthStatisticsBadRequest other = (GetBandwidthStatisticsBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetBandwidthStatisticsBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetBandwidthStatisticsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetBandwidthStatisticsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBandwidthStatisticsBadRequest build() {
|
||||
return new GetBandwidthStatisticsBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetBandwidthStatisticsBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetBandwidthStatisticsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBandwidthStatisticsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetBandwidthStatisticsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetBandwidthStatisticsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetBandwidthStatisticsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetBandwidthStatisticsStatisticsErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBandwidthStatisticsStatisticsErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetBandwidthStatisticsStatisticsErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetBandwidthStatisticsStatisticsErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetBandwidthStatisticsStatisticsErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetBandwidthStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
* GetBandwidthStatisticsUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetBandwidthStatisticsStatisticsErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetBandwidthStatisticsStatisticsErrors>> errors() {
|
||||
return (Optional<List<GetBandwidthStatisticsStatisticsErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBandwidthStatisticsUnauthorized withErrors(List<GetBandwidthStatisticsStatisticsErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBandwidthStatisticsUnauthorized withErrors(Optional<? extends List<GetBandwidthStatisticsStatisticsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetBandwidthStatisticsUnauthorized other = (GetBandwidthStatisticsUnauthorized) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetBandwidthStatisticsUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetBandwidthStatisticsStatisticsErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetBandwidthStatisticsStatisticsErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBandwidthStatisticsUnauthorized build() {
|
||||
return new GetBandwidthStatisticsUnauthorized(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetBandwidthStatisticsUnauthorized extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Override;
|
||||
import java.lang.RuntimeException;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetBannerImageBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
* GetBannerImageBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetBannerImageBadRequest extends RuntimeException {
|
||||
@@ -49,7 +53,8 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetBannerImageErrors>> errors(){
|
||||
@JsonIgnore
|
||||
public Optional<List<GetBannerImageErrors>> errors() {
|
||||
return (Optional<List<GetBannerImageErrors>>) errors;
|
||||
}
|
||||
|
||||
@@ -57,20 +62,21 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||
@JsonIgnore
|
||||
public Optional<HttpResponse<InputStream>> rawResponse() {
|
||||
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||
}
|
||||
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBannerImageBadRequest withErrors(List<GetBannerImageErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBannerImageBadRequest withErrors(Optional<? extends List<GetBannerImageErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -85,7 +91,7 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -95,6 +101,7 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -104,31 +111,31 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
return false;
|
||||
}
|
||||
GetBannerImageBadRequest other = (GetBannerImageBadRequest) o;
|
||||
return
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return java.util.Objects.hash(
|
||||
return Objects.hash(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetBannerImageBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
|
||||
private Optional<? extends List<GetBannerImageErrors>> errors = Optional.empty();
|
||||
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
@@ -138,7 +145,7 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder errors(Optional<? extends List<GetBannerImageErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
@@ -153,7 +160,7 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@@ -162,7 +169,7 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public GetBannerImageBadRequest build() {
|
||||
return new GetBannerImageBadRequest(
|
||||
errors,
|
||||
@@ -170,3 +177,4 @@ public class GetBannerImageBadRequest extends RuntimeException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.errors;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
@@ -64,7 +63,7 @@ public class GetBannerImageErrors {
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
}
|
||||
|
||||
public GetBannerImageErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -101,6 +100,7 @@ public class GetBannerImageErrors {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -139,7 +139,7 @@ public class GetBannerImageErrors {
|
||||
|
||||
private Optional<String> message = Optional.empty();
|
||||
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
private Optional<Integer> status = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -189,4 +189,3 @@ public class GetBannerImageErrors {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user