From 66d8250cb0fc05545ad86dea5aa8a81a08a73982 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Nov 2025 00:34:37 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2 --- .speakeasy/gen.lock | 18 +- .speakeasy/gen.yaml | 8 +- .speakeasy/workflow.lock | 12 +- README.md | 161 +++++++++++- RELEASES.md | 12 +- build.gradle | 2 +- codeSamples.yaml | 4 +- .../operations/GetSectionsPrefsResponse.md | 2 +- .../operations/StopAllRefreshesResponse.md | 2 +- docs/models/shared/LibrarySections.md | 10 + ...rectory.md => LibrarySectionsDirectory.md} | 2 +- ...er.md => LibrarySectionsMediaContainer.md} | 4 +- .../RequestHandlerSlashGetResponses200.md | 10 - docs/sdks/library/README.md | 8 +- gradle.properties | 2 +- .../java/dev/plexapi/sdk/AsyncLibrary.java | 8 +- src/main/java/dev/plexapi/sdk/Library.java | 8 +- src/main/java/dev/plexapi/sdk/PlexAPI.java | 10 +- .../dev/plexapi/sdk/SDKConfiguration.java | 4 +- .../operations/GetSectionsPrefsResponse.java | 48 ++-- .../operations/StopAllRefreshesResponse.java | 48 ++-- .../async/GetSectionsPrefsResponse.java | 48 ++-- .../async/StopAllRefreshesResponse.java | 48 ++-- ...Responses200.java => LibrarySections.java} | 34 +-- ...ory.java => LibrarySectionsDirectory.java} | 26 +- ...ava => LibrarySectionsMediaContainer.java} | 242 +++++++++--------- .../sdk/operations/GetSectionsPrefs.java | 10 +- .../sdk/operations/StopAllRefreshes.java | 10 +- 28 files changed, 477 insertions(+), 324 deletions(-) create mode 100644 docs/models/shared/LibrarySections.md rename docs/models/shared/{RequestHandlerSlashGetResponses200Directory.md => LibrarySectionsDirectory.md} (94%) rename docs/models/shared/{RequestHandlerSlashGetResponses200MediaContainer.md => LibrarySectionsMediaContainer.md} (99%) delete mode 100644 docs/models/shared/RequestHandlerSlashGetResponses200.md rename src/main/java/dev/plexapi/sdk/models/shared/{RequestHandlerSlashGetResponses200.java => LibrarySections.java} (60%) rename src/main/java/dev/plexapi/sdk/models/shared/{RequestHandlerSlashGetResponses200Directory.java => LibrarySectionsDirectory.java} (82%) rename src/main/java/dev/plexapi/sdk/models/shared/{RequestHandlerSlashGetResponses200MediaContainer.java => LibrarySectionsMediaContainer.java} (86%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 79cc9605..60e4b703 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 1732900d-e173-47c1-a90d-d45182eb35d9 management: - docChecksum: 46ec1ce493542eb1a574ee88fc8b0895 + docChecksum: e95c0e17d3e268dcd18d26ac8d0bfc98 docVersion: 1.1.1 speakeasyVersion: 1.615.2 generationVersion: 2.698.4 - releaseVersion: 0.20.1 - configChecksum: 3ae1fd8825523e7d3c4f0ded44ee4c16 + releaseVersion: 0.21.1 + configChecksum: 7af145b778364c038a024a71c312f9e6 repoURL: https://github.com/LukeHagar/plexjava.git published: true features: @@ -750,6 +750,9 @@ generatedFiles: - docs/models/shared/Items.md - docs/models/shared/LibrarySection.md - docs/models/shared/LibrarySectionLocation.md + - docs/models/shared/LibrarySections.md + - docs/models/shared/LibrarySectionsDirectory.md + - docs/models/shared/LibrarySectionsMediaContainer.md - docs/models/shared/Lineup.md - docs/models/shared/LineupType.md - docs/models/shared/Location.md @@ -801,9 +804,6 @@ generatedFiles: - docs/models/shared/PostResponses200Type.md - docs/models/shared/Protocol.md - docs/models/shared/RecommendationsVisibility.md - - docs/models/shared/RequestHandlerSlashGetResponses200.md - - docs/models/shared/RequestHandlerSlashGetResponses200Directory.md - - docs/models/shared/RequestHandlerSlashGetResponses200MediaContainer.md - docs/models/shared/Security.md - docs/models/shared/Session.md - docs/models/shared/SessionLocation.md @@ -2348,6 +2348,9 @@ generatedFiles: - src/main/java/dev/plexapi/sdk/models/shared/Items.java - src/main/java/dev/plexapi/sdk/models/shared/LibrarySection.java - src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionLocation.java + - src/main/java/dev/plexapi/sdk/models/shared/LibrarySections.java + - src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsDirectory.java + - src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsMediaContainer.java - src/main/java/dev/plexapi/sdk/models/shared/Lineup.java - src/main/java/dev/plexapi/sdk/models/shared/LineupType.java - src/main/java/dev/plexapi/sdk/models/shared/Location.java @@ -2399,9 +2402,6 @@ generatedFiles: - src/main/java/dev/plexapi/sdk/models/shared/PostResponses200Type.java - src/main/java/dev/plexapi/sdk/models/shared/Protocol.java - src/main/java/dev/plexapi/sdk/models/shared/RecommendationsVisibility.java - - src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200.java - - src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200Directory.java - - src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200MediaContainer.java - src/main/java/dev/plexapi/sdk/models/shared/Security.java - src/main/java/dev/plexapi/sdk/models/shared/Session.java - src/main/java/dev/plexapi/sdk/models/shared/SessionLocation.java diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ab1c2b36..470d91fc 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -21,8 +21,11 @@ generation: generateTests: true generateNewTests: false skipResponseBodyAssertions: false + requestBodyFieldName: "" + schemas: + allOfMergeStrategy: shallowMerge java: - version: 0.20.1 + version: 0.21.1 additionalDependencies: [] additionalPlugins: [] artifactID: plexapi @@ -35,7 +38,9 @@ java: defaultErrorName: SDKError enableCustomCodeRegions: false enableStreamingUploads: false + enhancedUnionMemberResolution: true flattenGlobalSecurity: true + generateOptionalUnionAccessors: false generateSpringBootStarter: true githubURL: github.com/LukeHagar/plexjava groupID: dev.plexapi @@ -55,6 +60,7 @@ java: url: https://mit-license.org/ maxMethodParams: 4 nullFriendlyParameters: false + openUnions: true outputModelSuffix: output packageName: dev.plexapi.sdk projectName: plexapi diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a38bb04e..f2e4e637 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -8,20 +8,20 @@ sources: - latest plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624 - sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64 + sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b + sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f tags: - latest - - speakeasy-sdk-regen-1760315484 + - speakeasy-sdk-regen-1762993854 - 1.1.1 targets: plexjava: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:0e9f7ca03e6a970d7b77654ab41d0a1605f0105871db2630a7afc85d4362b624 - sourceBlobDigest: sha256:c0a6079f21e9d8cf8b3a205d2da333b78b2cb7e0db9dd895a41c68c2580e2d64 + sourceRevisionDigest: sha256:56fc783b16af019db4eb0fe52df504315e8e7c7ae41e319a61bba8823f19df4b + sourceBlobDigest: sha256:b62613477fd824bb42cf0bf5d0f9980448259c9c7456e03ca6a10eef39a3994f codeSamplesNamespace: code-samples-java-plexjava - codeSamplesRevisionDigest: sha256:e076772184b6e43037b79abcef938bd0dd86905117a8634a7ed733736455b55e + codeSamplesRevisionDigest: sha256:d498e8e83e2cc9e1ffee0af580b876cb3f60cda1e757ed33a6b600395b9cfd78 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index d8ac799a..75ba2f7f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ * [Server Selection](#server-selection) * [Asynchronous Support](#asynchronous-support) * [Authentication](#authentication) + * [Custom HTTP Client](#custom-http-client) * [Debugging](#debugging) * [Development](#development) * [Maturity](#maturity) @@ -43,7 +44,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'dev.plexapi:plexapi:0.20.1' +implementation 'dev.plexapi:plexapi:0.21.1' ``` Maven: @@ -51,7 +52,7 @@ Maven: dev.plexapi plexapi - 0.20.1 + 0.21.1 ``` @@ -592,18 +593,18 @@ You can override the default server globally using the `.serverIndex(int serverI | --- | ---------------------------------------------------------- | -------------------------------------------- | ----------- | | 0 | `https://{IP-description}.{identifier}.plex.direct:{port}` | `identifier`
`IP-description`
`port` | | | 1 | `{protocol}://{host}:{port}` | `protocol`
`host`
`port` | | -| 2 | `https://{full_server_url}` | `server_url` | | +| 2 | `https://{full_server_url}` | `full_server_url` | | If the selected server has variables, you may override its default values using the associated builder method(s): -| Variable | BuilderMethod | Default | Description | -| ---------------- | ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `identifier` | `identifier(String identifier)` | `"0123456789abcdef0123456789abcdef"` | The unique identifier of this particular PMS | -| `IP-description` | `ipDescription(String ipDescription)` | `"1-2-3-4"` | A `-` separated string of the IPv4 or IPv6 address components | -| `port` | `port(String port)` | `"32400"` | The Port number configured on the PMS. Typically (`32400`).
If using a reverse proxy, this would be the port number configured on the proxy.
| -| `protocol` | `protocol(String protocol)` | `"http"` | The network protocol to use. Typically (`http` or `https`) | -| `host` | `host(String host)` | `"localhost"` | The Host of the PMS.
If using on a local network, this is the internal IP address of the server hosting the PMS.
If using on an external network, this is the external IP address for your network, and requires port forwarding.
If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding.
| -| `server_url` | `serverUrl(String serverUrl)` | `"http://localhost:32400"` | The full manual URL to access the PMS | +| Variable | BuilderMethod | Default | Description | +| ----------------- | ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `identifier` | `identifier(String identifier)` | `"0123456789abcdef0123456789abcdef"` | The unique identifier of this particular PMS | +| `IP-description` | `ipDescription(String ipDescription)` | `"1-2-3-4"` | A `-` separated string of the IPv4 or IPv6 address components | +| `port` | `port(String port)` | `"32400"` | The Port number configured on the PMS. Typically (`32400`).
If using a reverse proxy, this would be the port number configured on the proxy.
| +| `protocol` | `protocol(String protocol)` | `"http"` | The network protocol to use. Typically (`http` or `https`) | +| `host` | `host(String host)` | `"localhost"` | The Host of the PMS.
If using on a local network, this is the internal IP address of the server hosting the PMS.
If using on an external network, this is the external IP address for your network, and requires port forwarding.
If using a reverse proxy, this would be the external DNS domain for your network, and requires the proxy handle port forwarding.
| +| `full_server_url` | `fullServerUrl(String fullServerUrl)` | `"http://localhost:32400"` | The full manual URL to access the PMS | #### Example @@ -670,7 +671,7 @@ public class Application { public static void main(String[] args) throws Exception { PlexAPI sdk = PlexAPI.builder() - .serverURL("https://{full_server_url}") + .serverURL("https://http://localhost:32400") .accepts(Accepts.APPLICATION_XML) .clientIdentifier("abc123") .product("Plex for Roku") @@ -821,6 +822,142 @@ public class Application { ``` + +## Custom HTTP Client + +The Java SDK makes API calls using an `HTTPClient` that wraps the native +[HttpClient](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html). This +client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle +errors and response. + +The `HTTPClient` interface allows you to either use the default `SpeakeasyHTTPClient` that comes with the SDK, +or provide your own custom implementation with customized configuration such as custom executors, SSL context, +connection pools, and other HTTP client settings. + +The interface provides synchronous (`send`) methods and asynchronous (`sendAsync`) methods. The `sendAsync` method +is used to power the async SDK methods and returns a `CompletableFuture>` for non-blocking operations. + +The following example shows how to add a custom header and handle errors: + +```java +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.SpeakeasyHTTPClient; +import dev.plexapi.sdk.utils.Utils; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.io.InputStream; +import java.time.Duration; + +public class Application { + public static void main(String[] args) { + // Create a custom HTTP client with hooks + HTTPClient httpClient = new HTTPClient() { + private final HTTPClient defaultClient = new SpeakeasyHTTPClient(); + + @Override + public HttpResponse send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException { + // Add custom header and timeout using Utils.copy() + HttpRequest modifiedRequest = Utils.copy(request) + .header("x-custom-header", "custom value") + .timeout(Duration.ofSeconds(30)) + .build(); + + try { + HttpResponse response = defaultClient.send(modifiedRequest); + // Log successful response + System.out.println("Request successful: " + response.statusCode()); + return response; + } catch (Exception error) { + // Log error + System.err.println("Request failed: " + error.getMessage()); + throw error; + } + } + }; + + PlexAPI sdk = PlexAPI.builder() + .client(httpClient) + .build(); + } +} +``` + +
+Custom HTTP Client Configuration + +You can also provide a completely custom HTTP client with your own configuration: + +```java +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.utils.HTTPClient; +import dev.plexapi.sdk.utils.Blob; +import dev.plexapi.sdk.utils.ResponseWithBody; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.io.InputStream; +import java.time.Duration; +import java.util.concurrent.Executors; +import java.util.concurrent.CompletableFuture; + +public class Application { + public static void main(String[] args) { + // Custom HTTP client with custom configuration + HTTPClient customHttpClient = new HTTPClient() { + private final HttpClient client = HttpClient.newBuilder() + .executor(Executors.newFixedThreadPool(10)) + .connectTimeout(Duration.ofSeconds(30)) + // .sslContext(customSslContext) // Add custom SSL context if needed + .build(); + + @Override + public HttpResponse send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException { + return client.send(request, HttpResponse.BodyHandlers.ofInputStream()); + } + + @Override + public CompletableFuture> sendAsync(HttpRequest request) { + // Convert response to HttpResponse for async operations + return client.sendAsync(request, HttpResponse.BodyHandlers.ofPublisher()) + .thenApply(resp -> new ResponseWithBody<>(resp, Blob::from)); + } + }; + + PlexAPI sdk = PlexAPI.builder() + .client(customHttpClient) + .build(); + } +} +``` + +
+ +You can also enable debug logging on the default `SpeakeasyHTTPClient`: + +```java +import dev.plexapi.sdk.PlexAPI; +import dev.plexapi.sdk.utils.SpeakeasyHTTPClient; + +public class Application { + public static void main(String[] args) { + SpeakeasyHTTPClient httpClient = new SpeakeasyHTTPClient(); + httpClient.enableDebugLogging(true); + + PlexAPI sdk = PlexAPI.builder() + .client(httpClient) + .build(); + } +} +``` + + ## Debugging diff --git a/RELEASES.md b/RELEASES.md index fc1e1af4..0b9aeb57 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -398,4 +398,14 @@ Based on: ### Generated - [java v0.20.1] . ### Releases -- [Maven Central v0.20.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.20.1 - . \ No newline at end of file +- [Maven Central v0.20.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.20.1 - . + +## 2025-11-13 00:30:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.21.1] . +### Releases +- [Maven Central v0.21.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.21.1 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index a0619cf7..3e864fd6 100644 --- a/build.gradle +++ b/build.gradle @@ -105,7 +105,7 @@ publishing { // https://github.com/gradle/gradle/issues/18619 groupId = "dev.plexapi" artifactId = "plexapi" - version = "0.20.1" + version = "0.21.1" from components.java diff --git a/codeSamples.yaml b/codeSamples.yaml index 30047487..487cce9b 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -4529,7 +4529,7 @@ actions: StopAllRefreshesResponse res = sdk.library().stopAllRefreshes() .call(); - if (res.requestHandlerSlashGetResponses200().isPresent()) { + if (res.librarySections().isPresent()) { // handle response } } @@ -4575,7 +4575,7 @@ actions: .request(req) .call(); - if (res.requestHandlerSlashGetResponses200().isPresent()) { + if (res.librarySections().isPresent()) { // handle response } } diff --git a/docs/models/operations/GetSectionsPrefsResponse.md b/docs/models/operations/GetSectionsPrefsResponse.md index e267cf9e..4917a858 100644 --- a/docs/models/operations/GetSectionsPrefsResponse.md +++ b/docs/models/operations/GetSectionsPrefsResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `requestHandlerSlashGetResponses200` | [Optional\](../../models/shared/RequestHandlerSlashGetResponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| `librarySections` | [Optional\](../../models/shared/LibrarySections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/StopAllRefreshesResponse.md b/docs/models/operations/StopAllRefreshesResponse.md index 6aa8528f..7d684d64 100644 --- a/docs/models/operations/StopAllRefreshesResponse.md +++ b/docs/models/operations/StopAllRefreshesResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `requestHandlerSlashGetResponses200` | [Optional\](../../models/shared/RequestHandlerSlashGetResponses200.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| `librarySections` | [Optional\](../../models/shared/LibrarySections.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/shared/LibrarySections.md b/docs/models/shared/LibrarySections.md new file mode 100644 index 00000000..5051771f --- /dev/null +++ b/docs/models/shared/LibrarySections.md @@ -0,0 +1,10 @@ +# LibrarySections + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [Optional\](../../models/shared/LibrarySectionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/RequestHandlerSlashGetResponses200Directory.md b/docs/models/shared/LibrarySectionsDirectory.md similarity index 94% rename from docs/models/shared/RequestHandlerSlashGetResponses200Directory.md rename to docs/models/shared/LibrarySectionsDirectory.md index 77e4cccf..4c720ca3 100644 --- a/docs/models/shared/RequestHandlerSlashGetResponses200Directory.md +++ b/docs/models/shared/LibrarySectionsDirectory.md @@ -1,4 +1,4 @@ -# RequestHandlerSlashGetResponses200Directory +# LibrarySectionsDirectory ## Fields diff --git a/docs/models/shared/RequestHandlerSlashGetResponses200MediaContainer.md b/docs/models/shared/LibrarySectionsMediaContainer.md similarity index 99% rename from docs/models/shared/RequestHandlerSlashGetResponses200MediaContainer.md rename to docs/models/shared/LibrarySectionsMediaContainer.md index b7e0570b..d93443ef 100644 --- a/docs/models/shared/RequestHandlerSlashGetResponses200MediaContainer.md +++ b/docs/models/shared/LibrarySectionsMediaContainer.md @@ -1,4 +1,4 @@ -# RequestHandlerSlashGetResponses200MediaContainer +# LibrarySectionsMediaContainer `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) @@ -62,4 +62,4 @@ The container often "hoists" common attributes from its children. For example, i | `updater` | *Optional\* | :heavy_minus_sign: | N/A | | | `version` | *Optional\* | :heavy_minus_sign: | N/A | | | `voiceSearch` | *Optional\* | :heavy_minus_sign: | N/A | | -| `directory` | List\<[RequestHandlerSlashGetResponses200Directory](../../models/shared/RequestHandlerSlashGetResponses200Directory.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `directory` | List\<[LibrarySectionsDirectory](../../models/shared/LibrarySectionsDirectory.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/RequestHandlerSlashGetResponses200.md b/docs/models/shared/RequestHandlerSlashGetResponses200.md deleted file mode 100644 index 55d743ec..00000000 --- a/docs/models/shared/RequestHandlerSlashGetResponses200.md +++ /dev/null @@ -1,10 +0,0 @@ -# RequestHandlerSlashGetResponses200 - -OK - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional\](../../models/shared/RequestHandlerSlashGetResponses200MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index af9f6951..887d8e70 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -658,7 +658,7 @@ public class Application { StopAllRefreshesResponse res = sdk.library().stopAllRefreshes() .call(); - if (res.requestHandlerSlashGetResponses200().isPresent()) { + if (res.librarySections().isPresent()) { // handle response } } @@ -718,7 +718,7 @@ public class Application { .request(req) .call(); - if (res.requestHandlerSlashGetResponses200().isPresent()) { + if (res.librarySections().isPresent()) { // handle response } } @@ -3298,8 +3298,8 @@ public class Application { ## autocomplete -The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. -Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match +The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. +Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match ### Example Usage diff --git a/gradle.properties b/gradle.properties index 30337e89..ede217db 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=dev.plexapi artifactId=plexapi -version=0.20.1 +version=0.21.1 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/dev/plexapi/sdk/AsyncLibrary.java b/src/main/java/dev/plexapi/sdk/AsyncLibrary.java index c532330f..687f0213 100644 --- a/src/main/java/dev/plexapi/sdk/AsyncLibrary.java +++ b/src/main/java/dev/plexapi/sdk/AsyncLibrary.java @@ -1768,8 +1768,8 @@ public class AsyncLibrary { /** * Get autocompletions for search * - *

The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + *

The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match * * @return The async call builder */ @@ -1780,8 +1780,8 @@ public class AsyncLibrary { /** * Get autocompletions for search * - *

The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + *

The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match * * @param request The request object containing all the parameters for the API call. * @return CompletableFuture<AutocompleteResponse> - The async response diff --git a/src/main/java/dev/plexapi/sdk/Library.java b/src/main/java/dev/plexapi/sdk/Library.java index 3d205722..9acf47ca 100644 --- a/src/main/java/dev/plexapi/sdk/Library.java +++ b/src/main/java/dev/plexapi/sdk/Library.java @@ -1718,8 +1718,8 @@ public class Library { /** * Get autocompletions for search * - *

The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + *

The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match * * @return The call builder */ @@ -1730,8 +1730,8 @@ public class Library { /** * Get autocompletions for search * - *

The field to autocomplete on is specified by the {field}.query parameter. For example `genre.query` or `title.query`. - * Returns a set of items from the filtered items whose {field} starts with {field}.query. In the results, a {field}.queryRange will be present to express the range of the match + *

The field to autocomplete on is specified by the `{field}.query` parameter. For example `genre.query` or `title.query`. + * Returns a set of items from the filtered items whose `{field}` starts with `{field}.query`. In the results, a `{field}.queryRange` will be present to express the range of the match * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/dev/plexapi/sdk/PlexAPI.java b/src/main/java/dev/plexapi/sdk/PlexAPI.java index 96d0672c..e5690a78 100644 --- a/src/main/java/dev/plexapi/sdk/PlexAPI.java +++ b/src/main/java/dev/plexapi/sdk/PlexAPI.java @@ -654,17 +654,17 @@ public class PlexAPI { } /** - * Sets the server_url variable for url substitution. + * Sets the full_server_url variable for url substitution. * - * @param serverUrl The value to set. + * @param fullServerUrl The value to set. * @return The builder instance. */ - public Builder serverUrl(String serverUrl) { + public Builder fullServerUrl(String fullServerUrl) { for (Map server : this.sdkConfiguration.serverVariables()) { - if (!server.containsKey("server_url")) { + if (!server.containsKey("full_server_url")) { continue; } - server.put("server_url", serverUrl.toString()); + server.put("full_server_url", fullServerUrl.toString()); } return this; diff --git a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java index 0e2ef1cf..d820c57c 100644 --- a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java +++ b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java @@ -25,7 +25,7 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "1.1.1"; - public static final String SDK_VERSION = "0.20.1"; + public static final String SDK_VERSION = "0.21.1"; public static final String GEN_VERSION = "2.698.4"; private static final String BASE_PACKAGE = "dev.plexapi.sdk"; public static final String USER_AGENT = @@ -102,7 +102,7 @@ public class SDKConfiguration { put("port", "32400"); } }); add(new HashMap<>(){ { - put("server_url", "http://localhost:32400"); + put("full_server_url", "http://localhost:32400"); } }); } }; diff --git a/src/main/java/dev/plexapi/sdk/models/operations/GetSectionsPrefsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/GetSectionsPrefsResponse.java index 62674d72..8163bf33 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/GetSectionsPrefsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/GetSectionsPrefsResponse.java @@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.Response; import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; @@ -36,22 +36,22 @@ public class GetSectionsPrefsResponse implements Response { /** * OK */ - private Optional requestHandlerSlashGetResponses200; + private Optional librarySections; @JsonCreator public GetSectionsPrefsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional requestHandlerSlashGetResponses200) { + Optional librarySections) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); + Utils.checkNotNull(librarySections, "librarySections"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + this.librarySections = librarySections; } public GetSectionsPrefsResponse( @@ -91,8 +91,8 @@ public class GetSectionsPrefsResponse implements Response { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestHandlerSlashGetResponses200() { - return (Optional) requestHandlerSlashGetResponses200; + public Optional librarySections() { + return (Optional) librarySections; } public static Builder builder() { @@ -130,9 +130,9 @@ public class GetSectionsPrefsResponse implements Response { /** * OK */ - public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public GetSectionsPrefsResponse withLibrarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } @@ -140,9 +140,9 @@ public class GetSectionsPrefsResponse implements Response { /** * OK */ - public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public GetSectionsPrefsResponse withLibrarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -159,14 +159,14 @@ public class GetSectionsPrefsResponse implements Response { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200); + Utils.enhancedDeepEquals(this.librarySections, other.librarySections); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } @Override @@ -175,7 +175,7 @@ public class GetSectionsPrefsResponse implements Response { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200); + "librarySections", librarySections); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public class GetSectionsPrefsResponse implements Response { private HttpResponse rawResponse; - private Optional requestHandlerSlashGetResponses200 = Optional.empty(); + private Optional librarySections = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public class GetSectionsPrefsResponse implements Response { /** * OK */ - public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public Builder librarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } /** * OK */ - public Builder requestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public Builder librarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -246,7 +246,7 @@ public class GetSectionsPrefsResponse implements Response { return new GetSectionsPrefsResponse( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/StopAllRefreshesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/StopAllRefreshesResponse.java index 53b1f7b9..2f9440c7 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/StopAllRefreshesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/StopAllRefreshesResponse.java @@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.Response; import dev.plexapi.sdk.utils.Utils; import java.io.InputStream; @@ -36,22 +36,22 @@ public class StopAllRefreshesResponse implements Response { /** * OK */ - private Optional requestHandlerSlashGetResponses200; + private Optional librarySections; @JsonCreator public StopAllRefreshesResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional requestHandlerSlashGetResponses200) { + Optional librarySections) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); + Utils.checkNotNull(librarySections, "librarySections"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + this.librarySections = librarySections; } public StopAllRefreshesResponse( @@ -91,8 +91,8 @@ public class StopAllRefreshesResponse implements Response { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestHandlerSlashGetResponses200() { - return (Optional) requestHandlerSlashGetResponses200; + public Optional librarySections() { + return (Optional) librarySections; } public static Builder builder() { @@ -130,9 +130,9 @@ public class StopAllRefreshesResponse implements Response { /** * OK */ - public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public StopAllRefreshesResponse withLibrarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } @@ -140,9 +140,9 @@ public class StopAllRefreshesResponse implements Response { /** * OK */ - public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public StopAllRefreshesResponse withLibrarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -159,14 +159,14 @@ public class StopAllRefreshesResponse implements Response { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200); + Utils.enhancedDeepEquals(this.librarySections, other.librarySections); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } @Override @@ -175,7 +175,7 @@ public class StopAllRefreshesResponse implements Response { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200); + "librarySections", librarySections); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public class StopAllRefreshesResponse implements Response { private HttpResponse rawResponse; - private Optional requestHandlerSlashGetResponses200 = Optional.empty(); + private Optional librarySections = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public class StopAllRefreshesResponse implements Response { /** * OK */ - public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public Builder librarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } /** * OK */ - public Builder requestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public Builder librarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -246,7 +246,7 @@ public class StopAllRefreshesResponse implements Response { return new StopAllRefreshesResponse( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/async/GetSectionsPrefsResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/async/GetSectionsPrefsResponse.java index 793115e7..09fde5a0 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/async/GetSectionsPrefsResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/async/GetSectionsPrefsResponse.java @@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations.async; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.AsyncResponse; import dev.plexapi.sdk.utils.Blob; import dev.plexapi.sdk.utils.Utils; @@ -36,22 +36,22 @@ public class GetSectionsPrefsResponse implements AsyncResponse { /** * OK */ - private Optional requestHandlerSlashGetResponses200; + private Optional librarySections; @JsonCreator public GetSectionsPrefsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional requestHandlerSlashGetResponses200) { + Optional librarySections) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); + Utils.checkNotNull(librarySections, "librarySections"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + this.librarySections = librarySections; } public GetSectionsPrefsResponse( @@ -91,8 +91,8 @@ public class GetSectionsPrefsResponse implements AsyncResponse { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestHandlerSlashGetResponses200() { - return (Optional) requestHandlerSlashGetResponses200; + public Optional librarySections() { + return (Optional) librarySections; } public static Builder builder() { @@ -130,9 +130,9 @@ public class GetSectionsPrefsResponse implements AsyncResponse { /** * OK */ - public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public GetSectionsPrefsResponse withLibrarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } @@ -140,9 +140,9 @@ public class GetSectionsPrefsResponse implements AsyncResponse { /** * OK */ - public GetSectionsPrefsResponse withRequestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public GetSectionsPrefsResponse withLibrarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -159,14 +159,14 @@ public class GetSectionsPrefsResponse implements AsyncResponse { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200); + Utils.enhancedDeepEquals(this.librarySections, other.librarySections); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } @Override @@ -175,7 +175,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200); + "librarySections", librarySections); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse { private HttpResponse rawResponse; - private Optional requestHandlerSlashGetResponses200 = Optional.empty(); + private Optional librarySections = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public class GetSectionsPrefsResponse implements AsyncResponse { /** * OK */ - public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public Builder librarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } /** * OK */ - public Builder requestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public Builder librarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -246,7 +246,7 @@ public class GetSectionsPrefsResponse implements AsyncResponse { return new GetSectionsPrefsResponse( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } } diff --git a/src/main/java/dev/plexapi/sdk/models/operations/async/StopAllRefreshesResponse.java b/src/main/java/dev/plexapi/sdk/models/operations/async/StopAllRefreshesResponse.java index fd3edf06..f986a668 100644 --- a/src/main/java/dev/plexapi/sdk/models/operations/async/StopAllRefreshesResponse.java +++ b/src/main/java/dev/plexapi/sdk/models/operations/async/StopAllRefreshesResponse.java @@ -5,7 +5,7 @@ package dev.plexapi.sdk.models.operations.async; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.AsyncResponse; import dev.plexapi.sdk.utils.Blob; import dev.plexapi.sdk.utils.Utils; @@ -36,22 +36,22 @@ public class StopAllRefreshesResponse implements AsyncResponse { /** * OK */ - private Optional requestHandlerSlashGetResponses200; + private Optional librarySections; @JsonCreator public StopAllRefreshesResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional requestHandlerSlashGetResponses200) { + Optional librarySections) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); + Utils.checkNotNull(librarySections, "librarySections"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + this.librarySections = librarySections; } public StopAllRefreshesResponse( @@ -91,8 +91,8 @@ public class StopAllRefreshesResponse implements AsyncResponse { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestHandlerSlashGetResponses200() { - return (Optional) requestHandlerSlashGetResponses200; + public Optional librarySections() { + return (Optional) librarySections; } public static Builder builder() { @@ -130,9 +130,9 @@ public class StopAllRefreshesResponse implements AsyncResponse { /** * OK */ - public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public StopAllRefreshesResponse withLibrarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } @@ -140,9 +140,9 @@ public class StopAllRefreshesResponse implements AsyncResponse { /** * OK */ - public StopAllRefreshesResponse withRequestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public StopAllRefreshesResponse withLibrarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -159,14 +159,14 @@ public class StopAllRefreshesResponse implements AsyncResponse { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.requestHandlerSlashGetResponses200, other.requestHandlerSlashGetResponses200); + Utils.enhancedDeepEquals(this.librarySections, other.librarySections); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } @Override @@ -175,7 +175,7 @@ public class StopAllRefreshesResponse implements AsyncResponse { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "requestHandlerSlashGetResponses200", requestHandlerSlashGetResponses200); + "librarySections", librarySections); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public class StopAllRefreshesResponse implements AsyncResponse { private HttpResponse rawResponse; - private Optional requestHandlerSlashGetResponses200 = Optional.empty(); + private Optional librarySections = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public class StopAllRefreshesResponse implements AsyncResponse { /** * OK */ - public Builder requestHandlerSlashGetResponses200(RequestHandlerSlashGetResponses200 requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = Optional.ofNullable(requestHandlerSlashGetResponses200); + public Builder librarySections(LibrarySections librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = Optional.ofNullable(librarySections); return this; } /** * OK */ - public Builder requestHandlerSlashGetResponses200(Optional requestHandlerSlashGetResponses200) { - Utils.checkNotNull(requestHandlerSlashGetResponses200, "requestHandlerSlashGetResponses200"); - this.requestHandlerSlashGetResponses200 = requestHandlerSlashGetResponses200; + public Builder librarySections(Optional librarySections) { + Utils.checkNotNull(librarySections, "librarySections"); + this.librarySections = librarySections; return this; } @@ -246,7 +246,7 @@ public class StopAllRefreshesResponse implements AsyncResponse { return new StopAllRefreshesResponse( contentType, statusCode, rawResponse, - requestHandlerSlashGetResponses200); + librarySections); } } diff --git a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200.java b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySections.java similarity index 60% rename from src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200.java rename to src/main/java/dev/plexapi/sdk/models/shared/LibrarySections.java index ea2c0c56..c6ddbd2a 100644 --- a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200.java +++ b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySections.java @@ -15,31 +15,31 @@ import java.lang.SuppressWarnings; import java.util.Optional; /** - * RequestHandlerSlashGetResponses200 + * LibrarySections * *

OK */ -public class RequestHandlerSlashGetResponses200 { +public class LibrarySections { @JsonInclude(Include.NON_ABSENT) @JsonProperty("MediaContainer") - private Optional mediaContainer; + private Optional mediaContainer; @JsonCreator - public RequestHandlerSlashGetResponses200( - @JsonProperty("MediaContainer") Optional mediaContainer) { + public LibrarySections( + @JsonProperty("MediaContainer") Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; } - public RequestHandlerSlashGetResponses200() { + public LibrarySections() { this(Optional.empty()); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; + public Optional mediaContainer() { + return (Optional) mediaContainer; } public static Builder builder() { @@ -47,14 +47,14 @@ public class RequestHandlerSlashGetResponses200 { } - public RequestHandlerSlashGetResponses200 withMediaContainer(RequestHandlerSlashGetResponses200MediaContainer mediaContainer) { + public LibrarySections withMediaContainer(LibrarySectionsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public RequestHandlerSlashGetResponses200 withMediaContainer(Optional mediaContainer) { + public LibrarySections withMediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; @@ -68,7 +68,7 @@ public class RequestHandlerSlashGetResponses200 { if (o == null || getClass() != o.getClass()) { return false; } - RequestHandlerSlashGetResponses200 other = (RequestHandlerSlashGetResponses200) o; + LibrarySections other = (LibrarySections) o; return Utils.enhancedDeepEquals(this.mediaContainer, other.mediaContainer); } @@ -81,35 +81,35 @@ public class RequestHandlerSlashGetResponses200 { @Override public String toString() { - return Utils.toString(RequestHandlerSlashGetResponses200.class, + return Utils.toString(LibrarySections.class, "mediaContainer", mediaContainer); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional mediaContainer = Optional.empty(); + private Optional mediaContainer = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder mediaContainer(RequestHandlerSlashGetResponses200MediaContainer mediaContainer) { + public Builder mediaContainer(LibrarySectionsMediaContainer mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = Optional.ofNullable(mediaContainer); return this; } - public Builder mediaContainer(Optional mediaContainer) { + public Builder mediaContainer(Optional mediaContainer) { Utils.checkNotNull(mediaContainer, "mediaContainer"); this.mediaContainer = mediaContainer; return this; } - public RequestHandlerSlashGetResponses200 build() { + public LibrarySections build() { - return new RequestHandlerSlashGetResponses200( + return new LibrarySections( mediaContainer); } diff --git a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200Directory.java b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsDirectory.java similarity index 82% rename from src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200Directory.java rename to src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsDirectory.java index 37ffafa7..9ba00898 100644 --- a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200Directory.java +++ b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsDirectory.java @@ -15,7 +15,7 @@ import java.lang.String; import java.util.Optional; -public class RequestHandlerSlashGetResponses200Directory { +public class LibrarySectionsDirectory { @JsonInclude(Include.NON_ABSENT) @JsonProperty("count") @@ -34,7 +34,7 @@ public class RequestHandlerSlashGetResponses200Directory { private Optional title; @JsonCreator - public RequestHandlerSlashGetResponses200Directory( + public LibrarySectionsDirectory( @JsonProperty("count") Optional count, @JsonProperty("key") Optional key, @JsonProperty("title") Optional title) { @@ -46,7 +46,7 @@ public class RequestHandlerSlashGetResponses200Directory { this.title = title; } - public RequestHandlerSlashGetResponses200Directory() { + public LibrarySectionsDirectory() { this(Optional.empty(), Optional.empty(), Optional.empty()); } @@ -73,14 +73,14 @@ public class RequestHandlerSlashGetResponses200Directory { } - public RequestHandlerSlashGetResponses200Directory withCount(long count) { + public LibrarySectionsDirectory withCount(long count) { Utils.checkNotNull(count, "count"); this.count = Optional.ofNullable(count); return this; } - public RequestHandlerSlashGetResponses200Directory withCount(Optional count) { + public LibrarySectionsDirectory withCount(Optional count) { Utils.checkNotNull(count, "count"); this.count = count; return this; @@ -89,7 +89,7 @@ public class RequestHandlerSlashGetResponses200Directory { /** * The key where this directory is found */ - public RequestHandlerSlashGetResponses200Directory withKey(String key) { + public LibrarySectionsDirectory withKey(String key) { Utils.checkNotNull(key, "key"); this.key = Optional.ofNullable(key); return this; @@ -99,20 +99,20 @@ public class RequestHandlerSlashGetResponses200Directory { /** * The key where this directory is found */ - public RequestHandlerSlashGetResponses200Directory withKey(Optional key) { + public LibrarySectionsDirectory withKey(Optional key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } - public RequestHandlerSlashGetResponses200Directory withTitle(String title) { + public LibrarySectionsDirectory withTitle(String title) { Utils.checkNotNull(title, "title"); this.title = Optional.ofNullable(title); return this; } - public RequestHandlerSlashGetResponses200Directory withTitle(Optional title) { + public LibrarySectionsDirectory withTitle(Optional title) { Utils.checkNotNull(title, "title"); this.title = title; return this; @@ -126,7 +126,7 @@ public class RequestHandlerSlashGetResponses200Directory { if (o == null || getClass() != o.getClass()) { return false; } - RequestHandlerSlashGetResponses200Directory other = (RequestHandlerSlashGetResponses200Directory) o; + LibrarySectionsDirectory other = (LibrarySectionsDirectory) o; return Utils.enhancedDeepEquals(this.count, other.count) && Utils.enhancedDeepEquals(this.key, other.key) && @@ -141,7 +141,7 @@ public class RequestHandlerSlashGetResponses200Directory { @Override public String toString() { - return Utils.toString(RequestHandlerSlashGetResponses200Directory.class, + return Utils.toString(LibrarySectionsDirectory.class, "count", count, "key", key, "title", title); @@ -205,9 +205,9 @@ public class RequestHandlerSlashGetResponses200Directory { return this; } - public RequestHandlerSlashGetResponses200Directory build() { + public LibrarySectionsDirectory build() { - return new RequestHandlerSlashGetResponses200Directory( + return new LibrarySectionsDirectory( count, key, title); } diff --git a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200MediaContainer.java b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsMediaContainer.java similarity index 86% rename from src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200MediaContainer.java rename to src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsMediaContainer.java index d363b242..c42ef44f 100644 --- a/src/main/java/dev/plexapi/sdk/models/shared/RequestHandlerSlashGetResponses200MediaContainer.java +++ b/src/main/java/dev/plexapi/sdk/models/shared/LibrarySectionsMediaContainer.java @@ -19,13 +19,13 @@ import java.util.List; import java.util.Optional; /** - * RequestHandlerSlashGetResponses200MediaContainer + * LibrarySectionsMediaContainer * *

`MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. * Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) * The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track. */ -public class RequestHandlerSlashGetResponses200MediaContainer { +public class LibrarySectionsMediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("identifier") @@ -299,10 +299,10 @@ public class RequestHandlerSlashGetResponses200MediaContainer { @JsonInclude(Include.NON_ABSENT) @JsonProperty("Directory") - private Optional> directory; + private Optional> directory; @JsonCreator - public RequestHandlerSlashGetResponses200MediaContainer( + public LibrarySectionsMediaContainer( @JsonProperty("identifier") Optional identifier, @JsonProperty("offset") Optional offset, @JsonProperty("size") Optional size, @@ -355,7 +355,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { @JsonProperty("updater") Optional updater, @JsonProperty("version") Optional version, @JsonProperty("voiceSearch") Optional voiceSearch, - @JsonProperty("Directory") Optional> directory) { + @JsonProperty("Directory") Optional> directory) { Utils.checkNotNull(identifier, "identifier"); Utils.checkNotNull(offset, "offset"); Utils.checkNotNull(size, "size"); @@ -464,7 +464,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { this.directory = directory; } - public RequestHandlerSlashGetResponses200MediaContainer() { + public LibrarySectionsMediaContainer() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), @@ -768,8 +768,8 @@ public class RequestHandlerSlashGetResponses200MediaContainer { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> directory() { - return (Optional>) directory; + public Optional> directory() { + return (Optional>) directory; } public static Builder builder() { @@ -777,14 +777,14 @@ public class RequestHandlerSlashGetResponses200MediaContainer { } - public RequestHandlerSlashGetResponses200MediaContainer withIdentifier(String identifier) { + public LibrarySectionsMediaContainer withIdentifier(String identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = Optional.ofNullable(identifier); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withIdentifier(Optional identifier) { + public LibrarySectionsMediaContainer withIdentifier(Optional identifier) { Utils.checkNotNull(identifier, "identifier"); this.identifier = identifier; return this; @@ -793,7 +793,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header. */ - public RequestHandlerSlashGetResponses200MediaContainer withOffset(long offset) { + public LibrarySectionsMediaContainer withOffset(long offset) { Utils.checkNotNull(offset, "offset"); this.offset = Optional.ofNullable(offset); return this; @@ -803,20 +803,20 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header. */ - public RequestHandlerSlashGetResponses200MediaContainer withOffset(Optional offset) { + public LibrarySectionsMediaContainer withOffset(Optional offset) { Utils.checkNotNull(offset, "offset"); this.offset = offset; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withSize(long size) { + public LibrarySectionsMediaContainer withSize(long size) { Utils.checkNotNull(size, "size"); this.size = Optional.ofNullable(size); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withSize(Optional size) { + public LibrarySectionsMediaContainer withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -825,7 +825,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header. */ - public RequestHandlerSlashGetResponses200MediaContainer withTotalSize(long totalSize) { + public LibrarySectionsMediaContainer withTotalSize(long totalSize) { Utils.checkNotNull(totalSize, "totalSize"); this.totalSize = Optional.ofNullable(totalSize); return this; @@ -835,345 +835,345 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header. */ - public RequestHandlerSlashGetResponses200MediaContainer withTotalSize(Optional totalSize) { + public LibrarySectionsMediaContainer withTotalSize(Optional totalSize) { Utils.checkNotNull(totalSize, "totalSize"); this.totalSize = totalSize; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowCameraUpload(boolean allowCameraUpload) { + public LibrarySectionsMediaContainer withAllowCameraUpload(boolean allowCameraUpload) { Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); this.allowCameraUpload = Optional.ofNullable(allowCameraUpload); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowCameraUpload(Optional allowCameraUpload) { + public LibrarySectionsMediaContainer withAllowCameraUpload(Optional allowCameraUpload) { Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); this.allowCameraUpload = allowCameraUpload; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowChannelAccess(boolean allowChannelAccess) { + public LibrarySectionsMediaContainer withAllowChannelAccess(boolean allowChannelAccess) { Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); this.allowChannelAccess = Optional.ofNullable(allowChannelAccess); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowChannelAccess(Optional allowChannelAccess) { + public LibrarySectionsMediaContainer withAllowChannelAccess(Optional allowChannelAccess) { Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); this.allowChannelAccess = allowChannelAccess; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowMediaDeletion(boolean allowMediaDeletion) { + public LibrarySectionsMediaContainer withAllowMediaDeletion(boolean allowMediaDeletion) { Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); this.allowMediaDeletion = Optional.ofNullable(allowMediaDeletion); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowMediaDeletion(Optional allowMediaDeletion) { + public LibrarySectionsMediaContainer withAllowMediaDeletion(Optional allowMediaDeletion) { Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); this.allowMediaDeletion = allowMediaDeletion; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowSharing(boolean allowSharing) { + public LibrarySectionsMediaContainer withAllowSharing(boolean allowSharing) { Utils.checkNotNull(allowSharing, "allowSharing"); this.allowSharing = Optional.ofNullable(allowSharing); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowSharing(Optional allowSharing) { + public LibrarySectionsMediaContainer withAllowSharing(Optional allowSharing) { Utils.checkNotNull(allowSharing, "allowSharing"); this.allowSharing = allowSharing; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowSync(boolean allowSync) { + public LibrarySectionsMediaContainer withAllowSync(boolean allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = Optional.ofNullable(allowSync); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowSync(Optional allowSync) { + public LibrarySectionsMediaContainer withAllowSync(Optional allowSync) { Utils.checkNotNull(allowSync, "allowSync"); this.allowSync = allowSync; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowTuners(boolean allowTuners) { + public LibrarySectionsMediaContainer withAllowTuners(boolean allowTuners) { Utils.checkNotNull(allowTuners, "allowTuners"); this.allowTuners = Optional.ofNullable(allowTuners); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withAllowTuners(Optional allowTuners) { + public LibrarySectionsMediaContainer withAllowTuners(Optional allowTuners) { Utils.checkNotNull(allowTuners, "allowTuners"); this.allowTuners = allowTuners; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withBackgroundProcessing(boolean backgroundProcessing) { + public LibrarySectionsMediaContainer withBackgroundProcessing(boolean backgroundProcessing) { Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); this.backgroundProcessing = Optional.ofNullable(backgroundProcessing); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withBackgroundProcessing(Optional backgroundProcessing) { + public LibrarySectionsMediaContainer withBackgroundProcessing(Optional backgroundProcessing) { Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); this.backgroundProcessing = backgroundProcessing; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCertificate(boolean certificate) { + public LibrarySectionsMediaContainer withCertificate(boolean certificate) { Utils.checkNotNull(certificate, "certificate"); this.certificate = Optional.ofNullable(certificate); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCertificate(Optional certificate) { + public LibrarySectionsMediaContainer withCertificate(Optional certificate) { Utils.checkNotNull(certificate, "certificate"); this.certificate = certificate; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCompanionProxy(boolean companionProxy) { + public LibrarySectionsMediaContainer withCompanionProxy(boolean companionProxy) { Utils.checkNotNull(companionProxy, "companionProxy"); this.companionProxy = Optional.ofNullable(companionProxy); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCompanionProxy(Optional companionProxy) { + public LibrarySectionsMediaContainer withCompanionProxy(Optional companionProxy) { Utils.checkNotNull(companionProxy, "companionProxy"); this.companionProxy = companionProxy; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCountryCode(String countryCode) { + public LibrarySectionsMediaContainer withCountryCode(String countryCode) { Utils.checkNotNull(countryCode, "countryCode"); this.countryCode = Optional.ofNullable(countryCode); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withCountryCode(Optional countryCode) { + public LibrarySectionsMediaContainer withCountryCode(Optional countryCode) { Utils.checkNotNull(countryCode, "countryCode"); this.countryCode = countryCode; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withDiagnostics(String diagnostics) { + public LibrarySectionsMediaContainer withDiagnostics(String diagnostics) { Utils.checkNotNull(diagnostics, "diagnostics"); this.diagnostics = Optional.ofNullable(diagnostics); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withDiagnostics(Optional diagnostics) { + public LibrarySectionsMediaContainer withDiagnostics(Optional diagnostics) { Utils.checkNotNull(diagnostics, "diagnostics"); this.diagnostics = diagnostics; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withEventStream(boolean eventStream) { + public LibrarySectionsMediaContainer withEventStream(boolean eventStream) { Utils.checkNotNull(eventStream, "eventStream"); this.eventStream = Optional.ofNullable(eventStream); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withEventStream(Optional eventStream) { + public LibrarySectionsMediaContainer withEventStream(Optional eventStream) { Utils.checkNotNull(eventStream, "eventStream"); this.eventStream = eventStream; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withFriendlyName(String friendlyName) { + public LibrarySectionsMediaContainer withFriendlyName(String friendlyName) { Utils.checkNotNull(friendlyName, "friendlyName"); this.friendlyName = Optional.ofNullable(friendlyName); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withFriendlyName(Optional friendlyName) { + public LibrarySectionsMediaContainer withFriendlyName(Optional friendlyName) { Utils.checkNotNull(friendlyName, "friendlyName"); this.friendlyName = friendlyName; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withHubSearch(boolean hubSearch) { + public LibrarySectionsMediaContainer withHubSearch(boolean hubSearch) { Utils.checkNotNull(hubSearch, "hubSearch"); this.hubSearch = Optional.ofNullable(hubSearch); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withHubSearch(Optional hubSearch) { + public LibrarySectionsMediaContainer withHubSearch(Optional hubSearch) { Utils.checkNotNull(hubSearch, "hubSearch"); this.hubSearch = hubSearch; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withItemClusters(boolean itemClusters) { + public LibrarySectionsMediaContainer withItemClusters(boolean itemClusters) { Utils.checkNotNull(itemClusters, "itemClusters"); this.itemClusters = Optional.ofNullable(itemClusters); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withItemClusters(Optional itemClusters) { + public LibrarySectionsMediaContainer withItemClusters(Optional itemClusters) { Utils.checkNotNull(itemClusters, "itemClusters"); this.itemClusters = itemClusters; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withLivetv(long livetv) { + public LibrarySectionsMediaContainer withLivetv(long livetv) { Utils.checkNotNull(livetv, "livetv"); this.livetv = Optional.ofNullable(livetv); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withLivetv(Optional livetv) { + public LibrarySectionsMediaContainer withLivetv(Optional livetv) { Utils.checkNotNull(livetv, "livetv"); this.livetv = livetv; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMachineIdentifier(Object machineIdentifier) { + public LibrarySectionsMediaContainer withMachineIdentifier(Object machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = Optional.ofNullable(machineIdentifier); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMachineIdentifier(Optional machineIdentifier) { + public LibrarySectionsMediaContainer withMachineIdentifier(Optional machineIdentifier) { Utils.checkNotNull(machineIdentifier, "machineIdentifier"); this.machineIdentifier = machineIdentifier; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMediaProviders(boolean mediaProviders) { + public LibrarySectionsMediaContainer withMediaProviders(boolean mediaProviders) { Utils.checkNotNull(mediaProviders, "mediaProviders"); this.mediaProviders = Optional.ofNullable(mediaProviders); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMediaProviders(Optional mediaProviders) { + public LibrarySectionsMediaContainer withMediaProviders(Optional mediaProviders) { Utils.checkNotNull(mediaProviders, "mediaProviders"); this.mediaProviders = mediaProviders; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMultiuser(boolean multiuser) { + public LibrarySectionsMediaContainer withMultiuser(boolean multiuser) { Utils.checkNotNull(multiuser, "multiuser"); this.multiuser = Optional.ofNullable(multiuser); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMultiuser(Optional multiuser) { + public LibrarySectionsMediaContainer withMultiuser(Optional multiuser) { Utils.checkNotNull(multiuser, "multiuser"); this.multiuser = multiuser; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMusicAnalysis(long musicAnalysis) { + public LibrarySectionsMediaContainer withMusicAnalysis(long musicAnalysis) { Utils.checkNotNull(musicAnalysis, "musicAnalysis"); this.musicAnalysis = Optional.ofNullable(musicAnalysis); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMusicAnalysis(Optional musicAnalysis) { + public LibrarySectionsMediaContainer withMusicAnalysis(Optional musicAnalysis) { Utils.checkNotNull(musicAnalysis, "musicAnalysis"); this.musicAnalysis = musicAnalysis; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlex(boolean myPlex) { + public LibrarySectionsMediaContainer withMyPlex(boolean myPlex) { Utils.checkNotNull(myPlex, "myPlex"); this.myPlex = Optional.ofNullable(myPlex); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlex(Optional myPlex) { + public LibrarySectionsMediaContainer withMyPlex(Optional myPlex) { Utils.checkNotNull(myPlex, "myPlex"); this.myPlex = myPlex; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexMappingState(Object myPlexMappingState) { + public LibrarySectionsMediaContainer withMyPlexMappingState(Object myPlexMappingState) { Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); this.myPlexMappingState = Optional.ofNullable(myPlexMappingState); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexMappingState(Optional myPlexMappingState) { + public LibrarySectionsMediaContainer withMyPlexMappingState(Optional myPlexMappingState) { Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); this.myPlexMappingState = myPlexMappingState; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSigninState(Object myPlexSigninState) { + public LibrarySectionsMediaContainer withMyPlexSigninState(Object myPlexSigninState) { Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); this.myPlexSigninState = Optional.ofNullable(myPlexSigninState); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSigninState(Optional myPlexSigninState) { + public LibrarySectionsMediaContainer withMyPlexSigninState(Optional myPlexSigninState) { Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); this.myPlexSigninState = myPlexSigninState; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSubscription(boolean myPlexSubscription) { + public LibrarySectionsMediaContainer withMyPlexSubscription(boolean myPlexSubscription) { Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); this.myPlexSubscription = Optional.ofNullable(myPlexSubscription); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexSubscription(Optional myPlexSubscription) { + public LibrarySectionsMediaContainer withMyPlexSubscription(Optional myPlexSubscription) { Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); this.myPlexSubscription = myPlexSubscription; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexUsername(String myPlexUsername) { + public LibrarySectionsMediaContainer withMyPlexUsername(String myPlexUsername) { Utils.checkNotNull(myPlexUsername, "myPlexUsername"); this.myPlexUsername = Optional.ofNullable(myPlexUsername); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withMyPlexUsername(Optional myPlexUsername) { + public LibrarySectionsMediaContainer withMyPlexUsername(Optional myPlexUsername) { Utils.checkNotNull(myPlexUsername, "myPlexUsername"); this.myPlexUsername = myPlexUsername; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withOfflineTranscode(Object offlineTranscode) { + public LibrarySectionsMediaContainer withOfflineTranscode(Object offlineTranscode) { Utils.checkNotNull(offlineTranscode, "offlineTranscode"); this.offlineTranscode = Optional.ofNullable(offlineTranscode); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withOfflineTranscode(Optional offlineTranscode) { + public LibrarySectionsMediaContainer withOfflineTranscode(Optional offlineTranscode) { Utils.checkNotNull(offlineTranscode, "offlineTranscode"); this.offlineTranscode = offlineTranscode; return this; @@ -1182,7 +1182,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * A comma-separated list of features which are enabled for the server owner */ - public RequestHandlerSlashGetResponses200MediaContainer withOwnerFeatures(String ownerFeatures) { + public LibrarySectionsMediaContainer withOwnerFeatures(String ownerFeatures) { Utils.checkNotNull(ownerFeatures, "ownerFeatures"); this.ownerFeatures = Optional.ofNullable(ownerFeatures); return this; @@ -1192,189 +1192,189 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * A comma-separated list of features which are enabled for the server owner */ - public RequestHandlerSlashGetResponses200MediaContainer withOwnerFeatures(Optional ownerFeatures) { + public LibrarySectionsMediaContainer withOwnerFeatures(Optional ownerFeatures) { Utils.checkNotNull(ownerFeatures, "ownerFeatures"); this.ownerFeatures = ownerFeatures; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPlatform(String platform) { + public LibrarySectionsMediaContainer withPlatform(String platform) { Utils.checkNotNull(platform, "platform"); this.platform = Optional.ofNullable(platform); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPlatform(Optional platform) { + public LibrarySectionsMediaContainer withPlatform(Optional platform) { Utils.checkNotNull(platform, "platform"); this.platform = platform; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPlatformVersion(String platformVersion) { + public LibrarySectionsMediaContainer withPlatformVersion(String platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = Optional.ofNullable(platformVersion); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPlatformVersion(Optional platformVersion) { + public LibrarySectionsMediaContainer withPlatformVersion(Optional platformVersion) { Utils.checkNotNull(platformVersion, "platformVersion"); this.platformVersion = platformVersion; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPluginHost(boolean pluginHost) { + public LibrarySectionsMediaContainer withPluginHost(boolean pluginHost) { Utils.checkNotNull(pluginHost, "pluginHost"); this.pluginHost = Optional.ofNullable(pluginHost); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPluginHost(Optional pluginHost) { + public LibrarySectionsMediaContainer withPluginHost(Optional pluginHost) { Utils.checkNotNull(pluginHost, "pluginHost"); this.pluginHost = pluginHost; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPushNotifications(boolean pushNotifications) { + public LibrarySectionsMediaContainer withPushNotifications(boolean pushNotifications) { Utils.checkNotNull(pushNotifications, "pushNotifications"); this.pushNotifications = Optional.ofNullable(pushNotifications); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withPushNotifications(Optional pushNotifications) { + public LibrarySectionsMediaContainer withPushNotifications(Optional pushNotifications) { Utils.checkNotNull(pushNotifications, "pushNotifications"); this.pushNotifications = pushNotifications; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) { + public LibrarySectionsMediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) { Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); this.readOnlyLibraries = Optional.ofNullable(readOnlyLibraries); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { + public LibrarySectionsMediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); this.readOnlyLibraries = readOnlyLibraries; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainABRVersion(long streamingBrainABRVersion) { + public LibrarySectionsMediaContainer withStreamingBrainABRVersion(long streamingBrainABRVersion) { Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); this.streamingBrainABRVersion = Optional.ofNullable(streamingBrainABRVersion); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { + public LibrarySectionsMediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); this.streamingBrainABRVersion = streamingBrainABRVersion; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainVersion(long streamingBrainVersion) { + public LibrarySectionsMediaContainer withStreamingBrainVersion(long streamingBrainVersion) { Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); this.streamingBrainVersion = Optional.ofNullable(streamingBrainVersion); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { + public LibrarySectionsMediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); this.streamingBrainVersion = streamingBrainVersion; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withSync(boolean sync) { + public LibrarySectionsMediaContainer withSync(boolean sync) { Utils.checkNotNull(sync, "sync"); this.sync = Optional.ofNullable(sync); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withSync(Optional sync) { + public LibrarySectionsMediaContainer withSync(Optional sync) { Utils.checkNotNull(sync, "sync"); this.sync = sync; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderActiveVideoSessions(long transcoderActiveVideoSessions) { + public LibrarySectionsMediaContainer withTranscoderActiveVideoSessions(long transcoderActiveVideoSessions) { Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); this.transcoderActiveVideoSessions = Optional.ofNullable(transcoderActiveVideoSessions); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { + public LibrarySectionsMediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderAudio(boolean transcoderAudio) { + public LibrarySectionsMediaContainer withTranscoderAudio(boolean transcoderAudio) { Utils.checkNotNull(transcoderAudio, "transcoderAudio"); this.transcoderAudio = Optional.ofNullable(transcoderAudio); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderAudio(Optional transcoderAudio) { + public LibrarySectionsMediaContainer withTranscoderAudio(Optional transcoderAudio) { Utils.checkNotNull(transcoderAudio, "transcoderAudio"); this.transcoderAudio = transcoderAudio; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderLyrics(boolean transcoderLyrics) { + public LibrarySectionsMediaContainer withTranscoderLyrics(boolean transcoderLyrics) { Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); this.transcoderLyrics = Optional.ofNullable(transcoderLyrics); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderLyrics(Optional transcoderLyrics) { + public LibrarySectionsMediaContainer withTranscoderLyrics(Optional transcoderLyrics) { Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); this.transcoderLyrics = transcoderLyrics; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderPhoto(boolean transcoderPhoto) { + public LibrarySectionsMediaContainer withTranscoderPhoto(boolean transcoderPhoto) { Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); this.transcoderPhoto = Optional.ofNullable(transcoderPhoto); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderPhoto(Optional transcoderPhoto) { + public LibrarySectionsMediaContainer withTranscoderPhoto(Optional transcoderPhoto) { Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); this.transcoderPhoto = transcoderPhoto; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) { + public LibrarySectionsMediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) { Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); this.transcoderSubtitles = Optional.ofNullable(transcoderSubtitles); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { + public LibrarySectionsMediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); this.transcoderSubtitles = transcoderSubtitles; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideo(boolean transcoderVideo) { + public LibrarySectionsMediaContainer withTranscoderVideo(boolean transcoderVideo) { Utils.checkNotNull(transcoderVideo, "transcoderVideo"); this.transcoderVideo = Optional.ofNullable(transcoderVideo); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideo(Optional transcoderVideo) { + public LibrarySectionsMediaContainer withTranscoderVideo(Optional transcoderVideo) { Utils.checkNotNull(transcoderVideo, "transcoderVideo"); this.transcoderVideo = transcoderVideo; return this; @@ -1383,7 +1383,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The suggested video quality bitrates to present to the user */ - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoBitrates(Object transcoderVideoBitrates) { + public LibrarySectionsMediaContainer withTranscoderVideoBitrates(Object transcoderVideoBitrates) { Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); this.transcoderVideoBitrates = Optional.ofNullable(transcoderVideoBitrates); return this; @@ -1393,20 +1393,20 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The suggested video quality bitrates to present to the user */ - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { + public LibrarySectionsMediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); this.transcoderVideoBitrates = transcoderVideoBitrates; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) { + public LibrarySectionsMediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) { Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); this.transcoderVideoQualities = Optional.ofNullable(transcoderVideoQualities); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { + public LibrarySectionsMediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); this.transcoderVideoQualities = transcoderVideoQualities; return this; @@ -1415,7 +1415,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The suggested video resolutions to the above quality bitrates */ - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoResolutions(Object transcoderVideoResolutions) { + public LibrarySectionsMediaContainer withTranscoderVideoResolutions(Object transcoderVideoResolutions) { Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); this.transcoderVideoResolutions = Optional.ofNullable(transcoderVideoResolutions); return this; @@ -1425,72 +1425,72 @@ public class RequestHandlerSlashGetResponses200MediaContainer { /** * The suggested video resolutions to the above quality bitrates */ - public RequestHandlerSlashGetResponses200MediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { + public LibrarySectionsMediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); this.transcoderVideoResolutions = transcoderVideoResolutions; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withUpdatedAt(long updatedAt) { + public LibrarySectionsMediaContainer withUpdatedAt(long updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = Optional.ofNullable(updatedAt); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withUpdatedAt(Optional updatedAt) { + public LibrarySectionsMediaContainer withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withUpdater(boolean updater) { + public LibrarySectionsMediaContainer withUpdater(boolean updater) { Utils.checkNotNull(updater, "updater"); this.updater = Optional.ofNullable(updater); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withUpdater(Optional updater) { + public LibrarySectionsMediaContainer withUpdater(Optional updater) { Utils.checkNotNull(updater, "updater"); this.updater = updater; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withVersion(String version) { + public LibrarySectionsMediaContainer withVersion(String version) { Utils.checkNotNull(version, "version"); this.version = Optional.ofNullable(version); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withVersion(Optional version) { + public LibrarySectionsMediaContainer withVersion(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withVoiceSearch(boolean voiceSearch) { + public LibrarySectionsMediaContainer withVoiceSearch(boolean voiceSearch) { Utils.checkNotNull(voiceSearch, "voiceSearch"); this.voiceSearch = Optional.ofNullable(voiceSearch); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withVoiceSearch(Optional voiceSearch) { + public LibrarySectionsMediaContainer withVoiceSearch(Optional voiceSearch) { Utils.checkNotNull(voiceSearch, "voiceSearch"); this.voiceSearch = voiceSearch; return this; } - public RequestHandlerSlashGetResponses200MediaContainer withDirectory(List directory) { + public LibrarySectionsMediaContainer withDirectory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public RequestHandlerSlashGetResponses200MediaContainer withDirectory(Optional> directory) { + public LibrarySectionsMediaContainer withDirectory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; @@ -1504,7 +1504,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { if (o == null || getClass() != o.getClass()) { return false; } - RequestHandlerSlashGetResponses200MediaContainer other = (RequestHandlerSlashGetResponses200MediaContainer) o; + LibrarySectionsMediaContainer other = (LibrarySectionsMediaContainer) o; return Utils.enhancedDeepEquals(this.identifier, other.identifier) && Utils.enhancedDeepEquals(this.offset, other.offset) && @@ -1586,7 +1586,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { @Override public String toString() { - return Utils.toString(RequestHandlerSlashGetResponses200MediaContainer.class, + return Utils.toString(LibrarySectionsMediaContainer.class, "identifier", identifier, "offset", offset, "size", size, @@ -1749,7 +1749,7 @@ public class RequestHandlerSlashGetResponses200MediaContainer { private Optional voiceSearch = Optional.empty(); - private Optional> directory = Optional.empty(); + private Optional> directory = Optional.empty(); private Builder() { // force use of static builder() method @@ -2462,21 +2462,21 @@ public class RequestHandlerSlashGetResponses200MediaContainer { } - public Builder directory(List directory) { + public Builder directory(List directory) { Utils.checkNotNull(directory, "directory"); this.directory = Optional.ofNullable(directory); return this; } - public Builder directory(Optional> directory) { + public Builder directory(Optional> directory) { Utils.checkNotNull(directory, "directory"); this.directory = directory; return this; } - public RequestHandlerSlashGetResponses200MediaContainer build() { + public LibrarySectionsMediaContainer build() { - return new RequestHandlerSlashGetResponses200MediaContainer( + return new LibrarySectionsMediaContainer( identifier, offset, size, totalSize, allowCameraUpload, allowChannelAccess, allowMediaDeletion, allowSharing, allowSync, diff --git a/src/main/java/dev/plexapi/sdk/operations/GetSectionsPrefs.java b/src/main/java/dev/plexapi/sdk/operations/GetSectionsPrefs.java index cf7f9871..52e57d39 100644 --- a/src/main/java/dev/plexapi/sdk/operations/GetSectionsPrefs.java +++ b/src/main/java/dev/plexapi/sdk/operations/GetSectionsPrefs.java @@ -12,7 +12,7 @@ import dev.plexapi.sdk.SecuritySource; import dev.plexapi.sdk.models.errors.SDKError; import dev.plexapi.sdk.models.operations.GetSectionsPrefsRequest; import dev.plexapi.sdk.models.operations.GetSectionsPrefsResponse; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.Blob; import dev.plexapi.sdk.utils.Exceptions; import dev.plexapi.sdk.utils.HTTPClient; @@ -156,11 +156,11 @@ public class GetSectionsPrefs { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue( + LibrarySections out = Utils.mapper().readValue( response.body(), new TypeReference<>() { }); - res.withRequestHandlerSlashGetResponses200(out); + res.withLibrarySections(out); return res; } else { throw new SDKError( @@ -252,11 +252,11 @@ public class GetSectionsPrefs { if (Utils.contentTypeMatches(contentType, "application/json")) { return response.body().toByteArray().thenApply(bodyBytes -> { try { - RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue( + LibrarySections out = Utils.mapper().readValue( bodyBytes, new TypeReference<>() { }); - res.withRequestHandlerSlashGetResponses200(out); + res.withLibrarySections(out); return res; } catch (Exception e) { throw new RuntimeException(e); diff --git a/src/main/java/dev/plexapi/sdk/operations/StopAllRefreshes.java b/src/main/java/dev/plexapi/sdk/operations/StopAllRefreshes.java index e43ce543..68f6fbe3 100644 --- a/src/main/java/dev/plexapi/sdk/operations/StopAllRefreshes.java +++ b/src/main/java/dev/plexapi/sdk/operations/StopAllRefreshes.java @@ -11,7 +11,7 @@ import dev.plexapi.sdk.SDKConfiguration; import dev.plexapi.sdk.SecuritySource; import dev.plexapi.sdk.models.errors.SDKError; import dev.plexapi.sdk.models.operations.StopAllRefreshesResponse; -import dev.plexapi.sdk.models.shared.RequestHandlerSlashGetResponses200; +import dev.plexapi.sdk.models.shared.LibrarySections; import dev.plexapi.sdk.utils.Blob; import dev.plexapi.sdk.utils.Exceptions; import dev.plexapi.sdk.utils.HTTPClient; @@ -149,11 +149,11 @@ public class StopAllRefreshes { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue( + LibrarySections out = Utils.mapper().readValue( response.body(), new TypeReference<>() { }); - res.withRequestHandlerSlashGetResponses200(out); + res.withLibrarySections(out); return res; } else { throw new SDKError( @@ -245,11 +245,11 @@ public class StopAllRefreshes { if (Utils.contentTypeMatches(contentType, "application/json")) { return response.body().toByteArray().thenApply(bodyBytes -> { try { - RequestHandlerSlashGetResponses200 out = Utils.mapper().readValue( + LibrarySections out = Utils.mapper().readValue( bodyBytes, new TypeReference<>() { }); - res.withRequestHandlerSlashGetResponses200(out); + res.withLibrarySections(out); return res; } catch (Exception e) { throw new RuntimeException(e);