diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..15532825 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf + +# This allows generated code to be indexed correctly +*.java linguist-generated=false + diff --git a/.gitignore b/.gitignore index 524f0963..64cd884c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,20 @@ +# Ignore Gradle project-specific cache directory +.gradle +# Ignore Gradle build output directory +build +bin/ +# Ignore IDE-specific configs +.project +.settings/ +.DS_Store # Compiled class file *.class - # Log file *.log - # BlueJ files *.ctxt - # Mobile Tools for Java (J2ME) .mtj.tmp/ - # Package Files # *.jar *.war @@ -18,7 +23,6 @@ *.zip *.tar.gz *.rar - # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* replay_pid* diff --git a/README.md b/README.md index 78d13e6e..5feeed2f 100644 --- a/README.md +++ b/README.md @@ -130,3 +130,38 @@ To see what other functions this SDK is capable of, look inside `src/main/java/4 License: MIT. See license in LICENSE. + + + + + +## Server Selection + +## Server Selection + +### Select Server by Index + +You can override the default server globally using the `setServerIndex` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: + +| # | Server | Variables | +| - | ------ | --------- | +| 0 | `http://10.10.10.47:32400` | None | +| 1 | `{protocol}://{ip}:{port}` | `0` (default is `http`), `1` (default is `10.10.10.47`), `2` (default is `32400`) | + + + +#### Variables + +Some of the server options above contain variables. If you want to set the values of those variables, the following options are provided for doing so: + * `setZero ServerProtocol` + * `setOne String` + * `setTwo String` + +### Override Server URL Per-Client + +The default server can also be overridden globally using the `setServerURL` option when initializing the SDK client instance. For example: + + + + + diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 00000000..17800d6e --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,9 @@ + + +## 2023-12-26 00:43:17 +### Changes +Based on: +- OpenAPI Doc 0.0.3 +- Speakeasy CLI 1.129.1 (2.223.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.1.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md new file mode 100644 index 00000000..a7ecaf0c --- /dev/null +++ b/USAGE.md @@ -0,0 +1,30 @@ + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.GetServerCapabilitiesResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security( + "string"){{ + accessToken = ""; + }}) + .build(); + + org.openapis.openapi.models.operations.GetServerCapabilitiesResponse res = sdk.server.getServerCapabilities(); + + if (res.twoHundredApplicationJsonObject != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + \ No newline at end of file diff --git a/docs/models/operations/Activity.md b/docs/models/operations/Activity.md new file mode 100644 index 00000000..07fe4647 --- /dev/null +++ b/docs/models/operations/Activity.md @@ -0,0 +1,15 @@ +# Activity + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `uuid` | *String* | :heavy_minus_sign: | N/A | +| `type` | *String* | :heavy_minus_sign: | N/A | +| `cancellable` | *Boolean* | :heavy_minus_sign: | N/A | +| `userID` | *Double* | :heavy_minus_sign: | N/A | +| `title` | *String* | :heavy_minus_sign: | N/A | +| `subtitle` | *String* | :heavy_minus_sign: | N/A | +| `progress` | *Double* | :heavy_minus_sign: | N/A | +| `context` | [org.openapis.openapi.models.operations.Context](../../models/operations/Context.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsErrors.md b/docs/models/operations/AddPlaylistContentsErrors.md new file mode 100644 index 00000000..eed0ad87 --- /dev/null +++ b/docs/models/operations/AddPlaylistContentsErrors.md @@ -0,0 +1,10 @@ +# AddPlaylistContentsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsRequest.md b/docs/models/operations/AddPlaylistContentsRequest.md new file mode 100644 index 00000000..f042214b --- /dev/null +++ b/docs/models/operations/AddPlaylistContentsRequest.md @@ -0,0 +1,10 @@ +# AddPlaylistContentsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | | +| `uri` | *String* | :heavy_check_mark: | the content URI for the playlist | library://.. | +| `playQueueID` | *Double* | :heavy_check_mark: | the play queue to add to a playlist | 123 | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsResponse.md b/docs/models/operations/AddPlaylistContentsResponse.md new file mode 100644 index 00000000..7149f18d --- /dev/null +++ b/docs/models/operations/AddPlaylistContentsResponse.md @@ -0,0 +1,11 @@ +# AddPlaylistContentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.AddPlaylistContentsResponseBody](../../models/operations/AddPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsResponseBody.md b/docs/models/operations/AddPlaylistContentsResponseBody.md new file mode 100644 index 00000000..0d84f5f8 --- /dev/null +++ b/docs/models/operations/AddPlaylistContentsResponseBody.md @@ -0,0 +1,10 @@ +# AddPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.AddPlaylistContentsErrors](../../models/operations/AddPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ApplyUpdatesErrors.md b/docs/models/operations/ApplyUpdatesErrors.md new file mode 100644 index 00000000..73e0969c --- /dev/null +++ b/docs/models/operations/ApplyUpdatesErrors.md @@ -0,0 +1,10 @@ +# ApplyUpdatesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/ApplyUpdatesRequest.md b/docs/models/operations/ApplyUpdatesRequest.md new file mode 100644 index 00000000..2cba37eb --- /dev/null +++ b/docs/models/operations/ApplyUpdatesRequest.md @@ -0,0 +1,9 @@ +# ApplyUpdatesRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `tonight` | [org.openapis.openapi.models.operations.Tonight](../../models/operations/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | +| `skip` | [org.openapis.openapi.models.operations.Skip](../../models/operations/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | \ No newline at end of file diff --git a/docs/models/operations/ApplyUpdatesResponse.md b/docs/models/operations/ApplyUpdatesResponse.md new file mode 100644 index 00000000..17ab0539 --- /dev/null +++ b/docs/models/operations/ApplyUpdatesResponse.md @@ -0,0 +1,11 @@ +# ApplyUpdatesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.ApplyUpdatesResponseBody](../../models/operations/ApplyUpdatesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/ApplyUpdatesResponseBody.md b/docs/models/operations/ApplyUpdatesResponseBody.md new file mode 100644 index 00000000..fadca24e --- /dev/null +++ b/docs/models/operations/ApplyUpdatesResponseBody.md @@ -0,0 +1,10 @@ +# ApplyUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.ApplyUpdatesErrors](../../models/operations/ApplyUpdatesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ButlerTask.md b/docs/models/operations/ButlerTask.md new file mode 100644 index 00000000..70c37e6f --- /dev/null +++ b/docs/models/operations/ButlerTask.md @@ -0,0 +1,13 @@ +# ButlerTask + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `name` | *String* | :heavy_minus_sign: | N/A | BackupDatabase | +| `interval` | *Double* | :heavy_minus_sign: | N/A | 3 | +| `scheduleRandomized` | *Boolean* | :heavy_minus_sign: | N/A | | +| `enabled` | *Boolean* | :heavy_minus_sign: | N/A | | +| `title` | *String* | :heavy_minus_sign: | N/A | Backup Database | +| `description` | *String* | :heavy_minus_sign: | N/A | Create a backup copy of the server's database in the configured backup directory | \ No newline at end of file diff --git a/docs/models/operations/ButlerTasks.md b/docs/models/operations/ButlerTasks.md new file mode 100644 index 00000000..f409ff34 --- /dev/null +++ b/docs/models/operations/ButlerTasks.md @@ -0,0 +1,8 @@ +# ButlerTasks + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `butlerTask` | List<[org.openapis.openapi.models.operations.ButlerTask](../../models/operations/ButlerTask.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesErrors.md b/docs/models/operations/CancelServerActivitiesErrors.md new file mode 100644 index 00000000..588154d7 --- /dev/null +++ b/docs/models/operations/CancelServerActivitiesErrors.md @@ -0,0 +1,10 @@ +# CancelServerActivitiesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesRequest.md b/docs/models/operations/CancelServerActivitiesRequest.md new file mode 100644 index 00000000..c2201c84 --- /dev/null +++ b/docs/models/operations/CancelServerActivitiesRequest.md @@ -0,0 +1,8 @@ +# CancelServerActivitiesRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `activityUUID` | *String* | :heavy_check_mark: | The UUID of the activity to cancel. | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesResponse.md b/docs/models/operations/CancelServerActivitiesResponse.md new file mode 100644 index 00000000..c330db3f --- /dev/null +++ b/docs/models/operations/CancelServerActivitiesResponse.md @@ -0,0 +1,11 @@ +# CancelServerActivitiesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.CancelServerActivitiesResponseBody](../../models/operations/CancelServerActivitiesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesResponseBody.md b/docs/models/operations/CancelServerActivitiesResponseBody.md new file mode 100644 index 00000000..c0c3aad0 --- /dev/null +++ b/docs/models/operations/CancelServerActivitiesResponseBody.md @@ -0,0 +1,10 @@ +# CancelServerActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.CancelServerActivitiesErrors](../../models/operations/CancelServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesErrors.md b/docs/models/operations/CheckForUpdatesErrors.md new file mode 100644 index 00000000..91b54f04 --- /dev/null +++ b/docs/models/operations/CheckForUpdatesErrors.md @@ -0,0 +1,10 @@ +# CheckForUpdatesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesRequest.md b/docs/models/operations/CheckForUpdatesRequest.md new file mode 100644 index 00000000..db24cd08 --- /dev/null +++ b/docs/models/operations/CheckForUpdatesRequest.md @@ -0,0 +1,8 @@ +# CheckForUpdatesRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `download` | [org.openapis.openapi.models.operations.Download](../../models/operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesResponse.md b/docs/models/operations/CheckForUpdatesResponse.md new file mode 100644 index 00000000..787d3df1 --- /dev/null +++ b/docs/models/operations/CheckForUpdatesResponse.md @@ -0,0 +1,11 @@ +# CheckForUpdatesResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.CheckForUpdatesResponseBody](../../models/operations/CheckForUpdatesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesResponseBody.md b/docs/models/operations/CheckForUpdatesResponseBody.md new file mode 100644 index 00000000..cd4a587d --- /dev/null +++ b/docs/models/operations/CheckForUpdatesResponseBody.md @@ -0,0 +1,10 @@ +# CheckForUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.CheckForUpdatesErrors](../../models/operations/CheckForUpdatesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsErrors.md b/docs/models/operations/ClearPlaylistContentsErrors.md new file mode 100644 index 00000000..9bc5292b --- /dev/null +++ b/docs/models/operations/ClearPlaylistContentsErrors.md @@ -0,0 +1,10 @@ +# ClearPlaylistContentsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsRequest.md b/docs/models/operations/ClearPlaylistContentsRequest.md new file mode 100644 index 00000000..8efb7949 --- /dev/null +++ b/docs/models/operations/ClearPlaylistContentsRequest.md @@ -0,0 +1,8 @@ +# ClearPlaylistContentsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsResponse.md b/docs/models/operations/ClearPlaylistContentsResponse.md new file mode 100644 index 00000000..7bdd753b --- /dev/null +++ b/docs/models/operations/ClearPlaylistContentsResponse.md @@ -0,0 +1,11 @@ +# ClearPlaylistContentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.ClearPlaylistContentsResponseBody](../../models/operations/ClearPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsResponseBody.md b/docs/models/operations/ClearPlaylistContentsResponseBody.md new file mode 100644 index 00000000..f6523ec3 --- /dev/null +++ b/docs/models/operations/ClearPlaylistContentsResponseBody.md @@ -0,0 +1,10 @@ +# ClearPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.ClearPlaylistContentsErrors](../../models/operations/ClearPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Context.md b/docs/models/operations/Context.md new file mode 100644 index 00000000..9387fda8 --- /dev/null +++ b/docs/models/operations/Context.md @@ -0,0 +1,8 @@ +# Context + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `librarySectionID` | *String* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Country.md b/docs/models/operations/Country.md new file mode 100644 index 00000000..37c190b2 --- /dev/null +++ b/docs/models/operations/Country.md @@ -0,0 +1,8 @@ +# Country + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistErrors.md b/docs/models/operations/CreatePlaylistErrors.md new file mode 100644 index 00000000..09a2da0b --- /dev/null +++ b/docs/models/operations/CreatePlaylistErrors.md @@ -0,0 +1,10 @@ +# CreatePlaylistErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistRequest.md b/docs/models/operations/CreatePlaylistRequest.md new file mode 100644 index 00000000..873bacd5 --- /dev/null +++ b/docs/models/operations/CreatePlaylistRequest.md @@ -0,0 +1,12 @@ +# CreatePlaylistRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `title` | *String* | :heavy_check_mark: | name of the playlist | +| `type` | [org.openapis.openapi.models.operations.Type](../../models/operations/Type.md) | :heavy_check_mark: | type of playlist to create | +| `smart` | [org.openapis.openapi.models.operations.Smart](../../models/operations/Smart.md) | :heavy_check_mark: | whether the playlist is smart or not | +| `uri` | *String* | :heavy_minus_sign: | the content URI for the playlist | +| `playQueueID` | *Double* | :heavy_minus_sign: | the play queue to copy to a playlist | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistResponse.md b/docs/models/operations/CreatePlaylistResponse.md new file mode 100644 index 00000000..dfd3c6bb --- /dev/null +++ b/docs/models/operations/CreatePlaylistResponse.md @@ -0,0 +1,11 @@ +# CreatePlaylistResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.CreatePlaylistResponseBody](../../models/operations/CreatePlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistResponseBody.md b/docs/models/operations/CreatePlaylistResponseBody.md new file mode 100644 index 00000000..0ff8ddb4 --- /dev/null +++ b/docs/models/operations/CreatePlaylistResponseBody.md @@ -0,0 +1,10 @@ +# CreatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.CreatePlaylistErrors](../../models/operations/CreatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryErrors.md b/docs/models/operations/DeleteLibraryErrors.md new file mode 100644 index 00000000..b2b09534 --- /dev/null +++ b/docs/models/operations/DeleteLibraryErrors.md @@ -0,0 +1,10 @@ +# DeleteLibraryErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryRequest.md b/docs/models/operations/DeleteLibraryRequest.md new file mode 100644 index 00000000..3a104d8e --- /dev/null +++ b/docs/models/operations/DeleteLibraryRequest.md @@ -0,0 +1,8 @@ +# DeleteLibraryRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | 1000 | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryResponse.md b/docs/models/operations/DeleteLibraryResponse.md new file mode 100644 index 00000000..3a945200 --- /dev/null +++ b/docs/models/operations/DeleteLibraryResponse.md @@ -0,0 +1,11 @@ +# DeleteLibraryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.DeleteLibraryResponseBody](../../models/operations/DeleteLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryResponseBody.md b/docs/models/operations/DeleteLibraryResponseBody.md new file mode 100644 index 00000000..6cd9e475 --- /dev/null +++ b/docs/models/operations/DeleteLibraryResponseBody.md @@ -0,0 +1,10 @@ +# DeleteLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.DeleteLibraryErrors](../../models/operations/DeleteLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistErrors.md b/docs/models/operations/DeletePlaylistErrors.md new file mode 100644 index 00000000..442b81b2 --- /dev/null +++ b/docs/models/operations/DeletePlaylistErrors.md @@ -0,0 +1,10 @@ +# DeletePlaylistErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistRequest.md b/docs/models/operations/DeletePlaylistRequest.md new file mode 100644 index 00000000..f2456f46 --- /dev/null +++ b/docs/models/operations/DeletePlaylistRequest.md @@ -0,0 +1,8 @@ +# DeletePlaylistRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistResponse.md b/docs/models/operations/DeletePlaylistResponse.md new file mode 100644 index 00000000..79985430 --- /dev/null +++ b/docs/models/operations/DeletePlaylistResponse.md @@ -0,0 +1,11 @@ +# DeletePlaylistResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.DeletePlaylistResponseBody](../../models/operations/DeletePlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistResponseBody.md b/docs/models/operations/DeletePlaylistResponseBody.md new file mode 100644 index 00000000..5fe37580 --- /dev/null +++ b/docs/models/operations/DeletePlaylistResponseBody.md @@ -0,0 +1,10 @@ +# DeletePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.DeletePlaylistErrors](../../models/operations/DeletePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Device.md b/docs/models/operations/Device.md new file mode 100644 index 00000000..0c74d6b4 --- /dev/null +++ b/docs/models/operations/Device.md @@ -0,0 +1,12 @@ +# Device + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `name` | *String* | :heavy_minus_sign: | N/A | iPhone | +| `platform` | *String* | :heavy_minus_sign: | N/A | iOS | +| `clientIdentifier` | *String* | :heavy_minus_sign: | N/A | | +| `createdAt` | *Double* | :heavy_minus_sign: | N/A | 1654131230 | \ No newline at end of file diff --git a/docs/models/operations/Director.md b/docs/models/operations/Director.md new file mode 100644 index 00000000..91bf9173 --- /dev/null +++ b/docs/models/operations/Director.md @@ -0,0 +1,8 @@ +# Director + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Peyton Reed | \ No newline at end of file diff --git a/docs/models/operations/Directory.md b/docs/models/operations/Directory.md new file mode 100644 index 00000000..6bc58988 --- /dev/null +++ b/docs/models/operations/Directory.md @@ -0,0 +1,10 @@ +# Directory + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `count` | *Double* | :heavy_minus_sign: | N/A | +| `key` | *String* | :heavy_minus_sign: | N/A | +| `title` | *String* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Download.md b/docs/models/operations/Download.md new file mode 100644 index 00000000..1eb27ea5 --- /dev/null +++ b/docs/models/operations/Download.md @@ -0,0 +1,11 @@ +# Download + +Indicate that you want to start download any updates found. + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/EnablePaperTrailErrors.md b/docs/models/operations/EnablePaperTrailErrors.md new file mode 100644 index 00000000..f270d80d --- /dev/null +++ b/docs/models/operations/EnablePaperTrailErrors.md @@ -0,0 +1,10 @@ +# EnablePaperTrailErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/EnablePaperTrailResponse.md b/docs/models/operations/EnablePaperTrailResponse.md new file mode 100644 index 00000000..9bbeb700 --- /dev/null +++ b/docs/models/operations/EnablePaperTrailResponse.md @@ -0,0 +1,11 @@ +# EnablePaperTrailResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.EnablePaperTrailResponseBody](../../models/operations/EnablePaperTrailResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/EnablePaperTrailResponseBody.md b/docs/models/operations/EnablePaperTrailResponseBody.md new file mode 100644 index 00000000..608b464c --- /dev/null +++ b/docs/models/operations/EnablePaperTrailResponseBody.md @@ -0,0 +1,10 @@ +# EnablePaperTrailResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.EnablePaperTrailErrors](../../models/operations/EnablePaperTrailErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Errors.md b/docs/models/operations/Errors.md new file mode 100644 index 00000000..1fc78cac --- /dev/null +++ b/docs/models/operations/Errors.md @@ -0,0 +1,10 @@ +# Errors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/Force.md b/docs/models/operations/Force.md new file mode 100644 index 00000000..a2eaa4e3 --- /dev/null +++ b/docs/models/operations/Force.md @@ -0,0 +1,13 @@ +# Force + +force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. +The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. + + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Genre.md b/docs/models/operations/Genre.md new file mode 100644 index 00000000..a016b09d --- /dev/null +++ b/docs/models/operations/Genre.md @@ -0,0 +1,8 @@ +# Genre + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Comedy | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsErrors.md b/docs/models/operations/GetAvailableClientsErrors.md new file mode 100644 index 00000000..a17358dc --- /dev/null +++ b/docs/models/operations/GetAvailableClientsErrors.md @@ -0,0 +1,10 @@ +# GetAvailableClientsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsMediaContainer.md b/docs/models/operations/GetAvailableClientsMediaContainer.md new file mode 100644 index 00000000..8b788f86 --- /dev/null +++ b/docs/models/operations/GetAvailableClientsMediaContainer.md @@ -0,0 +1,9 @@ +# GetAvailableClientsMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `server` | List<[org.openapis.openapi.models.operations.Server](../../models/operations/Server.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsResponse.md b/docs/models/operations/GetAvailableClientsResponse.md new file mode 100644 index 00000000..086afad6 --- /dev/null +++ b/docs/models/operations/GetAvailableClientsResponse.md @@ -0,0 +1,12 @@ +# GetAvailableClientsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `responseBodies` | List<[org.openapis.openapi.models.operations.ResponseBody](../../models/operations/ResponseBody.md)> | :heavy_minus_sign: | Available Clients | +| `object` | [org.openapis.openapi.models.operations.GetAvailableClientsResponseBody](../../models/operations/GetAvailableClientsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsResponseBody.md b/docs/models/operations/GetAvailableClientsResponseBody.md new file mode 100644 index 00000000..f3befedc --- /dev/null +++ b/docs/models/operations/GetAvailableClientsResponseBody.md @@ -0,0 +1,10 @@ +# GetAvailableClientsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetAvailableClientsErrors](../../models/operations/GetAvailableClientsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetButlerTasksButlerResponseBody.md b/docs/models/operations/GetButlerTasksButlerResponseBody.md new file mode 100644 index 00000000..05d2ed5d --- /dev/null +++ b/docs/models/operations/GetButlerTasksButlerResponseBody.md @@ -0,0 +1,10 @@ +# GetButlerTasksButlerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetButlerTasksErrors](../../models/operations/GetButlerTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetButlerTasksErrors.md b/docs/models/operations/GetButlerTasksErrors.md new file mode 100644 index 00000000..b02149b9 --- /dev/null +++ b/docs/models/operations/GetButlerTasksErrors.md @@ -0,0 +1,10 @@ +# GetButlerTasksErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetButlerTasksResponse.md b/docs/models/operations/GetButlerTasksResponse.md new file mode 100644 index 00000000..e3a56cfe --- /dev/null +++ b/docs/models/operations/GetButlerTasksResponse.md @@ -0,0 +1,12 @@ +# GetButlerTasksResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetButlerTasksResponseBody](../../models/operations/GetButlerTasksResponseBody.md) | :heavy_minus_sign: | All butler tasks | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetButlerTasksButlerResponseBody](../../models/operations/GetButlerTasksButlerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetButlerTasksResponseBody.md b/docs/models/operations/GetButlerTasksResponseBody.md new file mode 100644 index 00000000..dcde6dca --- /dev/null +++ b/docs/models/operations/GetButlerTasksResponseBody.md @@ -0,0 +1,10 @@ +# GetButlerTasksResponseBody + +All butler tasks + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `butlerTasks` | [org.openapis.openapi.models.operations.ButlerTasks](../../models/operations/ButlerTasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetCommonLibraryItemsErrors.md b/docs/models/operations/GetCommonLibraryItemsErrors.md new file mode 100644 index 00000000..53cb1fe8 --- /dev/null +++ b/docs/models/operations/GetCommonLibraryItemsErrors.md @@ -0,0 +1,10 @@ +# GetCommonLibraryItemsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetCommonLibraryItemsRequest.md b/docs/models/operations/GetCommonLibraryItemsRequest.md new file mode 100644 index 00000000..ca06cf65 --- /dev/null +++ b/docs/models/operations/GetCommonLibraryItemsRequest.md @@ -0,0 +1,10 @@ +# GetCommonLibraryItemsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | +| `type` | *Double* | :heavy_check_mark: | item type | +| `filter` | *String* | :heavy_minus_sign: | the filter parameter | \ No newline at end of file diff --git a/docs/models/operations/GetCommonLibraryItemsResponse.md b/docs/models/operations/GetCommonLibraryItemsResponse.md new file mode 100644 index 00000000..3daed1c2 --- /dev/null +++ b/docs/models/operations/GetCommonLibraryItemsResponse.md @@ -0,0 +1,11 @@ +# GetCommonLibraryItemsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetCommonLibraryItemsResponseBody](../../models/operations/GetCommonLibraryItemsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetCommonLibraryItemsResponseBody.md b/docs/models/operations/GetCommonLibraryItemsResponseBody.md new file mode 100644 index 00000000..68c1732c --- /dev/null +++ b/docs/models/operations/GetCommonLibraryItemsResponseBody.md @@ -0,0 +1,10 @@ +# GetCommonLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetCommonLibraryItemsErrors](../../models/operations/GetCommonLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesErrors.md b/docs/models/operations/GetDevicesErrors.md new file mode 100644 index 00000000..427136cb --- /dev/null +++ b/docs/models/operations/GetDevicesErrors.md @@ -0,0 +1,10 @@ +# GetDevicesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesMediaContainer.md b/docs/models/operations/GetDevicesMediaContainer.md new file mode 100644 index 00000000..227feff5 --- /dev/null +++ b/docs/models/operations/GetDevicesMediaContainer.md @@ -0,0 +1,10 @@ +# GetDevicesMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 151 | +| `identifier` | *String* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | +| `device` | List<[org.openapis.openapi.models.operations.Device](../../models/operations/Device.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesResponse.md b/docs/models/operations/GetDevicesResponse.md new file mode 100644 index 00000000..4b53e131 --- /dev/null +++ b/docs/models/operations/GetDevicesResponse.md @@ -0,0 +1,12 @@ +# GetDevicesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetDevicesResponseBody](../../models/operations/GetDevicesResponseBody.md) | :heavy_minus_sign: | Devices | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetDevicesServerResponseBody](../../models/operations/GetDevicesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesResponseBody.md b/docs/models/operations/GetDevicesResponseBody.md new file mode 100644 index 00000000..204cef73 --- /dev/null +++ b/docs/models/operations/GetDevicesResponseBody.md @@ -0,0 +1,10 @@ +# GetDevicesResponseBody + +Devices + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetDevicesMediaContainer](../../models/operations/GetDevicesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetDevicesServerResponseBody.md b/docs/models/operations/GetDevicesServerResponseBody.md new file mode 100644 index 00000000..2d5cc480 --- /dev/null +++ b/docs/models/operations/GetDevicesServerResponseBody.md @@ -0,0 +1,10 @@ +# GetDevicesServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetDevicesErrors](../../models/operations/GetDevicesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashErrors.md b/docs/models/operations/GetFileHashErrors.md new file mode 100644 index 00000000..b751ce8b --- /dev/null +++ b/docs/models/operations/GetFileHashErrors.md @@ -0,0 +1,10 @@ +# GetFileHashErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashRequest.md b/docs/models/operations/GetFileHashRequest.md new file mode 100644 index 00000000..38db1e11 --- /dev/null +++ b/docs/models/operations/GetFileHashRequest.md @@ -0,0 +1,9 @@ +# GetFileHashRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `url` | *String* | :heavy_check_mark: | This is the path to the local file, must be prefixed by `file://` | file://C:\Image.png&type=13 | +| `type` | *Double* | :heavy_minus_sign: | Item type | | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashResponse.md b/docs/models/operations/GetFileHashResponse.md new file mode 100644 index 00000000..4a849a7d --- /dev/null +++ b/docs/models/operations/GetFileHashResponse.md @@ -0,0 +1,11 @@ +# GetFileHashResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetFileHashResponseBody](../../models/operations/GetFileHashResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashResponseBody.md b/docs/models/operations/GetFileHashResponseBody.md new file mode 100644 index 00000000..463ab267 --- /dev/null +++ b/docs/models/operations/GetFileHashResponseBody.md @@ -0,0 +1,10 @@ +# GetFileHashResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetFileHashErrors](../../models/operations/GetFileHashErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsErrors.md b/docs/models/operations/GetGlobalHubsErrors.md new file mode 100644 index 00000000..dd02299f --- /dev/null +++ b/docs/models/operations/GetGlobalHubsErrors.md @@ -0,0 +1,10 @@ +# GetGlobalHubsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsRequest.md b/docs/models/operations/GetGlobalHubsRequest.md new file mode 100644 index 00000000..93345eb1 --- /dev/null +++ b/docs/models/operations/GetGlobalHubsRequest.md @@ -0,0 +1,9 @@ +# GetGlobalHubsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *Double* | :heavy_minus_sign: | The number of items to return with each hub. | +| `onlyTransient` | [org.openapis.openapi.models.operations.OnlyTransient](../../models/operations/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsResponse.md b/docs/models/operations/GetGlobalHubsResponse.md new file mode 100644 index 00000000..2a1b308c --- /dev/null +++ b/docs/models/operations/GetGlobalHubsResponse.md @@ -0,0 +1,11 @@ +# GetGlobalHubsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetGlobalHubsResponseBody](../../models/operations/GetGlobalHubsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsResponseBody.md b/docs/models/operations/GetGlobalHubsResponseBody.md new file mode 100644 index 00000000..72b0f600 --- /dev/null +++ b/docs/models/operations/GetGlobalHubsResponseBody.md @@ -0,0 +1,10 @@ +# GetGlobalHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetGlobalHubsErrors](../../models/operations/GetGlobalHubsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLatestLibraryItemsErrors.md b/docs/models/operations/GetLatestLibraryItemsErrors.md new file mode 100644 index 00000000..71e146ab --- /dev/null +++ b/docs/models/operations/GetLatestLibraryItemsErrors.md @@ -0,0 +1,10 @@ +# GetLatestLibraryItemsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetLatestLibraryItemsRequest.md b/docs/models/operations/GetLatestLibraryItemsRequest.md new file mode 100644 index 00000000..b49c6061 --- /dev/null +++ b/docs/models/operations/GetLatestLibraryItemsRequest.md @@ -0,0 +1,10 @@ +# GetLatestLibraryItemsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | +| `type` | *Double* | :heavy_check_mark: | item type | +| `filter` | *String* | :heavy_minus_sign: | the filter parameter | \ No newline at end of file diff --git a/docs/models/operations/GetLatestLibraryItemsResponse.md b/docs/models/operations/GetLatestLibraryItemsResponse.md new file mode 100644 index 00000000..376a2c69 --- /dev/null +++ b/docs/models/operations/GetLatestLibraryItemsResponse.md @@ -0,0 +1,11 @@ +# GetLatestLibraryItemsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetLatestLibraryItemsResponseBody](../../models/operations/GetLatestLibraryItemsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetLatestLibraryItemsResponseBody.md b/docs/models/operations/GetLatestLibraryItemsResponseBody.md new file mode 100644 index 00000000..de915311 --- /dev/null +++ b/docs/models/operations/GetLatestLibraryItemsResponseBody.md @@ -0,0 +1,10 @@ +# GetLatestLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetLatestLibraryItemsErrors](../../models/operations/GetLatestLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesErrors.md b/docs/models/operations/GetLibrariesErrors.md new file mode 100644 index 00000000..eeee5d06 --- /dev/null +++ b/docs/models/operations/GetLibrariesErrors.md @@ -0,0 +1,10 @@ +# GetLibrariesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesResponse.md b/docs/models/operations/GetLibrariesResponse.md new file mode 100644 index 00000000..122a7efe --- /dev/null +++ b/docs/models/operations/GetLibrariesResponse.md @@ -0,0 +1,11 @@ +# GetLibrariesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetLibrariesResponseBody](../../models/operations/GetLibrariesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesResponseBody.md b/docs/models/operations/GetLibrariesResponseBody.md new file mode 100644 index 00000000..bea1daa0 --- /dev/null +++ b/docs/models/operations/GetLibrariesResponseBody.md @@ -0,0 +1,10 @@ +# GetLibrariesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetLibrariesErrors](../../models/operations/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryErrors.md b/docs/models/operations/GetLibraryErrors.md new file mode 100644 index 00000000..7ddaed5f --- /dev/null +++ b/docs/models/operations/GetLibraryErrors.md @@ -0,0 +1,10 @@ +# GetLibraryErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsErrors.md b/docs/models/operations/GetLibraryHubsErrors.md new file mode 100644 index 00000000..cc067b30 --- /dev/null +++ b/docs/models/operations/GetLibraryHubsErrors.md @@ -0,0 +1,10 @@ +# GetLibraryHubsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsRequest.md b/docs/models/operations/GetLibraryHubsRequest.md new file mode 100644 index 00000000..31f1c162 --- /dev/null +++ b/docs/models/operations/GetLibraryHubsRequest.md @@ -0,0 +1,10 @@ +# GetLibraryHubsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | +| `count` | *Double* | :heavy_minus_sign: | The number of items to return with each hub. | +| `onlyTransient` | [org.openapis.openapi.models.operations.QueryParamOnlyTransient](../../models/operations/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsResponse.md b/docs/models/operations/GetLibraryHubsResponse.md new file mode 100644 index 00000000..04d88f32 --- /dev/null +++ b/docs/models/operations/GetLibraryHubsResponse.md @@ -0,0 +1,11 @@ +# GetLibraryHubsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetLibraryHubsResponseBody](../../models/operations/GetLibraryHubsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsResponseBody.md b/docs/models/operations/GetLibraryHubsResponseBody.md new file mode 100644 index 00000000..24eeddce --- /dev/null +++ b/docs/models/operations/GetLibraryHubsResponseBody.md @@ -0,0 +1,10 @@ +# GetLibraryHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetLibraryHubsErrors](../../models/operations/GetLibraryHubsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsErrors.md b/docs/models/operations/GetLibraryItemsErrors.md new file mode 100644 index 00000000..ac9e6b5e --- /dev/null +++ b/docs/models/operations/GetLibraryItemsErrors.md @@ -0,0 +1,10 @@ +# GetLibraryItemsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsRequest.md b/docs/models/operations/GetLibraryItemsRequest.md new file mode 100644 index 00000000..3e0607ed --- /dev/null +++ b/docs/models/operations/GetLibraryItemsRequest.md @@ -0,0 +1,10 @@ +# GetLibraryItemsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | +| `type` | *Double* | :heavy_minus_sign: | item type | +| `filter` | *String* | :heavy_minus_sign: | the filter parameter | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsResponse.md b/docs/models/operations/GetLibraryItemsResponse.md new file mode 100644 index 00000000..b2db72f9 --- /dev/null +++ b/docs/models/operations/GetLibraryItemsResponse.md @@ -0,0 +1,11 @@ +# GetLibraryItemsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetLibraryItemsResponseBody](../../models/operations/GetLibraryItemsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsResponseBody.md b/docs/models/operations/GetLibraryItemsResponseBody.md new file mode 100644 index 00000000..723153af --- /dev/null +++ b/docs/models/operations/GetLibraryItemsResponseBody.md @@ -0,0 +1,10 @@ +# GetLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetLibraryItemsErrors](../../models/operations/GetLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryRequest.md b/docs/models/operations/GetLibraryRequest.md new file mode 100644 index 00000000..7e0d7c91 --- /dev/null +++ b/docs/models/operations/GetLibraryRequest.md @@ -0,0 +1,9 @@ +# GetLibraryRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to query | 1000 | +| `includeDetails` | [org.openapis.openapi.models.operations.IncludeDetails](../../models/operations/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryResponse.md b/docs/models/operations/GetLibraryResponse.md new file mode 100644 index 00000000..ba33a3bc --- /dev/null +++ b/docs/models/operations/GetLibraryResponse.md @@ -0,0 +1,11 @@ +# GetLibraryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetLibraryResponseBody](../../models/operations/GetLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryResponseBody.md b/docs/models/operations/GetLibraryResponseBody.md new file mode 100644 index 00000000..04b6bb0c --- /dev/null +++ b/docs/models/operations/GetLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetLibraryErrors](../../models/operations/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenErrors.md b/docs/models/operations/GetMetadataChildrenErrors.md new file mode 100644 index 00000000..1d700df4 --- /dev/null +++ b/docs/models/operations/GetMetadataChildrenErrors.md @@ -0,0 +1,10 @@ +# GetMetadataChildrenErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenRequest.md b/docs/models/operations/GetMetadataChildrenRequest.md new file mode 100644 index 00000000..9214d858 --- /dev/null +++ b/docs/models/operations/GetMetadataChildrenRequest.md @@ -0,0 +1,8 @@ +# GetMetadataChildrenRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *Double* | :heavy_check_mark: | the id of the library item to return the children of. | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenResponse.md b/docs/models/operations/GetMetadataChildrenResponse.md new file mode 100644 index 00000000..89458435 --- /dev/null +++ b/docs/models/operations/GetMetadataChildrenResponse.md @@ -0,0 +1,11 @@ +# GetMetadataChildrenResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetMetadataChildrenResponseBody](../../models/operations/GetMetadataChildrenResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenResponseBody.md b/docs/models/operations/GetMetadataChildrenResponseBody.md new file mode 100644 index 00000000..9eabfbab --- /dev/null +++ b/docs/models/operations/GetMetadataChildrenResponseBody.md @@ -0,0 +1,10 @@ +# GetMetadataChildrenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetMetadataChildrenErrors](../../models/operations/GetMetadataChildrenErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataErrors.md b/docs/models/operations/GetMetadataErrors.md new file mode 100644 index 00000000..28918346 --- /dev/null +++ b/docs/models/operations/GetMetadataErrors.md @@ -0,0 +1,10 @@ +# GetMetadataErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataRequest.md b/docs/models/operations/GetMetadataRequest.md new file mode 100644 index 00000000..3f89b67a --- /dev/null +++ b/docs/models/operations/GetMetadataRequest.md @@ -0,0 +1,8 @@ +# GetMetadataRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ratingKey` | *Double* | :heavy_check_mark: | the id of the library item to return the children of. | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataResponse.md b/docs/models/operations/GetMetadataResponse.md new file mode 100644 index 00000000..1d0a7774 --- /dev/null +++ b/docs/models/operations/GetMetadataResponse.md @@ -0,0 +1,11 @@ +# GetMetadataResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetMetadataResponseBody](../../models/operations/GetMetadataResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataResponseBody.md b/docs/models/operations/GetMetadataResponseBody.md new file mode 100644 index 00000000..f4a15891 --- /dev/null +++ b/docs/models/operations/GetMetadataResponseBody.md @@ -0,0 +1,10 @@ +# GetMetadataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetMetadataErrors](../../models/operations/GetMetadataErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMyPlexAccountErrors.md b/docs/models/operations/GetMyPlexAccountErrors.md new file mode 100644 index 00000000..ea2332ad --- /dev/null +++ b/docs/models/operations/GetMyPlexAccountErrors.md @@ -0,0 +1,10 @@ +# GetMyPlexAccountErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetMyPlexAccountResponse.md b/docs/models/operations/GetMyPlexAccountResponse.md new file mode 100644 index 00000000..8ccf7b51 --- /dev/null +++ b/docs/models/operations/GetMyPlexAccountResponse.md @@ -0,0 +1,12 @@ +# GetMyPlexAccountResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetMyPlexAccountResponseBody](../../models/operations/GetMyPlexAccountResponseBody.md) | :heavy_minus_sign: | MyPlex Account | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetMyPlexAccountServerResponseBody](../../models/operations/GetMyPlexAccountServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetMyPlexAccountResponseBody.md b/docs/models/operations/GetMyPlexAccountResponseBody.md new file mode 100644 index 00000000..a203c06c --- /dev/null +++ b/docs/models/operations/GetMyPlexAccountResponseBody.md @@ -0,0 +1,10 @@ +# GetMyPlexAccountResponseBody + +MyPlex Account + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `myPlex` | [org.openapis.openapi.models.operations.MyPlex](../../models/operations/MyPlex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMyPlexAccountServerResponseBody.md b/docs/models/operations/GetMyPlexAccountServerResponseBody.md new file mode 100644 index 00000000..e9feb2bd --- /dev/null +++ b/docs/models/operations/GetMyPlexAccountServerResponseBody.md @@ -0,0 +1,10 @@ +# GetMyPlexAccountServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetMyPlexAccountErrors](../../models/operations/GetMyPlexAccountErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckErrors.md b/docs/models/operations/GetOnDeckErrors.md new file mode 100644 index 00000000..7f8ef51a --- /dev/null +++ b/docs/models/operations/GetOnDeckErrors.md @@ -0,0 +1,10 @@ +# GetOnDeckErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckLibraryResponseBody.md b/docs/models/operations/GetOnDeckLibraryResponseBody.md new file mode 100644 index 00000000..dad7b682 --- /dev/null +++ b/docs/models/operations/GetOnDeckLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetOnDeckLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetOnDeckErrors](../../models/operations/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMedia.md b/docs/models/operations/GetOnDeckMedia.md new file mode 100644 index 00000000..861b3bec --- /dev/null +++ b/docs/models/operations/GetOnDeckMedia.md @@ -0,0 +1,22 @@ +# GetOnDeckMedia + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `id` | *Double* | :heavy_minus_sign: | N/A | 80994 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 420080 | +| `bitrate` | *Double* | :heavy_minus_sign: | N/A | 1046 | +| `width` | *Double* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *Double* | :heavy_minus_sign: | N/A | 1080 | +| `aspectRatio` | *Double* | :heavy_minus_sign: | N/A | 1.78 | +| `audioChannels` | *Double* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *String* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *String* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *String* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *String* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *String* | :heavy_minus_sign: | N/A | PAL | +| `audioProfile` | *String* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | main | +| `part` | List<[org.openapis.openapi.models.operations.GetOnDeckPart](../../models/operations/GetOnDeckPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMediaContainer.md b/docs/models/operations/GetOnDeckMediaContainer.md new file mode 100644 index 00000000..95c9b421 --- /dev/null +++ b/docs/models/operations/GetOnDeckMediaContainer.md @@ -0,0 +1,14 @@ +# GetOnDeckMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 16 | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | | +| `identifier` | *String* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *String* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *Double* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *Boolean* | :heavy_minus_sign: | N/A | | +| `metadata` | List<[org.openapis.openapi.models.operations.GetOnDeckMetadata](../../models/operations/GetOnDeckMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMetadata.md b/docs/models/operations/GetOnDeckMetadata.md new file mode 100644 index 00000000..3cec4d6b --- /dev/null +++ b/docs/models/operations/GetOnDeckMetadata.md @@ -0,0 +1,43 @@ +# GetOnDeckMetadata + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | | +| `librarySectionID` | *Double* | :heavy_minus_sign: | N/A | 2 | +| `librarySectionTitle` | *String* | :heavy_minus_sign: | N/A | TV Shows | +| `librarySectionUUID` | *String* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd | +| `ratingKey` | *Double* | :heavy_minus_sign: | N/A | 49564 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49564 | +| `parentRatingKey` | *Double* | :heavy_minus_sign: | N/A | 49557 | +| `grandparentRatingKey` | *Double* | :heavy_minus_sign: | N/A | 49556 | +| `guid` | *String* | :heavy_minus_sign: | N/A | plex://episode/5ea7d7402e7ab10042e74d4f | +| `parentGuid` | *String* | :heavy_minus_sign: | N/A | plex://season/602e754d67f4c8002ce54b3d | +| `grandparentGuid` | *String* | :heavy_minus_sign: | N/A | plex://show/5d9c090e705e7a001e6e94d8 | +| `type` | *String* | :heavy_minus_sign: | N/A | episode | +| `title` | *String* | :heavy_minus_sign: | N/A | Circus | +| `grandparentKey` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49556 | +| `parentKey` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49557 | +| `librarySectionKey` | *String* | :heavy_minus_sign: | N/A | /library/sections/2 | +| `grandparentTitle` | *String* | :heavy_minus_sign: | N/A | Bluey (2018) | +| `parentTitle` | *String* | :heavy_minus_sign: | N/A | Season 2 | +| `contentRating` | *String* | :heavy_minus_sign: | N/A | TV-Y | +| `summary` | *String* | :heavy_minus_sign: | N/A | Bluey is the ringmaster in a game of circus with her friends but Hercules wants to play his motorcycle game instead. Luckily Bluey has a solution to keep everyone happy. | +| `index` | *Double* | :heavy_minus_sign: | N/A | 33 | +| `parentIndex` | *Double* | :heavy_minus_sign: | N/A | 2 | +| `lastViewedAt` | *Double* | :heavy_minus_sign: | N/A | 1681908352 | +| `year` | *Double* | :heavy_minus_sign: | N/A | 2018 | +| `thumb` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49564/thumb/1654258204 | +| `art` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 | +| `parentThumb` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49557/thumb/1654258204 | +| `grandparentThumb` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49556/thumb/1680939546 | +| `grandparentArt` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 | +| `grandparentTheme` | *String* | :heavy_minus_sign: | N/A | /library/metadata/49556/theme/1680939546 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 420080 | +| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-10-31 00:00:00 +0000 UTC | +| `addedAt` | *Double* | :heavy_minus_sign: | N/A | 1654258196 | +| `updatedAt` | *Double* | :heavy_minus_sign: | N/A | 1654258204 | +| `media` | List<[org.openapis.openapi.models.operations.GetOnDeckMedia](../../models/operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | | +| `guids` | List<[org.openapis.openapi.models.operations.Guids](../../models/operations/Guids.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckPart.md b/docs/models/operations/GetOnDeckPart.md new file mode 100644 index 00000000..c9dd8f8c --- /dev/null +++ b/docs/models/operations/GetOnDeckPart.md @@ -0,0 +1,16 @@ +# GetOnDeckPart + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `id` | *Double* | :heavy_minus_sign: | N/A | 80994 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 420080 | +| `file` | *String* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | +| `size` | *Double* | :heavy_minus_sign: | N/A | 55148931 | +| `audioProfile` | *String* | :heavy_minus_sign: | N/A | lc | +| `container` | *String* | :heavy_minus_sign: | N/A | mkv | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | main | +| `stream` | List<[org.openapis.openapi.models.operations.Stream](../../models/operations/Stream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckResponse.md b/docs/models/operations/GetOnDeckResponse.md new file mode 100644 index 00000000..bc418f8d --- /dev/null +++ b/docs/models/operations/GetOnDeckResponse.md @@ -0,0 +1,12 @@ +# GetOnDeckResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetOnDeckResponseBody](../../models/operations/GetOnDeckResponseBody.md) | :heavy_minus_sign: | The on Deck content | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetOnDeckLibraryResponseBody](../../models/operations/GetOnDeckLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckResponseBody.md b/docs/models/operations/GetOnDeckResponseBody.md new file mode 100644 index 00000000..ce3debe5 --- /dev/null +++ b/docs/models/operations/GetOnDeckResponseBody.md @@ -0,0 +1,10 @@ +# GetOnDeckResponseBody + +The on Deck content + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetOnDeckMediaContainer](../../models/operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsErrors.md b/docs/models/operations/GetPlaylistContentsErrors.md new file mode 100644 index 00000000..c4d439dd --- /dev/null +++ b/docs/models/operations/GetPlaylistContentsErrors.md @@ -0,0 +1,10 @@ +# GetPlaylistContentsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsRequest.md b/docs/models/operations/GetPlaylistContentsRequest.md new file mode 100644 index 00000000..68ac2ad4 --- /dev/null +++ b/docs/models/operations/GetPlaylistContentsRequest.md @@ -0,0 +1,9 @@ +# GetPlaylistContentsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | +| `type` | *Double* | :heavy_check_mark: | the metadata type of the item to return | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsResponse.md b/docs/models/operations/GetPlaylistContentsResponse.md new file mode 100644 index 00000000..9b27fd06 --- /dev/null +++ b/docs/models/operations/GetPlaylistContentsResponse.md @@ -0,0 +1,11 @@ +# GetPlaylistContentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetPlaylistContentsResponseBody](../../models/operations/GetPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsResponseBody.md b/docs/models/operations/GetPlaylistContentsResponseBody.md new file mode 100644 index 00000000..9f105b57 --- /dev/null +++ b/docs/models/operations/GetPlaylistContentsResponseBody.md @@ -0,0 +1,10 @@ +# GetPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetPlaylistContentsErrors](../../models/operations/GetPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistErrors.md b/docs/models/operations/GetPlaylistErrors.md new file mode 100644 index 00000000..883bd553 --- /dev/null +++ b/docs/models/operations/GetPlaylistErrors.md @@ -0,0 +1,10 @@ +# GetPlaylistErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistRequest.md b/docs/models/operations/GetPlaylistRequest.md new file mode 100644 index 00000000..ca655bca --- /dev/null +++ b/docs/models/operations/GetPlaylistRequest.md @@ -0,0 +1,8 @@ +# GetPlaylistRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistResponse.md b/docs/models/operations/GetPlaylistResponse.md new file mode 100644 index 00000000..b491ad84 --- /dev/null +++ b/docs/models/operations/GetPlaylistResponse.md @@ -0,0 +1,11 @@ +# GetPlaylistResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetPlaylistResponseBody](../../models/operations/GetPlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistResponseBody.md b/docs/models/operations/GetPlaylistResponseBody.md new file mode 100644 index 00000000..ccf8f02e --- /dev/null +++ b/docs/models/operations/GetPlaylistResponseBody.md @@ -0,0 +1,10 @@ +# GetPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetPlaylistErrors](../../models/operations/GetPlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsErrors.md b/docs/models/operations/GetPlaylistsErrors.md new file mode 100644 index 00000000..d2edc79f --- /dev/null +++ b/docs/models/operations/GetPlaylistsErrors.md @@ -0,0 +1,10 @@ +# GetPlaylistsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsRequest.md b/docs/models/operations/GetPlaylistsRequest.md new file mode 100644 index 00000000..dfd03f06 --- /dev/null +++ b/docs/models/operations/GetPlaylistsRequest.md @@ -0,0 +1,9 @@ +# GetPlaylistsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `playlistType` | [org.openapis.openapi.models.operations.PlaylistType](../../models/operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | +| `smart` | [org.openapis.openapi.models.operations.QueryParamSmart](../../models/operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsResponse.md b/docs/models/operations/GetPlaylistsResponse.md new file mode 100644 index 00000000..4a5523eb --- /dev/null +++ b/docs/models/operations/GetPlaylistsResponse.md @@ -0,0 +1,11 @@ +# GetPlaylistsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetPlaylistsResponseBody](../../models/operations/GetPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsResponseBody.md b/docs/models/operations/GetPlaylistsResponseBody.md new file mode 100644 index 00000000..1724444f --- /dev/null +++ b/docs/models/operations/GetPlaylistsResponseBody.md @@ -0,0 +1,10 @@ +# GetPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetPlaylistsErrors](../../models/operations/GetPlaylistsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedErrors.md b/docs/models/operations/GetRecentlyAddedErrors.md new file mode 100644 index 00000000..c190a3be --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedErrors.md @@ -0,0 +1,10 @@ +# GetRecentlyAddedErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedLibraryResponseBody.md b/docs/models/operations/GetRecentlyAddedLibraryResponseBody.md new file mode 100644 index 00000000..214bc93d --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedLibraryResponseBody.md @@ -0,0 +1,10 @@ +# GetRecentlyAddedLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetRecentlyAddedErrors](../../models/operations/GetRecentlyAddedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedMediaContainer.md b/docs/models/operations/GetRecentlyAddedMediaContainer.md new file mode 100644 index 00000000..7d8da073 --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedMediaContainer.md @@ -0,0 +1,14 @@ +# GetRecentlyAddedMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 50 | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | | +| `identifier` | *String* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *String* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *Double* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *Boolean* | :heavy_minus_sign: | N/A | | +| `metadata` | List<[org.openapis.openapi.models.operations.Metadata](../../models/operations/Metadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedResponse.md b/docs/models/operations/GetRecentlyAddedResponse.md new file mode 100644 index 00000000..acd1fcc3 --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedResponse.md @@ -0,0 +1,12 @@ +# GetRecentlyAddedResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetRecentlyAddedResponseBody](../../models/operations/GetRecentlyAddedResponseBody.md) | :heavy_minus_sign: | The recently added content | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetRecentlyAddedLibraryResponseBody](../../models/operations/GetRecentlyAddedLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetRecentlyAddedResponseBody.md b/docs/models/operations/GetRecentlyAddedResponseBody.md new file mode 100644 index 00000000..cb2f72db --- /dev/null +++ b/docs/models/operations/GetRecentlyAddedResponseBody.md @@ -0,0 +1,10 @@ +# GetRecentlyAddedResponseBody + +The recently added content + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetRecentlyAddedMediaContainer](../../models/operations/GetRecentlyAddedMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetResizedPhotoErrors.md b/docs/models/operations/GetResizedPhotoErrors.md new file mode 100644 index 00000000..74930fbb --- /dev/null +++ b/docs/models/operations/GetResizedPhotoErrors.md @@ -0,0 +1,10 @@ +# GetResizedPhotoErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetResizedPhotoRequest.md b/docs/models/operations/GetResizedPhotoRequest.md new file mode 100644 index 00000000..886dbe0d --- /dev/null +++ b/docs/models/operations/GetResizedPhotoRequest.md @@ -0,0 +1,14 @@ +# GetResizedPhotoRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `width` | *Double* | :heavy_check_mark: | The width for the resized photo | 110 | +| `height` | *Double* | :heavy_check_mark: | The height for the resized photo | 165 | +| `opacity` | *Long* | :heavy_check_mark: | The opacity for the resized photo | | +| `blur` | *Double* | :heavy_check_mark: | The width for the resized photo | 0 | +| `minSize` | [org.openapis.openapi.models.operations.MinSize](../../models/operations/MinSize.md) | :heavy_check_mark: | images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. | | +| `upscale` | [org.openapis.openapi.models.operations.Upscale](../../models/operations/Upscale.md) | :heavy_check_mark: | allow images to be resized beyond native dimensions. | | +| `url` | *String* | :heavy_check_mark: | path to image within Plex | /library/metadata/49564/thumb/1654258204 | \ No newline at end of file diff --git a/docs/models/operations/GetResizedPhotoResponse.md b/docs/models/operations/GetResizedPhotoResponse.md new file mode 100644 index 00000000..2d1b6d40 --- /dev/null +++ b/docs/models/operations/GetResizedPhotoResponse.md @@ -0,0 +1,11 @@ +# GetResizedPhotoResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetResizedPhotoResponseBody](../../models/operations/GetResizedPhotoResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetResizedPhotoResponseBody.md b/docs/models/operations/GetResizedPhotoResponseBody.md new file mode 100644 index 00000000..28fb7102 --- /dev/null +++ b/docs/models/operations/GetResizedPhotoResponseBody.md @@ -0,0 +1,10 @@ +# GetResizedPhotoResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetResizedPhotoErrors](../../models/operations/GetResizedPhotoErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsCountry.md b/docs/models/operations/GetSearchResultsCountry.md new file mode 100644 index 00000000..dd1f6d76 --- /dev/null +++ b/docs/models/operations/GetSearchResultsCountry.md @@ -0,0 +1,8 @@ +# GetSearchResultsCountry + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsDirector.md b/docs/models/operations/GetSearchResultsDirector.md new file mode 100644 index 00000000..9feb5c7b --- /dev/null +++ b/docs/models/operations/GetSearchResultsDirector.md @@ -0,0 +1,8 @@ +# GetSearchResultsDirector + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Brian De Palma | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsErrors.md b/docs/models/operations/GetSearchResultsErrors.md new file mode 100644 index 00000000..41b45578 --- /dev/null +++ b/docs/models/operations/GetSearchResultsErrors.md @@ -0,0 +1,10 @@ +# GetSearchResultsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsGenre.md b/docs/models/operations/GetSearchResultsGenre.md new file mode 100644 index 00000000..72a6f2d6 --- /dev/null +++ b/docs/models/operations/GetSearchResultsGenre.md @@ -0,0 +1,8 @@ +# GetSearchResultsGenre + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Action | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMedia.md b/docs/models/operations/GetSearchResultsMedia.md new file mode 100644 index 00000000..11f2b961 --- /dev/null +++ b/docs/models/operations/GetSearchResultsMedia.md @@ -0,0 +1,22 @@ +# GetSearchResultsMedia + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `id` | *Double* | :heavy_minus_sign: | N/A | 26610 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 6612628 | +| `bitrate` | *Double* | :heavy_minus_sign: | N/A | 4751 | +| `width` | *Double* | :heavy_minus_sign: | N/A | 1916 | +| `height` | *Double* | :heavy_minus_sign: | N/A | 796 | +| `aspectRatio` | *Double* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *Double* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *String* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *String* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *Double* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *String* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *String* | :heavy_minus_sign: | N/A | 24p | +| `audioProfile` | *String* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | main 10 | +| `part` | List<[org.openapis.openapi.models.operations.GetSearchResultsPart](../../models/operations/GetSearchResultsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMediaContainer.md b/docs/models/operations/GetSearchResultsMediaContainer.md new file mode 100644 index 00000000..9230c99c --- /dev/null +++ b/docs/models/operations/GetSearchResultsMediaContainer.md @@ -0,0 +1,13 @@ +# GetSearchResultsMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 26 | +| `identifier` | *String* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *String* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *Double* | :heavy_minus_sign: | N/A | 1680021154 | +| `metadata` | List<[org.openapis.openapi.models.operations.GetSearchResultsMetadata](../../models/operations/GetSearchResultsMetadata.md)> | :heavy_minus_sign: | N/A | | +| `provider` | List<[org.openapis.openapi.models.operations.Provider](../../models/operations/Provider.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMetadata.md b/docs/models/operations/GetSearchResultsMetadata.md new file mode 100644 index 00000000..421bf4e7 --- /dev/null +++ b/docs/models/operations/GetSearchResultsMetadata.md @@ -0,0 +1,41 @@ +# GetSearchResultsMetadata + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | | +| `librarySectionID` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *String* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *String* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `personal` | *Boolean* | :heavy_minus_sign: | N/A | | +| `sourceTitle` | *String* | :heavy_minus_sign: | N/A | Hera | +| `ratingKey` | *Double* | :heavy_minus_sign: | N/A | 10398 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/metadata/10398 | +| `guid` | *String* | :heavy_minus_sign: | N/A | plex://movie/5d7768284de0ee001fcc8f52 | +| `studio` | *String* | :heavy_minus_sign: | N/A | Paramount | +| `type` | *String* | :heavy_minus_sign: | N/A | movie | +| `title` | *String* | :heavy_minus_sign: | N/A | Mission: Impossible | +| `contentRating` | *String* | :heavy_minus_sign: | N/A | PG-13 | +| `summary` | *String* | :heavy_minus_sign: | N/A | When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score. | +| `rating` | *Double* | :heavy_minus_sign: | N/A | 6.6 | +| `audienceRating` | *Double* | :heavy_minus_sign: | N/A | 7.1 | +| `year` | *Double* | :heavy_minus_sign: | N/A | 1996 | +| `tagline` | *String* | :heavy_minus_sign: | N/A | Expect the impossible. | +| `thumb` | *String* | :heavy_minus_sign: | N/A | /library/metadata/10398/thumb/1679505055 | +| `art` | *String* | :heavy_minus_sign: | N/A | /library/metadata/10398/art/1679505055 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 6612628 | +| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 1996-05-22 00:00:00 +0000 UTC | +| `addedAt` | *Double* | :heavy_minus_sign: | N/A | 1589234571 | +| `updatedAt` | *Double* | :heavy_minus_sign: | N/A | 1679505055 | +| `audienceRatingImage` | *String* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `chapterSource` | *String* | :heavy_minus_sign: | N/A | media | +| `primaryExtraKey` | *String* | :heavy_minus_sign: | N/A | /library/metadata/10501 | +| `ratingImage` | *String* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | +| `media` | List<[org.openapis.openapi.models.operations.GetSearchResultsMedia](../../models/operations/GetSearchResultsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[org.openapis.openapi.models.operations.GetSearchResultsGenre](../../models/operations/GetSearchResultsGenre.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[org.openapis.openapi.models.operations.GetSearchResultsDirector](../../models/operations/GetSearchResultsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[org.openapis.openapi.models.operations.GetSearchResultsWriter](../../models/operations/GetSearchResultsWriter.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[org.openapis.openapi.models.operations.GetSearchResultsCountry](../../models/operations/GetSearchResultsCountry.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[org.openapis.openapi.models.operations.GetSearchResultsRole](../../models/operations/GetSearchResultsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsPart.md b/docs/models/operations/GetSearchResultsPart.md new file mode 100644 index 00000000..e87dd792 --- /dev/null +++ b/docs/models/operations/GetSearchResultsPart.md @@ -0,0 +1,15 @@ +# GetSearchResultsPart + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `id` | *Double* | :heavy_minus_sign: | N/A | 26610 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/parts/26610/1589234571/file.mkv | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 6612628 | +| `file` | *String* | :heavy_minus_sign: | N/A | /movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv | +| `size` | *Double* | :heavy_minus_sign: | N/A | 3926903851 | +| `audioProfile` | *String* | :heavy_minus_sign: | N/A | lc | +| `container` | *String* | :heavy_minus_sign: | N/A | mkv | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | main 10 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsRequest.md b/docs/models/operations/GetSearchResultsRequest.md new file mode 100644 index 00000000..cc56e4f3 --- /dev/null +++ b/docs/models/operations/GetSearchResultsRequest.md @@ -0,0 +1,8 @@ +# GetSearchResultsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `query` | *String* | :heavy_check_mark: | The search query string to use | 110 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsResponse.md b/docs/models/operations/GetSearchResultsResponse.md new file mode 100644 index 00000000..2649b011 --- /dev/null +++ b/docs/models/operations/GetSearchResultsResponse.md @@ -0,0 +1,12 @@ +# GetSearchResultsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetSearchResultsResponseBody](../../models/operations/GetSearchResultsResponseBody.md) | :heavy_minus_sign: | Search Results | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetSearchResultsSearchResponseBody](../../models/operations/GetSearchResultsSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsResponseBody.md b/docs/models/operations/GetSearchResultsResponseBody.md new file mode 100644 index 00000000..fabcc099 --- /dev/null +++ b/docs/models/operations/GetSearchResultsResponseBody.md @@ -0,0 +1,10 @@ +# GetSearchResultsResponseBody + +Search Results + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetSearchResultsMediaContainer](../../models/operations/GetSearchResultsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsRole.md b/docs/models/operations/GetSearchResultsRole.md new file mode 100644 index 00000000..13cc8bcf --- /dev/null +++ b/docs/models/operations/GetSearchResultsRole.md @@ -0,0 +1,8 @@ +# GetSearchResultsRole + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Tom Cruise | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsSearchResponseBody.md b/docs/models/operations/GetSearchResultsSearchResponseBody.md new file mode 100644 index 00000000..32259f24 --- /dev/null +++ b/docs/models/operations/GetSearchResultsSearchResponseBody.md @@ -0,0 +1,10 @@ +# GetSearchResultsSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetSearchResultsErrors](../../models/operations/GetSearchResultsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsWriter.md b/docs/models/operations/GetSearchResultsWriter.md new file mode 100644 index 00000000..7e628e35 --- /dev/null +++ b/docs/models/operations/GetSearchResultsWriter.md @@ -0,0 +1,8 @@ +# GetSearchResultsWriter + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | David Koepp | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesActivitiesResponseBody.md b/docs/models/operations/GetServerActivitiesActivitiesResponseBody.md new file mode 100644 index 00000000..e200e006 --- /dev/null +++ b/docs/models/operations/GetServerActivitiesActivitiesResponseBody.md @@ -0,0 +1,10 @@ +# GetServerActivitiesActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetServerActivitiesErrors](../../models/operations/GetServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesErrors.md b/docs/models/operations/GetServerActivitiesErrors.md new file mode 100644 index 00000000..f175ff51 --- /dev/null +++ b/docs/models/operations/GetServerActivitiesErrors.md @@ -0,0 +1,10 @@ +# GetServerActivitiesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesMediaContainer.md b/docs/models/operations/GetServerActivitiesMediaContainer.md new file mode 100644 index 00000000..8b776fd0 --- /dev/null +++ b/docs/models/operations/GetServerActivitiesMediaContainer.md @@ -0,0 +1,9 @@ +# GetServerActivitiesMediaContainer + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | +| `activity` | List<[org.openapis.openapi.models.operations.Activity](../../models/operations/Activity.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesResponse.md b/docs/models/operations/GetServerActivitiesResponse.md new file mode 100644 index 00000000..de1fea50 --- /dev/null +++ b/docs/models/operations/GetServerActivitiesResponse.md @@ -0,0 +1,12 @@ +# GetServerActivitiesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerActivitiesResponseBody](../../models/operations/GetServerActivitiesResponseBody.md) | :heavy_minus_sign: | The Server Activities | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerActivitiesActivitiesResponseBody](../../models/operations/GetServerActivitiesActivitiesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesResponseBody.md b/docs/models/operations/GetServerActivitiesResponseBody.md new file mode 100644 index 00000000..3430787f --- /dev/null +++ b/docs/models/operations/GetServerActivitiesResponseBody.md @@ -0,0 +1,10 @@ +# GetServerActivitiesResponseBody + +The Server Activities + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetServerActivitiesMediaContainer](../../models/operations/GetServerActivitiesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerCapabilitiesResponse.md b/docs/models/operations/GetServerCapabilitiesResponse.md new file mode 100644 index 00000000..d1f5f99b --- /dev/null +++ b/docs/models/operations/GetServerCapabilitiesResponse.md @@ -0,0 +1,12 @@ +# GetServerCapabilitiesResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerCapabilitiesResponseBody](../../models/operations/GetServerCapabilitiesResponseBody.md) | :heavy_minus_sign: | The Server Capabilities | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerCapabilitiesServerResponseBody](../../models/operations/GetServerCapabilitiesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetServerCapabilitiesResponseBody.md b/docs/models/operations/GetServerCapabilitiesResponseBody.md new file mode 100644 index 00000000..3fee85f7 --- /dev/null +++ b/docs/models/operations/GetServerCapabilitiesResponseBody.md @@ -0,0 +1,10 @@ +# GetServerCapabilitiesResponseBody + +The Server Capabilities + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.MediaContainer](../../models/operations/MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerCapabilitiesServerResponseBody.md b/docs/models/operations/GetServerCapabilitiesServerResponseBody.md new file mode 100644 index 00000000..227b1a0f --- /dev/null +++ b/docs/models/operations/GetServerCapabilitiesServerResponseBody.md @@ -0,0 +1,10 @@ +# GetServerCapabilitiesServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.Errors](../../models/operations/Errors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityErrors.md b/docs/models/operations/GetServerIdentityErrors.md new file mode 100644 index 00000000..892921d4 --- /dev/null +++ b/docs/models/operations/GetServerIdentityErrors.md @@ -0,0 +1,10 @@ +# GetServerIdentityErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityMediaContainer.md b/docs/models/operations/GetServerIdentityMediaContainer.md new file mode 100644 index 00000000..8c6c71cf --- /dev/null +++ b/docs/models/operations/GetServerIdentityMediaContainer.md @@ -0,0 +1,11 @@ +# GetServerIdentityMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | 0 | +| `claimed` | *Boolean* | :heavy_minus_sign: | N/A | | +| `machineIdentifier` | *String* | :heavy_minus_sign: | N/A | 96f2fe7a78c9dc1f16a16bedbe90f98149be16b4 | +| `version` | *String* | :heavy_minus_sign: | N/A | 1.31.3.6868-28fc46b27 | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityResponse.md b/docs/models/operations/GetServerIdentityResponse.md new file mode 100644 index 00000000..976e46c8 --- /dev/null +++ b/docs/models/operations/GetServerIdentityResponse.md @@ -0,0 +1,12 @@ +# GetServerIdentityResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerIdentityResponseBody](../../models/operations/GetServerIdentityResponseBody.md) | :heavy_minus_sign: | The Transcode Sessions | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerIdentityServerResponseBody](../../models/operations/GetServerIdentityServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityResponseBody.md b/docs/models/operations/GetServerIdentityResponseBody.md new file mode 100644 index 00000000..539ba32a --- /dev/null +++ b/docs/models/operations/GetServerIdentityResponseBody.md @@ -0,0 +1,10 @@ +# GetServerIdentityResponseBody + +The Transcode Sessions + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetServerIdentityMediaContainer](../../models/operations/GetServerIdentityMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityServerResponseBody.md b/docs/models/operations/GetServerIdentityServerResponseBody.md new file mode 100644 index 00000000..d9c68fc1 --- /dev/null +++ b/docs/models/operations/GetServerIdentityServerResponseBody.md @@ -0,0 +1,10 @@ +# GetServerIdentityServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetServerIdentityErrors](../../models/operations/GetServerIdentityErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerListErrors.md b/docs/models/operations/GetServerListErrors.md new file mode 100644 index 00000000..e1be382d --- /dev/null +++ b/docs/models/operations/GetServerListErrors.md @@ -0,0 +1,10 @@ +# GetServerListErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetServerListMediaContainer.md b/docs/models/operations/GetServerListMediaContainer.md new file mode 100644 index 00000000..d3138fcc --- /dev/null +++ b/docs/models/operations/GetServerListMediaContainer.md @@ -0,0 +1,9 @@ +# GetServerListMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `size` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `server` | List<[org.openapis.openapi.models.operations.GetServerListServer](../../models/operations/GetServerListServer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetServerListResponse.md b/docs/models/operations/GetServerListResponse.md new file mode 100644 index 00000000..1d24dac4 --- /dev/null +++ b/docs/models/operations/GetServerListResponse.md @@ -0,0 +1,12 @@ +# GetServerListResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerListResponseBody](../../models/operations/GetServerListResponseBody.md) | :heavy_minus_sign: | List of Servers | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetServerListServerResponseBody](../../models/operations/GetServerListServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetServerListResponseBody.md b/docs/models/operations/GetServerListResponseBody.md new file mode 100644 index 00000000..185f7a29 --- /dev/null +++ b/docs/models/operations/GetServerListResponseBody.md @@ -0,0 +1,10 @@ +# GetServerListResponseBody + +List of Servers + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetServerListMediaContainer](../../models/operations/GetServerListMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerListServer.md b/docs/models/operations/GetServerListServer.md new file mode 100644 index 00000000..e98b2286 --- /dev/null +++ b/docs/models/operations/GetServerListServer.md @@ -0,0 +1,13 @@ +# GetServerListServer + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `name` | *String* | :heavy_minus_sign: | N/A | Hera | +| `host` | *String* | :heavy_minus_sign: | N/A | 10.10.10.47 | +| `address` | *String* | :heavy_minus_sign: | N/A | 10.10.10.47 | +| `port` | *Double* | :heavy_minus_sign: | N/A | 32400 | +| `machineIdentifier` | *String* | :heavy_minus_sign: | N/A | 96f2fe7a78c9dc1f16a16bedbe90f98149be16b4 | +| `version` | *String* | :heavy_minus_sign: | N/A | 1.31.3.6868-28fc46b27 | \ No newline at end of file diff --git a/docs/models/operations/GetServerListServerResponseBody.md b/docs/models/operations/GetServerListServerResponseBody.md new file mode 100644 index 00000000..feafbd8e --- /dev/null +++ b/docs/models/operations/GetServerListServerResponseBody.md @@ -0,0 +1,10 @@ +# GetServerListServerResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.GetServerListErrors](../../models/operations/GetServerListErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerPreferencesErrors.md b/docs/models/operations/GetServerPreferencesErrors.md new file mode 100644 index 00000000..3c2fe155 --- /dev/null +++ b/docs/models/operations/GetServerPreferencesErrors.md @@ -0,0 +1,10 @@ +# GetServerPreferencesErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetServerPreferencesResponse.md b/docs/models/operations/GetServerPreferencesResponse.md new file mode 100644 index 00000000..f0c2a61a --- /dev/null +++ b/docs/models/operations/GetServerPreferencesResponse.md @@ -0,0 +1,11 @@ +# GetServerPreferencesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetServerPreferencesResponseBody](../../models/operations/GetServerPreferencesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetServerPreferencesResponseBody.md b/docs/models/operations/GetServerPreferencesResponseBody.md new file mode 100644 index 00000000..97f2e730 --- /dev/null +++ b/docs/models/operations/GetServerPreferencesResponseBody.md @@ -0,0 +1,10 @@ +# GetServerPreferencesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetServerPreferencesErrors](../../models/operations/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryErrors.md b/docs/models/operations/GetSessionHistoryErrors.md new file mode 100644 index 00000000..42b0275a --- /dev/null +++ b/docs/models/operations/GetSessionHistoryErrors.md @@ -0,0 +1,10 @@ +# GetSessionHistoryErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryResponse.md b/docs/models/operations/GetSessionHistoryResponse.md new file mode 100644 index 00000000..a0635d7a --- /dev/null +++ b/docs/models/operations/GetSessionHistoryResponse.md @@ -0,0 +1,11 @@ +# GetSessionHistoryResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetSessionHistoryResponseBody](../../models/operations/GetSessionHistoryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryResponseBody.md b/docs/models/operations/GetSessionHistoryResponseBody.md new file mode 100644 index 00000000..d884d5e5 --- /dev/null +++ b/docs/models/operations/GetSessionHistoryResponseBody.md @@ -0,0 +1,10 @@ +# GetSessionHistoryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetSessionHistoryErrors](../../models/operations/GetSessionHistoryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsErrors.md b/docs/models/operations/GetSessionsErrors.md new file mode 100644 index 00000000..7e890a56 --- /dev/null +++ b/docs/models/operations/GetSessionsErrors.md @@ -0,0 +1,10 @@ +# GetSessionsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsResponse.md b/docs/models/operations/GetSessionsResponse.md new file mode 100644 index 00000000..e6124d27 --- /dev/null +++ b/docs/models/operations/GetSessionsResponse.md @@ -0,0 +1,11 @@ +# GetSessionsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetSessionsResponseBody](../../models/operations/GetSessionsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsResponseBody.md b/docs/models/operations/GetSessionsResponseBody.md new file mode 100644 index 00000000..8a4e04c9 --- /dev/null +++ b/docs/models/operations/GetSessionsResponseBody.md @@ -0,0 +1,10 @@ +# GetSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetSessionsErrors](../../models/operations/GetSessionsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationErrors.md b/docs/models/operations/GetSourceConnectionInformationErrors.md new file mode 100644 index 00000000..deb31dc9 --- /dev/null +++ b/docs/models/operations/GetSourceConnectionInformationErrors.md @@ -0,0 +1,10 @@ +# GetSourceConnectionInformationErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationRequest.md b/docs/models/operations/GetSourceConnectionInformationRequest.md new file mode 100644 index 00000000..a173a061 --- /dev/null +++ b/docs/models/operations/GetSourceConnectionInformationRequest.md @@ -0,0 +1,8 @@ +# GetSourceConnectionInformationRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `source` | *String* | :heavy_check_mark: | The source identifier with an included prefix. | server://client-identifier | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationResponse.md b/docs/models/operations/GetSourceConnectionInformationResponse.md new file mode 100644 index 00000000..88045aa6 --- /dev/null +++ b/docs/models/operations/GetSourceConnectionInformationResponse.md @@ -0,0 +1,11 @@ +# GetSourceConnectionInformationResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetSourceConnectionInformationResponseBody](../../models/operations/GetSourceConnectionInformationResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationResponseBody.md b/docs/models/operations/GetSourceConnectionInformationResponseBody.md new file mode 100644 index 00000000..f301858f --- /dev/null +++ b/docs/models/operations/GetSourceConnectionInformationResponseBody.md @@ -0,0 +1,10 @@ +# GetSourceConnectionInformationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetSourceConnectionInformationErrors](../../models/operations/GetSourceConnectionInformationErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTimelineErrors.md b/docs/models/operations/GetTimelineErrors.md new file mode 100644 index 00000000..29a5f1a7 --- /dev/null +++ b/docs/models/operations/GetTimelineErrors.md @@ -0,0 +1,10 @@ +# GetTimelineErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetTimelineRequest.md b/docs/models/operations/GetTimelineRequest.md new file mode 100644 index 00000000..39ea7053 --- /dev/null +++ b/docs/models/operations/GetTimelineRequest.md @@ -0,0 +1,17 @@ +# GetTimelineRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `ratingKey` | *Double* | :heavy_check_mark: | The rating key of the media item | +| `key` | *String* | :heavy_check_mark: | The key of the media item to get the timeline for | +| `state` | [org.openapis.openapi.models.operations.State](../../models/operations/State.md) | :heavy_check_mark: | The state of the media item | +| `hasMDE` | *Double* | :heavy_check_mark: | Whether the media item has MDE | +| `time` | *Double* | :heavy_check_mark: | The time of the media item | +| `duration` | *Double* | :heavy_check_mark: | The duration of the media item | +| `context` | *String* | :heavy_check_mark: | The context of the media item | +| `playQueueItemID` | *Double* | :heavy_check_mark: | The play queue item ID of the media item | +| `playBackTime` | *Double* | :heavy_check_mark: | The playback time of the media item | +| `row` | *Double* | :heavy_check_mark: | The row of the media item | \ No newline at end of file diff --git a/docs/models/operations/GetTimelineResponse.md b/docs/models/operations/GetTimelineResponse.md new file mode 100644 index 00000000..e6b53a45 --- /dev/null +++ b/docs/models/operations/GetTimelineResponse.md @@ -0,0 +1,11 @@ +# GetTimelineResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetTimelineResponseBody](../../models/operations/GetTimelineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetTimelineResponseBody.md b/docs/models/operations/GetTimelineResponseBody.md new file mode 100644 index 00000000..ce01a351 --- /dev/null +++ b/docs/models/operations/GetTimelineResponseBody.md @@ -0,0 +1,10 @@ +# GetTimelineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetTimelineErrors](../../models/operations/GetTimelineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsErrors.md b/docs/models/operations/GetTranscodeSessionsErrors.md new file mode 100644 index 00000000..3e8759d3 --- /dev/null +++ b/docs/models/operations/GetTranscodeSessionsErrors.md @@ -0,0 +1,10 @@ +# GetTranscodeSessionsErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsMediaContainer.md b/docs/models/operations/GetTranscodeSessionsMediaContainer.md new file mode 100644 index 00000000..0a2539ae --- /dev/null +++ b/docs/models/operations/GetTranscodeSessionsMediaContainer.md @@ -0,0 +1,9 @@ +# GetTranscodeSessionsMediaContainer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `size` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `transcodeSession` | List<[org.openapis.openapi.models.operations.TranscodeSession](../../models/operations/TranscodeSession.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsResponse.md b/docs/models/operations/GetTranscodeSessionsResponse.md new file mode 100644 index 00000000..5a301b0b --- /dev/null +++ b/docs/models/operations/GetTranscodeSessionsResponse.md @@ -0,0 +1,12 @@ +# GetTranscodeSessionsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `twoHundredApplicationJsonObject` | [org.openapis.openapi.models.operations.GetTranscodeSessionsResponseBody](../../models/operations/GetTranscodeSessionsResponseBody.md) | :heavy_minus_sign: | The Transcode Sessions | +| `fourHundredAndOneApplicationJsonObject` | [org.openapis.openapi.models.operations.GetTranscodeSessionsSessionsResponseBody](../../models/operations/GetTranscodeSessionsSessionsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsResponseBody.md b/docs/models/operations/GetTranscodeSessionsResponseBody.md new file mode 100644 index 00000000..8e7eadf8 --- /dev/null +++ b/docs/models/operations/GetTranscodeSessionsResponseBody.md @@ -0,0 +1,10 @@ +# GetTranscodeSessionsResponseBody + +The Transcode Sessions + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetTranscodeSessionsMediaContainer](../../models/operations/GetTranscodeSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsSessionsResponseBody.md b/docs/models/operations/GetTranscodeSessionsSessionsResponseBody.md new file mode 100644 index 00000000..fff15ccf --- /dev/null +++ b/docs/models/operations/GetTranscodeSessionsSessionsResponseBody.md @@ -0,0 +1,10 @@ +# GetTranscodeSessionsSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetTranscodeSessionsErrors](../../models/operations/GetTranscodeSessionsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenErrors.md b/docs/models/operations/GetTransientTokenErrors.md new file mode 100644 index 00000000..b2bbd9fd --- /dev/null +++ b/docs/models/operations/GetTransientTokenErrors.md @@ -0,0 +1,10 @@ +# GetTransientTokenErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenRequest.md b/docs/models/operations/GetTransientTokenRequest.md new file mode 100644 index 00000000..09c42ac2 --- /dev/null +++ b/docs/models/operations/GetTransientTokenRequest.md @@ -0,0 +1,9 @@ +# GetTransientTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `type` | [org.openapis.openapi.models.operations.QueryParamType](../../models/operations/QueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [org.openapis.openapi.models.operations.Scope](../../models/operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenResponse.md b/docs/models/operations/GetTransientTokenResponse.md new file mode 100644 index 00000000..9770a0b5 --- /dev/null +++ b/docs/models/operations/GetTransientTokenResponse.md @@ -0,0 +1,11 @@ +# GetTransientTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetTransientTokenResponseBody](../../models/operations/GetTransientTokenResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenResponseBody.md b/docs/models/operations/GetTransientTokenResponseBody.md new file mode 100644 index 00000000..72210df3 --- /dev/null +++ b/docs/models/operations/GetTransientTokenResponseBody.md @@ -0,0 +1,10 @@ +# GetTransientTokenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetTransientTokenErrors](../../models/operations/GetTransientTokenErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetUpdateStatusErrors.md b/docs/models/operations/GetUpdateStatusErrors.md new file mode 100644 index 00000000..b13dd761 --- /dev/null +++ b/docs/models/operations/GetUpdateStatusErrors.md @@ -0,0 +1,10 @@ +# GetUpdateStatusErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/GetUpdateStatusResponse.md b/docs/models/operations/GetUpdateStatusResponse.md new file mode 100644 index 00000000..28d67888 --- /dev/null +++ b/docs/models/operations/GetUpdateStatusResponse.md @@ -0,0 +1,11 @@ +# GetUpdateStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.GetUpdateStatusResponseBody](../../models/operations/GetUpdateStatusResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/GetUpdateStatusResponseBody.md b/docs/models/operations/GetUpdateStatusResponseBody.md new file mode 100644 index 00000000..54ca32fd --- /dev/null +++ b/docs/models/operations/GetUpdateStatusResponseBody.md @@ -0,0 +1,10 @@ +# GetUpdateStatusResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.GetUpdateStatusErrors](../../models/operations/GetUpdateStatusErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Guids.md b/docs/models/operations/Guids.md new file mode 100644 index 00000000..30bfcaa2 --- /dev/null +++ b/docs/models/operations/Guids.md @@ -0,0 +1,8 @@ +# Guids + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *String* | :heavy_minus_sign: | N/A | imdb://tt13303712 | \ No newline at end of file diff --git a/docs/models/operations/IncludeDetails.md b/docs/models/operations/IncludeDetails.md new file mode 100644 index 00000000..55129417 --- /dev/null +++ b/docs/models/operations/IncludeDetails.md @@ -0,0 +1,13 @@ +# IncludeDetails + +Whether or not to include details for a section (types, filters, and sorts). +Only exists for backwards compatibility, media providers other than the server libraries have it on always. + + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Level.md b/docs/models/operations/Level.md new file mode 100644 index 00000000..98b37615 --- /dev/null +++ b/docs/models/operations/Level.md @@ -0,0 +1,20 @@ +# Level + +An integer log level to write to the PMS log with. +0: Error +1: Warning +2: Info +3: Debug +4: Verbose + + + +## Values + +| Name | Value | +| ------- | ------- | +| `ZERO` | 0 | +| `ONE` | 1 | +| `TWO` | 2 | +| `THREE` | 3 | +| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/LogLineErrors.md b/docs/models/operations/LogLineErrors.md new file mode 100644 index 00000000..d7963955 --- /dev/null +++ b/docs/models/operations/LogLineErrors.md @@ -0,0 +1,10 @@ +# LogLineErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/LogLineRequest.md b/docs/models/operations/LogLineRequest.md new file mode 100644 index 00000000..f0ba13ba --- /dev/null +++ b/docs/models/operations/LogLineRequest.md @@ -0,0 +1,10 @@ +# LogLineRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `level` | [org.openapis.openapi.models.operations.Level](../../models/operations/Level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | +| `message` | *String* | :heavy_check_mark: | The text of the message to write to the log. | | +| `source` | *String* | :heavy_check_mark: | a string indicating the source of the message. | | \ No newline at end of file diff --git a/docs/models/operations/LogLineResponse.md b/docs/models/operations/LogLineResponse.md new file mode 100644 index 00000000..ff3adb00 --- /dev/null +++ b/docs/models/operations/LogLineResponse.md @@ -0,0 +1,11 @@ +# LogLineResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.LogLineResponseBody](../../models/operations/LogLineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/LogLineResponseBody.md b/docs/models/operations/LogLineResponseBody.md new file mode 100644 index 00000000..e1e4de6d --- /dev/null +++ b/docs/models/operations/LogLineResponseBody.md @@ -0,0 +1,10 @@ +# LogLineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.LogLineErrors](../../models/operations/LogLineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/LogMultiLineErrors.md b/docs/models/operations/LogMultiLineErrors.md new file mode 100644 index 00000000..18bcdfe2 --- /dev/null +++ b/docs/models/operations/LogMultiLineErrors.md @@ -0,0 +1,10 @@ +# LogMultiLineErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/LogMultiLineResponse.md b/docs/models/operations/LogMultiLineResponse.md new file mode 100644 index 00000000..91d66092 --- /dev/null +++ b/docs/models/operations/LogMultiLineResponse.md @@ -0,0 +1,11 @@ +# LogMultiLineResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.LogMultiLineResponseBody](../../models/operations/LogMultiLineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/LogMultiLineResponseBody.md b/docs/models/operations/LogMultiLineResponseBody.md new file mode 100644 index 00000000..a2798ea3 --- /dev/null +++ b/docs/models/operations/LogMultiLineResponseBody.md @@ -0,0 +1,10 @@ +# LogMultiLineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.LogMultiLineErrors](../../models/operations/LogMultiLineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedErrors.md b/docs/models/operations/MarkPlayedErrors.md new file mode 100644 index 00000000..a5efd4f4 --- /dev/null +++ b/docs/models/operations/MarkPlayedErrors.md @@ -0,0 +1,10 @@ +# MarkPlayedErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedRequest.md b/docs/models/operations/MarkPlayedRequest.md new file mode 100644 index 00000000..7a7e1e87 --- /dev/null +++ b/docs/models/operations/MarkPlayedRequest.md @@ -0,0 +1,8 @@ +# MarkPlayedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `key` | *Double* | :heavy_check_mark: | The media key to mark as played | 59398 | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedResponse.md b/docs/models/operations/MarkPlayedResponse.md new file mode 100644 index 00000000..eb000d1a --- /dev/null +++ b/docs/models/operations/MarkPlayedResponse.md @@ -0,0 +1,11 @@ +# MarkPlayedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.MarkPlayedResponseBody](../../models/operations/MarkPlayedResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedResponseBody.md b/docs/models/operations/MarkPlayedResponseBody.md new file mode 100644 index 00000000..b25bf293 --- /dev/null +++ b/docs/models/operations/MarkPlayedResponseBody.md @@ -0,0 +1,10 @@ +# MarkPlayedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.MarkPlayedErrors](../../models/operations/MarkPlayedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedErrors.md b/docs/models/operations/MarkUnplayedErrors.md new file mode 100644 index 00000000..9d73acad --- /dev/null +++ b/docs/models/operations/MarkUnplayedErrors.md @@ -0,0 +1,10 @@ +# MarkUnplayedErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedRequest.md b/docs/models/operations/MarkUnplayedRequest.md new file mode 100644 index 00000000..aef06ee9 --- /dev/null +++ b/docs/models/operations/MarkUnplayedRequest.md @@ -0,0 +1,8 @@ +# MarkUnplayedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `key` | *Double* | :heavy_check_mark: | The media key to mark as Unplayed | 59398 | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedResponse.md b/docs/models/operations/MarkUnplayedResponse.md new file mode 100644 index 00000000..5ed2947c --- /dev/null +++ b/docs/models/operations/MarkUnplayedResponse.md @@ -0,0 +1,11 @@ +# MarkUnplayedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.MarkUnplayedResponseBody](../../models/operations/MarkUnplayedResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedResponseBody.md b/docs/models/operations/MarkUnplayedResponseBody.md new file mode 100644 index 00000000..d58caffe --- /dev/null +++ b/docs/models/operations/MarkUnplayedResponseBody.md @@ -0,0 +1,10 @@ +# MarkUnplayedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.MarkUnplayedErrors](../../models/operations/MarkUnplayedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Media.md b/docs/models/operations/Media.md new file mode 100644 index 00000000..8b65b7de --- /dev/null +++ b/docs/models/operations/Media.md @@ -0,0 +1,23 @@ +# Media + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `id` | *Double* | :heavy_minus_sign: | N/A | 120345 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 7474422 | +| `bitrate` | *Double* | :heavy_minus_sign: | N/A | 3623 | +| `width` | *Double* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *Double* | :heavy_minus_sign: | N/A | 804 | +| `aspectRatio` | *Double* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *Double* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *String* | :heavy_minus_sign: | N/A | ac3 | +| `videoCodec` | *String* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *Double* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *String* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *String* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *Double* | :heavy_minus_sign: | N/A | 0 | +| `has64bitOffsets` | *Boolean* | :heavy_minus_sign: | N/A | | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | high | +| `part` | List<[org.openapis.openapi.models.operations.Part](../../models/operations/Part.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/MediaContainer.md b/docs/models/operations/MediaContainer.md new file mode 100644 index 00000000..ea21f698 --- /dev/null +++ b/docs/models/operations/MediaContainer.md @@ -0,0 +1,58 @@ +# MediaContainer + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `size` | *Double* | :heavy_minus_sign: | N/A | +| `allowCameraUpload` | *Boolean* | :heavy_minus_sign: | N/A | +| `allowChannelAccess` | *Boolean* | :heavy_minus_sign: | N/A | +| `allowMediaDeletion` | *Boolean* | :heavy_minus_sign: | N/A | +| `allowSharing` | *Boolean* | :heavy_minus_sign: | N/A | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | +| `allowTuners` | *Boolean* | :heavy_minus_sign: | N/A | +| `backgroundProcessing` | *Boolean* | :heavy_minus_sign: | N/A | +| `certificate` | *Boolean* | :heavy_minus_sign: | N/A | +| `companionProxy` | *Boolean* | :heavy_minus_sign: | N/A | +| `countryCode` | *String* | :heavy_minus_sign: | N/A | +| `diagnostics` | *String* | :heavy_minus_sign: | N/A | +| `eventStream` | *Boolean* | :heavy_minus_sign: | N/A | +| `friendlyName` | *String* | :heavy_minus_sign: | N/A | +| `hubSearch` | *Boolean* | :heavy_minus_sign: | N/A | +| `itemClusters` | *Boolean* | :heavy_minus_sign: | N/A | +| `livetv` | *Double* | :heavy_minus_sign: | N/A | +| `machineIdentifier` | *String* | :heavy_minus_sign: | N/A | +| `mediaProviders` | *Boolean* | :heavy_minus_sign: | N/A | +| `multiuser` | *Boolean* | :heavy_minus_sign: | N/A | +| `musicAnalysis` | *Double* | :heavy_minus_sign: | N/A | +| `myPlex` | *Boolean* | :heavy_minus_sign: | N/A | +| `myPlexMappingState` | *String* | :heavy_minus_sign: | N/A | +| `myPlexSigninState` | *String* | :heavy_minus_sign: | N/A | +| `myPlexSubscription` | *Boolean* | :heavy_minus_sign: | N/A | +| `myPlexUsername` | *String* | :heavy_minus_sign: | N/A | +| `offlineTranscode` | *Double* | :heavy_minus_sign: | N/A | +| `ownerFeatures` | *String* | :heavy_minus_sign: | N/A | +| `photoAutoTag` | *Boolean* | :heavy_minus_sign: | N/A | +| `platform` | *String* | :heavy_minus_sign: | N/A | +| `platformVersion` | *String* | :heavy_minus_sign: | N/A | +| `pluginHost` | *Boolean* | :heavy_minus_sign: | N/A | +| `pushNotifications` | *Boolean* | :heavy_minus_sign: | N/A | +| `readOnlyLibraries` | *Boolean* | :heavy_minus_sign: | N/A | +| `streamingBrainABRVersion` | *Double* | :heavy_minus_sign: | N/A | +| `streamingBrainVersion` | *Double* | :heavy_minus_sign: | N/A | +| `sync` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderActiveVideoSessions` | *Double* | :heavy_minus_sign: | N/A | +| `transcoderAudio` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderLyrics` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderPhoto` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderSubtitles` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideo` | *Boolean* | :heavy_minus_sign: | N/A | +| `transcoderVideoBitrates` | *String* | :heavy_minus_sign: | N/A | +| `transcoderVideoQualities` | *String* | :heavy_minus_sign: | N/A | +| `transcoderVideoResolutions` | *String* | :heavy_minus_sign: | N/A | +| `updatedAt` | *Double* | :heavy_minus_sign: | N/A | +| `updater` | *Boolean* | :heavy_minus_sign: | N/A | +| `version` | *String* | :heavy_minus_sign: | N/A | +| `voiceSearch` | *Boolean* | :heavy_minus_sign: | N/A | +| `directory` | List<[org.openapis.openapi.models.operations.Directory](../../models/operations/Directory.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Metadata.md b/docs/models/operations/Metadata.md new file mode 100644 index 00000000..932ae58d --- /dev/null +++ b/docs/models/operations/Metadata.md @@ -0,0 +1,39 @@ +# Metadata + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowSync` | *Boolean* | :heavy_minus_sign: | N/A | | +| `librarySectionID` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *String* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *String* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `ratingKey` | *Double* | :heavy_minus_sign: | N/A | 59398 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/metadata/59398 | +| `guid` | *String* | :heavy_minus_sign: | N/A | plex://movie/5e161a83bea6ac004126e148 | +| `studio` | *String* | :heavy_minus_sign: | N/A | Marvel Studios | +| `type` | *String* | :heavy_minus_sign: | N/A | movie | +| `title` | *String* | :heavy_minus_sign: | N/A | Ant-Man and the Wasp: Quantumania | +| `contentRating` | *String* | :heavy_minus_sign: | N/A | PG-13 | +| `summary` | *String* | :heavy_minus_sign: | N/A | Scott Lang and Hope Van Dyne along with Hank Pym and Janet Van Dyne explore the Quantum Realm where they interact with strange creatures and embark on an adventure that goes beyond the limits of what they thought was possible. | +| `rating` | *Double* | :heavy_minus_sign: | N/A | 4.7 | +| `audienceRating` | *Double* | :heavy_minus_sign: | N/A | 8.3 | +| `year` | *Double* | :heavy_minus_sign: | N/A | 2023 | +| `tagline` | *String* | :heavy_minus_sign: | N/A | Witness the beginning of a new dynasty. | +| `thumb` | *String* | :heavy_minus_sign: | N/A | /library/metadata/59398/thumb/1681888010 | +| `art` | *String* | :heavy_minus_sign: | N/A | /library/metadata/59398/art/1681888010 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 7474422 | +| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-02-15 00:00:00 +0000 UTC | +| `addedAt` | *Double* | :heavy_minus_sign: | N/A | 1681803215 | +| `updatedAt` | *Double* | :heavy_minus_sign: | N/A | 1681888010 | +| `audienceRatingImage` | *String* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | +| `chapterSource` | *String* | :heavy_minus_sign: | N/A | media | +| `primaryExtraKey` | *String* | :heavy_minus_sign: | N/A | /library/metadata/59399 | +| `ratingImage` | *String* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.rotten | +| `media` | List<[org.openapis.openapi.models.operations.Media](../../models/operations/Media.md)> | :heavy_minus_sign: | N/A | | +| `genre` | List<[org.openapis.openapi.models.operations.Genre](../../models/operations/Genre.md)> | :heavy_minus_sign: | N/A | | +| `director` | List<[org.openapis.openapi.models.operations.Director](../../models/operations/Director.md)> | :heavy_minus_sign: | N/A | | +| `writer` | List<[org.openapis.openapi.models.operations.Writer](../../models/operations/Writer.md)> | :heavy_minus_sign: | N/A | | +| `country` | List<[org.openapis.openapi.models.operations.Country](../../models/operations/Country.md)> | :heavy_minus_sign: | N/A | | +| `role` | List<[org.openapis.openapi.models.operations.Role](../../models/operations/Role.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/MinSize.md b/docs/models/operations/MinSize.md new file mode 100644 index 00000000..815444ca --- /dev/null +++ b/docs/models/operations/MinSize.md @@ -0,0 +1,11 @@ +# MinSize + +images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/MyPlex.md b/docs/models/operations/MyPlex.md new file mode 100644 index 00000000..8614e8db --- /dev/null +++ b/docs/models/operations/MyPlex.md @@ -0,0 +1,19 @@ +# MyPlex + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authToken` | *String* | :heavy_minus_sign: | N/A | Z5v-PrNASDFpsaCi3CPK7 | +| `username` | *String* | :heavy_minus_sign: | N/A | example.email@mail.com | +| `mappingState` | *String* | :heavy_minus_sign: | N/A | mapped | +| `mappingError` | *String* | :heavy_minus_sign: | N/A | | +| `signInState` | *String* | :heavy_minus_sign: | N/A | ok | +| `publicAddress` | *String* | :heavy_minus_sign: | N/A | 140.20.68.140 | +| `publicPort` | *Double* | :heavy_minus_sign: | N/A | 32400 | +| `privateAddress` | *String* | :heavy_minus_sign: | N/A | 10.10.10.47 | +| `privatePort` | *Double* | :heavy_minus_sign: | N/A | 32400 | +| `subscriptionFeatures` | *String* | :heavy_minus_sign: | N/A | federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks | +| `subscriptionActive` | *Boolean* | :heavy_minus_sign: | N/A | | +| `subscriptionState` | *String* | :heavy_minus_sign: | N/A | Active | \ No newline at end of file diff --git a/docs/models/operations/OnlyTransient.md b/docs/models/operations/OnlyTransient.md new file mode 100644 index 00000000..c91d3d73 --- /dev/null +++ b/docs/models/operations/OnlyTransient.md @@ -0,0 +1,11 @@ +# OnlyTransient + +Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Part.md b/docs/models/operations/Part.md new file mode 100644 index 00000000..e82788e5 --- /dev/null +++ b/docs/models/operations/Part.md @@ -0,0 +1,17 @@ +# Part + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `id` | *Double* | :heavy_minus_sign: | N/A | 120353 | +| `key` | *String* | :heavy_minus_sign: | N/A | /library/parts/120353/1681803203/file.mp4 | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 7474422 | +| `file` | *String* | :heavy_minus_sign: | N/A | /movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4 | +| `size` | *Double* | :heavy_minus_sign: | N/A | 3395307162 | +| `container` | *String* | :heavy_minus_sign: | N/A | mp4 | +| `has64bitOffsets` | *Boolean* | :heavy_minus_sign: | N/A | | +| `hasThumbnail` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `optimizedForStreaming` | *Boolean* | :heavy_minus_sign: | N/A | | +| `videoProfile` | *String* | :heavy_minus_sign: | N/A | high | \ No newline at end of file diff --git a/docs/models/operations/PathParamTaskName.md b/docs/models/operations/PathParamTaskName.md new file mode 100644 index 00000000..87cffd14 --- /dev/null +++ b/docs/models/operations/PathParamTaskName.md @@ -0,0 +1,23 @@ +# PathParamTaskName + +The name of the task to be started. + + +## Values + +| Name | Value | +| ----------------------------- | ----------------------------- | +| `BACKUP_DATABASE` | BackupDatabase | +| `BUILD_GRACENOTE_COLLECTIONS` | BuildGracenoteCollections | +| `CHECK_FOR_UPDATES` | CheckForUpdates | +| `CLEAN_OLD_BUNDLES` | CleanOldBundles | +| `CLEAN_OLD_CACHE_FILES` | CleanOldCacheFiles | +| `DEEP_MEDIA_ANALYSIS` | DeepMediaAnalysis | +| `GENERATE_AUTO_TAGS` | GenerateAutoTags | +| `GENERATE_CHAPTER_THUMBS` | GenerateChapterThumbs | +| `GENERATE_MEDIA_INDEX_FILES` | GenerateMediaIndexFiles | +| `OPTIMIZE_DATABASE` | OptimizeDatabase | +| `REFRESH_LIBRARIES` | RefreshLibraries | +| `REFRESH_LOCAL_MEDIA` | RefreshLocalMedia | +| `REFRESH_PERIODIC_METADATA` | RefreshPeriodicMetadata | +| `UPGRADE_MEDIA_ANALYSIS` | UpgradeMediaAnalysis | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchErrors.md b/docs/models/operations/PerformSearchErrors.md new file mode 100644 index 00000000..848ae874 --- /dev/null +++ b/docs/models/operations/PerformSearchErrors.md @@ -0,0 +1,10 @@ +# PerformSearchErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchRequest.md b/docs/models/operations/PerformSearchRequest.md new file mode 100644 index 00000000..71a9ea41 --- /dev/null +++ b/docs/models/operations/PerformSearchRequest.md @@ -0,0 +1,10 @@ +# PerformSearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `query` | *String* | :heavy_check_mark: | The query term | arnold | +| `sectionId` | *Double* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | +| `limit` | *Double* | :heavy_minus_sign: | The number of items to return per hub | 5 | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchResponse.md b/docs/models/operations/PerformSearchResponse.md new file mode 100644 index 00000000..64b8e510 --- /dev/null +++ b/docs/models/operations/PerformSearchResponse.md @@ -0,0 +1,11 @@ +# PerformSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.PerformSearchResponseBody](../../models/operations/PerformSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchResponseBody.md b/docs/models/operations/PerformSearchResponseBody.md new file mode 100644 index 00000000..b744a954 --- /dev/null +++ b/docs/models/operations/PerformSearchResponseBody.md @@ -0,0 +1,10 @@ +# PerformSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.PerformSearchErrors](../../models/operations/PerformSearchErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchErrors.md b/docs/models/operations/PerformVoiceSearchErrors.md new file mode 100644 index 00000000..9459cd08 --- /dev/null +++ b/docs/models/operations/PerformVoiceSearchErrors.md @@ -0,0 +1,10 @@ +# PerformVoiceSearchErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchRequest.md b/docs/models/operations/PerformVoiceSearchRequest.md new file mode 100644 index 00000000..f4cb2f7c --- /dev/null +++ b/docs/models/operations/PerformVoiceSearchRequest.md @@ -0,0 +1,10 @@ +# PerformVoiceSearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `query` | *String* | :heavy_check_mark: | The query term | dead+poop | +| `sectionId` | *Double* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | +| `limit` | *Double* | :heavy_minus_sign: | The number of items to return per hub | 5 | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchResponse.md b/docs/models/operations/PerformVoiceSearchResponse.md new file mode 100644 index 00000000..a9fb4feb --- /dev/null +++ b/docs/models/operations/PerformVoiceSearchResponse.md @@ -0,0 +1,11 @@ +# PerformVoiceSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.PerformVoiceSearchResponseBody](../../models/operations/PerformVoiceSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchResponseBody.md b/docs/models/operations/PerformVoiceSearchResponseBody.md new file mode 100644 index 00000000..a92de25d --- /dev/null +++ b/docs/models/operations/PerformVoiceSearchResponseBody.md @@ -0,0 +1,10 @@ +# PerformVoiceSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.PerformVoiceSearchErrors](../../models/operations/PerformVoiceSearchErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/PlaylistType.md b/docs/models/operations/PlaylistType.md new file mode 100644 index 00000000..276ac5f7 --- /dev/null +++ b/docs/models/operations/PlaylistType.md @@ -0,0 +1,12 @@ +# PlaylistType + +limit to a type of playlist. + + +## Values + +| Name | Value | +| ------- | ------- | +| `AUDIO` | audio | +| `VIDEO` | video | +| `PHOTO` | photo | \ No newline at end of file diff --git a/docs/models/operations/Provider.md b/docs/models/operations/Provider.md new file mode 100644 index 00000000..4bec09d4 --- /dev/null +++ b/docs/models/operations/Provider.md @@ -0,0 +1,10 @@ +# Provider + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `key` | *String* | :heavy_minus_sign: | N/A | /system/search | +| `title` | *String* | :heavy_minus_sign: | N/A | Local Network | +| `type` | *String* | :heavy_minus_sign: | N/A | mixed | \ No newline at end of file diff --git a/docs/models/operations/QueryParamOnlyTransient.md b/docs/models/operations/QueryParamOnlyTransient.md new file mode 100644 index 00000000..6c2e1403 --- /dev/null +++ b/docs/models/operations/QueryParamOnlyTransient.md @@ -0,0 +1,11 @@ +# QueryParamOnlyTransient + +Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/QueryParamSmart.md b/docs/models/operations/QueryParamSmart.md new file mode 100644 index 00000000..bb53a11a --- /dev/null +++ b/docs/models/operations/QueryParamSmart.md @@ -0,0 +1,11 @@ +# QueryParamSmart + +type of playlists to return (default is all). + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/QueryParamType.md b/docs/models/operations/QueryParamType.md new file mode 100644 index 00000000..45706ddc --- /dev/null +++ b/docs/models/operations/QueryParamType.md @@ -0,0 +1,10 @@ +# QueryParamType + +`delegation` - This is the only supported `type` parameter. + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `DELEGATION` | delegation | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryErrors.md b/docs/models/operations/RefreshLibraryErrors.md new file mode 100644 index 00000000..edf62cb3 --- /dev/null +++ b/docs/models/operations/RefreshLibraryErrors.md @@ -0,0 +1,10 @@ +# RefreshLibraryErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryRequest.md b/docs/models/operations/RefreshLibraryRequest.md new file mode 100644 index 00000000..b62d56bb --- /dev/null +++ b/docs/models/operations/RefreshLibraryRequest.md @@ -0,0 +1,8 @@ +# RefreshLibraryRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `sectionId` | *Double* | :heavy_check_mark: | the Id of the library to refresh | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryResponse.md b/docs/models/operations/RefreshLibraryResponse.md new file mode 100644 index 00000000..d3375e7a --- /dev/null +++ b/docs/models/operations/RefreshLibraryResponse.md @@ -0,0 +1,11 @@ +# RefreshLibraryResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.RefreshLibraryResponseBody](../../models/operations/RefreshLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryResponseBody.md b/docs/models/operations/RefreshLibraryResponseBody.md new file mode 100644 index 00000000..621127ff --- /dev/null +++ b/docs/models/operations/RefreshLibraryResponseBody.md @@ -0,0 +1,10 @@ +# RefreshLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.RefreshLibraryErrors](../../models/operations/RefreshLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ResponseBody.md b/docs/models/operations/ResponseBody.md new file mode 100644 index 00000000..caab5612 --- /dev/null +++ b/docs/models/operations/ResponseBody.md @@ -0,0 +1,8 @@ +# ResponseBody + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [org.openapis.openapi.models.operations.GetAvailableClientsMediaContainer](../../models/operations/GetAvailableClientsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Role.md b/docs/models/operations/Role.md new file mode 100644 index 00000000..860e2212 --- /dev/null +++ b/docs/models/operations/Role.md @@ -0,0 +1,8 @@ +# Role + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Paul Rudd | \ No newline at end of file diff --git a/docs/models/operations/Scope.md b/docs/models/operations/Scope.md new file mode 100644 index 00000000..dfa16809 --- /dev/null +++ b/docs/models/operations/Scope.md @@ -0,0 +1,10 @@ +# Scope + +`all` - This is the only supported `scope` parameter. + + +## Values + +| Name | Value | +| ----- | ----- | +| `ALL` | all | \ No newline at end of file diff --git a/docs/models/operations/Server.md b/docs/models/operations/Server.md new file mode 100644 index 00000000..8bab4fb1 --- /dev/null +++ b/docs/models/operations/Server.md @@ -0,0 +1,18 @@ +# Server + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `name` | *String* | :heavy_minus_sign: | N/A | iPad | +| `host` | *String* | :heavy_minus_sign: | N/A | 10.10.10.102 | +| `address` | *String* | :heavy_minus_sign: | N/A | 10.10.10.102 | +| `port` | *Double* | :heavy_minus_sign: | N/A | 32500 | +| `machineIdentifier` | *String* | :heavy_minus_sign: | N/A | A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05 | +| `version` | *String* | :heavy_minus_sign: | N/A | 8.17 | +| `protocol` | *String* | :heavy_minus_sign: | N/A | plex | +| `product` | *String* | :heavy_minus_sign: | N/A | Plex for iOS | +| `deviceClass` | *String* | :heavy_minus_sign: | N/A | tablet | +| `protocolVersion` | *Double* | :heavy_minus_sign: | N/A | 2 | +| `protocolCapabilities` | *String* | :heavy_minus_sign: | N/A | playback,playqueues,timeline,provider-playback | \ No newline at end of file diff --git a/docs/models/operations/Skip.md b/docs/models/operations/Skip.md new file mode 100644 index 00000000..5e71f0e6 --- /dev/null +++ b/docs/models/operations/Skip.md @@ -0,0 +1,11 @@ +# Skip + +Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Smart.md b/docs/models/operations/Smart.md new file mode 100644 index 00000000..a4d5e784 --- /dev/null +++ b/docs/models/operations/Smart.md @@ -0,0 +1,11 @@ +# Smart + +whether the playlist is smart or not + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/StartAllTasksErrors.md b/docs/models/operations/StartAllTasksErrors.md new file mode 100644 index 00000000..aa6558c5 --- /dev/null +++ b/docs/models/operations/StartAllTasksErrors.md @@ -0,0 +1,10 @@ +# StartAllTasksErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StartAllTasksResponse.md b/docs/models/operations/StartAllTasksResponse.md new file mode 100644 index 00000000..4c4f257a --- /dev/null +++ b/docs/models/operations/StartAllTasksResponse.md @@ -0,0 +1,11 @@ +# StartAllTasksResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StartAllTasksResponseBody](../../models/operations/StartAllTasksResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StartAllTasksResponseBody.md b/docs/models/operations/StartAllTasksResponseBody.md new file mode 100644 index 00000000..9b3e3a43 --- /dev/null +++ b/docs/models/operations/StartAllTasksResponseBody.md @@ -0,0 +1,10 @@ +# StartAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `errors` | List<[org.openapis.openapi.models.operations.StartAllTasksErrors](../../models/operations/StartAllTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/StartTaskErrors.md b/docs/models/operations/StartTaskErrors.md new file mode 100644 index 00000000..2e395eb5 --- /dev/null +++ b/docs/models/operations/StartTaskErrors.md @@ -0,0 +1,10 @@ +# StartTaskErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StartTaskRequest.md b/docs/models/operations/StartTaskRequest.md new file mode 100644 index 00000000..30fd1e91 --- /dev/null +++ b/docs/models/operations/StartTaskRequest.md @@ -0,0 +1,8 @@ +# StartTaskRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `taskName` | [org.openapis.openapi.models.operations.TaskName](../../models/operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | \ No newline at end of file diff --git a/docs/models/operations/StartTaskResponse.md b/docs/models/operations/StartTaskResponse.md new file mode 100644 index 00000000..0c7d2ee7 --- /dev/null +++ b/docs/models/operations/StartTaskResponse.md @@ -0,0 +1,11 @@ +# StartTaskResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StartTaskResponseBody](../../models/operations/StartTaskResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StartTaskResponseBody.md b/docs/models/operations/StartTaskResponseBody.md new file mode 100644 index 00000000..9ea78d32 --- /dev/null +++ b/docs/models/operations/StartTaskResponseBody.md @@ -0,0 +1,10 @@ +# StartTaskResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.StartTaskErrors](../../models/operations/StartTaskErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeErrors.md b/docs/models/operations/StartUniversalTranscodeErrors.md new file mode 100644 index 00000000..91f184a4 --- /dev/null +++ b/docs/models/operations/StartUniversalTranscodeErrors.md @@ -0,0 +1,10 @@ +# StartUniversalTranscodeErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeRequest.md b/docs/models/operations/StartUniversalTranscodeRequest.md new file mode 100644 index 00000000..8003958a --- /dev/null +++ b/docs/models/operations/StartUniversalTranscodeRequest.md @@ -0,0 +1,23 @@ +# StartUniversalTranscodeRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `hasMDE` | *Double* | :heavy_check_mark: | Whether the media item has MDE | +| `path` | *String* | :heavy_check_mark: | The path to the media item to transcode | +| `mediaIndex` | *Double* | :heavy_check_mark: | The index of the media item to transcode | +| `partIndex` | *Double* | :heavy_check_mark: | The index of the part to transcode | +| `protocol` | *String* | :heavy_check_mark: | The protocol to use for the transcode session | +| `fastSeek` | *Double* | :heavy_minus_sign: | Whether to use fast seek or not | +| `directPlay` | *Double* | :heavy_minus_sign: | Whether to use direct play or not | +| `directStream` | *Double* | :heavy_minus_sign: | Whether to use direct stream or not | +| `subtitleSize` | *Double* | :heavy_minus_sign: | The size of the subtitles | +| `subtites` | *String* | :heavy_minus_sign: | The subtitles | +| `audioBoost` | *Double* | :heavy_minus_sign: | The audio boost | +| `location` | *String* | :heavy_minus_sign: | The location of the transcode session | +| `mediaBufferSize` | *Double* | :heavy_minus_sign: | The size of the media buffer | +| `session` | *String* | :heavy_minus_sign: | The session ID | +| `addDebugOverlay` | *Double* | :heavy_minus_sign: | Whether to add a debug overlay or not | +| `autoAdjustQuality` | *Double* | :heavy_minus_sign: | Whether to auto adjust quality or not | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeResponse.md b/docs/models/operations/StartUniversalTranscodeResponse.md new file mode 100644 index 00000000..dae8e3ff --- /dev/null +++ b/docs/models/operations/StartUniversalTranscodeResponse.md @@ -0,0 +1,11 @@ +# StartUniversalTranscodeResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StartUniversalTranscodeResponseBody](../../models/operations/StartUniversalTranscodeResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeResponseBody.md b/docs/models/operations/StartUniversalTranscodeResponseBody.md new file mode 100644 index 00000000..3b5d05fd --- /dev/null +++ b/docs/models/operations/StartUniversalTranscodeResponseBody.md @@ -0,0 +1,10 @@ +# StartUniversalTranscodeResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.StartUniversalTranscodeErrors](../../models/operations/StartUniversalTranscodeErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/State.md b/docs/models/operations/State.md new file mode 100644 index 00000000..f4f712a5 --- /dev/null +++ b/docs/models/operations/State.md @@ -0,0 +1,12 @@ +# State + +The state of the media item + + +## Values + +| Name | Value | +| --------- | --------- | +| `PLAYING` | playing | +| `PAUSED` | paused | +| `STOPPED` | stopped | \ No newline at end of file diff --git a/docs/models/operations/StopAllTasksErrors.md b/docs/models/operations/StopAllTasksErrors.md new file mode 100644 index 00000000..fe9fdc5b --- /dev/null +++ b/docs/models/operations/StopAllTasksErrors.md @@ -0,0 +1,10 @@ +# StopAllTasksErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StopAllTasksResponse.md b/docs/models/operations/StopAllTasksResponse.md new file mode 100644 index 00000000..cd31ebaa --- /dev/null +++ b/docs/models/operations/StopAllTasksResponse.md @@ -0,0 +1,11 @@ +# StopAllTasksResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StopAllTasksResponseBody](../../models/operations/StopAllTasksResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StopAllTasksResponseBody.md b/docs/models/operations/StopAllTasksResponseBody.md new file mode 100644 index 00000000..d023bc55 --- /dev/null +++ b/docs/models/operations/StopAllTasksResponseBody.md @@ -0,0 +1,10 @@ +# StopAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.StopAllTasksErrors](../../models/operations/StopAllTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/StopTaskErrors.md b/docs/models/operations/StopTaskErrors.md new file mode 100644 index 00000000..9e7f439e --- /dev/null +++ b/docs/models/operations/StopTaskErrors.md @@ -0,0 +1,10 @@ +# StopTaskErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StopTaskRequest.md b/docs/models/operations/StopTaskRequest.md new file mode 100644 index 00000000..0af2472e --- /dev/null +++ b/docs/models/operations/StopTaskRequest.md @@ -0,0 +1,8 @@ +# StopTaskRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `taskName` | [org.openapis.openapi.models.operations.PathParamTaskName](../../models/operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | \ No newline at end of file diff --git a/docs/models/operations/StopTaskResponse.md b/docs/models/operations/StopTaskResponse.md new file mode 100644 index 00000000..44888081 --- /dev/null +++ b/docs/models/operations/StopTaskResponse.md @@ -0,0 +1,11 @@ +# StopTaskResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StopTaskResponseBody](../../models/operations/StopTaskResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StopTaskResponseBody.md b/docs/models/operations/StopTaskResponseBody.md new file mode 100644 index 00000000..64466edb --- /dev/null +++ b/docs/models/operations/StopTaskResponseBody.md @@ -0,0 +1,10 @@ +# StopTaskResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.StopTaskErrors](../../models/operations/StopTaskErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionErrors.md b/docs/models/operations/StopTranscodeSessionErrors.md new file mode 100644 index 00000000..c551631e --- /dev/null +++ b/docs/models/operations/StopTranscodeSessionErrors.md @@ -0,0 +1,10 @@ +# StopTranscodeSessionErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionRequest.md b/docs/models/operations/StopTranscodeSessionRequest.md new file mode 100644 index 00000000..863a31c0 --- /dev/null +++ b/docs/models/operations/StopTranscodeSessionRequest.md @@ -0,0 +1,8 @@ +# StopTranscodeSessionRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `sessionKey` | *String* | :heavy_check_mark: | the Key of the transcode session to stop | zz7llzqlx8w9vnrsbnwhbmep | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionResponse.md b/docs/models/operations/StopTranscodeSessionResponse.md new file mode 100644 index 00000000..521e7f5d --- /dev/null +++ b/docs/models/operations/StopTranscodeSessionResponse.md @@ -0,0 +1,11 @@ +# StopTranscodeSessionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.StopTranscodeSessionResponseBody](../../models/operations/StopTranscodeSessionResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionResponseBody.md b/docs/models/operations/StopTranscodeSessionResponseBody.md new file mode 100644 index 00000000..b3e67f53 --- /dev/null +++ b/docs/models/operations/StopTranscodeSessionResponseBody.md @@ -0,0 +1,10 @@ +# StopTranscodeSessionResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.StopTranscodeSessionErrors](../../models/operations/StopTranscodeSessionErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Stream.md b/docs/models/operations/Stream.md new file mode 100644 index 00000000..cf71b8a7 --- /dev/null +++ b/docs/models/operations/Stream.md @@ -0,0 +1,30 @@ +# Stream + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `id` | *Double* | :heavy_minus_sign: | N/A | 211234 | +| `streamType` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `default_` | *Boolean* | :heavy_minus_sign: | N/A | | +| `codec` | *String* | :heavy_minus_sign: | N/A | hevc | +| `index` | *Double* | :heavy_minus_sign: | N/A | 0 | +| `bitrate` | *Double* | :heavy_minus_sign: | N/A | 918 | +| `language` | *String* | :heavy_minus_sign: | N/A | English | +| `languageTag` | *String* | :heavy_minus_sign: | N/A | en | +| `languageCode` | *String* | :heavy_minus_sign: | N/A | eng | +| `bitDepth` | *Double* | :heavy_minus_sign: | N/A | 8 | +| `chromaLocation` | *String* | :heavy_minus_sign: | N/A | left | +| `chromaSubsampling` | *String* | :heavy_minus_sign: | N/A | 4:2:0 | +| `codedHeight` | *Double* | :heavy_minus_sign: | N/A | 1080 | +| `codedWidth` | *Double* | :heavy_minus_sign: | N/A | 1920 | +| `colorRange` | *String* | :heavy_minus_sign: | N/A | tv | +| `frameRate` | *Double* | :heavy_minus_sign: | N/A | 25 | +| `height` | *Double* | :heavy_minus_sign: | N/A | 1080 | +| `level` | *Double* | :heavy_minus_sign: | N/A | 120 | +| `profile` | *String* | :heavy_minus_sign: | N/A | main | +| `refFrames` | *Double* | :heavy_minus_sign: | N/A | 1 | +| `width` | *Double* | :heavy_minus_sign: | N/A | 1920 | +| `displayTitle` | *String* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) | +| `extendedDisplayTitle` | *String* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) | \ No newline at end of file diff --git a/docs/models/operations/TaskName.md b/docs/models/operations/TaskName.md new file mode 100644 index 00000000..44383b38 --- /dev/null +++ b/docs/models/operations/TaskName.md @@ -0,0 +1,23 @@ +# TaskName + +the name of the task to be started. + + +## Values + +| Name | Value | +| ----------------------------- | ----------------------------- | +| `BACKUP_DATABASE` | BackupDatabase | +| `BUILD_GRACENOTE_COLLECTIONS` | BuildGracenoteCollections | +| `CHECK_FOR_UPDATES` | CheckForUpdates | +| `CLEAN_OLD_BUNDLES` | CleanOldBundles | +| `CLEAN_OLD_CACHE_FILES` | CleanOldCacheFiles | +| `DEEP_MEDIA_ANALYSIS` | DeepMediaAnalysis | +| `GENERATE_AUTO_TAGS` | GenerateAutoTags | +| `GENERATE_CHAPTER_THUMBS` | GenerateChapterThumbs | +| `GENERATE_MEDIA_INDEX_FILES` | GenerateMediaIndexFiles | +| `OPTIMIZE_DATABASE` | OptimizeDatabase | +| `REFRESH_LIBRARIES` | RefreshLibraries | +| `REFRESH_LOCAL_MEDIA` | RefreshLocalMedia | +| `REFRESH_PERIODIC_METADATA` | RefreshPeriodicMetadata | +| `UPGRADE_MEDIA_ANALYSIS` | UpgradeMediaAnalysis | \ No newline at end of file diff --git a/docs/models/operations/Tonight.md b/docs/models/operations/Tonight.md new file mode 100644 index 00000000..7bf98ba0 --- /dev/null +++ b/docs/models/operations/Tonight.md @@ -0,0 +1,11 @@ +# Tonight + +Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/TranscodeSession.md b/docs/models/operations/TranscodeSession.md new file mode 100644 index 00000000..7331a496 --- /dev/null +++ b/docs/models/operations/TranscodeSession.md @@ -0,0 +1,29 @@ +# TranscodeSession + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `key` | *String* | :heavy_minus_sign: | N/A | zz7llzqlx8w9vnrsbnwhbmep | +| `throttled` | *Boolean* | :heavy_minus_sign: | N/A | | +| `complete` | *Boolean* | :heavy_minus_sign: | N/A | | +| `progress` | *Double* | :heavy_minus_sign: | N/A | 0.4000000059604645 | +| `size` | *Double* | :heavy_minus_sign: | N/A | -22 | +| `speed` | *Double* | :heavy_minus_sign: | N/A | 22.399999618530273 | +| `error` | *Boolean* | :heavy_minus_sign: | N/A | | +| `duration` | *Double* | :heavy_minus_sign: | N/A | 2561768 | +| `context` | *String* | :heavy_minus_sign: | N/A | streaming | +| `sourceVideoCodec` | *String* | :heavy_minus_sign: | N/A | h264 | +| `sourceAudioCodec` | *String* | :heavy_minus_sign: | N/A | ac3 | +| `videoDecision` | *String* | :heavy_minus_sign: | N/A | transcode | +| `audioDecision` | *String* | :heavy_minus_sign: | N/A | transcode | +| `protocol` | *String* | :heavy_minus_sign: | N/A | http | +| `container` | *String* | :heavy_minus_sign: | N/A | mkv | +| `videoCodec` | *String* | :heavy_minus_sign: | N/A | h264 | +| `audioCodec` | *String* | :heavy_minus_sign: | N/A | opus | +| `audioChannels` | *Double* | :heavy_minus_sign: | N/A | 2 | +| `transcodeHwRequested` | *Boolean* | :heavy_minus_sign: | N/A | | +| `timeStamp` | *Double* | :heavy_minus_sign: | N/A | 1.6818695357764285e+09 | +| `maxOffsetAvailable` | *Double* | :heavy_minus_sign: | N/A | 861.778 | +| `minOffsetAvailable` | *Double* | :heavy_minus_sign: | N/A | 0 | \ No newline at end of file diff --git a/docs/models/operations/Type.md b/docs/models/operations/Type.md new file mode 100644 index 00000000..8cd5452b --- /dev/null +++ b/docs/models/operations/Type.md @@ -0,0 +1,12 @@ +# Type + +type of playlist to create + + +## Values + +| Name | Value | +| ------- | ------- | +| `AUDIO` | audio | +| `VIDEO` | video | +| `PHOTO` | photo | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressErrors.md b/docs/models/operations/UpdatePlayProgressErrors.md new file mode 100644 index 00000000..99b07420 --- /dev/null +++ b/docs/models/operations/UpdatePlayProgressErrors.md @@ -0,0 +1,10 @@ +# UpdatePlayProgressErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressRequest.md b/docs/models/operations/UpdatePlayProgressRequest.md new file mode 100644 index 00000000..69b2d5ae --- /dev/null +++ b/docs/models/operations/UpdatePlayProgressRequest.md @@ -0,0 +1,10 @@ +# UpdatePlayProgressRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `key` | *String* | :heavy_check_mark: | the media key | +| `time` | *Double* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | +| `state` | *String* | :heavy_check_mark: | The playback state of the media item. | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressResponse.md b/docs/models/operations/UpdatePlayProgressResponse.md new file mode 100644 index 00000000..d8e769da --- /dev/null +++ b/docs/models/operations/UpdatePlayProgressResponse.md @@ -0,0 +1,11 @@ +# UpdatePlayProgressResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.UpdatePlayProgressResponseBody](../../models/operations/UpdatePlayProgressResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressResponseBody.md b/docs/models/operations/UpdatePlayProgressResponseBody.md new file mode 100644 index 00000000..cea0ebd8 --- /dev/null +++ b/docs/models/operations/UpdatePlayProgressResponseBody.md @@ -0,0 +1,10 @@ +# UpdatePlayProgressResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.UpdatePlayProgressErrors](../../models/operations/UpdatePlayProgressErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistErrors.md b/docs/models/operations/UpdatePlaylistErrors.md new file mode 100644 index 00000000..cebd7e10 --- /dev/null +++ b/docs/models/operations/UpdatePlaylistErrors.md @@ -0,0 +1,10 @@ +# UpdatePlaylistErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistRequest.md b/docs/models/operations/UpdatePlaylistRequest.md new file mode 100644 index 00000000..9facf831 --- /dev/null +++ b/docs/models/operations/UpdatePlaylistRequest.md @@ -0,0 +1,8 @@ +# UpdatePlaylistRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `playlistID` | *Double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistResponse.md b/docs/models/operations/UpdatePlaylistResponse.md new file mode 100644 index 00000000..b6c6e355 --- /dev/null +++ b/docs/models/operations/UpdatePlaylistResponse.md @@ -0,0 +1,11 @@ +# UpdatePlaylistResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.UpdatePlaylistResponseBody](../../models/operations/UpdatePlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistResponseBody.md b/docs/models/operations/UpdatePlaylistResponseBody.md new file mode 100644 index 00000000..a62557ba --- /dev/null +++ b/docs/models/operations/UpdatePlaylistResponseBody.md @@ -0,0 +1,10 @@ +# UpdatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.UpdatePlaylistErrors](../../models/operations/UpdatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UploadPlaylistErrors.md b/docs/models/operations/UploadPlaylistErrors.md new file mode 100644 index 00000000..48dc96e6 --- /dev/null +++ b/docs/models/operations/UploadPlaylistErrors.md @@ -0,0 +1,10 @@ +# UploadPlaylistErrors + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `code` | *Double* | :heavy_minus_sign: | N/A | 1001 | +| `message` | *String* | :heavy_minus_sign: | N/A | User could not be authenticated | +| `status` | *Double* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/operations/UploadPlaylistRequest.md b/docs/models/operations/UploadPlaylistRequest.md new file mode 100644 index 00000000..9ddf048d --- /dev/null +++ b/docs/models/operations/UploadPlaylistRequest.md @@ -0,0 +1,9 @@ +# UploadPlaylistRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `path` | *String* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | +| `force` | [org.openapis.openapi.models.operations.Force](../../models/operations/Force.md) | :heavy_check_mark: | force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file diff --git a/docs/models/operations/UploadPlaylistResponse.md b/docs/models/operations/UploadPlaylistResponse.md new file mode 100644 index 00000000..7a9123e1 --- /dev/null +++ b/docs/models/operations/UploadPlaylistResponse.md @@ -0,0 +1,11 @@ +# UploadPlaylistResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :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 | +| `object` | [org.openapis.openapi.models.operations.UploadPlaylistResponseBody](../../models/operations/UploadPlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file diff --git a/docs/models/operations/UploadPlaylistResponseBody.md b/docs/models/operations/UploadPlaylistResponseBody.md new file mode 100644 index 00000000..9c62230f --- /dev/null +++ b/docs/models/operations/UploadPlaylistResponseBody.md @@ -0,0 +1,10 @@ +# UploadPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `errors` | List<[org.openapis.openapi.models.operations.UploadPlaylistErrors](../../models/operations/UploadPlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Upscale.md b/docs/models/operations/Upscale.md new file mode 100644 index 00000000..1622f51f --- /dev/null +++ b/docs/models/operations/Upscale.md @@ -0,0 +1,11 @@ +# Upscale + +allow images to be resized beyond native dimensions. + + +## Values + +| Name | Value | +| ------ | ------ | +| `ZERO` | 0 | +| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Writer.md b/docs/models/operations/Writer.md new file mode 100644 index 00000000..ac543a7d --- /dev/null +++ b/docs/models/operations/Writer.md @@ -0,0 +1,8 @@ +# Writer + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `tag` | *String* | :heavy_minus_sign: | N/A | Jeff Loveness | \ No newline at end of file diff --git a/docs/models/shared/Security.md b/docs/models/shared/Security.md new file mode 100644 index 00000000..751e411e --- /dev/null +++ b/docs/models/shared/Security.md @@ -0,0 +1,8 @@ +# Security + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `accessToken` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/files.gen b/files.gen new file mode 100644 index 00000000..e89df52b --- /dev/null +++ b/files.gen @@ -0,0 +1,617 @@ +lib/src/main/java/org/openapis/openapi/SDKConfiguration.java +lib/src/main/java/org/openapis/openapi/Server.java +lib/src/main/java/org/openapis/openapi/Media.java +lib/src/main/java/org/openapis/openapi/Activities.java +lib/src/main/java/org/openapis/openapi/Butler.java +lib/src/main/java/org/openapis/openapi/Hubs.java +lib/src/main/java/org/openapis/openapi/Search.java +lib/src/main/java/org/openapis/openapi/Library.java +lib/src/main/java/org/openapis/openapi/Log.java +lib/src/main/java/org/openapis/openapi/Playlists.java +lib/src/main/java/org/openapis/openapi/Security.java +lib/src/main/java/org/openapis/openapi/Sessions.java +lib/src/main/java/org/openapis/openapi/Updater.java +lib/src/main/java/org/openapis/openapi/Video.java +lib/src/main/java/org/openapis/openapi/SDK.java +.gitattributes +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +lib/build.gradle +lib/src/main/java/org/openapis/openapi/utils/DateTimeDeserializer.java +lib/src/main/java/org/openapis/openapi/utils/DateTimeSerializer.java +lib/src/main/java/org/openapis/openapi/utils/FormMetadata.java +lib/src/main/java/org/openapis/openapi/utils/HTTPClient.java +lib/src/main/java/org/openapis/openapi/utils/HTTPRequest.java +lib/src/main/java/org/openapis/openapi/utils/HeaderMetadata.java +lib/src/main/java/org/openapis/openapi/utils/JSON.java +lib/src/main/java/org/openapis/openapi/utils/Metadata.java +lib/src/main/java/org/openapis/openapi/utils/MultipartFormMetadata.java +lib/src/main/java/org/openapis/openapi/utils/PathParamsMetadata.java +lib/src/main/java/org/openapis/openapi/utils/QueryParameters.java +lib/src/main/java/org/openapis/openapi/utils/QueryParamsMetadata.java +lib/src/main/java/org/openapis/openapi/utils/RequestBody.java +lib/src/main/java/org/openapis/openapi/utils/RequestMetadata.java +lib/src/main/java/org/openapis/openapi/utils/Security.java +lib/src/main/java/org/openapis/openapi/utils/SecurityMetadata.java +lib/src/main/java/org/openapis/openapi/utils/SerializedBody.java +lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPClient.java +lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPSecurityClient.java +lib/src/main/java/org/openapis/openapi/utils/SpeakeasyMetadata.java +lib/src/main/java/org/openapis/openapi/utils/Types.java +lib/src/main/java/org/openapis/openapi/utils/Utils.java +settings.gradle +lib/src/main/java/org/openapis/openapi/models/operations/Errors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesServerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Directory.java +lib/src/main/java/org/openapis/openapi/models/operations/MediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Server.java +lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/ResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesServerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Device.java +lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityServerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountServerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/MyPlex.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/MinSize.java +lib/src/main/java/org/openapis/openapi/models/operations/Upscale.java +lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesActivitiesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Context.java +lib/src/main/java/org/openapis/openapi/models/operations/Activity.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksButlerResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/ButlerTask.java +lib/src/main/java/org/openapis/openapi/models/operations/ButlerTasks.java +lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/TaskName.java +lib/src/main/java/org/openapis/openapi/models/operations/StartTaskRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/StartTaskErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/PathParamTaskName.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTaskRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTaskErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/OnlyTransient.java +lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/QueryParamOnlyTransient.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsSearchResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsPart.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMedia.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsGenre.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsDirector.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsWriter.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsCountry.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRole.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMetadata.java +lib/src/main/java/org/openapis/openapi/models/operations/Provider.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedLibraryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Part.java +lib/src/main/java/org/openapis/openapi/models/operations/Media.java +lib/src/main/java/org/openapis/openapi/models/operations/Genre.java +lib/src/main/java/org/openapis/openapi/models/operations/Director.java +lib/src/main/java/org/openapis/openapi/models/operations/Writer.java +lib/src/main/java/org/openapis/openapi/models/operations/Country.java +lib/src/main/java/org/openapis/openapi/models/operations/Role.java +lib/src/main/java/org/openapis/openapi/models/operations/Metadata.java +lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/IncludeDetails.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckLibraryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/Stream.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckPart.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMedia.java +lib/src/main/java/org/openapis/openapi/models/operations/Guids.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMetadata.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/Level.java +lib/src/main/java/org/openapis/openapi/models/operations/LogLineRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/LogLineErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/Type.java +lib/src/main/java/org/openapis/openapi/models/operations/Smart.java +lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/PlaylistType.java +lib/src/main/java/org/openapis/openapi/models/operations/QueryParamSmart.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/Force.java +lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/QueryParamType.java +lib/src/main/java/org/openapis/openapi/models/operations/Scope.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsSessionsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/TranscodeSession.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsMediaContainer.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/Download.java +lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/Tonight.java +lib/src/main/java/org/openapis/openapi/models/operations/Skip.java +lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/State.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineErrors.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponseBody.java +lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponse.java +lib/src/main/java/org/openapis/openapi/models/shared/Security.java +docs/models/operations/Errors.md +docs/models/operations/GetServerCapabilitiesServerResponseBody.md +docs/models/operations/Directory.md +docs/models/operations/MediaContainer.md +docs/models/operations/GetServerCapabilitiesResponseBody.md +docs/models/operations/GetServerCapabilitiesResponse.md +docs/models/operations/GetServerPreferencesErrors.md +docs/models/operations/GetServerPreferencesResponseBody.md +docs/models/operations/GetServerPreferencesResponse.md +docs/models/operations/GetAvailableClientsErrors.md +docs/models/operations/GetAvailableClientsResponseBody.md +docs/models/operations/Server.md +docs/models/operations/GetAvailableClientsMediaContainer.md +docs/models/operations/ResponseBody.md +docs/models/operations/GetAvailableClientsResponse.md +docs/models/operations/GetDevicesErrors.md +docs/models/operations/GetDevicesServerResponseBody.md +docs/models/operations/Device.md +docs/models/operations/GetDevicesMediaContainer.md +docs/models/operations/GetDevicesResponseBody.md +docs/models/operations/GetDevicesResponse.md +docs/models/operations/GetServerIdentityErrors.md +docs/models/operations/GetServerIdentityServerResponseBody.md +docs/models/operations/GetServerIdentityMediaContainer.md +docs/models/operations/GetServerIdentityResponseBody.md +docs/models/operations/GetServerIdentityResponse.md +docs/models/operations/GetMyPlexAccountErrors.md +docs/models/operations/GetMyPlexAccountServerResponseBody.md +docs/models/operations/MyPlex.md +docs/models/operations/GetMyPlexAccountResponseBody.md +docs/models/operations/GetMyPlexAccountResponse.md +docs/models/operations/MinSize.md +docs/models/operations/Upscale.md +docs/models/operations/GetResizedPhotoRequest.md +docs/models/operations/GetResizedPhotoErrors.md +docs/models/operations/GetResizedPhotoResponseBody.md +docs/models/operations/GetResizedPhotoResponse.md +docs/models/operations/GetServerListErrors.md +docs/models/operations/GetServerListServerResponseBody.md +docs/models/operations/GetServerListServer.md +docs/models/operations/GetServerListMediaContainer.md +docs/models/operations/GetServerListResponseBody.md +docs/models/operations/GetServerListResponse.md +docs/models/operations/MarkPlayedRequest.md +docs/models/operations/MarkPlayedErrors.md +docs/models/operations/MarkPlayedResponseBody.md +docs/models/operations/MarkPlayedResponse.md +docs/models/operations/MarkUnplayedRequest.md +docs/models/operations/MarkUnplayedErrors.md +docs/models/operations/MarkUnplayedResponseBody.md +docs/models/operations/MarkUnplayedResponse.md +docs/models/operations/UpdatePlayProgressRequest.md +docs/models/operations/UpdatePlayProgressErrors.md +docs/models/operations/UpdatePlayProgressResponseBody.md +docs/models/operations/UpdatePlayProgressResponse.md +docs/models/operations/GetServerActivitiesErrors.md +docs/models/operations/GetServerActivitiesActivitiesResponseBody.md +docs/models/operations/Context.md +docs/models/operations/Activity.md +docs/models/operations/GetServerActivitiesMediaContainer.md +docs/models/operations/GetServerActivitiesResponseBody.md +docs/models/operations/GetServerActivitiesResponse.md +docs/models/operations/CancelServerActivitiesRequest.md +docs/models/operations/CancelServerActivitiesErrors.md +docs/models/operations/CancelServerActivitiesResponseBody.md +docs/models/operations/CancelServerActivitiesResponse.md +docs/models/operations/GetButlerTasksErrors.md +docs/models/operations/GetButlerTasksButlerResponseBody.md +docs/models/operations/ButlerTask.md +docs/models/operations/ButlerTasks.md +docs/models/operations/GetButlerTasksResponseBody.md +docs/models/operations/GetButlerTasksResponse.md +docs/models/operations/StartAllTasksErrors.md +docs/models/operations/StartAllTasksResponseBody.md +docs/models/operations/StartAllTasksResponse.md +docs/models/operations/StopAllTasksErrors.md +docs/models/operations/StopAllTasksResponseBody.md +docs/models/operations/StopAllTasksResponse.md +docs/models/operations/TaskName.md +docs/models/operations/StartTaskRequest.md +docs/models/operations/StartTaskErrors.md +docs/models/operations/StartTaskResponseBody.md +docs/models/operations/StartTaskResponse.md +docs/models/operations/PathParamTaskName.md +docs/models/operations/StopTaskRequest.md +docs/models/operations/StopTaskErrors.md +docs/models/operations/StopTaskResponseBody.md +docs/models/operations/StopTaskResponse.md +docs/models/operations/OnlyTransient.md +docs/models/operations/GetGlobalHubsRequest.md +docs/models/operations/GetGlobalHubsErrors.md +docs/models/operations/GetGlobalHubsResponseBody.md +docs/models/operations/GetGlobalHubsResponse.md +docs/models/operations/QueryParamOnlyTransient.md +docs/models/operations/GetLibraryHubsRequest.md +docs/models/operations/GetLibraryHubsErrors.md +docs/models/operations/GetLibraryHubsResponseBody.md +docs/models/operations/GetLibraryHubsResponse.md +docs/models/operations/PerformSearchRequest.md +docs/models/operations/PerformSearchErrors.md +docs/models/operations/PerformSearchResponseBody.md +docs/models/operations/PerformSearchResponse.md +docs/models/operations/PerformVoiceSearchRequest.md +docs/models/operations/PerformVoiceSearchErrors.md +docs/models/operations/PerformVoiceSearchResponseBody.md +docs/models/operations/PerformVoiceSearchResponse.md +docs/models/operations/GetSearchResultsRequest.md +docs/models/operations/GetSearchResultsErrors.md +docs/models/operations/GetSearchResultsSearchResponseBody.md +docs/models/operations/GetSearchResultsPart.md +docs/models/operations/GetSearchResultsMedia.md +docs/models/operations/GetSearchResultsGenre.md +docs/models/operations/GetSearchResultsDirector.md +docs/models/operations/GetSearchResultsWriter.md +docs/models/operations/GetSearchResultsCountry.md +docs/models/operations/GetSearchResultsRole.md +docs/models/operations/GetSearchResultsMetadata.md +docs/models/operations/Provider.md +docs/models/operations/GetSearchResultsMediaContainer.md +docs/models/operations/GetSearchResultsResponseBody.md +docs/models/operations/GetSearchResultsResponse.md +docs/models/operations/GetFileHashRequest.md +docs/models/operations/GetFileHashErrors.md +docs/models/operations/GetFileHashResponseBody.md +docs/models/operations/GetFileHashResponse.md +docs/models/operations/GetRecentlyAddedErrors.md +docs/models/operations/GetRecentlyAddedLibraryResponseBody.md +docs/models/operations/Part.md +docs/models/operations/Media.md +docs/models/operations/Genre.md +docs/models/operations/Director.md +docs/models/operations/Writer.md +docs/models/operations/Country.md +docs/models/operations/Role.md +docs/models/operations/Metadata.md +docs/models/operations/GetRecentlyAddedMediaContainer.md +docs/models/operations/GetRecentlyAddedResponseBody.md +docs/models/operations/GetRecentlyAddedResponse.md +docs/models/operations/GetLibrariesErrors.md +docs/models/operations/GetLibrariesResponseBody.md +docs/models/operations/GetLibrariesResponse.md +docs/models/operations/IncludeDetails.md +docs/models/operations/GetLibraryRequest.md +docs/models/operations/GetLibraryErrors.md +docs/models/operations/GetLibraryResponseBody.md +docs/models/operations/GetLibraryResponse.md +docs/models/operations/DeleteLibraryRequest.md +docs/models/operations/DeleteLibraryErrors.md +docs/models/operations/DeleteLibraryResponseBody.md +docs/models/operations/DeleteLibraryResponse.md +docs/models/operations/GetLibraryItemsRequest.md +docs/models/operations/GetLibraryItemsErrors.md +docs/models/operations/GetLibraryItemsResponseBody.md +docs/models/operations/GetLibraryItemsResponse.md +docs/models/operations/RefreshLibraryRequest.md +docs/models/operations/RefreshLibraryErrors.md +docs/models/operations/RefreshLibraryResponseBody.md +docs/models/operations/RefreshLibraryResponse.md +docs/models/operations/GetLatestLibraryItemsRequest.md +docs/models/operations/GetLatestLibraryItemsErrors.md +docs/models/operations/GetLatestLibraryItemsResponseBody.md +docs/models/operations/GetLatestLibraryItemsResponse.md +docs/models/operations/GetCommonLibraryItemsRequest.md +docs/models/operations/GetCommonLibraryItemsErrors.md +docs/models/operations/GetCommonLibraryItemsResponseBody.md +docs/models/operations/GetCommonLibraryItemsResponse.md +docs/models/operations/GetMetadataRequest.md +docs/models/operations/GetMetadataErrors.md +docs/models/operations/GetMetadataResponseBody.md +docs/models/operations/GetMetadataResponse.md +docs/models/operations/GetMetadataChildrenRequest.md +docs/models/operations/GetMetadataChildrenErrors.md +docs/models/operations/GetMetadataChildrenResponseBody.md +docs/models/operations/GetMetadataChildrenResponse.md +docs/models/operations/GetOnDeckErrors.md +docs/models/operations/GetOnDeckLibraryResponseBody.md +docs/models/operations/Stream.md +docs/models/operations/GetOnDeckPart.md +docs/models/operations/GetOnDeckMedia.md +docs/models/operations/Guids.md +docs/models/operations/GetOnDeckMetadata.md +docs/models/operations/GetOnDeckMediaContainer.md +docs/models/operations/GetOnDeckResponseBody.md +docs/models/operations/GetOnDeckResponse.md +docs/models/operations/Level.md +docs/models/operations/LogLineRequest.md +docs/models/operations/LogLineErrors.md +docs/models/operations/LogLineResponseBody.md +docs/models/operations/LogLineResponse.md +docs/models/operations/LogMultiLineErrors.md +docs/models/operations/LogMultiLineResponseBody.md +docs/models/operations/LogMultiLineResponse.md +docs/models/operations/EnablePaperTrailErrors.md +docs/models/operations/EnablePaperTrailResponseBody.md +docs/models/operations/EnablePaperTrailResponse.md +docs/models/operations/Type.md +docs/models/operations/Smart.md +docs/models/operations/CreatePlaylistRequest.md +docs/models/operations/CreatePlaylistErrors.md +docs/models/operations/CreatePlaylistResponseBody.md +docs/models/operations/CreatePlaylistResponse.md +docs/models/operations/PlaylistType.md +docs/models/operations/QueryParamSmart.md +docs/models/operations/GetPlaylistsRequest.md +docs/models/operations/GetPlaylistsErrors.md +docs/models/operations/GetPlaylistsResponseBody.md +docs/models/operations/GetPlaylistsResponse.md +docs/models/operations/GetPlaylistRequest.md +docs/models/operations/GetPlaylistErrors.md +docs/models/operations/GetPlaylistResponseBody.md +docs/models/operations/GetPlaylistResponse.md +docs/models/operations/DeletePlaylistRequest.md +docs/models/operations/DeletePlaylistErrors.md +docs/models/operations/DeletePlaylistResponseBody.md +docs/models/operations/DeletePlaylistResponse.md +docs/models/operations/UpdatePlaylistRequest.md +docs/models/operations/UpdatePlaylistErrors.md +docs/models/operations/UpdatePlaylistResponseBody.md +docs/models/operations/UpdatePlaylistResponse.md +docs/models/operations/GetPlaylistContentsRequest.md +docs/models/operations/GetPlaylistContentsErrors.md +docs/models/operations/GetPlaylistContentsResponseBody.md +docs/models/operations/GetPlaylistContentsResponse.md +docs/models/operations/ClearPlaylistContentsRequest.md +docs/models/operations/ClearPlaylistContentsErrors.md +docs/models/operations/ClearPlaylistContentsResponseBody.md +docs/models/operations/ClearPlaylistContentsResponse.md +docs/models/operations/AddPlaylistContentsRequest.md +docs/models/operations/AddPlaylistContentsErrors.md +docs/models/operations/AddPlaylistContentsResponseBody.md +docs/models/operations/AddPlaylistContentsResponse.md +docs/models/operations/Force.md +docs/models/operations/UploadPlaylistRequest.md +docs/models/operations/UploadPlaylistErrors.md +docs/models/operations/UploadPlaylistResponseBody.md +docs/models/operations/UploadPlaylistResponse.md +docs/models/operations/QueryParamType.md +docs/models/operations/Scope.md +docs/models/operations/GetTransientTokenRequest.md +docs/models/operations/GetTransientTokenErrors.md +docs/models/operations/GetTransientTokenResponseBody.md +docs/models/operations/GetTransientTokenResponse.md +docs/models/operations/GetSourceConnectionInformationRequest.md +docs/models/operations/GetSourceConnectionInformationErrors.md +docs/models/operations/GetSourceConnectionInformationResponseBody.md +docs/models/operations/GetSourceConnectionInformationResponse.md +docs/models/operations/GetSessionsErrors.md +docs/models/operations/GetSessionsResponseBody.md +docs/models/operations/GetSessionsResponse.md +docs/models/operations/GetSessionHistoryErrors.md +docs/models/operations/GetSessionHistoryResponseBody.md +docs/models/operations/GetSessionHistoryResponse.md +docs/models/operations/GetTranscodeSessionsErrors.md +docs/models/operations/GetTranscodeSessionsSessionsResponseBody.md +docs/models/operations/TranscodeSession.md +docs/models/operations/GetTranscodeSessionsMediaContainer.md +docs/models/operations/GetTranscodeSessionsResponseBody.md +docs/models/operations/GetTranscodeSessionsResponse.md +docs/models/operations/StopTranscodeSessionRequest.md +docs/models/operations/StopTranscodeSessionErrors.md +docs/models/operations/StopTranscodeSessionResponseBody.md +docs/models/operations/StopTranscodeSessionResponse.md +docs/models/operations/GetUpdateStatusErrors.md +docs/models/operations/GetUpdateStatusResponseBody.md +docs/models/operations/GetUpdateStatusResponse.md +docs/models/operations/Download.md +docs/models/operations/CheckForUpdatesRequest.md +docs/models/operations/CheckForUpdatesErrors.md +docs/models/operations/CheckForUpdatesResponseBody.md +docs/models/operations/CheckForUpdatesResponse.md +docs/models/operations/Tonight.md +docs/models/operations/Skip.md +docs/models/operations/ApplyUpdatesRequest.md +docs/models/operations/ApplyUpdatesErrors.md +docs/models/operations/ApplyUpdatesResponseBody.md +docs/models/operations/ApplyUpdatesResponse.md +docs/models/operations/StartUniversalTranscodeRequest.md +docs/models/operations/StartUniversalTranscodeErrors.md +docs/models/operations/StartUniversalTranscodeResponseBody.md +docs/models/operations/StartUniversalTranscodeResponse.md +docs/models/operations/State.md +docs/models/operations/GetTimelineRequest.md +docs/models/operations/GetTimelineErrors.md +docs/models/operations/GetTimelineResponseBody.md +docs/models/operations/GetTimelineResponse.md +docs/models/shared/Security.md +USAGE.md \ No newline at end of file diff --git a/gen.yaml b/gen.yaml new file mode 100755 index 00000000..855aa52b --- /dev/null +++ b/gen.yaml @@ -0,0 +1,46 @@ +configVersion: 1.0.0 +management: + docChecksum: 550154cf1b4d0c237436fb18c418b5db + docVersion: 0.0.3 + speakeasyVersion: 1.129.1 + generationVersion: 2.223.3 +generation: + comments: {} + sdkClassName: SDK + repoURL: https://github.com/LukeHagar/plexjava.git + maintainOpenAPIOrder: true + usageSnippets: + optionalPropertyRendering: withExample + fixes: + nameResolutionDec2023: true + useClassNamesForArrayFields: true +features: + java: + core: 3.1.1 + flattening: 2.81.1 + globalSecurity: 2.81.2 + globalServerURLs: 2.82.1 + nameOverrides: 2.81.1 +java: + version: 0.1.0 + artifactID: openapi + companyEmail: info@mycompany.com + companyName: My Company + companyURL: www.mycompany.com + githubURL: github.com/owner/repo + groupID: org.openapis + imports: + option: openapi + paths: + callbacks: models/callbacks + errors: models/errors + operations: models/operations + shared: models/shared + webhooks: models/webhooks + inputModelSuffix: input + maxMethodParams: 4 + ossrhURL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + outputModelSuffix: output + projectName: openapi + published: true + repoSubDirectory: . diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..249e5832 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..ae04661e --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 00000000..a69d9cb6 --- /dev/null +++ b/gradlew @@ -0,0 +1,240 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 00000000..53a6b238 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,91 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/lib/build.gradle b/lib/build.gradle new file mode 100644 index 00000000..70cfff8b --- /dev/null +++ b/lib/build.gradle @@ -0,0 +1,121 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * This generated file contains a sample Java library project to get you started. + * For more details take a look at the 'Building Java and JVM projects' chapter in the Gradle + * User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html + */ + +plugins { + // Apply the java-library plugin for API and implementation separation. + id 'java-library' + id 'maven-publish' + id 'signing' +} + +compileJava.options.encoding = "UTF-8" +compileTestJava.options.encoding = "UTF-8" + +repositories { + // Use Maven Central for resolving dependencies. + mavenCentral() +} + +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + withSourcesJar() + withJavadocJar() +} + +model { + tasks.generatePomFileForMavenPublication { + destination = file("$buildDir/pom.xml") + } +} + +jar { + dependsOn(":$project.name:generatePomFileForMavenPublication") + into("META-INF/maven/org.openapis/openapi") { + from("$buildDir/pom.xml") + } +} + +publishing { + repositories { + maven { + name = "OSSRH" + url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + } + } + publications { + maven(MavenPublication) { + groupId = 'org.openapis' + artifactId = 'openapi' + version = '0.1.0' + + from components.java + + pom { + name = 'My Company Java SDK' + description = 'SDK enabling Java developers to easily integrate with the My Company API.' + url = 'https://github.com/owner/repo' + scm { + url = 'github.com/owner/repo' + connection = 'scm:git:ssh://git@github.com/owner/repo.git' + } + licenses { + license { + name = 'The MIT License (MIT)' + url = 'https://mit-license.org/' + } + } + developers { + developer { + name = 'My Company' + organization = 'My Company' + email = 'info@mycompany.com' + } + } + organization { + name = 'My Company' + url = 'www.mycompany.com' + } + } + } + } +} + +if (!project.hasProperty('skip.signing')) { + signing { + def signingKey = findProperty("signingKey") + def signingPassphrase = findProperty("signingPassphrase") + useInMemoryPgpKeys(signingKey, signingPassphrase) + sign publishing.publications.maven + } +} + +javadoc { + options.encoding = "UTF-8" + + if(JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } + options.addStringOption('Xdoclint:none', '-quiet') +} + +dependencies { + implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1' + implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.1' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.1' + implementation 'org.apache.httpcomponents:httpcore:4.4.15' + implementation 'org.apache.httpcomponents:httpclient:4.5.13' + implementation 'org.apache.httpcomponents:httpmime:4.5.13' +} + diff --git a/lib/src/main/java/org/openapis/openapi/Activities.java b/lib/src/main/java/org/openapis/openapi/Activities.java new file mode 100644 index 00000000..4e720dbf --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Activities.java @@ -0,0 +1,122 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. + * Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. + * Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: + * - They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. + * - They must contain an `type` which is used by clients to distinguish the specific activity. + * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) + * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. + * + */ +public class Activities { + + private SDKConfiguration sdkConfiguration; + + public Activities(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get Server Activities + * Get Server Activities + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetServerActivitiesResponse getServerActivities() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/activities"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetServerActivitiesResponse res = new org.openapis.openapi.models.operations.GetServerActivitiesResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerActivitiesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerActivitiesResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerActivitiesActivitiesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerActivitiesActivitiesResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Cancel Server Activities + * Cancel Server Activities + * @param activityUUID The UUID of the activity to cancel. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.CancelServerActivitiesResponse cancelServerActivities(String activityUUID) throws Exception { + org.openapis.openapi.models.operations.CancelServerActivitiesRequest request = new org.openapis.openapi.models.operations.CancelServerActivitiesRequest(activityUUID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.CancelServerActivitiesRequest.class, baseUrl, "/activities/{activityUUID}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.CancelServerActivitiesResponse res = new org.openapis.openapi.models.operations.CancelServerActivitiesResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.CancelServerActivitiesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.CancelServerActivitiesResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Butler.java b/lib/src/main/java/org/openapis/openapi/Butler.java new file mode 100644 index 00000000..c1fc9a08 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Butler.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Butler is the task manager of the Plex Media Server Ecosystem. + * + */ +public class Butler { + + private SDKConfiguration sdkConfiguration; + + public Butler(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get Butler tasks + * Returns a list of butler tasks + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetButlerTasksResponse getButlerTasks() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/butler"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetButlerTasksResponse res = new org.openapis.openapi.models.operations.GetButlerTasksResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetButlerTasksResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetButlerTasksResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetButlerTasksButlerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetButlerTasksButlerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Start all Butler tasks + * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * 1. Any tasks not scheduled to run on the current day will be skipped. + * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. + * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. + * 4. If we are outside the configured window, the task will start immediately. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StartAllTasksResponse startAllTasks() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/butler"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StartAllTasksResponse res = new org.openapis.openapi.models.operations.StartAllTasksResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StartAllTasksResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StartAllTasksResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Stop all Butler tasks + * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StopAllTasksResponse stopAllTasks() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/butler"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StopAllTasksResponse res = new org.openapis.openapi.models.operations.StopAllTasksResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StopAllTasksResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StopAllTasksResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Start a single Butler task + * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: + * 1. Any tasks not scheduled to run on the current day will be skipped. + * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. + * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. + * 4. If we are outside the configured window, the task will start immediately. + * + * @param taskName the name of the task to be started. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StartTaskResponse startTask(org.openapis.openapi.models.operations.TaskName taskName) throws Exception { + org.openapis.openapi.models.operations.StartTaskRequest request = new org.openapis.openapi.models.operations.StartTaskRequest(taskName); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.StartTaskRequest.class, baseUrl, "/butler/{taskName}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StartTaskResponse res = new org.openapis.openapi.models.operations.StartTaskResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 202 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StartTaskResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StartTaskResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Stop a single Butler task + * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. + * + * @param taskName The name of the task to be started. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StopTaskResponse stopTask(org.openapis.openapi.models.operations.PathParamTaskName taskName) throws Exception { + org.openapis.openapi.models.operations.StopTaskRequest request = new org.openapis.openapi.models.operations.StopTaskRequest(taskName); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.StopTaskRequest.class, baseUrl, "/butler/{taskName}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StopTaskResponse res = new org.openapis.openapi.models.operations.StopTaskResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400 || httpRes.statusCode() == 404) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StopTaskResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StopTaskResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Hubs.java b/lib/src/main/java/org/openapis/openapi/Hubs.java new file mode 100644 index 00000000..65c540d1 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Hubs.java @@ -0,0 +1,202 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. + * + */ +public class Hubs { + + private SDKConfiguration sdkConfiguration; + + public Hubs(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get Global Hubs + * Get Global Hubs filtered by the parameters provided. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetGlobalHubsResponse getGlobalHubs() throws Exception { + return this.getGlobalHubs(null, null); + } + + /** + * Get Global Hubs + * Get Global Hubs filtered by the parameters provided. + * @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetGlobalHubsResponse getGlobalHubs(org.openapis.openapi.models.operations.OnlyTransient onlyTransient) throws Exception { + return this.getGlobalHubs(null, onlyTransient); + } + + /** + * Get Global Hubs + * Get Global Hubs filtered by the parameters provided. + * @param count The number of items to return with each hub. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetGlobalHubsResponse getGlobalHubs(Double count) throws Exception { + return this.getGlobalHubs(count, null); + } + + /** + * Get Global Hubs + * Get Global Hubs filtered by the parameters provided. + * @param count The number of items to return with each hub. + * @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetGlobalHubsResponse getGlobalHubs(Double count, org.openapis.openapi.models.operations.OnlyTransient onlyTransient) throws Exception { + org.openapis.openapi.models.operations.GetGlobalHubsRequest request = new org.openapis.openapi.models.operations.GetGlobalHubsRequest(); + request.count=count; + request.onlyTransient=onlyTransient; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/hubs"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetGlobalHubsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetGlobalHubsResponse res = new org.openapis.openapi.models.operations.GetGlobalHubsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetGlobalHubsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetGlobalHubsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get library specific hubs + * This endpoint will return a list of library specific hubs + * + * @param sectionId the Id of the library to query + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryHubsResponse getLibraryHubs(Double sectionId) throws Exception { + return this.getLibraryHubs(sectionId, null, null); + } + + /** + * Get library specific hubs + * This endpoint will return a list of library specific hubs + * + * @param sectionId the Id of the library to query + * @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryHubsResponse getLibraryHubs(Double sectionId, org.openapis.openapi.models.operations.QueryParamOnlyTransient onlyTransient) throws Exception { + return this.getLibraryHubs(sectionId, null, onlyTransient); + } + + /** + * Get library specific hubs + * This endpoint will return a list of library specific hubs + * + * @param sectionId the Id of the library to query + * @param count The number of items to return with each hub. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryHubsResponse getLibraryHubs(Double sectionId, Double count) throws Exception { + return this.getLibraryHubs(sectionId, count, null); + } + + /** + * Get library specific hubs + * This endpoint will return a list of library specific hubs + * + * @param sectionId the Id of the library to query + * @param count The number of items to return with each hub. + * @param onlyTransient Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryHubsResponse getLibraryHubs(Double sectionId, Double count, org.openapis.openapi.models.operations.QueryParamOnlyTransient onlyTransient) throws Exception { + org.openapis.openapi.models.operations.GetLibraryHubsRequest request = new org.openapis.openapi.models.operations.GetLibraryHubsRequest(sectionId); + request.count=count; + request.onlyTransient=onlyTransient; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetLibraryHubsRequest.class, baseUrl, "/hubs/sections/{sectionId}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetLibraryHubsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetLibraryHubsResponse res = new org.openapis.openapi.models.operations.GetLibraryHubsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetLibraryHubsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetLibraryHubsResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Library.java b/lib/src/main/java/org/openapis/openapi/Library.java new file mode 100644 index 00000000..6583a5f0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Library.java @@ -0,0 +1,733 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls interacting with Plex Media Server Libraries + * + */ +public class Library { + + private SDKConfiguration sdkConfiguration; + + public Library(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get Hash Value + * This resource returns hash values for local files + * @param url This is the path to the local file, must be prefixed by `file://` + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetFileHashResponse getFileHash(String url) throws Exception { + return this.getFileHash(url, null); + } + + /** + * Get Hash Value + * This resource returns hash values for local files + * @param url This is the path to the local file, must be prefixed by `file://` + * @param type Item type + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetFileHashResponse getFileHash(String url, Double type) throws Exception { + org.openapis.openapi.models.operations.GetFileHashRequest request = new org.openapis.openapi.models.operations.GetFileHashRequest(url); + request.type=type; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/library/hashes"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetFileHashRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetFileHashResponse res = new org.openapis.openapi.models.operations.GetFileHashResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetFileHashResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetFileHashResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Recently Added + * This endpoint will return the recently added content. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetRecentlyAddedResponse getRecentlyAdded() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/library/recentlyAdded"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetRecentlyAddedResponse res = new org.openapis.openapi.models.operations.GetRecentlyAddedResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetRecentlyAddedResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetRecentlyAddedResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetRecentlyAddedLibraryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetRecentlyAddedLibraryResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Get All Libraries + * A library section (commonly referred to as just a library) is a collection of media. + * Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. + * For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. + * + * Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. + * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibrariesResponse getLibraries() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/library/sections"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetLibrariesResponse res = new org.openapis.openapi.models.operations.GetLibrariesResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetLibrariesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetLibrariesResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Library Details + * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: + * + * - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: + * - Primary: (e.g. all, On Deck) These are still used in some clients to provide "shortcuts" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. + * - Secondary: These are marked with `secondary="1"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. + * - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there's a completely obsolete entry marked `search="1"` which used to be used to allow clients to build search dialogs on the fly. + * - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won't render any filtering controls. The `Type` object contains: + * - `key`: This provides the root endpoint returning the actual media list for the type. + * - `type`: This is the metadata type for the type (if a standard Plex type). + * - `title`: The title for for the content of this type (e.g. "Movies"). + * - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. + * - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. + * - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. + * - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a "Genre" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. + * - `title`: The title for the filter. + * - Each `Sort` object contains a description of the sort field. + * - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). + * - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. + * - `title`: The title of the field. + * + * @param sectionId the Id of the library to query + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryResponse getLibrary(Double sectionId) throws Exception { + return this.getLibrary(sectionId, null); + } + + /** + * Get Library Details + * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: + * + * - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: + * - Primary: (e.g. all, On Deck) These are still used in some clients to provide "shortcuts" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. + * - Secondary: These are marked with `secondary="1"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. + * - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there's a completely obsolete entry marked `search="1"` which used to be used to allow clients to build search dialogs on the fly. + * - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won't render any filtering controls. The `Type` object contains: + * - `key`: This provides the root endpoint returning the actual media list for the type. + * - `type`: This is the metadata type for the type (if a standard Plex type). + * - `title`: The title for for the content of this type (e.g. "Movies"). + * - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. + * - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. + * - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. + * - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a "Genre" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. + * - `title`: The title for the filter. + * - Each `Sort` object contains a description of the sort field. + * - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). + * - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. + * - `title`: The title of the field. + * + * @param sectionId the Id of the library to query + * @param includeDetails Whether or not to include details for a section (types, filters, and sorts). + Only exists for backwards compatibility, media providers other than the server libraries have it on always. + + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryResponse getLibrary(Double sectionId, org.openapis.openapi.models.operations.IncludeDetails includeDetails) throws Exception { + org.openapis.openapi.models.operations.GetLibraryRequest request = new org.openapis.openapi.models.operations.GetLibraryRequest(sectionId); + request.includeDetails=includeDetails; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetLibraryRequest.class, baseUrl, "/library/sections/{sectionId}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetLibraryRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetLibraryResponse res = new org.openapis.openapi.models.operations.GetLibraryResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetLibraryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetLibraryResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Delete Library Section + * Delate a library using a specific section + * @param sectionId the Id of the library to query + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.DeleteLibraryResponse deleteLibrary(Double sectionId) throws Exception { + org.openapis.openapi.models.operations.DeleteLibraryRequest request = new org.openapis.openapi.models.operations.DeleteLibraryRequest(sectionId); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.DeleteLibraryRequest.class, baseUrl, "/library/sections/{sectionId}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.DeleteLibraryResponse res = new org.openapis.openapi.models.operations.DeleteLibraryResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.DeleteLibraryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.DeleteLibraryResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Library Items + * This endpoint will return a list of library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryItemsResponse getLibraryItems(Double sectionId) throws Exception { + return this.getLibraryItems(sectionId, null, null); + } + + /** + * Get Library Items + * This endpoint will return a list of library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @param filter the filter parameter + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryItemsResponse getLibraryItems(Double sectionId, String filter) throws Exception { + return this.getLibraryItems(sectionId, null, filter); + } + + /** + * Get Library Items + * This endpoint will return a list of library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @param type item type + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryItemsResponse getLibraryItems(Double sectionId, Double type) throws Exception { + return this.getLibraryItems(sectionId, type, null); + } + + /** + * Get Library Items + * This endpoint will return a list of library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @param type item type + * @param filter the filter parameter + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLibraryItemsResponse getLibraryItems(Double sectionId, Double type, String filter) throws Exception { + org.openapis.openapi.models.operations.GetLibraryItemsRequest request = new org.openapis.openapi.models.operations.GetLibraryItemsRequest(sectionId); + request.type=type; + request.filter=filter; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetLibraryItemsRequest.class, baseUrl, "/library/sections/{sectionId}/all", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetLibraryItemsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetLibraryItemsResponse res = new org.openapis.openapi.models.operations.GetLibraryItemsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetLibraryItemsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetLibraryItemsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Refresh Library + * This endpoint Refreshes the library. + * + * @param sectionId the Id of the library to refresh + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.RefreshLibraryResponse refreshLibrary(Double sectionId) throws Exception { + org.openapis.openapi.models.operations.RefreshLibraryRequest request = new org.openapis.openapi.models.operations.RefreshLibraryRequest(sectionId); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.RefreshLibraryRequest.class, baseUrl, "/library/sections/{sectionId}/refresh", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.RefreshLibraryResponse res = new org.openapis.openapi.models.operations.RefreshLibraryResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.RefreshLibraryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.RefreshLibraryResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Latest Library Items + * This endpoint will return a list of the latest library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @param type item type + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLatestLibraryItemsResponse getLatestLibraryItems(Double sectionId, Double type) throws Exception { + return this.getLatestLibraryItems(sectionId, type, null); + } + + /** + * Get Latest Library Items + * This endpoint will return a list of the latest library items filtered by the filter and type provided + * + * @param sectionId the Id of the library to query + * @param type item type + * @param filter the filter parameter + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetLatestLibraryItemsResponse getLatestLibraryItems(Double sectionId, Double type, String filter) throws Exception { + org.openapis.openapi.models.operations.GetLatestLibraryItemsRequest request = new org.openapis.openapi.models.operations.GetLatestLibraryItemsRequest(sectionId, type); + request.filter=filter; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetLatestLibraryItemsRequest.class, baseUrl, "/library/sections/{sectionId}/latest", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetLatestLibraryItemsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetLatestLibraryItemsResponse res = new org.openapis.openapi.models.operations.GetLatestLibraryItemsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetLatestLibraryItemsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetLatestLibraryItemsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Common Library Items + * Represents a "Common" item. It contains only the common attributes of the items selected by the provided filter + * + * @param sectionId the Id of the library to query + * @param type item type + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetCommonLibraryItemsResponse getCommonLibraryItems(Double sectionId, Double type) throws Exception { + return this.getCommonLibraryItems(sectionId, type, null); + } + + /** + * Get Common Library Items + * Represents a "Common" item. It contains only the common attributes of the items selected by the provided filter + * + * @param sectionId the Id of the library to query + * @param type item type + * @param filter the filter parameter + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetCommonLibraryItemsResponse getCommonLibraryItems(Double sectionId, Double type, String filter) throws Exception { + org.openapis.openapi.models.operations.GetCommonLibraryItemsRequest request = new org.openapis.openapi.models.operations.GetCommonLibraryItemsRequest(sectionId, type); + request.filter=filter; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetCommonLibraryItemsRequest.class, baseUrl, "/library/sections/{sectionId}/common", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetCommonLibraryItemsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetCommonLibraryItemsResponse res = new org.openapis.openapi.models.operations.GetCommonLibraryItemsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400 || httpRes.statusCode() == 404) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetCommonLibraryItemsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetCommonLibraryItemsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Items Metadata + * This endpoint will return the metadata of a library item specified with the ratingKey. + * + * @param ratingKey the id of the library item to return the children of. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetMetadataResponse getMetadata(Double ratingKey) throws Exception { + org.openapis.openapi.models.operations.GetMetadataRequest request = new org.openapis.openapi.models.operations.GetMetadataRequest(ratingKey); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetMetadataRequest.class, baseUrl, "/library/metadata/{ratingKey}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetMetadataResponse res = new org.openapis.openapi.models.operations.GetMetadataResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetMetadataResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetMetadataResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Items Children + * This endpoint will return the children of of a library item specified with the ratingKey. + * + * @param ratingKey the id of the library item to return the children of. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetMetadataChildrenResponse getMetadataChildren(Double ratingKey) throws Exception { + org.openapis.openapi.models.operations.GetMetadataChildrenRequest request = new org.openapis.openapi.models.operations.GetMetadataChildrenRequest(ratingKey); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetMetadataChildrenRequest.class, baseUrl, "/library/metadata/{ratingKey}/children", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetMetadataChildrenResponse res = new org.openapis.openapi.models.operations.GetMetadataChildrenResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetMetadataChildrenResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetMetadataChildrenResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get On Deck + * This endpoint will return the on deck content. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetOnDeckResponse getOnDeck() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/library/onDeck"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetOnDeckResponse res = new org.openapis.openapi.models.operations.GetOnDeckResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetOnDeckResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetOnDeckResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetOnDeckLibraryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetOnDeckLibraryResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Log.java b/lib/src/main/java/org/openapis/openapi/Log.java new file mode 100644 index 00000000..93c0c182 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Log.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Submit logs to the Log Handler for Plex Media Server + * + */ +public class Log { + + private SDKConfiguration sdkConfiguration; + + public Log(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Logging a single line message. + * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. + * + * @param level An integer log level to write to the PMS log with. + 0: Error + 1: Warning + 2: Info + 3: Debug + 4: Verbose + + * @param message The text of the message to write to the log. + * @param source a string indicating the source of the message. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.LogLineResponse logLine(org.openapis.openapi.models.operations.Level level, String message, String source) throws Exception { + org.openapis.openapi.models.operations.LogLineRequest request = new org.openapis.openapi.models.operations.LogLineRequest(level, message, source); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/log"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.LogLineRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.LogLineResponse res = new org.openapis.openapi.models.operations.LogLineResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.LogLineResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.LogLineResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Logging a multi-line message + * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.LogMultiLineResponse logMultiLine() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/log"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.LogMultiLineResponse res = new org.openapis.openapi.models.operations.LogMultiLineResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.LogMultiLineResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.LogMultiLineResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Enabling Papertrail + * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.EnablePaperTrailResponse enablePaperTrail() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/log/networked"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.EnablePaperTrailResponse res = new org.openapis.openapi.models.operations.EnablePaperTrailResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400 || httpRes.statusCode() == 403) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.EnablePaperTrailResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.EnablePaperTrailResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Media.java b/lib/src/main/java/org/openapis/openapi/Media.java new file mode 100644 index 00000000..6cf95aa0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Media.java @@ -0,0 +1,176 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls interacting with Plex Media Server Media + * + */ +public class Media { + + private SDKConfiguration sdkConfiguration; + + public Media(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Mark Media Played + * This will mark the provided media key as Played. + * @param key The media key to mark as played + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.MarkPlayedResponse markPlayed(Double key) throws Exception { + org.openapis.openapi.models.operations.MarkPlayedRequest request = new org.openapis.openapi.models.operations.MarkPlayedRequest(key); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/:/scrobble"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.MarkPlayedRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.MarkPlayedResponse res = new org.openapis.openapi.models.operations.MarkPlayedResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.MarkPlayedResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.MarkPlayedResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Mark Media Unplayed + * This will mark the provided media key as Unplayed. + * @param key The media key to mark as Unplayed + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.MarkUnplayedResponse markUnplayed(Double key) throws Exception { + org.openapis.openapi.models.operations.MarkUnplayedRequest request = new org.openapis.openapi.models.operations.MarkUnplayedRequest(key); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/:/unscrobble"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.MarkUnplayedRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.MarkUnplayedResponse res = new org.openapis.openapi.models.operations.MarkUnplayedResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.MarkUnplayedResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.MarkUnplayedResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Update Media Play Progress + * This API command can be used to update the play progress of a media item. + * + * @param key the media key + * @param time The time, in milliseconds, used to set the media playback progress. + * @param state The playback state of the media item. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.UpdatePlayProgressResponse updatePlayProgress(String key, Double time, String state) throws Exception { + org.openapis.openapi.models.operations.UpdatePlayProgressRequest request = new org.openapis.openapi.models.operations.UpdatePlayProgressRequest(key, time, state); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/:/progress"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.UpdatePlayProgressRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UpdatePlayProgressResponse res = new org.openapis.openapi.models.operations.UpdatePlayProgressResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UpdatePlayProgressResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UpdatePlayProgressResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Playlists.java b/lib/src/main/java/org/openapis/openapi/Playlists.java new file mode 100644 index 00000000..4e25d521 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Playlists.java @@ -0,0 +1,506 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). + * They can be organized in (optionally nesting) folders. + * Retrieving a playlist, or its items, will trigger a refresh of its metadata. + * This may cause the duration and number of items to change. + * + */ +public class Playlists { + + private SDKConfiguration sdkConfiguration; + + public Playlists(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Create a Playlist + * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: + * - `uri` - The content URI for what we're playing (e.g. `library://...`). + * - `playQueueID` - To create a playlist from an existing play queue. + * + * @param request the request object containing all of the parameters for the API call + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.CreatePlaylistResponse createPlaylist(org.openapis.openapi.models.operations.CreatePlaylistRequest request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/playlists"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.CreatePlaylistRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.CreatePlaylistResponse res = new org.openapis.openapi.models.operations.CreatePlaylistResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.CreatePlaylistResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.CreatePlaylistResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get All Playlists + * Get All Playlists given the specified filters. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistsResponse getPlaylists() throws Exception { + return this.getPlaylists(null, null); + } + + /** + * Get All Playlists + * Get All Playlists given the specified filters. + * @param smart type of playlists to return (default is all). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistsResponse getPlaylists(org.openapis.openapi.models.operations.QueryParamSmart smart) throws Exception { + return this.getPlaylists(null, smart); + } + + /** + * Get All Playlists + * Get All Playlists given the specified filters. + * @param playlistType limit to a type of playlist. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistsResponse getPlaylists(org.openapis.openapi.models.operations.PlaylistType playlistType) throws Exception { + return this.getPlaylists(playlistType, null); + } + + /** + * Get All Playlists + * Get All Playlists given the specified filters. + * @param playlistType limit to a type of playlist. + * @param smart type of playlists to return (default is all). + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistsResponse getPlaylists(org.openapis.openapi.models.operations.PlaylistType playlistType, org.openapis.openapi.models.operations.QueryParamSmart smart) throws Exception { + org.openapis.openapi.models.operations.GetPlaylistsRequest request = new org.openapis.openapi.models.operations.GetPlaylistsRequest(); + request.playlistType=playlistType; + request.smart=smart; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/playlists/all"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetPlaylistsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetPlaylistsResponse res = new org.openapis.openapi.models.operations.GetPlaylistsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetPlaylistsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetPlaylistsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Retrieve Playlist + * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: + * Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. + * + * @param playlistID the ID of the playlist + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistResponse getPlaylist(Double playlistID) throws Exception { + org.openapis.openapi.models.operations.GetPlaylistRequest request = new org.openapis.openapi.models.operations.GetPlaylistRequest(playlistID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetPlaylistRequest.class, baseUrl, "/playlists/{playlistID}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetPlaylistResponse res = new org.openapis.openapi.models.operations.GetPlaylistResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetPlaylistResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetPlaylistResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Deletes a Playlist + * This endpoint will delete a playlist + * + * @param playlistID the ID of the playlist + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.DeletePlaylistResponse deletePlaylist(Double playlistID) throws Exception { + org.openapis.openapi.models.operations.DeletePlaylistRequest request = new org.openapis.openapi.models.operations.DeletePlaylistRequest(playlistID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.DeletePlaylistRequest.class, baseUrl, "/playlists/{playlistID}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.DeletePlaylistResponse res = new org.openapis.openapi.models.operations.DeletePlaylistResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.DeletePlaylistResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.DeletePlaylistResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Update a Playlist + * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` + * + * @param playlistID the ID of the playlist + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.UpdatePlaylistResponse updatePlaylist(Double playlistID) throws Exception { + org.openapis.openapi.models.operations.UpdatePlaylistRequest request = new org.openapis.openapi.models.operations.UpdatePlaylistRequest(playlistID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.UpdatePlaylistRequest.class, baseUrl, "/playlists/{playlistID}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("PUT"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UpdatePlaylistResponse res = new org.openapis.openapi.models.operations.UpdatePlaylistResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UpdatePlaylistResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UpdatePlaylistResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Retrieve Playlist Contents + * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. + * By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. + * For example, you could use this to display a list of recently added albums vis a smart playlist. + * Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. + * + * @param playlistID the ID of the playlist + * @param type the metadata type of the item to return + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetPlaylistContentsResponse getPlaylistContents(Double playlistID, Double type) throws Exception { + org.openapis.openapi.models.operations.GetPlaylistContentsRequest request = new org.openapis.openapi.models.operations.GetPlaylistContentsRequest(playlistID, type); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.GetPlaylistContentsRequest.class, baseUrl, "/playlists/{playlistID}/items", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetPlaylistContentsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetPlaylistContentsResponse res = new org.openapis.openapi.models.operations.GetPlaylistContentsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetPlaylistContentsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetPlaylistContentsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Delete Playlist Contents + * Clears a playlist, only works with dumb playlists. Returns the playlist. + * + * @param playlistID the ID of the playlist + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.ClearPlaylistContentsResponse clearPlaylistContents(Double playlistID) throws Exception { + org.openapis.openapi.models.operations.ClearPlaylistContentsRequest request = new org.openapis.openapi.models.operations.ClearPlaylistContentsRequest(playlistID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.ClearPlaylistContentsRequest.class, baseUrl, "/playlists/{playlistID}/items", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.ClearPlaylistContentsResponse res = new org.openapis.openapi.models.operations.ClearPlaylistContentsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.ClearPlaylistContentsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.ClearPlaylistContentsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Adding to a Playlist + * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. + * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. + * + * @param playlistID the ID of the playlist + * @param uri the content URI for the playlist + * @param playQueueID the play queue to add to a playlist + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.AddPlaylistContentsResponse addPlaylistContents(Double playlistID, String uri, Double playQueueID) throws Exception { + org.openapis.openapi.models.operations.AddPlaylistContentsRequest request = new org.openapis.openapi.models.operations.AddPlaylistContentsRequest(playlistID, uri, playQueueID); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.AddPlaylistContentsRequest.class, baseUrl, "/playlists/{playlistID}/items", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("PUT"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.AddPlaylistContentsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.AddPlaylistContentsResponse res = new org.openapis.openapi.models.operations.AddPlaylistContentsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.AddPlaylistContentsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.AddPlaylistContentsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Upload Playlist + * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. + * + * @param path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. + If the `path` argument is a directory, that path will be scanned for playlist files to be processed. + Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. + The GUID of each playlist is based on the filename. + If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. + The GUID of each playlist is based on the filename. + + * @param force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. + The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. + + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.UploadPlaylistResponse uploadPlaylist(String path, org.openapis.openapi.models.operations.Force force) throws Exception { + org.openapis.openapi.models.operations.UploadPlaylistRequest request = new org.openapis.openapi.models.operations.UploadPlaylistRequest(path, force); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/playlists/upload"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.UploadPlaylistRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UploadPlaylistResponse res = new org.openapis.openapi.models.operations.UploadPlaylistResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UploadPlaylistResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UploadPlaylistResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/SDK.java b/lib/src/main/java/org/openapis/openapi/SDK.java new file mode 100644 index 00000000..0f86606a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/SDK.java @@ -0,0 +1,300 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.SpeakeasyHTTPClient; + +/** + * Plex-API: A Plex Media Server API Map + * An Open API Spec for interacting with Plex.tv and Plex Servers + */ +public class SDK { + /** + * SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] SERVERS = { + /** + * The full address of your Plex Server + */ + "http://10.10.10.47:32400", + /** + * The full address of your Plex Server + */ + "{protocol}://{ip}:{port}", + }; + + /** + * Operations against the Plex Media Server System. + * + */ + public Server server; + /** + * API Calls interacting with Plex Media Server Media + * + */ + public Media media; + /** + * Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. + * Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. + * Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: + * - They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. + * - They must contain an `type` which is used by clients to distinguish the specific activity. + * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) + * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. + * + */ + public Activities activities; + /** + * Butler is the task manager of the Plex Media Server Ecosystem. + * + */ + public Butler butler; + /** + * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. + * + */ + public Hubs hubs; + /** + * API Calls that perform search operations with Plex Media Server + * + */ + public Search search; + /** + * API Calls interacting with Plex Media Server Libraries + * + */ + public Library library; + /** + * Submit logs to the Log Handler for Plex Media Server + * + */ + public Log log; + /** + * Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). + * They can be organized in (optionally nesting) folders. + * Retrieving a playlist, or its items, will trigger a refresh of its metadata. + * This may cause the duration and number of items to change. + * + */ + public Playlists playlists; + /** + * API Calls against Security for Plex Media Server + * + */ + public Security security; + /** + * API Calls that perform search operations with Plex Media Server Sessions + * + */ + public Sessions sessions; + /** + * This describes the API for searching and applying updates to the Plex Media Server. + * Updates to the status can be observed via the Event API. + * + */ + public Updater updater; + /** + * API Calls that perform operations with Plex Media Server Videos + * + */ + public Video video; + + private SDKConfiguration sdkConfiguration; + + /** + * The Builder class allows the configuration of a new instance of the SDK. + */ + public static class Builder { + private SDKConfiguration sdkConfiguration = new SDKConfiguration(); + + private Builder() { + } + + /** + * Allows the default HTTP client to be overridden with a custom implementation. + * @param client The HTTP client to use for all requests. + * @return The builder instance. + */ + public Builder setClient(HTTPClient client) { + this.sdkConfiguration.defaultClient = client; + return this; + } + + /** + * Configures the SDK to use the provided security details. + * @param security The security details to use for all requests. + * @return The builder instance. + */ + public Builder setSecurity(org.openapis.openapi.models.shared.Security security) { + this.sdkConfiguration.security = security; + return this; + } + + /** + * Allows the overriding of the default server URL. + * @param serverUrl The server URL to use for all requests. + * @return The builder instance. + */ + public Builder setServerURL(String serverUrl) { + this.sdkConfiguration.serverUrl = serverUrl; + return this; + } + + /** + * Allows the overriding of the default server URL with a templated URL populated with the provided parameters. + * @param serverUrl The server URL to use for all requests. + * @param params The parameters to use when templating the URL. + * @return The builder instance. + */ + public Builder setServerURL(String serverUrl, java.util.Map params) { + this.sdkConfiguration.serverUrl = org.openapis.openapi.utils.Utils.templateUrl(serverUrl, params); + return this; + } + + /** + * Allows the overriding of the default server by index + * @param serverIdx The server to use for all requests. + * @return The builder instance. + */ + public Builder setServerIndex(int serverIdx) { + this.sdkConfiguration.serverIdx = serverIdx; + this.sdkConfiguration.serverUrl = SERVERS[serverIdx]; + return this; + } + + /** + * ServerProtocol - The protocol to use when connecting to your plex server. + */ + public enum ServerProtocol { + HTTP("http"), + HTTPS("https"); + + @JsonValue + public final String value; + + private ServerProtocol(String value) { + this.value = value; + } + } + + /** + * Allows setting the $variable.Name variable for url substitution. + * @param protocol The value to set. + * @return The builder instance. + */ + public Builder setProtocol(ServerProtocol protocol) { + for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + if (!server.containsKey("protocol")) { + continue; + } + server.put("protocol", protocol.toString()); + } + + return this; + } + + /** + * Allows setting the $variable.Name variable for url substitution. + * @param ip The value to set. + * @return The builder instance. + */ + public Builder setIp(String ip) { + for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + if (!server.containsKey("ip")) { + continue; + } + server.put("ip", ip.toString()); + } + + return this; + } + + /** + * Allows setting the $variable.Name variable for url substitution. + * @param port The value to set. + * @return The builder instance. + */ + public Builder setPort(String port) { + for (java.util.Map server : this.sdkConfiguration.serverDefaults) { + if (!server.containsKey("port")) { + continue; + } + server.put("port", port.toString()); + } + + return this; + } + + /** + * Builds a new instance of the SDK. + * @return The SDK instance. + * @throws Exception Thrown if the SDK could not be built. + */ + public SDK build() throws Exception { + if (this.sdkConfiguration.defaultClient == null) { + this.sdkConfiguration.defaultClient = new SpeakeasyHTTPClient(); + } + + if (this.sdkConfiguration.security != null) { + this.sdkConfiguration.securityClient = org.openapis.openapi.utils.Utils.configureSecurityClient(this.sdkConfiguration.defaultClient, this.sdkConfiguration.security); + } + + if (this.sdkConfiguration.securityClient == null) { + this.sdkConfiguration.securityClient = this.sdkConfiguration.defaultClient; + } + + if (this.sdkConfiguration.serverUrl == null || this.sdkConfiguration.serverUrl.isBlank()) { + this.sdkConfiguration.serverUrl = SERVERS[0]; + this.sdkConfiguration.serverIdx = 0; + } + + if (this.sdkConfiguration.serverUrl.endsWith("/")) { + this.sdkConfiguration.serverUrl = this.sdkConfiguration.serverUrl.substring(0, this.sdkConfiguration.serverUrl.length() - 1); + } + + return new SDK(this.sdkConfiguration); + } + } + + /** + * Get a new instance of the SDK builder to configure a new instance of the SDK. + * @return The SDK builder instance. + */ + public static Builder builder() { + return new Builder(); + } + + private SDK(SDKConfiguration sdkConfiguration) throws Exception { + this.sdkConfiguration = sdkConfiguration; + + this.server = new Server(this.sdkConfiguration); + + this.media = new Media(this.sdkConfiguration); + + this.activities = new Activities(this.sdkConfiguration); + + this.butler = new Butler(this.sdkConfiguration); + + this.hubs = new Hubs(this.sdkConfiguration); + + this.search = new Search(this.sdkConfiguration); + + this.library = new Library(this.sdkConfiguration); + + this.log = new Log(this.sdkConfiguration); + + this.playlists = new Playlists(this.sdkConfiguration); + + this.security = new Security(this.sdkConfiguration); + + this.sessions = new Sessions(this.sdkConfiguration); + + this.updater = new Updater(this.sdkConfiguration); + + this.video = new Video(this.sdkConfiguration); + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java b/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java new file mode 100644 index 00000000..3568cea4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.models.shared.Security; +import java.util.Map; +import java.util.HashMap; +import java.util.List; +import java.util.ArrayList; + +class SDKConfiguration { + public HTTPClient defaultClient; + public HTTPClient securityClient; + public Security security; + public String serverUrl; + public int serverIdx = 0; + List> serverDefaults = new ArrayList>(){{ + add(new HashMap()); + add(new HashMap(){{ + put("protocol", "http"); + put("ip", "10.10.10.47"); + put("port", "32400"); + }}); + }}; + public String language = "java"; + public String openapiDocVersion = "0.0.3"; + public String sdkVersion = "0.1.0"; + public String genVersion = "2.223.3"; + public String userAgent = "speakeasy-sdk/java 0.1.0 2.223.3 0.0.3 "; + + + public Map getServerVariableDefaults() { + return serverDefaults.get(this.serverIdx); + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Search.java b/lib/src/main/java/org/openapis/openapi/Search.java new file mode 100644 index 00000000..7ea85b6d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Search.java @@ -0,0 +1,283 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls that perform search operations with Plex Media Server + * + */ +public class Search { + + private SDKConfiguration sdkConfiguration; + + public Search(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Perform a search + * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). + * + * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + * - `section`: There are multiple identical results from different sections. + * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). + * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` + * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). + * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. + * + * This request is intended to be very fast, and called as the user types. + * + * @param query The query term + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformSearchResponse performSearch(String query) throws Exception { + return this.performSearch(query, null, null); + } + + /** + * Perform a search + * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). + * + * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + * - `section`: There are multiple identical results from different sections. + * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). + * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` + * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). + * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. + * + * This request is intended to be very fast, and called as the user types. + * + * @param query The query term + * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformSearchResponse performSearch(String query, Double sectionId) throws Exception { + return this.performSearch(query, sectionId, null); + } + + /** + * Perform a search + * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). + * + * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: + * + * - `reason`: The reason for the result, if not because of a direct search term match; can be either: + * - `section`: There are multiple identical results from different sections. + * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). + * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` + * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). + * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. + * + * This request is intended to be very fast, and called as the user types. + * + * @param query The query term + * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs + * @param limit The number of items to return per hub + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformSearchResponse performSearch(String query, Double sectionId, Double limit) throws Exception { + org.openapis.openapi.models.operations.PerformSearchRequest request = new org.openapis.openapi.models.operations.PerformSearchRequest(query); + request.sectionId=sectionId; + request.limit=limit; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/hubs/search"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.PerformSearchRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.PerformSearchResponse res = new org.openapis.openapi.models.operations.PerformSearchResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.PerformSearchResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.PerformSearchResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Perform a voice search + * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. + * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. + * Whenever possible, clients should limit the search to the appropriate type. + * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. + * + * @param query The query term + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformVoiceSearchResponse performVoiceSearch(String query) throws Exception { + return this.performVoiceSearch(query, null, null); + } + + /** + * Perform a voice search + * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. + * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. + * Whenever possible, clients should limit the search to the appropriate type. + * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. + * + * @param query The query term + * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformVoiceSearchResponse performVoiceSearch(String query, Double sectionId) throws Exception { + return this.performVoiceSearch(query, sectionId, null); + } + + /** + * Perform a voice search + * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. + * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. + * Whenever possible, clients should limit the search to the appropriate type. + * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. + * + * @param query The query term + * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs + * @param limit The number of items to return per hub + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.PerformVoiceSearchResponse performVoiceSearch(String query, Double sectionId, Double limit) throws Exception { + org.openapis.openapi.models.operations.PerformVoiceSearchRequest request = new org.openapis.openapi.models.operations.PerformVoiceSearchRequest(query); + request.sectionId=sectionId; + request.limit=limit; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/hubs/search/voice"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.PerformVoiceSearchRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.PerformVoiceSearchResponse res = new org.openapis.openapi.models.operations.PerformVoiceSearchResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.PerformVoiceSearchResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.PerformVoiceSearchResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Search Results + * This will search the database for the string provided. + * @param query The search query string to use + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetSearchResultsResponse getSearchResults(String query) throws Exception { + org.openapis.openapi.models.operations.GetSearchResultsRequest request = new org.openapis.openapi.models.operations.GetSearchResultsRequest(query); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/search"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetSearchResultsRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetSearchResultsResponse res = new org.openapis.openapi.models.operations.GetSearchResultsResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetSearchResultsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetSearchResultsResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetSearchResultsSearchResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetSearchResultsSearchResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Security.java b/lib/src/main/java/org/openapis/openapi/Security.java new file mode 100644 index 00000000..7fdbf8e8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Security.java @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls against Security for Plex Media Server + * + */ +public class Security { + + private SDKConfiguration sdkConfiguration; + + public Security(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get a Transient Token. + * This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. + * + * @param type `delegation` - This is the only supported `type` parameter. + * @param scope `all` - This is the only supported `scope` parameter. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetTransientTokenResponse getTransientToken(org.openapis.openapi.models.operations.QueryParamType type, org.openapis.openapi.models.operations.Scope scope) throws Exception { + org.openapis.openapi.models.operations.GetTransientTokenRequest request = new org.openapis.openapi.models.operations.GetTransientTokenRequest(type, scope); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/security/token"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetTransientTokenRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetTransientTokenResponse res = new org.openapis.openapi.models.operations.GetTransientTokenResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetTransientTokenResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetTransientTokenResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Source Connection Information + * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. + * Note: requires Plex Media Server >= 1.15.4. + * + * @param source The source identifier with an included prefix. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetSourceConnectionInformationResponse getSourceConnectionInformation(String source) throws Exception { + org.openapis.openapi.models.operations.GetSourceConnectionInformationRequest request = new org.openapis.openapi.models.operations.GetSourceConnectionInformationRequest(source); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/security/resources"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetSourceConnectionInformationRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetSourceConnectionInformationResponse res = new org.openapis.openapi.models.operations.GetSourceConnectionInformationResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetSourceConnectionInformationResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetSourceConnectionInformationResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Server.java b/lib/src/main/java/org/openapis/openapi/Server.java new file mode 100644 index 00000000..42415f36 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Server.java @@ -0,0 +1,402 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * Operations against the Plex Media Server System. + * + */ +public class Server { + + private SDKConfiguration sdkConfiguration; + + public Server(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Server Capabilities + * Server Capabilities + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetServerCapabilitiesResponse getServerCapabilities() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetServerCapabilitiesResponse res = new org.openapis.openapi.models.operations.GetServerCapabilitiesResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerCapabilitiesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerCapabilitiesResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerCapabilitiesServerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerCapabilitiesServerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Get Server Preferences + * Get Server Preferences + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetServerPreferencesResponse getServerPreferences() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/:/prefs"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetServerPreferencesResponse res = new org.openapis.openapi.models.operations.GetServerPreferencesResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerPreferencesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerPreferencesResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Available Clients + * Get Available Clients + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetAvailableClientsResponse getAvailableClients() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/clients"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetAvailableClientsResponse res = new org.openapis.openapi.models.operations.GetAvailableClientsResponse(contentType, httpRes.statusCode(), httpRes) {{ + responseBodies = null; + object = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.ResponseBody[] out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.ResponseBody[].class); + res.responseBodies = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetAvailableClientsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetAvailableClientsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Devices + * Get Devices + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetDevicesResponse getDevices() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/devices"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetDevicesResponse res = new org.openapis.openapi.models.operations.GetDevicesResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetDevicesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetDevicesResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetDevicesServerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetDevicesServerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Get Server Identity + * Get Server Identity + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetServerIdentityResponse getServerIdentity() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/identity"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetServerIdentityResponse res = new org.openapis.openapi.models.operations.GetServerIdentityResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerIdentityResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerIdentityResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerIdentityServerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerIdentityServerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Get MyPlex Account + * Returns MyPlex Account Information + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetMyPlexAccountResponse getMyPlexAccount() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/myplex/account"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetMyPlexAccountResponse res = new org.openapis.openapi.models.operations.GetMyPlexAccountResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetMyPlexAccountResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetMyPlexAccountResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetMyPlexAccountServerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetMyPlexAccountServerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Get a Resized Photo + * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. + * + * @param request the request object containing all of the parameters for the API call + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetResizedPhotoResponse getResizedPhoto(org.openapis.openapi.models.operations.GetResizedPhotoRequest request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/photo/:/transcode"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetResizedPhotoRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetResizedPhotoResponse res = new org.openapis.openapi.models.operations.GetResizedPhotoResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetResizedPhotoResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetResizedPhotoResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Server List + * Get Server List + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetServerListResponse getServerList() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/servers"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetServerListResponse res = new org.openapis.openapi.models.operations.GetServerListResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerListResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerListResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetServerListServerResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetServerListServerResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Sessions.java b/lib/src/main/java/org/openapis/openapi/Sessions.java new file mode 100644 index 00000000..a2b03053 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Sessions.java @@ -0,0 +1,196 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls that perform search operations with Plex Media Server Sessions + * + */ +public class Sessions { + + private SDKConfiguration sdkConfiguration; + + public Sessions(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Get Active Sessions + * This will retrieve the "Now Playing" Information of the PMS. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetSessionsResponse getSessions() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/status/sessions"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetSessionsResponse res = new org.openapis.openapi.models.operations.GetSessionsResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetSessionsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetSessionsResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Session History + * This will Retrieve a listing of all history views. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetSessionHistoryResponse getSessionHistory() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/status/sessions/history/all"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetSessionHistoryResponse res = new org.openapis.openapi.models.operations.GetSessionHistoryResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetSessionHistoryResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetSessionHistoryResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get Transcode Sessions + * Get Transcode Sessions + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetTranscodeSessionsResponse getTranscodeSessions() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/transcode/sessions"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetTranscodeSessionsResponse res = new org.openapis.openapi.models.operations.GetTranscodeSessionsResponse(contentType, httpRes.statusCode(), httpRes) {{ + twoHundredApplicationJsonObject = null; + fourHundredAndOneApplicationJsonObject = null; + }}; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetTranscodeSessionsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetTranscodeSessionsResponseBody.class); + res.twoHundredApplicationJsonObject = out; + } + } + else if (httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetTranscodeSessionsSessionsResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetTranscodeSessionsSessionsResponseBody.class); + res.fourHundredAndOneApplicationJsonObject = out; + } + } + + return res; + } + + /** + * Stop a Transcode Session + * Stop a Transcode Session + * @param sessionKey the Key of the transcode session to stop + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StopTranscodeSessionResponse stopTranscodeSession(String sessionKey) throws Exception { + org.openapis.openapi.models.operations.StopTranscodeSessionRequest request = new org.openapis.openapi.models.operations.StopTranscodeSessionRequest(sessionKey); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(org.openapis.openapi.models.operations.StopTranscodeSessionRequest.class, baseUrl, "/transcode/sessions/{sessionKey}", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("DELETE"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StopTranscodeSessionResponse res = new org.openapis.openapi.models.operations.StopTranscodeSessionResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StopTranscodeSessionResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StopTranscodeSessionResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Updater.java b/lib/src/main/java/org/openapis/openapi/Updater.java new file mode 100644 index 00000000..3468d2c5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Updater.java @@ -0,0 +1,215 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * This describes the API for searching and applying updates to the Plex Media Server. + * Updates to the status can be observed via the Event API. + * + */ +public class Updater { + + private SDKConfiguration sdkConfiguration; + + public Updater(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Querying status of updates + * Querying status of updates + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetUpdateStatusResponse getUpdateStatus() throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/updater/status"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetUpdateStatusResponse res = new org.openapis.openapi.models.operations.GetUpdateStatusResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetUpdateStatusResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetUpdateStatusResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Checking for updates + * Checking for updates + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.CheckForUpdatesResponse checkForUpdates() throws Exception { + return this.checkForUpdates(null); + } + + /** + * Checking for updates + * Checking for updates + * @param download Indicate that you want to start download any updates found. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.CheckForUpdatesResponse checkForUpdates(org.openapis.openapi.models.operations.Download download) throws Exception { + org.openapis.openapi.models.operations.CheckForUpdatesRequest request = new org.openapis.openapi.models.operations.CheckForUpdatesRequest(); + request.download=download; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/updater/check"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("PUT"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.CheckForUpdatesRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.CheckForUpdatesResponse res = new org.openapis.openapi.models.operations.CheckForUpdatesResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.CheckForUpdatesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.CheckForUpdatesResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Apply Updates + * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed + * + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.ApplyUpdatesResponse applyUpdates() throws Exception { + return this.applyUpdates(null, null); + } + + /** + * Apply Updates + * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed + * + * @param skip Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.ApplyUpdatesResponse applyUpdates(org.openapis.openapi.models.operations.Skip skip) throws Exception { + return this.applyUpdates(null, skip); + } + + /** + * Apply Updates + * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed + * + * @param tonight Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.ApplyUpdatesResponse applyUpdates(org.openapis.openapi.models.operations.Tonight tonight) throws Exception { + return this.applyUpdates(tonight, null); + } + + /** + * Apply Updates + * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed + * + * @param tonight Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + * @param skip Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.ApplyUpdatesResponse applyUpdates(org.openapis.openapi.models.operations.Tonight tonight, org.openapis.openapi.models.operations.Skip skip) throws Exception { + org.openapis.openapi.models.operations.ApplyUpdatesRequest request = new org.openapis.openapi.models.operations.ApplyUpdatesRequest(); + request.tonight=tonight; + request.skip=skip; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/updater/apply"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("PUT"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.ApplyUpdatesRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.ApplyUpdatesResponse res = new org.openapis.openapi.models.operations.ApplyUpdatesResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400 || httpRes.statusCode() == 500) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.ApplyUpdatesResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.ApplyUpdatesResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/Video.java b/lib/src/main/java/org/openapis/openapi/Video.java new file mode 100644 index 00000000..d6b7587e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/Video.java @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi; + +import com.fasterxml.jackson.databind.ObjectMapper; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import org.apache.http.NameValuePair; +import org.openapis.openapi.utils.HTTPClient; +import org.openapis.openapi.utils.HTTPRequest; +import org.openapis.openapi.utils.JSON; + +/** + * API Calls that perform operations with Plex Media Server Videos + * + */ +public class Video { + + private SDKConfiguration sdkConfiguration; + + public Video(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * Start Universal Transcode + * Begin a Universal Transcode Session + * @param request the request object containing all of the parameters for the API call + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.StartUniversalTranscodeResponse startUniversalTranscode(org.openapis.openapi.models.operations.StartUniversalTranscodeRequest request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/video/:/transcode/universal/start.mpd"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.StartUniversalTranscodeRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.StartUniversalTranscodeResponse res = new org.openapis.openapi.models.operations.StartUniversalTranscodeResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.StartUniversalTranscodeResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.StartUniversalTranscodeResponseBody.class); + res.object = out; + } + } + + return res; + } + + /** + * Get the timeline for a media item + * Get the timeline for a media item + * @param request the request object containing all of the parameters for the API call + * @return the response from the API call + * @throws Exception if the API call fails + */ + public org.openapis.openapi.models.operations.GetTimelineResponse getTimeline(org.openapis.openapi.models.operations.GetTimelineRequest request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/:/timeline"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.GetTimelineRequest.class, request, null); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.GetTimelineResponse res = new org.openapis.openapi.models.operations.GetTimelineResponse(contentType, httpRes.statusCode(), httpRes) {{ + object = null; + }}; + + if (httpRes.statusCode() == 200 || httpRes.statusCode() == 400) { + } + else if (httpRes.statusCode() == 401) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.GetTimelineResponseBody out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.GetTimelineResponseBody.class); + res.object = out; + } + } + + return res; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Activity.java b/lib/src/main/java/org/openapis/openapi/models/operations/Activity.java new file mode 100644 index 00000000..8eb86d78 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Activity.java @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Activity { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("uuid") + public String uuid; + + public Activity withUuid(String uuid) { + this.uuid = uuid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public String type; + + public Activity withType(String type) { + this.type = type; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("cancellable") + public Boolean cancellable; + + public Activity withCancellable(Boolean cancellable) { + this.cancellable = cancellable; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("userID") + public Double userID; + + public Activity withUserID(Double userID) { + this.userID = userID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public Activity withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subtitle") + public String subtitle; + + public Activity withSubtitle(String subtitle) { + this.subtitle = subtitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("progress") + public Double progress; + + public Activity withProgress(Double progress) { + this.progress = progress; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Context") + public Context context; + + public Activity withContext(Context context) { + this.context = context; + return this; + } + + public Activity(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsErrors.java new file mode 100644 index 00000000..baeba327 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class AddPlaylistContentsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public AddPlaylistContentsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public AddPlaylistContentsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public AddPlaylistContentsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public AddPlaylistContentsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsRequest.java new file mode 100644 index 00000000..4ef76977 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsRequest.java @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class AddPlaylistContentsRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public AddPlaylistContentsRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + /** + * the content URI for the playlist + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri") + public String uri; + + public AddPlaylistContentsRequest withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * the play queue to add to a playlist + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") + public Double playQueueID; + + public AddPlaylistContentsRequest withPlayQueueID(Double playQueueID) { + this.playQueueID = playQueueID; + return this; + } + + public AddPlaylistContentsRequest(@JsonProperty("playlistID") Double playlistID, @JsonProperty("uri") String uri, @JsonProperty("playQueueID") Double playQueueID) { + this.playlistID = playlistID; + this.uri = uri; + this.playQueueID = playQueueID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponse.java new file mode 100644 index 00000000..ba180285 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class AddPlaylistContentsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public AddPlaylistContentsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public AddPlaylistContentsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public AddPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public AddPlaylistContentsResponseBody object; + + public AddPlaylistContentsResponse withObject(AddPlaylistContentsResponseBody object) { + this.object = object; + return this; + } + + public AddPlaylistContentsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponseBody.java new file mode 100644 index 00000000..e8c3fe42 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/AddPlaylistContentsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * AddPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class AddPlaylistContentsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public AddPlaylistContentsErrors[] errors; + + public AddPlaylistContentsResponseBody withErrors(AddPlaylistContentsErrors[] errors) { + this.errors = errors; + return this; + } + + public AddPlaylistContentsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesErrors.java new file mode 100644 index 00000000..b4b243ec --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ApplyUpdatesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public ApplyUpdatesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public ApplyUpdatesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public ApplyUpdatesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public ApplyUpdatesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesRequest.java new file mode 100644 index 00000000..cc661d08 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesRequest.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class ApplyUpdatesRequest { + /** + * Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=tonight") + public Tonight tonight; + + public ApplyUpdatesRequest withTonight(Tonight tonight) { + this.tonight = tonight; + return this; + } + + /** + * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=skip") + public Skip skip; + + public ApplyUpdatesRequest withSkip(Skip skip) { + this.skip = skip; + return this; + } + + public ApplyUpdatesRequest(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponse.java new file mode 100644 index 00000000..b77ad4ae --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class ApplyUpdatesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public ApplyUpdatesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public ApplyUpdatesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public ApplyUpdatesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public ApplyUpdatesResponseBody object; + + public ApplyUpdatesResponse withObject(ApplyUpdatesResponseBody object) { + this.object = object; + return this; + } + + public ApplyUpdatesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponseBody.java new file mode 100644 index 00000000..16a80347 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ApplyUpdatesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * ApplyUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class ApplyUpdatesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public ApplyUpdatesErrors[] errors; + + public ApplyUpdatesResponseBody withErrors(ApplyUpdatesErrors[] errors) { + this.errors = errors; + return this; + } + + public ApplyUpdatesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTask.java b/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTask.java new file mode 100644 index 00000000..8e939259 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTask.java @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ButlerTask { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + public String name; + + public ButlerTask withName(String name) { + this.name = name; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("interval") + public Double interval; + + public ButlerTask withInterval(Double interval) { + this.interval = interval; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scheduleRandomized") + public Boolean scheduleRandomized; + + public ButlerTask withScheduleRandomized(Boolean scheduleRandomized) { + this.scheduleRandomized = scheduleRandomized; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + public Boolean enabled; + + public ButlerTask withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public ButlerTask withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + public String description; + + public ButlerTask withDescription(String description) { + this.description = description; + return this; + } + + public ButlerTask(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTasks.java b/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTasks.java new file mode 100644 index 00000000..8b8c491f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ButlerTasks.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ButlerTasks { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ButlerTask") + public ButlerTask[] butlerTask; + + public ButlerTasks withButlerTask(ButlerTask[] butlerTask) { + this.butlerTask = butlerTask; + return this; + } + + public ButlerTasks(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesErrors.java new file mode 100644 index 00000000..c244fff2 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class CancelServerActivitiesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public CancelServerActivitiesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public CancelServerActivitiesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public CancelServerActivitiesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public CancelServerActivitiesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesRequest.java new file mode 100644 index 00000000..9e323d8a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class CancelServerActivitiesRequest { + /** + * The UUID of the activity to cancel. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=activityUUID") + public String activityUUID; + + public CancelServerActivitiesRequest withActivityUUID(String activityUUID) { + this.activityUUID = activityUUID; + return this; + } + + public CancelServerActivitiesRequest(@JsonProperty("activityUUID") String activityUUID) { + this.activityUUID = activityUUID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponse.java new file mode 100644 index 00000000..d4b4d3df --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class CancelServerActivitiesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public CancelServerActivitiesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public CancelServerActivitiesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public CancelServerActivitiesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public CancelServerActivitiesResponseBody object; + + public CancelServerActivitiesResponse withObject(CancelServerActivitiesResponseBody object) { + this.object = object; + return this; + } + + public CancelServerActivitiesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponseBody.java new file mode 100644 index 00000000..2b94646b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CancelServerActivitiesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * CancelServerActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class CancelServerActivitiesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public CancelServerActivitiesErrors[] errors; + + public CancelServerActivitiesResponseBody withErrors(CancelServerActivitiesErrors[] errors) { + this.errors = errors; + return this; + } + + public CancelServerActivitiesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesErrors.java new file mode 100644 index 00000000..ae74155d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class CheckForUpdatesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public CheckForUpdatesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public CheckForUpdatesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public CheckForUpdatesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public CheckForUpdatesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesRequest.java new file mode 100644 index 00000000..e1f2b6b5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesRequest.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class CheckForUpdatesRequest { + /** + * Indicate that you want to start download any updates found. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=download") + public Download download; + + public CheckForUpdatesRequest withDownload(Download download) { + this.download = download; + return this; + } + + public CheckForUpdatesRequest(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponse.java new file mode 100644 index 00000000..a766d763 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class CheckForUpdatesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public CheckForUpdatesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public CheckForUpdatesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public CheckForUpdatesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public CheckForUpdatesResponseBody object; + + public CheckForUpdatesResponse withObject(CheckForUpdatesResponseBody object) { + this.object = object; + return this; + } + + public CheckForUpdatesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponseBody.java new file mode 100644 index 00000000..39215845 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CheckForUpdatesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * CheckForUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class CheckForUpdatesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public CheckForUpdatesErrors[] errors; + + public CheckForUpdatesResponseBody withErrors(CheckForUpdatesErrors[] errors) { + this.errors = errors; + return this; + } + + public CheckForUpdatesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsErrors.java new file mode 100644 index 00000000..0cd559f8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ClearPlaylistContentsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public ClearPlaylistContentsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public ClearPlaylistContentsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public ClearPlaylistContentsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public ClearPlaylistContentsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsRequest.java new file mode 100644 index 00000000..02ddcbb7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class ClearPlaylistContentsRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public ClearPlaylistContentsRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + public ClearPlaylistContentsRequest(@JsonProperty("playlistID") Double playlistID) { + this.playlistID = playlistID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponse.java new file mode 100644 index 00000000..ae38c950 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class ClearPlaylistContentsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public ClearPlaylistContentsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public ClearPlaylistContentsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public ClearPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public ClearPlaylistContentsResponseBody object; + + public ClearPlaylistContentsResponse withObject(ClearPlaylistContentsResponseBody object) { + this.object = object; + return this; + } + + public ClearPlaylistContentsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponseBody.java new file mode 100644 index 00000000..d6780b5c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ClearPlaylistContentsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * ClearPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class ClearPlaylistContentsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public ClearPlaylistContentsErrors[] errors; + + public ClearPlaylistContentsResponseBody withErrors(ClearPlaylistContentsErrors[] errors) { + this.errors = errors; + return this; + } + + public ClearPlaylistContentsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Context.java b/lib/src/main/java/org/openapis/openapi/models/operations/Context.java new file mode 100644 index 00000000..3f69bb73 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Context.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Context { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionID") + public String librarySectionID; + + public Context withLibrarySectionID(String librarySectionID) { + this.librarySectionID = librarySectionID; + return this; + } + + public Context(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Country.java b/lib/src/main/java/org/openapis/openapi/models/operations/Country.java new file mode 100644 index 00000000..f9a5816e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Country.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Country { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public Country withTag(String tag) { + this.tag = tag; + return this; + } + + public Country(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistErrors.java new file mode 100644 index 00000000..997ba2c1 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class CreatePlaylistErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public CreatePlaylistErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public CreatePlaylistErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public CreatePlaylistErrors withStatus(Double status) { + this.status = status; + return this; + } + + public CreatePlaylistErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistRequest.java new file mode 100644 index 00000000..008b3633 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistRequest.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class CreatePlaylistRequest { + /** + * name of the playlist + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=title") + public String title; + + public CreatePlaylistRequest withTitle(String title) { + this.title = title; + return this; + } + + /** + * type of playlist to create + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Type type; + + public CreatePlaylistRequest withType(Type type) { + this.type = type; + return this; + } + + /** + * whether the playlist is smart or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=smart") + public Smart smart; + + public CreatePlaylistRequest withSmart(Smart smart) { + this.smart = smart; + return this; + } + + /** + * the content URI for the playlist + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri") + public String uri; + + public CreatePlaylistRequest withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * the play queue to copy to a playlist + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") + public Double playQueueID; + + public CreatePlaylistRequest withPlayQueueID(Double playQueueID) { + this.playQueueID = playQueueID; + return this; + } + + public CreatePlaylistRequest(@JsonProperty("title") String title, @JsonProperty("type") Type type, @JsonProperty("smart") Smart smart) { + this.title = title; + this.type = type; + this.smart = smart; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponse.java new file mode 100644 index 00000000..93a3437d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class CreatePlaylistResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public CreatePlaylistResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public CreatePlaylistResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public CreatePlaylistResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public CreatePlaylistResponseBody object; + + public CreatePlaylistResponse withObject(CreatePlaylistResponseBody object) { + this.object = object; + return this; + } + + public CreatePlaylistResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponseBody.java new file mode 100644 index 00000000..ad38e368 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/CreatePlaylistResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * CreatePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class CreatePlaylistResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public CreatePlaylistErrors[] errors; + + public CreatePlaylistResponseBody withErrors(CreatePlaylistErrors[] errors) { + this.errors = errors; + return this; + } + + public CreatePlaylistResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryErrors.java new file mode 100644 index 00000000..b2046974 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class DeleteLibraryErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public DeleteLibraryErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public DeleteLibraryErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public DeleteLibraryErrors withStatus(Double status) { + this.status = status; + return this; + } + + public DeleteLibraryErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryRequest.java new file mode 100644 index 00000000..37a49568 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class DeleteLibraryRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public DeleteLibraryRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + public DeleteLibraryRequest(@JsonProperty("sectionId") Double sectionId) { + this.sectionId = sectionId; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponse.java new file mode 100644 index 00000000..e08278e4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class DeleteLibraryResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public DeleteLibraryResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public DeleteLibraryResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public DeleteLibraryResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public DeleteLibraryResponseBody object; + + public DeleteLibraryResponse withObject(DeleteLibraryResponseBody object) { + this.object = object; + return this; + } + + public DeleteLibraryResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponseBody.java new file mode 100644 index 00000000..164b6fb7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeleteLibraryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * DeleteLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class DeleteLibraryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public DeleteLibraryErrors[] errors; + + public DeleteLibraryResponseBody withErrors(DeleteLibraryErrors[] errors) { + this.errors = errors; + return this; + } + + public DeleteLibraryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistErrors.java new file mode 100644 index 00000000..359e8617 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class DeletePlaylistErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public DeletePlaylistErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public DeletePlaylistErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public DeletePlaylistErrors withStatus(Double status) { + this.status = status; + return this; + } + + public DeletePlaylistErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistRequest.java new file mode 100644 index 00000000..1e597152 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class DeletePlaylistRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public DeletePlaylistRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + public DeletePlaylistRequest(@JsonProperty("playlistID") Double playlistID) { + this.playlistID = playlistID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponse.java new file mode 100644 index 00000000..69a9f678 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class DeletePlaylistResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public DeletePlaylistResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public DeletePlaylistResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public DeletePlaylistResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public DeletePlaylistResponseBody object; + + public DeletePlaylistResponse withObject(DeletePlaylistResponseBody object) { + this.object = object; + return this; + } + + public DeletePlaylistResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponseBody.java new file mode 100644 index 00000000..cc30c111 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/DeletePlaylistResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * DeletePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class DeletePlaylistResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public DeletePlaylistErrors[] errors; + + public DeletePlaylistResponseBody withErrors(DeletePlaylistErrors[] errors) { + this.errors = errors; + return this; + } + + public DeletePlaylistResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Device.java b/lib/src/main/java/org/openapis/openapi/models/operations/Device.java new file mode 100644 index 00000000..028e6fec --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Device.java @@ -0,0 +1,59 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Device { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public Device withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + public String name; + + public Device withName(String name) { + this.name = name; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("platform") + public String platform; + + public Device withPlatform(String platform) { + this.platform = platform; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("clientIdentifier") + public String clientIdentifier; + + public Device withClientIdentifier(String clientIdentifier) { + this.clientIdentifier = clientIdentifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("createdAt") + public Double createdAt; + + public Device withCreatedAt(Double createdAt) { + this.createdAt = createdAt; + return this; + } + + public Device(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Director.java b/lib/src/main/java/org/openapis/openapi/models/operations/Director.java new file mode 100644 index 00000000..1566965f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Director.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Director { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public Director withTag(String tag) { + this.tag = tag; + return this; + } + + public Director(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Directory.java b/lib/src/main/java/org/openapis/openapi/models/operations/Directory.java new file mode 100644 index 00000000..2ef7113e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Directory.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Directory { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("count") + public Double count; + + public Directory withCount(Double count) { + this.count = count; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public Directory withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public Directory withTitle(String title) { + this.title = title; + return this; + } + + public Directory(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Download.java b/lib/src/main/java/org/openapis/openapi/models/operations/Download.java new file mode 100644 index 00000000..0ecf7438 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Download.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Download - Indicate that you want to start download any updates found. + */ +public enum Download { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Download(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailErrors.java new file mode 100644 index 00000000..0f7985e3 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class EnablePaperTrailErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public EnablePaperTrailErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public EnablePaperTrailErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public EnablePaperTrailErrors withStatus(Double status) { + this.status = status; + return this; + } + + public EnablePaperTrailErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponse.java new file mode 100644 index 00000000..7b55bc68 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class EnablePaperTrailResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public EnablePaperTrailResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public EnablePaperTrailResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public EnablePaperTrailResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public EnablePaperTrailResponseBody object; + + public EnablePaperTrailResponse withObject(EnablePaperTrailResponseBody object) { + this.object = object; + return this; + } + + public EnablePaperTrailResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponseBody.java new file mode 100644 index 00000000..1f55d414 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/EnablePaperTrailResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * EnablePaperTrailResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class EnablePaperTrailResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public EnablePaperTrailErrors[] errors; + + public EnablePaperTrailResponseBody withErrors(EnablePaperTrailErrors[] errors) { + this.errors = errors; + return this; + } + + public EnablePaperTrailResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Errors.java b/lib/src/main/java/org/openapis/openapi/models/operations/Errors.java new file mode 100644 index 00000000..daa56176 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Errors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Errors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public Errors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public Errors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public Errors withStatus(Double status) { + this.status = status; + return this; + } + + public Errors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Force.java b/lib/src/main/java/org/openapis/openapi/models/operations/Force.java new file mode 100644 index 00000000..cb421aa2 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Force.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Force - force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. + * The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. + * + */ +public enum Force { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Force(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Genre.java b/lib/src/main/java/org/openapis/openapi/models/operations/Genre.java new file mode 100644 index 00000000..9472d70a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Genre.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Genre { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public Genre withTag(String tag) { + this.tag = tag; + return this; + } + + public Genre(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsErrors.java new file mode 100644 index 00000000..a6c3c51c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetAvailableClientsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetAvailableClientsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetAvailableClientsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetAvailableClientsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetAvailableClientsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsMediaContainer.java new file mode 100644 index 00000000..03ab7492 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsMediaContainer.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetAvailableClientsMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetAvailableClientsMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Server") + public Server[] server; + + public GetAvailableClientsMediaContainer withServer(Server[] server) { + this.server = server; + return this; + } + + public GetAvailableClientsMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponse.java new file mode 100644 index 00000000..4d6b2bb4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetAvailableClientsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetAvailableClientsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetAvailableClientsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetAvailableClientsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Available Clients + */ + + public ResponseBody[] responseBodies; + + public GetAvailableClientsResponse withResponseBodies(ResponseBody[] responseBodies) { + this.responseBodies = responseBodies; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetAvailableClientsResponseBody object; + + public GetAvailableClientsResponse withObject(GetAvailableClientsResponseBody object) { + this.object = object; + return this; + } + + public GetAvailableClientsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponseBody.java new file mode 100644 index 00000000..15f906f8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetAvailableClientsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetAvailableClientsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetAvailableClientsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetAvailableClientsErrors[] errors; + + public GetAvailableClientsResponseBody withErrors(GetAvailableClientsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetAvailableClientsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksButlerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksButlerResponseBody.java new file mode 100644 index 00000000..2e3acbd5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksButlerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetButlerTasksButlerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetButlerTasksButlerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetButlerTasksErrors[] errors; + + public GetButlerTasksButlerResponseBody withErrors(GetButlerTasksErrors[] errors) { + this.errors = errors; + return this; + } + + public GetButlerTasksButlerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksErrors.java new file mode 100644 index 00000000..b13832ef --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetButlerTasksErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetButlerTasksErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetButlerTasksErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetButlerTasksErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetButlerTasksErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponse.java new file mode 100644 index 00000000..c42c75d4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetButlerTasksResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetButlerTasksResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetButlerTasksResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetButlerTasksResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * All butler tasks + */ + + public GetButlerTasksResponseBody twoHundredApplicationJsonObject; + + public GetButlerTasksResponse withTwoHundredApplicationJsonObject(GetButlerTasksResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetButlerTasksButlerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetButlerTasksResponse withFourHundredAndOneApplicationJsonObject(GetButlerTasksButlerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetButlerTasksResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponseBody.java new file mode 100644 index 00000000..a1a9987a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetButlerTasksResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetButlerTasksResponseBody - All butler tasks + */ + +public class GetButlerTasksResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ButlerTasks") + public ButlerTasks butlerTasks; + + public GetButlerTasksResponseBody withButlerTasks(ButlerTasks butlerTasks) { + this.butlerTasks = butlerTasks; + return this; + } + + public GetButlerTasksResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsErrors.java new file mode 100644 index 00000000..d1579fd7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetCommonLibraryItemsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetCommonLibraryItemsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetCommonLibraryItemsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetCommonLibraryItemsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetCommonLibraryItemsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsRequest.java new file mode 100644 index 00000000..00c5bd76 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsRequest.java @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetCommonLibraryItemsRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public GetCommonLibraryItemsRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * item type + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Double type; + + public GetCommonLibraryItemsRequest withType(Double type) { + this.type = type; + return this; + } + + /** + * the filter parameter + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") + public String filter; + + public GetCommonLibraryItemsRequest withFilter(String filter) { + this.filter = filter; + return this; + } + + public GetCommonLibraryItemsRequest(@JsonProperty("sectionId") Double sectionId, @JsonProperty("type") Double type) { + this.sectionId = sectionId; + this.type = type; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponse.java new file mode 100644 index 00000000..f80bb05a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetCommonLibraryItemsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetCommonLibraryItemsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetCommonLibraryItemsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetCommonLibraryItemsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetCommonLibraryItemsResponseBody object; + + public GetCommonLibraryItemsResponse withObject(GetCommonLibraryItemsResponseBody object) { + this.object = object; + return this; + } + + public GetCommonLibraryItemsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponseBody.java new file mode 100644 index 00000000..fd938fa0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetCommonLibraryItemsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetCommonLibraryItemsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetCommonLibraryItemsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetCommonLibraryItemsErrors[] errors; + + public GetCommonLibraryItemsResponseBody withErrors(GetCommonLibraryItemsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetCommonLibraryItemsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesErrors.java new file mode 100644 index 00000000..3feb8085 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetDevicesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetDevicesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetDevicesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetDevicesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetDevicesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesMediaContainer.java new file mode 100644 index 00000000..d60f6465 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesMediaContainer.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetDevicesMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetDevicesMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("identifier") + public String identifier; + + public GetDevicesMediaContainer withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Device") + public Device[] device; + + public GetDevicesMediaContainer withDevice(Device[] device) { + this.device = device; + return this; + } + + public GetDevicesMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponse.java new file mode 100644 index 00000000..5abfa96f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetDevicesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetDevicesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetDevicesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetDevicesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Devices + */ + + public GetDevicesResponseBody twoHundredApplicationJsonObject; + + public GetDevicesResponse withTwoHundredApplicationJsonObject(GetDevicesResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetDevicesServerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetDevicesResponse withFourHundredAndOneApplicationJsonObject(GetDevicesServerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetDevicesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponseBody.java new file mode 100644 index 00000000..e5e6427a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetDevicesResponseBody - Devices + */ + +public class GetDevicesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetDevicesMediaContainer mediaContainer; + + public GetDevicesResponseBody withMediaContainer(GetDevicesMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetDevicesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesServerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesServerResponseBody.java new file mode 100644 index 00000000..3cefd191 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetDevicesServerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetDevicesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetDevicesServerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetDevicesErrors[] errors; + + public GetDevicesServerResponseBody withErrors(GetDevicesErrors[] errors) { + this.errors = errors; + return this; + } + + public GetDevicesServerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashErrors.java new file mode 100644 index 00000000..90ae68ac --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetFileHashErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetFileHashErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetFileHashErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetFileHashErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetFileHashErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashRequest.java new file mode 100644 index 00000000..eac1f29e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashRequest.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetFileHashRequest { + /** + * This is the path to the local file, must be prefixed by `file://` + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=url") + public String url; + + public GetFileHashRequest withUrl(String url) { + this.url = url; + return this; + } + + /** + * Item type + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Double type; + + public GetFileHashRequest withType(Double type) { + this.type = type; + return this; + } + + public GetFileHashRequest(@JsonProperty("url") String url) { + this.url = url; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponse.java new file mode 100644 index 00000000..9acd55af --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetFileHashResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetFileHashResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetFileHashResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetFileHashResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetFileHashResponseBody object; + + public GetFileHashResponse withObject(GetFileHashResponseBody object) { + this.object = object; + return this; + } + + public GetFileHashResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponseBody.java new file mode 100644 index 00000000..8b11a93f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetFileHashResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetFileHashResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetFileHashResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetFileHashErrors[] errors; + + public GetFileHashResponseBody withErrors(GetFileHashErrors[] errors) { + this.errors = errors; + return this; + } + + public GetFileHashResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsErrors.java new file mode 100644 index 00000000..2aee5adb --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetGlobalHubsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetGlobalHubsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetGlobalHubsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetGlobalHubsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetGlobalHubsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsRequest.java new file mode 100644 index 00000000..9ae044aa --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsRequest.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetGlobalHubsRequest { + /** + * The number of items to return with each hub. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") + public Double count; + + public GetGlobalHubsRequest withCount(Double count) { + this.count = count; + return this; + } + + /** + * Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=onlyTransient") + public OnlyTransient onlyTransient; + + public GetGlobalHubsRequest withOnlyTransient(OnlyTransient onlyTransient) { + this.onlyTransient = onlyTransient; + return this; + } + + public GetGlobalHubsRequest(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponse.java new file mode 100644 index 00000000..8534c56b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetGlobalHubsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetGlobalHubsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetGlobalHubsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetGlobalHubsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetGlobalHubsResponseBody object; + + public GetGlobalHubsResponse withObject(GetGlobalHubsResponseBody object) { + this.object = object; + return this; + } + + public GetGlobalHubsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponseBody.java new file mode 100644 index 00000000..777da450 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetGlobalHubsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetGlobalHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetGlobalHubsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetGlobalHubsErrors[] errors; + + public GetGlobalHubsResponseBody withErrors(GetGlobalHubsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetGlobalHubsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsErrors.java new file mode 100644 index 00000000..fce05bdb --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetLatestLibraryItemsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetLatestLibraryItemsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetLatestLibraryItemsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetLatestLibraryItemsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetLatestLibraryItemsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsRequest.java new file mode 100644 index 00000000..fc280dd8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsRequest.java @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetLatestLibraryItemsRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public GetLatestLibraryItemsRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * item type + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Double type; + + public GetLatestLibraryItemsRequest withType(Double type) { + this.type = type; + return this; + } + + /** + * the filter parameter + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") + public String filter; + + public GetLatestLibraryItemsRequest withFilter(String filter) { + this.filter = filter; + return this; + } + + public GetLatestLibraryItemsRequest(@JsonProperty("sectionId") Double sectionId, @JsonProperty("type") Double type) { + this.sectionId = sectionId; + this.type = type; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponse.java new file mode 100644 index 00000000..f88a7dfc --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetLatestLibraryItemsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetLatestLibraryItemsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetLatestLibraryItemsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetLatestLibraryItemsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetLatestLibraryItemsResponseBody object; + + public GetLatestLibraryItemsResponse withObject(GetLatestLibraryItemsResponseBody object) { + this.object = object; + return this; + } + + public GetLatestLibraryItemsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponseBody.java new file mode 100644 index 00000000..3e72ffec --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLatestLibraryItemsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetLatestLibraryItemsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetLatestLibraryItemsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetLatestLibraryItemsErrors[] errors; + + public GetLatestLibraryItemsResponseBody withErrors(GetLatestLibraryItemsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetLatestLibraryItemsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesErrors.java new file mode 100644 index 00000000..1d9f2840 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetLibrariesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetLibrariesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetLibrariesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetLibrariesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetLibrariesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponse.java new file mode 100644 index 00000000..797573c6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetLibrariesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetLibrariesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetLibrariesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetLibrariesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetLibrariesResponseBody object; + + public GetLibrariesResponse withObject(GetLibrariesResponseBody object) { + this.object = object; + return this; + } + + public GetLibrariesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponseBody.java new file mode 100644 index 00000000..dd91fe1a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibrariesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetLibrariesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetLibrariesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetLibrariesErrors[] errors; + + public GetLibrariesResponseBody withErrors(GetLibrariesErrors[] errors) { + this.errors = errors; + return this; + } + + public GetLibrariesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryErrors.java new file mode 100644 index 00000000..c10f6c4d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetLibraryErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetLibraryErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetLibraryErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetLibraryErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetLibraryErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsErrors.java new file mode 100644 index 00000000..e265c7eb --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetLibraryHubsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetLibraryHubsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetLibraryHubsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetLibraryHubsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetLibraryHubsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsRequest.java new file mode 100644 index 00000000..94380388 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsRequest.java @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetLibraryHubsRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public GetLibraryHubsRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * The number of items to return with each hub. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") + public Double count; + + public GetLibraryHubsRequest withCount(Double count) { + this.count = count; + return this; + } + + /** + * Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=onlyTransient") + public QueryParamOnlyTransient onlyTransient; + + public GetLibraryHubsRequest withOnlyTransient(QueryParamOnlyTransient onlyTransient) { + this.onlyTransient = onlyTransient; + return this; + } + + public GetLibraryHubsRequest(@JsonProperty("sectionId") Double sectionId) { + this.sectionId = sectionId; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponse.java new file mode 100644 index 00000000..14d44558 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetLibraryHubsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetLibraryHubsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetLibraryHubsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetLibraryHubsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetLibraryHubsResponseBody object; + + public GetLibraryHubsResponse withObject(GetLibraryHubsResponseBody object) { + this.object = object; + return this; + } + + public GetLibraryHubsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponseBody.java new file mode 100644 index 00000000..bfcbee40 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryHubsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetLibraryHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetLibraryHubsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetLibraryHubsErrors[] errors; + + public GetLibraryHubsResponseBody withErrors(GetLibraryHubsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetLibraryHubsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsErrors.java new file mode 100644 index 00000000..2693215d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetLibraryItemsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetLibraryItemsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetLibraryItemsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetLibraryItemsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetLibraryItemsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsRequest.java new file mode 100644 index 00000000..268e5fba --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsRequest.java @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetLibraryItemsRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public GetLibraryItemsRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * item type + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Double type; + + public GetLibraryItemsRequest withType(Double type) { + this.type = type; + return this; + } + + /** + * the filter parameter + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") + public String filter; + + public GetLibraryItemsRequest withFilter(String filter) { + this.filter = filter; + return this; + } + + public GetLibraryItemsRequest(@JsonProperty("sectionId") Double sectionId) { + this.sectionId = sectionId; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponse.java new file mode 100644 index 00000000..fde1594b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetLibraryItemsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetLibraryItemsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetLibraryItemsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetLibraryItemsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetLibraryItemsResponseBody object; + + public GetLibraryItemsResponse withObject(GetLibraryItemsResponseBody object) { + this.object = object; + return this; + } + + public GetLibraryItemsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponseBody.java new file mode 100644 index 00000000..a5d8c986 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryItemsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetLibraryItemsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetLibraryItemsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetLibraryItemsErrors[] errors; + + public GetLibraryItemsResponseBody withErrors(GetLibraryItemsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetLibraryItemsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryRequest.java new file mode 100644 index 00000000..0a68668c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryRequest.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetLibraryRequest { + /** + * the Id of the library to query + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public GetLibraryRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * Whether or not to include details for a section (types, filters, and sorts). + * Only exists for backwards compatibility, media providers other than the server libraries have it on always. + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeDetails") + public IncludeDetails includeDetails; + + public GetLibraryRequest withIncludeDetails(IncludeDetails includeDetails) { + this.includeDetails = includeDetails; + return this; + } + + public GetLibraryRequest(@JsonProperty("sectionId") Double sectionId) { + this.sectionId = sectionId; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponse.java new file mode 100644 index 00000000..a8fb23e7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetLibraryResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetLibraryResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetLibraryResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetLibraryResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetLibraryResponseBody object; + + public GetLibraryResponse withObject(GetLibraryResponseBody object) { + this.object = object; + return this; + } + + public GetLibraryResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponseBody.java new file mode 100644 index 00000000..df2f27be --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetLibraryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetLibraryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetLibraryErrors[] errors; + + public GetLibraryResponseBody withErrors(GetLibraryErrors[] errors) { + this.errors = errors; + return this; + } + + public GetLibraryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenErrors.java new file mode 100644 index 00000000..265ca4ef --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetMetadataChildrenErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetMetadataChildrenErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetMetadataChildrenErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetMetadataChildrenErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetMetadataChildrenErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenRequest.java new file mode 100644 index 00000000..72a55ce9 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetMetadataChildrenRequest { + /** + * the id of the library item to return the children of. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") + public Double ratingKey; + + public GetMetadataChildrenRequest withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + public GetMetadataChildrenRequest(@JsonProperty("ratingKey") Double ratingKey) { + this.ratingKey = ratingKey; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponse.java new file mode 100644 index 00000000..436218c4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetMetadataChildrenResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetMetadataChildrenResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetMetadataChildrenResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetMetadataChildrenResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetMetadataChildrenResponseBody object; + + public GetMetadataChildrenResponse withObject(GetMetadataChildrenResponseBody object) { + this.object = object; + return this; + } + + public GetMetadataChildrenResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponseBody.java new file mode 100644 index 00000000..97b36967 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataChildrenResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetMetadataChildrenResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetMetadataChildrenResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetMetadataChildrenErrors[] errors; + + public GetMetadataChildrenResponseBody withErrors(GetMetadataChildrenErrors[] errors) { + this.errors = errors; + return this; + } + + public GetMetadataChildrenResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataErrors.java new file mode 100644 index 00000000..b5001f69 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetMetadataErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetMetadataErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetMetadataErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetMetadataErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetMetadataErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataRequest.java new file mode 100644 index 00000000..52f5e97f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetMetadataRequest { + /** + * the id of the library item to return the children of. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") + public Double ratingKey; + + public GetMetadataRequest withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + public GetMetadataRequest(@JsonProperty("ratingKey") Double ratingKey) { + this.ratingKey = ratingKey; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponse.java new file mode 100644 index 00000000..3730b8f0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetMetadataResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetMetadataResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetMetadataResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetMetadataResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetMetadataResponseBody object; + + public GetMetadataResponse withObject(GetMetadataResponseBody object) { + this.object = object; + return this; + } + + public GetMetadataResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponseBody.java new file mode 100644 index 00000000..21a5add4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMetadataResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetMetadataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetMetadataResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetMetadataErrors[] errors; + + public GetMetadataResponseBody withErrors(GetMetadataErrors[] errors) { + this.errors = errors; + return this; + } + + public GetMetadataResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountErrors.java new file mode 100644 index 00000000..c714fee5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetMyPlexAccountErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetMyPlexAccountErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetMyPlexAccountErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetMyPlexAccountErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetMyPlexAccountErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponse.java new file mode 100644 index 00000000..2ec7ce44 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetMyPlexAccountResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetMyPlexAccountResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetMyPlexAccountResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetMyPlexAccountResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * MyPlex Account + */ + + public GetMyPlexAccountResponseBody twoHundredApplicationJsonObject; + + public GetMyPlexAccountResponse withTwoHundredApplicationJsonObject(GetMyPlexAccountResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetMyPlexAccountServerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetMyPlexAccountResponse withFourHundredAndOneApplicationJsonObject(GetMyPlexAccountServerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetMyPlexAccountResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponseBody.java new file mode 100644 index 00000000..7008825a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetMyPlexAccountResponseBody - MyPlex Account + */ + +public class GetMyPlexAccountResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MyPlex") + public MyPlex myPlex; + + public GetMyPlexAccountResponseBody withMyPlex(MyPlex myPlex) { + this.myPlex = myPlex; + return this; + } + + public GetMyPlexAccountResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountServerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountServerResponseBody.java new file mode 100644 index 00000000..ebc9db5a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetMyPlexAccountServerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetMyPlexAccountServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetMyPlexAccountServerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetMyPlexAccountErrors[] errors; + + public GetMyPlexAccountServerResponseBody withErrors(GetMyPlexAccountErrors[] errors) { + this.errors = errors; + return this; + } + + public GetMyPlexAccountServerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckErrors.java new file mode 100644 index 00000000..3058ea0a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetOnDeckErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetOnDeckErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetOnDeckErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetOnDeckErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetOnDeckErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckLibraryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckLibraryResponseBody.java new file mode 100644 index 00000000..151eff77 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckLibraryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetOnDeckLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetOnDeckLibraryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetOnDeckErrors[] errors; + + public GetOnDeckLibraryResponseBody withErrors(GetOnDeckErrors[] errors) { + this.errors = errors; + return this; + } + + public GetOnDeckLibraryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMedia.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMedia.java new file mode 100644 index 00000000..c531828b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMedia.java @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetOnDeckMedia { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public GetOnDeckMedia withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetOnDeckMedia withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bitrate") + public Double bitrate; + + public GetOnDeckMedia withBitrate(Double bitrate) { + this.bitrate = bitrate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("width") + public Double width; + + public GetOnDeckMedia withWidth(Double width) { + this.width = width; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("height") + public Double height; + + public GetOnDeckMedia withHeight(Double height) { + this.height = height; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("aspectRatio") + public Double aspectRatio; + + public GetOnDeckMedia withAspectRatio(Double aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioChannels") + public Double audioChannels; + + public GetOnDeckMedia withAudioChannels(Double audioChannels) { + this.audioChannels = audioChannels; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioCodec") + public String audioCodec; + + public GetOnDeckMedia withAudioCodec(String audioCodec) { + this.audioCodec = audioCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoCodec") + public String videoCodec; + + public GetOnDeckMedia withVideoCodec(String videoCodec) { + this.videoCodec = videoCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoResolution") + public String videoResolution; + + public GetOnDeckMedia withVideoResolution(String videoResolution) { + this.videoResolution = videoResolution; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public GetOnDeckMedia withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoFrameRate") + public String videoFrameRate; + + public GetOnDeckMedia withVideoFrameRate(String videoFrameRate) { + this.videoFrameRate = videoFrameRate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioProfile") + public String audioProfile; + + public GetOnDeckMedia withAudioProfile(String audioProfile) { + this.audioProfile = audioProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public GetOnDeckMedia withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Part") + public GetOnDeckPart[] part; + + public GetOnDeckMedia withPart(GetOnDeckPart[] part) { + this.part = part; + return this; + } + + public GetOnDeckMedia(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMediaContainer.java new file mode 100644 index 00000000..830f00dd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMediaContainer.java @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetOnDeckMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetOnDeckMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public GetOnDeckMediaContainer withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("identifier") + public String identifier; + + public GetOnDeckMediaContainer withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagPrefix") + public String mediaTagPrefix; + + public GetOnDeckMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + this.mediaTagPrefix = mediaTagPrefix; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagVersion") + public Double mediaTagVersion; + + public GetOnDeckMediaContainer withMediaTagVersion(Double mediaTagVersion) { + this.mediaTagVersion = mediaTagVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mixedParents") + public Boolean mixedParents; + + public GetOnDeckMediaContainer withMixedParents(Boolean mixedParents) { + this.mixedParents = mixedParents; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Metadata") + public GetOnDeckMetadata[] metadata; + + public GetOnDeckMediaContainer withMetadata(GetOnDeckMetadata[] metadata) { + this.metadata = metadata; + return this; + } + + public GetOnDeckMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMetadata.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMetadata.java new file mode 100644 index 00000000..73845974 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckMetadata.java @@ -0,0 +1,345 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.time.OffsetDateTime; +import org.openapis.openapi.utils.DateTimeDeserializer; +import org.openapis.openapi.utils.DateTimeSerializer; + + +public class GetOnDeckMetadata { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public GetOnDeckMetadata withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionID") + public Double librarySectionID; + + public GetOnDeckMetadata withLibrarySectionID(Double librarySectionID) { + this.librarySectionID = librarySectionID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionTitle") + public String librarySectionTitle; + + public GetOnDeckMetadata withLibrarySectionTitle(String librarySectionTitle) { + this.librarySectionTitle = librarySectionTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionUUID") + public String librarySectionUUID; + + public GetOnDeckMetadata withLibrarySectionUUID(String librarySectionUUID) { + this.librarySectionUUID = librarySectionUUID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ratingKey") + public Double ratingKey; + + public GetOnDeckMetadata withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public GetOnDeckMetadata withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentRatingKey") + public Double parentRatingKey; + + public GetOnDeckMetadata withParentRatingKey(Double parentRatingKey) { + this.parentRatingKey = parentRatingKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentRatingKey") + public Double grandparentRatingKey; + + public GetOnDeckMetadata withGrandparentRatingKey(Double grandparentRatingKey) { + this.grandparentRatingKey = grandparentRatingKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("guid") + public String guid; + + public GetOnDeckMetadata withGuid(String guid) { + this.guid = guid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentGuid") + public String parentGuid; + + public GetOnDeckMetadata withParentGuid(String parentGuid) { + this.parentGuid = parentGuid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentGuid") + public String grandparentGuid; + + public GetOnDeckMetadata withGrandparentGuid(String grandparentGuid) { + this.grandparentGuid = grandparentGuid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public String type; + + public GetOnDeckMetadata withType(String type) { + this.type = type; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public GetOnDeckMetadata withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentKey") + public String grandparentKey; + + public GetOnDeckMetadata withGrandparentKey(String grandparentKey) { + this.grandparentKey = grandparentKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentKey") + public String parentKey; + + public GetOnDeckMetadata withParentKey(String parentKey) { + this.parentKey = parentKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionKey") + public String librarySectionKey; + + public GetOnDeckMetadata withLibrarySectionKey(String librarySectionKey) { + this.librarySectionKey = librarySectionKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentTitle") + public String grandparentTitle; + + public GetOnDeckMetadata withGrandparentTitle(String grandparentTitle) { + this.grandparentTitle = grandparentTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentTitle") + public String parentTitle; + + public GetOnDeckMetadata withParentTitle(String parentTitle) { + this.parentTitle = parentTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("contentRating") + public String contentRating; + + public GetOnDeckMetadata withContentRating(String contentRating) { + this.contentRating = contentRating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("summary") + public String summary; + + public GetOnDeckMetadata withSummary(String summary) { + this.summary = summary; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("index") + public Double index; + + public GetOnDeckMetadata withIndex(Double index) { + this.index = index; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentIndex") + public Double parentIndex; + + public GetOnDeckMetadata withParentIndex(Double parentIndex) { + this.parentIndex = parentIndex; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lastViewedAt") + public Double lastViewedAt; + + public GetOnDeckMetadata withLastViewedAt(Double lastViewedAt) { + this.lastViewedAt = lastViewedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("year") + public Double year; + + public GetOnDeckMetadata withYear(Double year) { + this.year = year; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("thumb") + public String thumb; + + public GetOnDeckMetadata withThumb(String thumb) { + this.thumb = thumb; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("art") + public String art; + + public GetOnDeckMetadata withArt(String art) { + this.art = art; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("parentThumb") + public String parentThumb; + + public GetOnDeckMetadata withParentThumb(String parentThumb) { + this.parentThumb = parentThumb; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentThumb") + public String grandparentThumb; + + public GetOnDeckMetadata withGrandparentThumb(String grandparentThumb) { + this.grandparentThumb = grandparentThumb; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentArt") + public String grandparentArt; + + public GetOnDeckMetadata withGrandparentArt(String grandparentArt) { + this.grandparentArt = grandparentArt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("grandparentTheme") + public String grandparentTheme; + + public GetOnDeckMetadata withGrandparentTheme(String grandparentTheme) { + this.grandparentTheme = grandparentTheme; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetOnDeckMetadata withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonSerialize(using = DateTimeSerializer.class) + @JsonDeserialize(using = DateTimeDeserializer.class) + @JsonProperty("originallyAvailableAt") + public OffsetDateTime originallyAvailableAt; + + public GetOnDeckMetadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { + this.originallyAvailableAt = originallyAvailableAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("addedAt") + public Double addedAt; + + public GetOnDeckMetadata withAddedAt(Double addedAt) { + this.addedAt = addedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + public Double updatedAt; + + public GetOnDeckMetadata withUpdatedAt(Double updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Media") + public GetOnDeckMedia[] media; + + public GetOnDeckMetadata withMedia(GetOnDeckMedia[] media) { + this.media = media; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Guid") + public Guids[] guids; + + public GetOnDeckMetadata withGuids(Guids[] guids) { + this.guids = guids; + return this; + } + + public GetOnDeckMetadata(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckPart.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckPart.java new file mode 100644 index 00000000..d9934b89 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckPart.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetOnDeckPart { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public GetOnDeckPart withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public GetOnDeckPart withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetOnDeckPart withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("file") + public String file; + + public GetOnDeckPart withFile(String file) { + this.file = file; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetOnDeckPart withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioProfile") + public String audioProfile; + + public GetOnDeckPart withAudioProfile(String audioProfile) { + this.audioProfile = audioProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public GetOnDeckPart withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public GetOnDeckPart withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Stream") + public Stream[] stream; + + public GetOnDeckPart withStream(Stream[] stream) { + this.stream = stream; + return this; + } + + public GetOnDeckPart(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponse.java new file mode 100644 index 00000000..a29e3022 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetOnDeckResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetOnDeckResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetOnDeckResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetOnDeckResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The on Deck content + */ + + public GetOnDeckResponseBody twoHundredApplicationJsonObject; + + public GetOnDeckResponse withTwoHundredApplicationJsonObject(GetOnDeckResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetOnDeckLibraryResponseBody fourHundredAndOneApplicationJsonObject; + + public GetOnDeckResponse withFourHundredAndOneApplicationJsonObject(GetOnDeckLibraryResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetOnDeckResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponseBody.java new file mode 100644 index 00000000..6a8baf54 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetOnDeckResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetOnDeckResponseBody - The on Deck content + */ + +public class GetOnDeckResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetOnDeckMediaContainer mediaContainer; + + public GetOnDeckResponseBody withMediaContainer(GetOnDeckMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetOnDeckResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsErrors.java new file mode 100644 index 00000000..46ed4a82 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetPlaylistContentsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetPlaylistContentsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetPlaylistContentsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetPlaylistContentsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetPlaylistContentsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsRequest.java new file mode 100644 index 00000000..e349b46b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsRequest.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetPlaylistContentsRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public GetPlaylistContentsRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + /** + * the metadata type of the item to return + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public Double type; + + public GetPlaylistContentsRequest withType(Double type) { + this.type = type; + return this; + } + + public GetPlaylistContentsRequest(@JsonProperty("playlistID") Double playlistID, @JsonProperty("type") Double type) { + this.playlistID = playlistID; + this.type = type; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponse.java new file mode 100644 index 00000000..2d2d3b23 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetPlaylistContentsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetPlaylistContentsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetPlaylistContentsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetPlaylistContentsResponseBody object; + + public GetPlaylistContentsResponse withObject(GetPlaylistContentsResponseBody object) { + this.object = object; + return this; + } + + public GetPlaylistContentsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponseBody.java new file mode 100644 index 00000000..97c52c0e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistContentsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetPlaylistContentsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetPlaylistContentsErrors[] errors; + + public GetPlaylistContentsResponseBody withErrors(GetPlaylistContentsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetPlaylistContentsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistErrors.java new file mode 100644 index 00000000..faaa6ae5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetPlaylistErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetPlaylistErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetPlaylistErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetPlaylistErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetPlaylistErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistRequest.java new file mode 100644 index 00000000..e25c7c86 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetPlaylistRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public GetPlaylistRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + public GetPlaylistRequest(@JsonProperty("playlistID") Double playlistID) { + this.playlistID = playlistID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponse.java new file mode 100644 index 00000000..4bb26876 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetPlaylistResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetPlaylistResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetPlaylistResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetPlaylistResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetPlaylistResponseBody object; + + public GetPlaylistResponse withObject(GetPlaylistResponseBody object) { + this.object = object; + return this; + } + + public GetPlaylistResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponseBody.java new file mode 100644 index 00000000..575a8a00 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetPlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetPlaylistResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetPlaylistErrors[] errors; + + public GetPlaylistResponseBody withErrors(GetPlaylistErrors[] errors) { + this.errors = errors; + return this; + } + + public GetPlaylistResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsErrors.java new file mode 100644 index 00000000..46f4c926 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetPlaylistsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetPlaylistsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetPlaylistsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetPlaylistsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetPlaylistsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsRequest.java new file mode 100644 index 00000000..2db78ac0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsRequest.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetPlaylistsRequest { + /** + * limit to a type of playlist. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playlistType") + public PlaylistType playlistType; + + public GetPlaylistsRequest withPlaylistType(PlaylistType playlistType) { + this.playlistType = playlistType; + return this; + } + + /** + * type of playlists to return (default is all). + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=smart") + public QueryParamSmart smart; + + public GetPlaylistsRequest withSmart(QueryParamSmart smart) { + this.smart = smart; + return this; + } + + public GetPlaylistsRequest(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponse.java new file mode 100644 index 00000000..caf77e05 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetPlaylistsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetPlaylistsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetPlaylistsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetPlaylistsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetPlaylistsResponseBody object; + + public GetPlaylistsResponse withObject(GetPlaylistsResponseBody object) { + this.object = object; + return this; + } + + public GetPlaylistsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponseBody.java new file mode 100644 index 00000000..6cf0dbb7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetPlaylistsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetPlaylistsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetPlaylistsErrors[] errors; + + public GetPlaylistsResponseBody withErrors(GetPlaylistsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetPlaylistsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedErrors.java new file mode 100644 index 00000000..0fbb1a43 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetRecentlyAddedErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetRecentlyAddedErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetRecentlyAddedErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetRecentlyAddedErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetRecentlyAddedErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedLibraryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedLibraryResponseBody.java new file mode 100644 index 00000000..dd4e172d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedLibraryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetRecentlyAddedLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetRecentlyAddedLibraryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetRecentlyAddedErrors[] errors; + + public GetRecentlyAddedLibraryResponseBody withErrors(GetRecentlyAddedErrors[] errors) { + this.errors = errors; + return this; + } + + public GetRecentlyAddedLibraryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedMediaContainer.java new file mode 100644 index 00000000..a7fa654a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedMediaContainer.java @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetRecentlyAddedMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetRecentlyAddedMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public GetRecentlyAddedMediaContainer withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("identifier") + public String identifier; + + public GetRecentlyAddedMediaContainer withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagPrefix") + public String mediaTagPrefix; + + public GetRecentlyAddedMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + this.mediaTagPrefix = mediaTagPrefix; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagVersion") + public Double mediaTagVersion; + + public GetRecentlyAddedMediaContainer withMediaTagVersion(Double mediaTagVersion) { + this.mediaTagVersion = mediaTagVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mixedParents") + public Boolean mixedParents; + + public GetRecentlyAddedMediaContainer withMixedParents(Boolean mixedParents) { + this.mixedParents = mixedParents; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Metadata") + public Metadata[] metadata; + + public GetRecentlyAddedMediaContainer withMetadata(Metadata[] metadata) { + this.metadata = metadata; + return this; + } + + public GetRecentlyAddedMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponse.java new file mode 100644 index 00000000..30f87edf --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetRecentlyAddedResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetRecentlyAddedResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetRecentlyAddedResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetRecentlyAddedResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The recently added content + */ + + public GetRecentlyAddedResponseBody twoHundredApplicationJsonObject; + + public GetRecentlyAddedResponse withTwoHundredApplicationJsonObject(GetRecentlyAddedResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetRecentlyAddedLibraryResponseBody fourHundredAndOneApplicationJsonObject; + + public GetRecentlyAddedResponse withFourHundredAndOneApplicationJsonObject(GetRecentlyAddedLibraryResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetRecentlyAddedResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponseBody.java new file mode 100644 index 00000000..0ba5cefe --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetRecentlyAddedResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetRecentlyAddedResponseBody - The recently added content + */ + +public class GetRecentlyAddedResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetRecentlyAddedMediaContainer mediaContainer; + + public GetRecentlyAddedResponseBody withMediaContainer(GetRecentlyAddedMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetRecentlyAddedResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoErrors.java new file mode 100644 index 00000000..a5b64d02 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetResizedPhotoErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetResizedPhotoErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetResizedPhotoErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetResizedPhotoErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetResizedPhotoErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoRequest.java new file mode 100644 index 00000000..f7a47d76 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoRequest.java @@ -0,0 +1,98 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetResizedPhotoRequest { + /** + * The width for the resized photo + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=width") + public Double width; + + public GetResizedPhotoRequest withWidth(Double width) { + this.width = width; + return this; + } + + /** + * The height for the resized photo + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=height") + public Double height; + + public GetResizedPhotoRequest withHeight(Double height) { + this.height = height; + return this; + } + + /** + * The opacity for the resized photo + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=opacity") + public Long opacity; + + public GetResizedPhotoRequest withOpacity(Long opacity) { + this.opacity = opacity; + return this; + } + + /** + * The width for the resized photo + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=blur") + public Double blur; + + public GetResizedPhotoRequest withBlur(Double blur) { + this.blur = blur; + return this; + } + + /** + * images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=minSize") + public MinSize minSize; + + public GetResizedPhotoRequest withMinSize(MinSize minSize) { + this.minSize = minSize; + return this; + } + + /** + * allow images to be resized beyond native dimensions. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=upscale") + public Upscale upscale; + + public GetResizedPhotoRequest withUpscale(Upscale upscale) { + this.upscale = upscale; + return this; + } + + /** + * path to image within Plex + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=url") + public String url; + + public GetResizedPhotoRequest withUrl(String url) { + this.url = url; + return this; + } + + public GetResizedPhotoRequest(@JsonProperty("width") Double width, @JsonProperty("height") Double height, @JsonProperty("opacity") Long opacity, @JsonProperty("blur") Double blur, @JsonProperty("minSize") MinSize minSize, @JsonProperty("upscale") Upscale upscale, @JsonProperty("url") String url) { + this.width = width; + this.height = height; + this.opacity = opacity; + this.blur = blur; + this.minSize = minSize; + this.upscale = upscale; + this.url = url; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponse.java new file mode 100644 index 00000000..1fd6967f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetResizedPhotoResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetResizedPhotoResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetResizedPhotoResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetResizedPhotoResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetResizedPhotoResponseBody object; + + public GetResizedPhotoResponse withObject(GetResizedPhotoResponseBody object) { + this.object = object; + return this; + } + + public GetResizedPhotoResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponseBody.java new file mode 100644 index 00000000..f97fc168 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetResizedPhotoResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetResizedPhotoResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetResizedPhotoResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetResizedPhotoErrors[] errors; + + public GetResizedPhotoResponseBody withErrors(GetResizedPhotoErrors[] errors) { + this.errors = errors; + return this; + } + + public GetResizedPhotoResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsCountry.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsCountry.java new file mode 100644 index 00000000..1779f15d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsCountry.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsCountry { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public GetSearchResultsCountry withTag(String tag) { + this.tag = tag; + return this; + } + + public GetSearchResultsCountry(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsDirector.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsDirector.java new file mode 100644 index 00000000..f7de5e7e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsDirector.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsDirector { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public GetSearchResultsDirector withTag(String tag) { + this.tag = tag; + return this; + } + + public GetSearchResultsDirector(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsErrors.java new file mode 100644 index 00000000..141cf7a1 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetSearchResultsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetSearchResultsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetSearchResultsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetSearchResultsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsGenre.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsGenre.java new file mode 100644 index 00000000..908bc37f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsGenre.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsGenre { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public GetSearchResultsGenre withTag(String tag) { + this.tag = tag; + return this; + } + + public GetSearchResultsGenre(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMedia.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMedia.java new file mode 100644 index 00000000..878be630 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMedia.java @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsMedia { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public GetSearchResultsMedia withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetSearchResultsMedia withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bitrate") + public Double bitrate; + + public GetSearchResultsMedia withBitrate(Double bitrate) { + this.bitrate = bitrate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("width") + public Double width; + + public GetSearchResultsMedia withWidth(Double width) { + this.width = width; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("height") + public Double height; + + public GetSearchResultsMedia withHeight(Double height) { + this.height = height; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("aspectRatio") + public Double aspectRatio; + + public GetSearchResultsMedia withAspectRatio(Double aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioChannels") + public Double audioChannels; + + public GetSearchResultsMedia withAudioChannels(Double audioChannels) { + this.audioChannels = audioChannels; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioCodec") + public String audioCodec; + + public GetSearchResultsMedia withAudioCodec(String audioCodec) { + this.audioCodec = audioCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoCodec") + public String videoCodec; + + public GetSearchResultsMedia withVideoCodec(String videoCodec) { + this.videoCodec = videoCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoResolution") + public Double videoResolution; + + public GetSearchResultsMedia withVideoResolution(Double videoResolution) { + this.videoResolution = videoResolution; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public GetSearchResultsMedia withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoFrameRate") + public String videoFrameRate; + + public GetSearchResultsMedia withVideoFrameRate(String videoFrameRate) { + this.videoFrameRate = videoFrameRate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioProfile") + public String audioProfile; + + public GetSearchResultsMedia withAudioProfile(String audioProfile) { + this.audioProfile = audioProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public GetSearchResultsMedia withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Part") + public GetSearchResultsPart[] part; + + public GetSearchResultsMedia withPart(GetSearchResultsPart[] part) { + this.part = part; + return this; + } + + public GetSearchResultsMedia(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMediaContainer.java new file mode 100644 index 00000000..12b03c7a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMediaContainer.java @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetSearchResultsMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("identifier") + public String identifier; + + public GetSearchResultsMediaContainer withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagPrefix") + public String mediaTagPrefix; + + public GetSearchResultsMediaContainer withMediaTagPrefix(String mediaTagPrefix) { + this.mediaTagPrefix = mediaTagPrefix; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaTagVersion") + public Double mediaTagVersion; + + public GetSearchResultsMediaContainer withMediaTagVersion(Double mediaTagVersion) { + this.mediaTagVersion = mediaTagVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Metadata") + public GetSearchResultsMetadata[] metadata; + + public GetSearchResultsMediaContainer withMetadata(GetSearchResultsMetadata[] metadata) { + this.metadata = metadata; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Provider") + public Provider[] provider; + + public GetSearchResultsMediaContainer withProvider(Provider[] provider) { + this.provider = provider; + return this; + } + + public GetSearchResultsMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMetadata.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMetadata.java new file mode 100644 index 00000000..9000aed3 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsMetadata.java @@ -0,0 +1,327 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.time.OffsetDateTime; +import org.openapis.openapi.utils.DateTimeDeserializer; +import org.openapis.openapi.utils.DateTimeSerializer; + + +public class GetSearchResultsMetadata { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public GetSearchResultsMetadata withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionID") + public Double librarySectionID; + + public GetSearchResultsMetadata withLibrarySectionID(Double librarySectionID) { + this.librarySectionID = librarySectionID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionTitle") + public String librarySectionTitle; + + public GetSearchResultsMetadata withLibrarySectionTitle(String librarySectionTitle) { + this.librarySectionTitle = librarySectionTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionUUID") + public String librarySectionUUID; + + public GetSearchResultsMetadata withLibrarySectionUUID(String librarySectionUUID) { + this.librarySectionUUID = librarySectionUUID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("personal") + public Boolean personal; + + public GetSearchResultsMetadata withPersonal(Boolean personal) { + this.personal = personal; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sourceTitle") + public String sourceTitle; + + public GetSearchResultsMetadata withSourceTitle(String sourceTitle) { + this.sourceTitle = sourceTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ratingKey") + public Double ratingKey; + + public GetSearchResultsMetadata withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public GetSearchResultsMetadata withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("guid") + public String guid; + + public GetSearchResultsMetadata withGuid(String guid) { + this.guid = guid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("studio") + public String studio; + + public GetSearchResultsMetadata withStudio(String studio) { + this.studio = studio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public String type; + + public GetSearchResultsMetadata withType(String type) { + this.type = type; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public GetSearchResultsMetadata withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("contentRating") + public String contentRating; + + public GetSearchResultsMetadata withContentRating(String contentRating) { + this.contentRating = contentRating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("summary") + public String summary; + + public GetSearchResultsMetadata withSummary(String summary) { + this.summary = summary; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("rating") + public Double rating; + + public GetSearchResultsMetadata withRating(Double rating) { + this.rating = rating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audienceRating") + public Double audienceRating; + + public GetSearchResultsMetadata withAudienceRating(Double audienceRating) { + this.audienceRating = audienceRating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("year") + public Double year; + + public GetSearchResultsMetadata withYear(Double year) { + this.year = year; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tagline") + public String tagline; + + public GetSearchResultsMetadata withTagline(String tagline) { + this.tagline = tagline; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("thumb") + public String thumb; + + public GetSearchResultsMetadata withThumb(String thumb) { + this.thumb = thumb; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("art") + public String art; + + public GetSearchResultsMetadata withArt(String art) { + this.art = art; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetSearchResultsMetadata withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonSerialize(using = DateTimeSerializer.class) + @JsonDeserialize(using = DateTimeDeserializer.class) + @JsonProperty("originallyAvailableAt") + public OffsetDateTime originallyAvailableAt; + + public GetSearchResultsMetadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { + this.originallyAvailableAt = originallyAvailableAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("addedAt") + public Double addedAt; + + public GetSearchResultsMetadata withAddedAt(Double addedAt) { + this.addedAt = addedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + public Double updatedAt; + + public GetSearchResultsMetadata withUpdatedAt(Double updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audienceRatingImage") + public String audienceRatingImage; + + public GetSearchResultsMetadata withAudienceRatingImage(String audienceRatingImage) { + this.audienceRatingImage = audienceRatingImage; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("chapterSource") + public String chapterSource; + + public GetSearchResultsMetadata withChapterSource(String chapterSource) { + this.chapterSource = chapterSource; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("primaryExtraKey") + public String primaryExtraKey; + + public GetSearchResultsMetadata withPrimaryExtraKey(String primaryExtraKey) { + this.primaryExtraKey = primaryExtraKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ratingImage") + public String ratingImage; + + public GetSearchResultsMetadata withRatingImage(String ratingImage) { + this.ratingImage = ratingImage; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Media") + public GetSearchResultsMedia[] media; + + public GetSearchResultsMetadata withMedia(GetSearchResultsMedia[] media) { + this.media = media; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Genre") + public GetSearchResultsGenre[] genre; + + public GetSearchResultsMetadata withGenre(GetSearchResultsGenre[] genre) { + this.genre = genre; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Director") + public GetSearchResultsDirector[] director; + + public GetSearchResultsMetadata withDirector(GetSearchResultsDirector[] director) { + this.director = director; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Writer") + public GetSearchResultsWriter[] writer; + + public GetSearchResultsMetadata withWriter(GetSearchResultsWriter[] writer) { + this.writer = writer; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Country") + public GetSearchResultsCountry[] country; + + public GetSearchResultsMetadata withCountry(GetSearchResultsCountry[] country) { + this.country = country; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Role") + public GetSearchResultsRole[] role; + + public GetSearchResultsMetadata withRole(GetSearchResultsRole[] role) { + this.role = role; + return this; + } + + public GetSearchResultsMetadata(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsPart.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsPart.java new file mode 100644 index 00000000..43382e5f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsPart.java @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsPart { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public GetSearchResultsPart withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public GetSearchResultsPart withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public GetSearchResultsPart withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("file") + public String file; + + public GetSearchResultsPart withFile(String file) { + this.file = file; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetSearchResultsPart withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioProfile") + public String audioProfile; + + public GetSearchResultsPart withAudioProfile(String audioProfile) { + this.audioProfile = audioProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public GetSearchResultsPart withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public GetSearchResultsPart withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + public GetSearchResultsPart(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRequest.java new file mode 100644 index 00000000..96c53071 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetSearchResultsRequest { + /** + * The search query string to use + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") + public String query; + + public GetSearchResultsRequest withQuery(String query) { + this.query = query; + return this; + } + + public GetSearchResultsRequest(@JsonProperty("query") String query) { + this.query = query; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponse.java new file mode 100644 index 00000000..11369f7e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetSearchResultsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetSearchResultsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetSearchResultsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetSearchResultsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Search Results + */ + + public GetSearchResultsResponseBody twoHundredApplicationJsonObject; + + public GetSearchResultsResponse withTwoHundredApplicationJsonObject(GetSearchResultsResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetSearchResultsSearchResponseBody fourHundredAndOneApplicationJsonObject; + + public GetSearchResultsResponse withFourHundredAndOneApplicationJsonObject(GetSearchResultsSearchResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetSearchResultsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponseBody.java new file mode 100644 index 00000000..cd970924 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetSearchResultsResponseBody - Search Results + */ + +public class GetSearchResultsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetSearchResultsMediaContainer mediaContainer; + + public GetSearchResultsResponseBody withMediaContainer(GetSearchResultsMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetSearchResultsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRole.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRole.java new file mode 100644 index 00000000..7e296a73 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsRole.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsRole { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public GetSearchResultsRole withTag(String tag) { + this.tag = tag; + return this; + } + + public GetSearchResultsRole(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsSearchResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsSearchResponseBody.java new file mode 100644 index 00000000..f43e2a09 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsSearchResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetSearchResultsSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetSearchResultsSearchResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetSearchResultsErrors[] errors; + + public GetSearchResultsSearchResponseBody withErrors(GetSearchResultsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetSearchResultsSearchResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsWriter.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsWriter.java new file mode 100644 index 00000000..f72bb756 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSearchResultsWriter.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSearchResultsWriter { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public GetSearchResultsWriter withTag(String tag) { + this.tag = tag; + return this; + } + + public GetSearchResultsWriter(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesActivitiesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesActivitiesResponseBody.java new file mode 100644 index 00000000..ac49ad5a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesActivitiesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerActivitiesActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetServerActivitiesActivitiesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetServerActivitiesErrors[] errors; + + public GetServerActivitiesActivitiesResponseBody withErrors(GetServerActivitiesErrors[] errors) { + this.errors = errors; + return this; + } + + public GetServerActivitiesActivitiesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesErrors.java new file mode 100644 index 00000000..b2c06df5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerActivitiesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetServerActivitiesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetServerActivitiesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetServerActivitiesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetServerActivitiesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesMediaContainer.java new file mode 100644 index 00000000..cb5c200e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesMediaContainer.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerActivitiesMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetServerActivitiesMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Activity") + public Activity[] activity; + + public GetServerActivitiesMediaContainer withActivity(Activity[] activity) { + this.activity = activity; + return this; + } + + public GetServerActivitiesMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponse.java new file mode 100644 index 00000000..a1265e8e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetServerActivitiesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetServerActivitiesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetServerActivitiesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetServerActivitiesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The Server Activities + */ + + public GetServerActivitiesResponseBody twoHundredApplicationJsonObject; + + public GetServerActivitiesResponse withTwoHundredApplicationJsonObject(GetServerActivitiesResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetServerActivitiesActivitiesResponseBody fourHundredAndOneApplicationJsonObject; + + public GetServerActivitiesResponse withFourHundredAndOneApplicationJsonObject(GetServerActivitiesActivitiesResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetServerActivitiesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponseBody.java new file mode 100644 index 00000000..5d8df4d6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerActivitiesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerActivitiesResponseBody - The Server Activities + */ + +public class GetServerActivitiesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetServerActivitiesMediaContainer mediaContainer; + + public GetServerActivitiesResponseBody withMediaContainer(GetServerActivitiesMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetServerActivitiesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponse.java new file mode 100644 index 00000000..53dbef6c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetServerCapabilitiesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetServerCapabilitiesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetServerCapabilitiesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetServerCapabilitiesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The Server Capabilities + */ + + public GetServerCapabilitiesResponseBody twoHundredApplicationJsonObject; + + public GetServerCapabilitiesResponse withTwoHundredApplicationJsonObject(GetServerCapabilitiesResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetServerCapabilitiesServerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetServerCapabilitiesResponse withFourHundredAndOneApplicationJsonObject(GetServerCapabilitiesServerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetServerCapabilitiesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponseBody.java new file mode 100644 index 00000000..065cff03 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerCapabilitiesResponseBody - The Server Capabilities + */ + +public class GetServerCapabilitiesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public MediaContainer mediaContainer; + + public GetServerCapabilitiesResponseBody withMediaContainer(MediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetServerCapabilitiesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesServerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesServerResponseBody.java new file mode 100644 index 00000000..d903307f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerCapabilitiesServerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerCapabilitiesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetServerCapabilitiesServerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public Errors[] errors; + + public GetServerCapabilitiesServerResponseBody withErrors(Errors[] errors) { + this.errors = errors; + return this; + } + + public GetServerCapabilitiesServerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityErrors.java new file mode 100644 index 00000000..9a98d982 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerIdentityErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetServerIdentityErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetServerIdentityErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetServerIdentityErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetServerIdentityErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityMediaContainer.java new file mode 100644 index 00000000..8ff15439 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityMediaContainer.java @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerIdentityMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetServerIdentityMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("claimed") + public Boolean claimed; + + public GetServerIdentityMediaContainer withClaimed(Boolean claimed) { + this.claimed = claimed; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("machineIdentifier") + public String machineIdentifier; + + public GetServerIdentityMediaContainer withMachineIdentifier(String machineIdentifier) { + this.machineIdentifier = machineIdentifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + public String version; + + public GetServerIdentityMediaContainer withVersion(String version) { + this.version = version; + return this; + } + + public GetServerIdentityMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponse.java new file mode 100644 index 00000000..3feeb6a4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetServerIdentityResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetServerIdentityResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetServerIdentityResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetServerIdentityResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The Transcode Sessions + */ + + public GetServerIdentityResponseBody twoHundredApplicationJsonObject; + + public GetServerIdentityResponse withTwoHundredApplicationJsonObject(GetServerIdentityResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetServerIdentityServerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetServerIdentityResponse withFourHundredAndOneApplicationJsonObject(GetServerIdentityServerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetServerIdentityResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponseBody.java new file mode 100644 index 00000000..8303e7ff --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerIdentityResponseBody - The Transcode Sessions + */ + +public class GetServerIdentityResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetServerIdentityMediaContainer mediaContainer; + + public GetServerIdentityResponseBody withMediaContainer(GetServerIdentityMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetServerIdentityResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityServerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityServerResponseBody.java new file mode 100644 index 00000000..45078be3 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerIdentityServerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerIdentityServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetServerIdentityServerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetServerIdentityErrors[] errors; + + public GetServerIdentityServerResponseBody withErrors(GetServerIdentityErrors[] errors) { + this.errors = errors; + return this; + } + + public GetServerIdentityServerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListErrors.java new file mode 100644 index 00000000..fb2a3662 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerListErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetServerListErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetServerListErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetServerListErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetServerListErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListMediaContainer.java new file mode 100644 index 00000000..21a3df8b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListMediaContainer.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerListMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetServerListMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Server") + public GetServerListServer[] server; + + public GetServerListMediaContainer withServer(GetServerListServer[] server) { + this.server = server; + return this; + } + + public GetServerListMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponse.java new file mode 100644 index 00000000..85bc96c7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetServerListResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetServerListResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetServerListResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetServerListResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * List of Servers + */ + + public GetServerListResponseBody twoHundredApplicationJsonObject; + + public GetServerListResponse withTwoHundredApplicationJsonObject(GetServerListResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetServerListServerResponseBody fourHundredAndOneApplicationJsonObject; + + public GetServerListResponse withFourHundredAndOneApplicationJsonObject(GetServerListServerResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetServerListResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponseBody.java new file mode 100644 index 00000000..6c4fef6f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerListResponseBody - List of Servers + */ + +public class GetServerListResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetServerListMediaContainer mediaContainer; + + public GetServerListResponseBody withMediaContainer(GetServerListMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetServerListResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServer.java new file mode 100644 index 00000000..2f789e80 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServer.java @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerListServer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + public String name; + + public GetServerListServer withName(String name) { + this.name = name; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("host") + public String host; + + public GetServerListServer withHost(String host) { + this.host = host; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address") + public String address; + + public GetServerListServer withAddress(String address) { + this.address = address; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("port") + public Double port; + + public GetServerListServer withPort(Double port) { + this.port = port; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("machineIdentifier") + public String machineIdentifier; + + public GetServerListServer withMachineIdentifier(String machineIdentifier) { + this.machineIdentifier = machineIdentifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + public String version; + + public GetServerListServer withVersion(String version) { + this.version = version; + return this; + } + + public GetServerListServer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServerResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServerResponseBody.java new file mode 100644 index 00000000..729af8e4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerListServerResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerListServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetServerListServerResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetServerListErrors[] errors; + + public GetServerListServerResponseBody withErrors(GetServerListErrors[] errors) { + this.errors = errors; + return this; + } + + public GetServerListServerResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesErrors.java new file mode 100644 index 00000000..56ee35e9 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetServerPreferencesErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetServerPreferencesErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetServerPreferencesErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetServerPreferencesErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetServerPreferencesErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponse.java new file mode 100644 index 00000000..d516b74a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetServerPreferencesResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetServerPreferencesResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetServerPreferencesResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetServerPreferencesResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetServerPreferencesResponseBody object; + + public GetServerPreferencesResponse withObject(GetServerPreferencesResponseBody object) { + this.object = object; + return this; + } + + public GetServerPreferencesResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponseBody.java new file mode 100644 index 00000000..bf8295e6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetServerPreferencesResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetServerPreferencesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetServerPreferencesResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetServerPreferencesErrors[] errors; + + public GetServerPreferencesResponseBody withErrors(GetServerPreferencesErrors[] errors) { + this.errors = errors; + return this; + } + + public GetServerPreferencesResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryErrors.java new file mode 100644 index 00000000..b07a0fce --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSessionHistoryErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetSessionHistoryErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetSessionHistoryErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetSessionHistoryErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetSessionHistoryErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponse.java new file mode 100644 index 00000000..b00266c6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetSessionHistoryResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetSessionHistoryResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetSessionHistoryResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetSessionHistoryResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetSessionHistoryResponseBody object; + + public GetSessionHistoryResponse withObject(GetSessionHistoryResponseBody object) { + this.object = object; + return this; + } + + public GetSessionHistoryResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponseBody.java new file mode 100644 index 00000000..c8ae9fe7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionHistoryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetSessionHistoryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetSessionHistoryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetSessionHistoryErrors[] errors; + + public GetSessionHistoryResponseBody withErrors(GetSessionHistoryErrors[] errors) { + this.errors = errors; + return this; + } + + public GetSessionHistoryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsErrors.java new file mode 100644 index 00000000..629a0a53 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSessionsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetSessionsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetSessionsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetSessionsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetSessionsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponse.java new file mode 100644 index 00000000..b4580f4d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetSessionsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetSessionsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetSessionsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetSessionsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetSessionsResponseBody object; + + public GetSessionsResponse withObject(GetSessionsResponseBody object) { + this.object = object; + return this; + } + + public GetSessionsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponseBody.java new file mode 100644 index 00000000..531aa820 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSessionsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetSessionsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetSessionsErrors[] errors; + + public GetSessionsResponseBody withErrors(GetSessionsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetSessionsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationErrors.java new file mode 100644 index 00000000..355a7530 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetSourceConnectionInformationErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetSourceConnectionInformationErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetSourceConnectionInformationErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetSourceConnectionInformationErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetSourceConnectionInformationErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationRequest.java new file mode 100644 index 00000000..4cb90ea1 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetSourceConnectionInformationRequest { + /** + * The source identifier with an included prefix. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=source") + public String source; + + public GetSourceConnectionInformationRequest withSource(String source) { + this.source = source; + return this; + } + + public GetSourceConnectionInformationRequest(@JsonProperty("source") String source) { + this.source = source; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponse.java new file mode 100644 index 00000000..035f6d91 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetSourceConnectionInformationResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetSourceConnectionInformationResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetSourceConnectionInformationResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetSourceConnectionInformationResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetSourceConnectionInformationResponseBody object; + + public GetSourceConnectionInformationResponse withObject(GetSourceConnectionInformationResponseBody object) { + this.object = object; + return this; + } + + public GetSourceConnectionInformationResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponseBody.java new file mode 100644 index 00000000..24a29d2c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetSourceConnectionInformationResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetSourceConnectionInformationResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetSourceConnectionInformationResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetSourceConnectionInformationErrors[] errors; + + public GetSourceConnectionInformationResponseBody withErrors(GetSourceConnectionInformationErrors[] errors) { + this.errors = errors; + return this; + } + + public GetSourceConnectionInformationResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineErrors.java new file mode 100644 index 00000000..820b362c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetTimelineErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetTimelineErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetTimelineErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetTimelineErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetTimelineErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineRequest.java new file mode 100644 index 00000000..e6f7a114 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineRequest.java @@ -0,0 +1,134 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetTimelineRequest { + /** + * The rating key of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=ratingKey") + public Double ratingKey; + + public GetTimelineRequest withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + /** + * The key of the media item to get the timeline for + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") + public String key; + + public GetTimelineRequest withKey(String key) { + this.key = key; + return this; + } + + /** + * The state of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=state") + public State state; + + public GetTimelineRequest withState(State state) { + this.state = state; + return this; + } + + /** + * Whether the media item has MDE + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=hasMDE") + public Double hasMDE; + + public GetTimelineRequest withHasMDE(Double hasMDE) { + this.hasMDE = hasMDE; + return this; + } + + /** + * The time of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=time") + public Double time; + + public GetTimelineRequest withTime(Double time) { + this.time = time; + return this; + } + + /** + * The duration of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=duration") + public Double duration; + + public GetTimelineRequest withDuration(Double duration) { + this.duration = duration; + return this; + } + + /** + * The context of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=context") + public String context; + + public GetTimelineRequest withContext(String context) { + this.context = context; + return this; + } + + /** + * The play queue item ID of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueItemID") + public Double playQueueItemID; + + public GetTimelineRequest withPlayQueueItemID(Double playQueueItemID) { + this.playQueueItemID = playQueueItemID; + return this; + } + + /** + * The playback time of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playBackTime") + public Double playBackTime; + + public GetTimelineRequest withPlayBackTime(Double playBackTime) { + this.playBackTime = playBackTime; + return this; + } + + /** + * The row of the media item + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=row") + public Double row; + + public GetTimelineRequest withRow(Double row) { + this.row = row; + return this; + } + + public GetTimelineRequest(@JsonProperty("ratingKey") Double ratingKey, @JsonProperty("key") String key, @JsonProperty("state") State state, @JsonProperty("hasMDE") Double hasMDE, @JsonProperty("time") Double time, @JsonProperty("duration") Double duration, @JsonProperty("context") String context, @JsonProperty("playQueueItemID") Double playQueueItemID, @JsonProperty("playBackTime") Double playBackTime, @JsonProperty("row") Double row) { + this.ratingKey = ratingKey; + this.key = key; + this.state = state; + this.hasMDE = hasMDE; + this.time = time; + this.duration = duration; + this.context = context; + this.playQueueItemID = playQueueItemID; + this.playBackTime = playBackTime; + this.row = row; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponse.java new file mode 100644 index 00000000..a4c18e54 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetTimelineResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetTimelineResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetTimelineResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetTimelineResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetTimelineResponseBody object; + + public GetTimelineResponse withObject(GetTimelineResponseBody object) { + this.object = object; + return this; + } + + public GetTimelineResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponseBody.java new file mode 100644 index 00000000..03eae315 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTimelineResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetTimelineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetTimelineResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetTimelineErrors[] errors; + + public GetTimelineResponseBody withErrors(GetTimelineErrors[] errors) { + this.errors = errors; + return this; + } + + public GetTimelineResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsErrors.java new file mode 100644 index 00000000..86260451 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetTranscodeSessionsErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetTranscodeSessionsErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetTranscodeSessionsErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetTranscodeSessionsErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetTranscodeSessionsErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsMediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsMediaContainer.java new file mode 100644 index 00000000..bcb691e5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsMediaContainer.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetTranscodeSessionsMediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public GetTranscodeSessionsMediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("TranscodeSession") + public TranscodeSession[] transcodeSession; + + public GetTranscodeSessionsMediaContainer withTranscodeSession(TranscodeSession[] transcodeSession) { + this.transcodeSession = transcodeSession; + return this; + } + + public GetTranscodeSessionsMediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponse.java new file mode 100644 index 00000000..4f20dbf8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponse.java @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetTranscodeSessionsResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetTranscodeSessionsResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetTranscodeSessionsResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetTranscodeSessionsResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * The Transcode Sessions + */ + + public GetTranscodeSessionsResponseBody twoHundredApplicationJsonObject; + + public GetTranscodeSessionsResponse withTwoHundredApplicationJsonObject(GetTranscodeSessionsResponseBody twoHundredApplicationJsonObject) { + this.twoHundredApplicationJsonObject = twoHundredApplicationJsonObject; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetTranscodeSessionsSessionsResponseBody fourHundredAndOneApplicationJsonObject; + + public GetTranscodeSessionsResponse withFourHundredAndOneApplicationJsonObject(GetTranscodeSessionsSessionsResponseBody fourHundredAndOneApplicationJsonObject) { + this.fourHundredAndOneApplicationJsonObject = fourHundredAndOneApplicationJsonObject; + return this; + } + + public GetTranscodeSessionsResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponseBody.java new file mode 100644 index 00000000..85ba8731 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetTranscodeSessionsResponseBody - The Transcode Sessions + */ + +public class GetTranscodeSessionsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetTranscodeSessionsMediaContainer mediaContainer; + + public GetTranscodeSessionsResponseBody withMediaContainer(GetTranscodeSessionsMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public GetTranscodeSessionsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsSessionsResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsSessionsResponseBody.java new file mode 100644 index 00000000..ac85deb3 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTranscodeSessionsSessionsResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetTranscodeSessionsSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetTranscodeSessionsSessionsResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetTranscodeSessionsErrors[] errors; + + public GetTranscodeSessionsSessionsResponseBody withErrors(GetTranscodeSessionsErrors[] errors) { + this.errors = errors; + return this; + } + + public GetTranscodeSessionsSessionsResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenErrors.java new file mode 100644 index 00000000..ebdb5041 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetTransientTokenErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetTransientTokenErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetTransientTokenErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetTransientTokenErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetTransientTokenErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenRequest.java new file mode 100644 index 00000000..d22b411c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenRequest.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class GetTransientTokenRequest { + /** + * `delegation` - This is the only supported `type` parameter. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") + public QueryParamType type; + + public GetTransientTokenRequest withType(QueryParamType type) { + this.type = type; + return this; + } + + /** + * `all` - This is the only supported `scope` parameter. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=scope") + public Scope scope; + + public GetTransientTokenRequest withScope(Scope scope) { + this.scope = scope; + return this; + } + + public GetTransientTokenRequest(@JsonProperty("type") QueryParamType type, @JsonProperty("scope") Scope scope) { + this.type = type; + this.scope = scope; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponse.java new file mode 100644 index 00000000..d1b21f3b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetTransientTokenResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetTransientTokenResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetTransientTokenResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetTransientTokenResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetTransientTokenResponseBody object; + + public GetTransientTokenResponse withObject(GetTransientTokenResponseBody object) { + this.object = object; + return this; + } + + public GetTransientTokenResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponseBody.java new file mode 100644 index 00000000..fde247d4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetTransientTokenResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetTransientTokenResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetTransientTokenResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetTransientTokenErrors[] errors; + + public GetTransientTokenResponseBody withErrors(GetTransientTokenErrors[] errors) { + this.errors = errors; + return this; + } + + public GetTransientTokenResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusErrors.java new file mode 100644 index 00000000..6a33f2e5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class GetUpdateStatusErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public GetUpdateStatusErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public GetUpdateStatusErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public GetUpdateStatusErrors withStatus(Double status) { + this.status = status; + return this; + } + + public GetUpdateStatusErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponse.java new file mode 100644 index 00000000..8b6fa390 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class GetUpdateStatusResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public GetUpdateStatusResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public GetUpdateStatusResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public GetUpdateStatusResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public GetUpdateStatusResponseBody object; + + public GetUpdateStatusResponse withObject(GetUpdateStatusResponseBody object) { + this.object = object; + return this; + } + + public GetUpdateStatusResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponseBody.java new file mode 100644 index 00000000..6e8d57bb --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/GetUpdateStatusResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * GetUpdateStatusResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class GetUpdateStatusResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public GetUpdateStatusErrors[] errors; + + public GetUpdateStatusResponseBody withErrors(GetUpdateStatusErrors[] errors) { + this.errors = errors; + return this; + } + + public GetUpdateStatusResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Guids.java b/lib/src/main/java/org/openapis/openapi/models/operations/Guids.java new file mode 100644 index 00000000..cf98607c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Guids.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Guids { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public String id; + + public Guids withId(String id) { + this.id = id; + return this; + } + + public Guids(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/IncludeDetails.java b/lib/src/main/java/org/openapis/openapi/models/operations/IncludeDetails.java new file mode 100644 index 00000000..d9050565 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/IncludeDetails.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * IncludeDetails - Whether or not to include details for a section (types, filters, and sorts). + * Only exists for backwards compatibility, media providers other than the server libraries have it on always. + * + */ +public enum IncludeDetails { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private IncludeDetails(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Level.java b/lib/src/main/java/org/openapis/openapi/models/operations/Level.java new file mode 100644 index 00000000..14245c5e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Level.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Level - An integer log level to write to the PMS log with. + * 0: Error + * 1: Warning + * 2: Info + * 3: Debug + * 4: Verbose + * + */ +public enum Level { + ZERO(0L), + ONE(1L), + TWO(2L), + THREE(3L), + FOUR(4L); + + @JsonValue + public final Long value; + + private Level(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogLineErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineErrors.java new file mode 100644 index 00000000..83dab245 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class LogLineErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public LogLineErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public LogLineErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public LogLineErrors withStatus(Double status) { + this.status = status; + return this; + } + + public LogLineErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogLineRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineRequest.java new file mode 100644 index 00000000..26a7c003 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineRequest.java @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class LogLineRequest { + /** + * An integer log level to write to the PMS log with. + * 0: Error + * 1: Warning + * 2: Info + * 3: Debug + * 4: Verbose + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=level") + public Level level; + + public LogLineRequest withLevel(Level level) { + this.level = level; + return this; + } + + /** + * The text of the message to write to the log. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=message") + public String message; + + public LogLineRequest withMessage(String message) { + this.message = message; + return this; + } + + /** + * a string indicating the source of the message. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=source") + public String source; + + public LogLineRequest withSource(String source) { + this.source = source; + return this; + } + + public LogLineRequest(@JsonProperty("level") Level level, @JsonProperty("message") String message, @JsonProperty("source") String source) { + this.level = level; + this.message = message; + this.source = source; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponse.java new file mode 100644 index 00000000..e2028868 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class LogLineResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public LogLineResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public LogLineResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public LogLineResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public LogLineResponseBody object; + + public LogLineResponse withObject(LogLineResponseBody object) { + this.object = object; + return this; + } + + public LogLineResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponseBody.java new file mode 100644 index 00000000..7458f440 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogLineResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * LogLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class LogLineResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public LogLineErrors[] errors; + + public LogLineResponseBody withErrors(LogLineErrors[] errors) { + this.errors = errors; + return this; + } + + public LogLineResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineErrors.java new file mode 100644 index 00000000..2340fa4b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class LogMultiLineErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public LogMultiLineErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public LogMultiLineErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public LogMultiLineErrors withStatus(Double status) { + this.status = status; + return this; + } + + public LogMultiLineErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponse.java new file mode 100644 index 00000000..a9a2bb30 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class LogMultiLineResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public LogMultiLineResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public LogMultiLineResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public LogMultiLineResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public LogMultiLineResponseBody object; + + public LogMultiLineResponse withObject(LogMultiLineResponseBody object) { + this.object = object; + return this; + } + + public LogMultiLineResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponseBody.java new file mode 100644 index 00000000..fa38572f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/LogMultiLineResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * LogMultiLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class LogMultiLineResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public LogMultiLineErrors[] errors; + + public LogMultiLineResponseBody withErrors(LogMultiLineErrors[] errors) { + this.errors = errors; + return this; + } + + public LogMultiLineResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedErrors.java new file mode 100644 index 00000000..6d7cfbb7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class MarkPlayedErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public MarkPlayedErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public MarkPlayedErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public MarkPlayedErrors withStatus(Double status) { + this.status = status; + return this; + } + + public MarkPlayedErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedRequest.java new file mode 100644 index 00000000..10e6aaab --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class MarkPlayedRequest { + /** + * The media key to mark as played + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") + public Double key; + + public MarkPlayedRequest withKey(Double key) { + this.key = key; + return this; + } + + public MarkPlayedRequest(@JsonProperty("key") Double key) { + this.key = key; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponse.java new file mode 100644 index 00000000..2ebe1953 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class MarkPlayedResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public MarkPlayedResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public MarkPlayedResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public MarkPlayedResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public MarkPlayedResponseBody object; + + public MarkPlayedResponse withObject(MarkPlayedResponseBody object) { + this.object = object; + return this; + } + + public MarkPlayedResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponseBody.java new file mode 100644 index 00000000..4c302c91 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkPlayedResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * MarkPlayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class MarkPlayedResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public MarkPlayedErrors[] errors; + + public MarkPlayedResponseBody withErrors(MarkPlayedErrors[] errors) { + this.errors = errors; + return this; + } + + public MarkPlayedResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedErrors.java new file mode 100644 index 00000000..3f580edd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class MarkUnplayedErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public MarkUnplayedErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public MarkUnplayedErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public MarkUnplayedErrors withStatus(Double status) { + this.status = status; + return this; + } + + public MarkUnplayedErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedRequest.java new file mode 100644 index 00000000..5bfc64ee --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class MarkUnplayedRequest { + /** + * The media key to mark as Unplayed + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") + public Double key; + + public MarkUnplayedRequest withKey(Double key) { + this.key = key; + return this; + } + + public MarkUnplayedRequest(@JsonProperty("key") Double key) { + this.key = key; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponse.java new file mode 100644 index 00000000..827d652b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class MarkUnplayedResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public MarkUnplayedResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public MarkUnplayedResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public MarkUnplayedResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public MarkUnplayedResponseBody object; + + public MarkUnplayedResponse withObject(MarkUnplayedResponseBody object) { + this.object = object; + return this; + } + + public MarkUnplayedResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponseBody.java new file mode 100644 index 00000000..b188f0a1 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MarkUnplayedResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * MarkUnplayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class MarkUnplayedResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public MarkUnplayedErrors[] errors; + + public MarkUnplayedResponseBody withErrors(MarkUnplayedErrors[] errors) { + this.errors = errors; + return this; + } + + public MarkUnplayedResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Media.java b/lib/src/main/java/org/openapis/openapi/models/operations/Media.java new file mode 100644 index 00000000..2bd9f287 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Media.java @@ -0,0 +1,158 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Media { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public Media withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public Media withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bitrate") + public Double bitrate; + + public Media withBitrate(Double bitrate) { + this.bitrate = bitrate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("width") + public Double width; + + public Media withWidth(Double width) { + this.width = width; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("height") + public Double height; + + public Media withHeight(Double height) { + this.height = height; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("aspectRatio") + public Double aspectRatio; + + public Media withAspectRatio(Double aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioChannels") + public Double audioChannels; + + public Media withAudioChannels(Double audioChannels) { + this.audioChannels = audioChannels; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioCodec") + public String audioCodec; + + public Media withAudioCodec(String audioCodec) { + this.audioCodec = audioCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoCodec") + public String videoCodec; + + public Media withVideoCodec(String videoCodec) { + this.videoCodec = videoCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoResolution") + public Double videoResolution; + + public Media withVideoResolution(Double videoResolution) { + this.videoResolution = videoResolution; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public Media withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoFrameRate") + public String videoFrameRate; + + public Media withVideoFrameRate(String videoFrameRate) { + this.videoFrameRate = videoFrameRate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("optimizedForStreaming") + public Double optimizedForStreaming; + + public Media withOptimizedForStreaming(Double optimizedForStreaming) { + this.optimizedForStreaming = optimizedForStreaming; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("has64bitOffsets") + public Boolean has64bitOffsets; + + public Media withHas64bitOffsets(Boolean has64bitOffsets) { + this.has64bitOffsets = has64bitOffsets; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public Media withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Part") + public Part[] part; + + public Media withPart(Part[] part) { + this.part = part; + return this; + } + + public Media(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MediaContainer.java b/lib/src/main/java/org/openapis/openapi/models/operations/MediaContainer.java new file mode 100644 index 00000000..797bf2ee --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MediaContainer.java @@ -0,0 +1,473 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class MediaContainer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public MediaContainer withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowCameraUpload") + public Boolean allowCameraUpload; + + public MediaContainer withAllowCameraUpload(Boolean allowCameraUpload) { + this.allowCameraUpload = allowCameraUpload; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowChannelAccess") + public Boolean allowChannelAccess; + + public MediaContainer withAllowChannelAccess(Boolean allowChannelAccess) { + this.allowChannelAccess = allowChannelAccess; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowMediaDeletion") + public Boolean allowMediaDeletion; + + public MediaContainer withAllowMediaDeletion(Boolean allowMediaDeletion) { + this.allowMediaDeletion = allowMediaDeletion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSharing") + public Boolean allowSharing; + + public MediaContainer withAllowSharing(Boolean allowSharing) { + this.allowSharing = allowSharing; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public MediaContainer withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowTuners") + public Boolean allowTuners; + + public MediaContainer withAllowTuners(Boolean allowTuners) { + this.allowTuners = allowTuners; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("backgroundProcessing") + public Boolean backgroundProcessing; + + public MediaContainer withBackgroundProcessing(Boolean backgroundProcessing) { + this.backgroundProcessing = backgroundProcessing; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("certificate") + public Boolean certificate; + + public MediaContainer withCertificate(Boolean certificate) { + this.certificate = certificate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("companionProxy") + public Boolean companionProxy; + + public MediaContainer withCompanionProxy(Boolean companionProxy) { + this.companionProxy = companionProxy; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("countryCode") + public String countryCode; + + public MediaContainer withCountryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("diagnostics") + public String diagnostics; + + public MediaContainer withDiagnostics(String diagnostics) { + this.diagnostics = diagnostics; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("eventStream") + public Boolean eventStream; + + public MediaContainer withEventStream(Boolean eventStream) { + this.eventStream = eventStream; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("friendlyName") + public String friendlyName; + + public MediaContainer withFriendlyName(String friendlyName) { + this.friendlyName = friendlyName; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hubSearch") + public Boolean hubSearch; + + public MediaContainer withHubSearch(Boolean hubSearch) { + this.hubSearch = hubSearch; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("itemClusters") + public Boolean itemClusters; + + public MediaContainer withItemClusters(Boolean itemClusters) { + this.itemClusters = itemClusters; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("livetv") + public Double livetv; + + public MediaContainer withLivetv(Double livetv) { + this.livetv = livetv; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("machineIdentifier") + public String machineIdentifier; + + public MediaContainer withMachineIdentifier(String machineIdentifier) { + this.machineIdentifier = machineIdentifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mediaProviders") + public Boolean mediaProviders; + + public MediaContainer withMediaProviders(Boolean mediaProviders) { + this.mediaProviders = mediaProviders; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("multiuser") + public Boolean multiuser; + + public MediaContainer withMultiuser(Boolean multiuser) { + this.multiuser = multiuser; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("musicAnalysis") + public Double musicAnalysis; + + public MediaContainer withMusicAnalysis(Double musicAnalysis) { + this.musicAnalysis = musicAnalysis; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("myPlex") + public Boolean myPlex; + + public MediaContainer withMyPlex(Boolean myPlex) { + this.myPlex = myPlex; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("myPlexMappingState") + public String myPlexMappingState; + + public MediaContainer withMyPlexMappingState(String myPlexMappingState) { + this.myPlexMappingState = myPlexMappingState; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("myPlexSigninState") + public String myPlexSigninState; + + public MediaContainer withMyPlexSigninState(String myPlexSigninState) { + this.myPlexSigninState = myPlexSigninState; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("myPlexSubscription") + public Boolean myPlexSubscription; + + public MediaContainer withMyPlexSubscription(Boolean myPlexSubscription) { + this.myPlexSubscription = myPlexSubscription; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("myPlexUsername") + public String myPlexUsername; + + public MediaContainer withMyPlexUsername(String myPlexUsername) { + this.myPlexUsername = myPlexUsername; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("offlineTranscode") + public Double offlineTranscode; + + public MediaContainer withOfflineTranscode(Double offlineTranscode) { + this.offlineTranscode = offlineTranscode; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ownerFeatures") + public String ownerFeatures; + + public MediaContainer withOwnerFeatures(String ownerFeatures) { + this.ownerFeatures = ownerFeatures; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("photoAutoTag") + public Boolean photoAutoTag; + + public MediaContainer withPhotoAutoTag(Boolean photoAutoTag) { + this.photoAutoTag = photoAutoTag; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("platform") + public String platform; + + public MediaContainer withPlatform(String platform) { + this.platform = platform; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("platformVersion") + public String platformVersion; + + public MediaContainer withPlatformVersion(String platformVersion) { + this.platformVersion = platformVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pluginHost") + public Boolean pluginHost; + + public MediaContainer withPluginHost(Boolean pluginHost) { + this.pluginHost = pluginHost; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pushNotifications") + public Boolean pushNotifications; + + public MediaContainer withPushNotifications(Boolean pushNotifications) { + this.pushNotifications = pushNotifications; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("readOnlyLibraries") + public Boolean readOnlyLibraries; + + public MediaContainer withReadOnlyLibraries(Boolean readOnlyLibraries) { + this.readOnlyLibraries = readOnlyLibraries; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("streamingBrainABRVersion") + public Double streamingBrainABRVersion; + + public MediaContainer withStreamingBrainABRVersion(Double streamingBrainABRVersion) { + this.streamingBrainABRVersion = streamingBrainABRVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("streamingBrainVersion") + public Double streamingBrainVersion; + + public MediaContainer withStreamingBrainVersion(Double streamingBrainVersion) { + this.streamingBrainVersion = streamingBrainVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sync") + public Boolean sync; + + public MediaContainer withSync(Boolean sync) { + this.sync = sync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderActiveVideoSessions") + public Double transcoderActiveVideoSessions; + + public MediaContainer withTranscoderActiveVideoSessions(Double transcoderActiveVideoSessions) { + this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderAudio") + public Boolean transcoderAudio; + + public MediaContainer withTranscoderAudio(Boolean transcoderAudio) { + this.transcoderAudio = transcoderAudio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderLyrics") + public Boolean transcoderLyrics; + + public MediaContainer withTranscoderLyrics(Boolean transcoderLyrics) { + this.transcoderLyrics = transcoderLyrics; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderPhoto") + public Boolean transcoderPhoto; + + public MediaContainer withTranscoderPhoto(Boolean transcoderPhoto) { + this.transcoderPhoto = transcoderPhoto; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderSubtitles") + public Boolean transcoderSubtitles; + + public MediaContainer withTranscoderSubtitles(Boolean transcoderSubtitles) { + this.transcoderSubtitles = transcoderSubtitles; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderVideo") + public Boolean transcoderVideo; + + public MediaContainer withTranscoderVideo(Boolean transcoderVideo) { + this.transcoderVideo = transcoderVideo; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderVideoBitrates") + public String transcoderVideoBitrates; + + public MediaContainer withTranscoderVideoBitrates(String transcoderVideoBitrates) { + this.transcoderVideoBitrates = transcoderVideoBitrates; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderVideoQualities") + public String transcoderVideoQualities; + + public MediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) { + this.transcoderVideoQualities = transcoderVideoQualities; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcoderVideoResolutions") + public String transcoderVideoResolutions; + + public MediaContainer withTranscoderVideoResolutions(String transcoderVideoResolutions) { + this.transcoderVideoResolutions = transcoderVideoResolutions; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + public Double updatedAt; + + public MediaContainer withUpdatedAt(Double updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updater") + public Boolean updater; + + public MediaContainer withUpdater(Boolean updater) { + this.updater = updater; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + public String version; + + public MediaContainer withVersion(String version) { + this.version = version; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("voiceSearch") + public Boolean voiceSearch; + + public MediaContainer withVoiceSearch(Boolean voiceSearch) { + this.voiceSearch = voiceSearch; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Directory") + public Directory[] directory; + + public MediaContainer withDirectory(Directory[] directory) { + this.directory = directory; + return this; + } + + public MediaContainer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Metadata.java b/lib/src/main/java/org/openapis/openapi/models/operations/Metadata.java new file mode 100644 index 00000000..c6b535cd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Metadata.java @@ -0,0 +1,309 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.time.OffsetDateTime; +import org.openapis.openapi.utils.DateTimeDeserializer; +import org.openapis.openapi.utils.DateTimeSerializer; + + +public class Metadata { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allowSync") + public Boolean allowSync; + + public Metadata withAllowSync(Boolean allowSync) { + this.allowSync = allowSync; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionID") + public Double librarySectionID; + + public Metadata withLibrarySectionID(Double librarySectionID) { + this.librarySectionID = librarySectionID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionTitle") + public String librarySectionTitle; + + public Metadata withLibrarySectionTitle(String librarySectionTitle) { + this.librarySectionTitle = librarySectionTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("librarySectionUUID") + public String librarySectionUUID; + + public Metadata withLibrarySectionUUID(String librarySectionUUID) { + this.librarySectionUUID = librarySectionUUID; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ratingKey") + public Double ratingKey; + + public Metadata withRatingKey(Double ratingKey) { + this.ratingKey = ratingKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public Metadata withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("guid") + public String guid; + + public Metadata withGuid(String guid) { + this.guid = guid; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("studio") + public String studio; + + public Metadata withStudio(String studio) { + this.studio = studio; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public String type; + + public Metadata withType(String type) { + this.type = type; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public Metadata withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("contentRating") + public String contentRating; + + public Metadata withContentRating(String contentRating) { + this.contentRating = contentRating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("summary") + public String summary; + + public Metadata withSummary(String summary) { + this.summary = summary; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("rating") + public Double rating; + + public Metadata withRating(Double rating) { + this.rating = rating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audienceRating") + public Double audienceRating; + + public Metadata withAudienceRating(Double audienceRating) { + this.audienceRating = audienceRating; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("year") + public Double year; + + public Metadata withYear(Double year) { + this.year = year; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tagline") + public String tagline; + + public Metadata withTagline(String tagline) { + this.tagline = tagline; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("thumb") + public String thumb; + + public Metadata withThumb(String thumb) { + this.thumb = thumb; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("art") + public String art; + + public Metadata withArt(String art) { + this.art = art; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public Metadata withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonSerialize(using = DateTimeSerializer.class) + @JsonDeserialize(using = DateTimeDeserializer.class) + @JsonProperty("originallyAvailableAt") + public OffsetDateTime originallyAvailableAt; + + public Metadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { + this.originallyAvailableAt = originallyAvailableAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("addedAt") + public Double addedAt; + + public Metadata withAddedAt(Double addedAt) { + this.addedAt = addedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + public Double updatedAt; + + public Metadata withUpdatedAt(Double updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audienceRatingImage") + public String audienceRatingImage; + + public Metadata withAudienceRatingImage(String audienceRatingImage) { + this.audienceRatingImage = audienceRatingImage; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("chapterSource") + public String chapterSource; + + public Metadata withChapterSource(String chapterSource) { + this.chapterSource = chapterSource; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("primaryExtraKey") + public String primaryExtraKey; + + public Metadata withPrimaryExtraKey(String primaryExtraKey) { + this.primaryExtraKey = primaryExtraKey; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ratingImage") + public String ratingImage; + + public Metadata withRatingImage(String ratingImage) { + this.ratingImage = ratingImage; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Media") + public Media[] media; + + public Metadata withMedia(Media[] media) { + this.media = media; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Genre") + public Genre[] genre; + + public Metadata withGenre(Genre[] genre) { + this.genre = genre; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Director") + public Director[] director; + + public Metadata withDirector(Director[] director) { + this.director = director; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Writer") + public Writer[] writer; + + public Metadata withWriter(Writer[] writer) { + this.writer = writer; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Country") + public Country[] country; + + public Metadata withCountry(Country[] country) { + this.country = country; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("Role") + public Role[] role; + + public Metadata withRole(Role[] role) { + this.role = role; + return this; + } + + public Metadata(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MinSize.java b/lib/src/main/java/org/openapis/openapi/models/operations/MinSize.java new file mode 100644 index 00000000..f0df6263 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MinSize.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. + */ +public enum MinSize { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private MinSize(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/MyPlex.java b/lib/src/main/java/org/openapis/openapi/models/operations/MyPlex.java new file mode 100644 index 00000000..e8b7bd32 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/MyPlex.java @@ -0,0 +1,122 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class MyPlex { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("authToken") + public String authToken; + + public MyPlex withAuthToken(String authToken) { + this.authToken = authToken; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("username") + public String username; + + public MyPlex withUsername(String username) { + this.username = username; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mappingState") + public String mappingState; + + public MyPlex withMappingState(String mappingState) { + this.mappingState = mappingState; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mappingError") + public String mappingError; + + public MyPlex withMappingError(String mappingError) { + this.mappingError = mappingError; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("signInState") + public String signInState; + + public MyPlex withSignInState(String signInState) { + this.signInState = signInState; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("publicAddress") + public String publicAddress; + + public MyPlex withPublicAddress(String publicAddress) { + this.publicAddress = publicAddress; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("publicPort") + public Double publicPort; + + public MyPlex withPublicPort(Double publicPort) { + this.publicPort = publicPort; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("privateAddress") + public String privateAddress; + + public MyPlex withPrivateAddress(String privateAddress) { + this.privateAddress = privateAddress; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("privatePort") + public Double privatePort; + + public MyPlex withPrivatePort(Double privatePort) { + this.privatePort = privatePort; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscriptionFeatures") + public String subscriptionFeatures; + + public MyPlex withSubscriptionFeatures(String subscriptionFeatures) { + this.subscriptionFeatures = subscriptionFeatures; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscriptionActive") + public Boolean subscriptionActive; + + public MyPlex withSubscriptionActive(Boolean subscriptionActive) { + this.subscriptionActive = subscriptionActive; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subscriptionState") + public String subscriptionState; + + public MyPlex withSubscriptionState(String subscriptionState) { + this.subscriptionState = subscriptionState; + return this; + } + + public MyPlex(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/OnlyTransient.java b/lib/src/main/java/org/openapis/openapi/models/operations/OnlyTransient.java new file mode 100644 index 00000000..3975f0be --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/OnlyTransient.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * OnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + */ +public enum OnlyTransient { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private OnlyTransient(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Part.java b/lib/src/main/java/org/openapis/openapi/models/operations/Part.java new file mode 100644 index 00000000..9743d5ca --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Part.java @@ -0,0 +1,104 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Part { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public Part withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public Part withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public Part withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("file") + public String file; + + public Part withFile(String file) { + this.file = file; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public Part withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public Part withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("has64bitOffsets") + public Boolean has64bitOffsets; + + public Part withHas64bitOffsets(Boolean has64bitOffsets) { + this.has64bitOffsets = has64bitOffsets; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasThumbnail") + public Double hasThumbnail; + + public Part withHasThumbnail(Double hasThumbnail) { + this.hasThumbnail = hasThumbnail; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("optimizedForStreaming") + public Boolean optimizedForStreaming; + + public Part withOptimizedForStreaming(Boolean optimizedForStreaming) { + this.optimizedForStreaming = optimizedForStreaming; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoProfile") + public String videoProfile; + + public Part withVideoProfile(String videoProfile) { + this.videoProfile = videoProfile; + return this; + } + + public Part(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PathParamTaskName.java b/lib/src/main/java/org/openapis/openapi/models/operations/PathParamTaskName.java new file mode 100644 index 00000000..8eb47d32 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PathParamTaskName.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * PathParamTaskName - The name of the task to be started. + */ +public enum PathParamTaskName { + BACKUP_DATABASE("BackupDatabase"), + BUILD_GRACENOTE_COLLECTIONS("BuildGracenoteCollections"), + CHECK_FOR_UPDATES("CheckForUpdates"), + CLEAN_OLD_BUNDLES("CleanOldBundles"), + CLEAN_OLD_CACHE_FILES("CleanOldCacheFiles"), + DEEP_MEDIA_ANALYSIS("DeepMediaAnalysis"), + GENERATE_AUTO_TAGS("GenerateAutoTags"), + GENERATE_CHAPTER_THUMBS("GenerateChapterThumbs"), + GENERATE_MEDIA_INDEX_FILES("GenerateMediaIndexFiles"), + OPTIMIZE_DATABASE("OptimizeDatabase"), + REFRESH_LIBRARIES("RefreshLibraries"), + REFRESH_LOCAL_MEDIA("RefreshLocalMedia"), + REFRESH_PERIODIC_METADATA("RefreshPeriodicMetadata"), + UPGRADE_MEDIA_ANALYSIS("UpgradeMediaAnalysis"); + + @JsonValue + public final String value; + + private PathParamTaskName(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchErrors.java new file mode 100644 index 00000000..36f54f23 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class PerformSearchErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public PerformSearchErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public PerformSearchErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public PerformSearchErrors withStatus(Double status) { + this.status = status; + return this; + } + + public PerformSearchErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchRequest.java new file mode 100644 index 00000000..9521fa31 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchRequest.java @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class PerformSearchRequest { + /** + * The query term + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") + public String query; + + public PerformSearchRequest withQuery(String query) { + this.query = query; + return this; + } + + /** + * This gives context to the search, and can result in re-ordering of search result hubs + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionId") + public Double sectionId; + + public PerformSearchRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * The number of items to return per hub + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") + public Double limit; + + public PerformSearchRequest withLimit(Double limit) { + this.limit = limit; + return this; + } + + public PerformSearchRequest(@JsonProperty("query") String query) { + this.query = query; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponse.java new file mode 100644 index 00000000..be4ce2ef --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class PerformSearchResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public PerformSearchResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public PerformSearchResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public PerformSearchResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public PerformSearchResponseBody object; + + public PerformSearchResponse withObject(PerformSearchResponseBody object) { + this.object = object; + return this; + } + + public PerformSearchResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponseBody.java new file mode 100644 index 00000000..34981410 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformSearchResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * PerformSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class PerformSearchResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public PerformSearchErrors[] errors; + + public PerformSearchResponseBody withErrors(PerformSearchErrors[] errors) { + this.errors = errors; + return this; + } + + public PerformSearchResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchErrors.java new file mode 100644 index 00000000..429804e5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class PerformVoiceSearchErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public PerformVoiceSearchErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public PerformVoiceSearchErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public PerformVoiceSearchErrors withStatus(Double status) { + this.status = status; + return this; + } + + public PerformVoiceSearchErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchRequest.java new file mode 100644 index 00000000..37cbf624 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchRequest.java @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class PerformVoiceSearchRequest { + /** + * The query term + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") + public String query; + + public PerformVoiceSearchRequest withQuery(String query) { + this.query = query; + return this; + } + + /** + * This gives context to the search, and can result in re-ordering of search result hubs + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionId") + public Double sectionId; + + public PerformVoiceSearchRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + /** + * The number of items to return per hub + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") + public Double limit; + + public PerformVoiceSearchRequest withLimit(Double limit) { + this.limit = limit; + return this; + } + + public PerformVoiceSearchRequest(@JsonProperty("query") String query) { + this.query = query; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponse.java new file mode 100644 index 00000000..42d048cd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class PerformVoiceSearchResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public PerformVoiceSearchResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public PerformVoiceSearchResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public PerformVoiceSearchResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public PerformVoiceSearchResponseBody object; + + public PerformVoiceSearchResponse withObject(PerformVoiceSearchResponseBody object) { + this.object = object; + return this; + } + + public PerformVoiceSearchResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponseBody.java new file mode 100644 index 00000000..0124989c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PerformVoiceSearchResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * PerformVoiceSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class PerformVoiceSearchResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public PerformVoiceSearchErrors[] errors; + + public PerformVoiceSearchResponseBody withErrors(PerformVoiceSearchErrors[] errors) { + this.errors = errors; + return this; + } + + public PerformVoiceSearchResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/PlaylistType.java b/lib/src/main/java/org/openapis/openapi/models/operations/PlaylistType.java new file mode 100644 index 00000000..c2cac394 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/PlaylistType.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * PlaylistType - limit to a type of playlist. + */ +public enum PlaylistType { + AUDIO("audio"), + VIDEO("video"), + PHOTO("photo"); + + @JsonValue + public final String value; + + private PlaylistType(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Provider.java b/lib/src/main/java/org/openapis/openapi/models/operations/Provider.java new file mode 100644 index 00000000..156c7b6d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Provider.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Provider { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public Provider withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + public String title; + + public Provider withTitle(String title) { + this.title = title; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public String type; + + public Provider withType(String type) { + this.type = type; + return this; + } + + public Provider(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamOnlyTransient.java b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamOnlyTransient.java new file mode 100644 index 00000000..93b711da --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamOnlyTransient.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * QueryParamOnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + */ +public enum QueryParamOnlyTransient { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private QueryParamOnlyTransient(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamSmart.java b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamSmart.java new file mode 100644 index 00000000..16c6bd00 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamSmart.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * QueryParamSmart - type of playlists to return (default is all). + */ +public enum QueryParamSmart { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private QueryParamSmart(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamType.java b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamType.java new file mode 100644 index 00000000..09080be0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/QueryParamType.java @@ -0,0 +1,21 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * QueryParamType - `delegation` - This is the only supported `type` parameter. + */ +public enum QueryParamType { + DELEGATION("delegation"); + + @JsonValue + public final String value; + + private QueryParamType(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryErrors.java new file mode 100644 index 00000000..98fada9d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class RefreshLibraryErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public RefreshLibraryErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public RefreshLibraryErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public RefreshLibraryErrors withStatus(Double status) { + this.status = status; + return this; + } + + public RefreshLibraryErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryRequest.java new file mode 100644 index 00000000..cd3f56e6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class RefreshLibraryRequest { + /** + * the Id of the library to refresh + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") + public Double sectionId; + + public RefreshLibraryRequest withSectionId(Double sectionId) { + this.sectionId = sectionId; + return this; + } + + public RefreshLibraryRequest(@JsonProperty("sectionId") Double sectionId) { + this.sectionId = sectionId; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponse.java new file mode 100644 index 00000000..70da1414 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class RefreshLibraryResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public RefreshLibraryResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public RefreshLibraryResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public RefreshLibraryResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public RefreshLibraryResponseBody object; + + public RefreshLibraryResponse withObject(RefreshLibraryResponseBody object) { + this.object = object; + return this; + } + + public RefreshLibraryResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponseBody.java new file mode 100644 index 00000000..c35ad0ed --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/RefreshLibraryResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * RefreshLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class RefreshLibraryResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public RefreshLibraryErrors[] errors; + + public RefreshLibraryResponseBody withErrors(RefreshLibraryErrors[] errors) { + this.errors = errors; + return this; + } + + public RefreshLibraryResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBody.java new file mode 100644 index 00000000..e256cac7 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBody.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("MediaContainer") + public GetAvailableClientsMediaContainer mediaContainer; + + public ResponseBody withMediaContainer(GetAvailableClientsMediaContainer mediaContainer) { + this.mediaContainer = mediaContainer; + return this; + } + + public ResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Role.java b/lib/src/main/java/org/openapis/openapi/models/operations/Role.java new file mode 100644 index 00000000..8bbd6cf2 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Role.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Role { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public Role withTag(String tag) { + this.tag = tag; + return this; + } + + public Role(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Scope.java b/lib/src/main/java/org/openapis/openapi/models/operations/Scope.java new file mode 100644 index 00000000..bd5d3111 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Scope.java @@ -0,0 +1,21 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Scope - `all` - This is the only supported `scope` parameter. + */ +public enum Scope { + ALL("all"); + + @JsonValue + public final String value; + + private Scope(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Server.java b/lib/src/main/java/org/openapis/openapi/models/operations/Server.java new file mode 100644 index 00000000..9b16ce3d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Server.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Server { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + public String name; + + public Server withName(String name) { + this.name = name; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("host") + public String host; + + public Server withHost(String host) { + this.host = host; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address") + public String address; + + public Server withAddress(String address) { + this.address = address; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("port") + public Double port; + + public Server withPort(Double port) { + this.port = port; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("machineIdentifier") + public String machineIdentifier; + + public Server withMachineIdentifier(String machineIdentifier) { + this.machineIdentifier = machineIdentifier; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + public String version; + + public Server withVersion(String version) { + this.version = version; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protocol") + public String protocol; + + public Server withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("product") + public String product; + + public Server withProduct(String product) { + this.product = product; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("deviceClass") + public String deviceClass; + + public Server withDeviceClass(String deviceClass) { + this.deviceClass = deviceClass; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protocolVersion") + public Double protocolVersion; + + public Server withProtocolVersion(Double protocolVersion) { + this.protocolVersion = protocolVersion; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protocolCapabilities") + public String protocolCapabilities; + + public Server withProtocolCapabilities(String protocolCapabilities) { + this.protocolCapabilities = protocolCapabilities; + return this; + } + + public Server(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Skip.java b/lib/src/main/java/org/openapis/openapi/models/operations/Skip.java new file mode 100644 index 00000000..b832353f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Skip.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Skip - Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. + */ +public enum Skip { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Skip(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Smart.java b/lib/src/main/java/org/openapis/openapi/models/operations/Smart.java new file mode 100644 index 00000000..cbc14d6d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Smart.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Smart - whether the playlist is smart or not + */ +public enum Smart { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Smart(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksErrors.java new file mode 100644 index 00000000..d544c427 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StartAllTasksErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StartAllTasksErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StartAllTasksErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StartAllTasksErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StartAllTasksErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponse.java new file mode 100644 index 00000000..5908caf6 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StartAllTasksResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StartAllTasksResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StartAllTasksResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StartAllTasksResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StartAllTasksResponseBody object; + + public StartAllTasksResponse withObject(StartAllTasksResponseBody object) { + this.object = object; + return this; + } + + public StartAllTasksResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponseBody.java new file mode 100644 index 00000000..669d4e42 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartAllTasksResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StartAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StartAllTasksResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StartAllTasksErrors[] errors; + + public StartAllTasksResponseBody withErrors(StartAllTasksErrors[] errors) { + this.errors = errors; + return this; + } + + public StartAllTasksResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskErrors.java new file mode 100644 index 00000000..475efd39 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StartTaskErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StartTaskErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StartTaskErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StartTaskErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StartTaskErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskRequest.java new file mode 100644 index 00000000..27b33f7d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class StartTaskRequest { + /** + * the name of the task to be started. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=taskName") + public TaskName taskName; + + public StartTaskRequest withTaskName(TaskName taskName) { + this.taskName = taskName; + return this; + } + + public StartTaskRequest(@JsonProperty("taskName") TaskName taskName) { + this.taskName = taskName; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponse.java new file mode 100644 index 00000000..c1625c8c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StartTaskResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StartTaskResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StartTaskResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StartTaskResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StartTaskResponseBody object; + + public StartTaskResponse withObject(StartTaskResponseBody object) { + this.object = object; + return this; + } + + public StartTaskResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponseBody.java new file mode 100644 index 00000000..84356b1b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartTaskResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StartTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StartTaskResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StartTaskErrors[] errors; + + public StartTaskResponseBody withErrors(StartTaskErrors[] errors) { + this.errors = errors; + return this; + } + + public StartTaskResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeErrors.java new file mode 100644 index 00000000..aa6e16a8 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StartUniversalTranscodeErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StartUniversalTranscodeErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StartUniversalTranscodeErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StartUniversalTranscodeErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StartUniversalTranscodeErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeRequest.java new file mode 100644 index 00000000..8fa69ff0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeRequest.java @@ -0,0 +1,195 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class StartUniversalTranscodeRequest { + /** + * Whether the media item has MDE + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=hasMDE") + public Double hasMDE; + + public StartUniversalTranscodeRequest withHasMDE(Double hasMDE) { + this.hasMDE = hasMDE; + return this; + } + + /** + * The path to the media item to transcode + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=path") + public String path; + + public StartUniversalTranscodeRequest withPath(String path) { + this.path = path; + return this; + } + + /** + * The index of the media item to transcode + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=mediaIndex") + public Double mediaIndex; + + public StartUniversalTranscodeRequest withMediaIndex(Double mediaIndex) { + this.mediaIndex = mediaIndex; + return this; + } + + /** + * The index of the part to transcode + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=partIndex") + public Double partIndex; + + public StartUniversalTranscodeRequest withPartIndex(Double partIndex) { + this.partIndex = partIndex; + return this; + } + + /** + * The protocol to use for the transcode session + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=protocol") + public String protocol; + + public StartUniversalTranscodeRequest withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Whether to use fast seek or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fastSeek") + public Double fastSeek; + + public StartUniversalTranscodeRequest withFastSeek(Double fastSeek) { + this.fastSeek = fastSeek; + return this; + } + + /** + * Whether to use direct play or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directPlay") + public Double directPlay; + + public StartUniversalTranscodeRequest withDirectPlay(Double directPlay) { + this.directPlay = directPlay; + return this; + } + + /** + * Whether to use direct stream or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directStream") + public Double directStream; + + public StartUniversalTranscodeRequest withDirectStream(Double directStream) { + this.directStream = directStream; + return this; + } + + /** + * The size of the subtitles + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtitleSize") + public Double subtitleSize; + + public StartUniversalTranscodeRequest withSubtitleSize(Double subtitleSize) { + this.subtitleSize = subtitleSize; + return this; + } + + /** + * The subtitles + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtites") + public String subtites; + + public StartUniversalTranscodeRequest withSubtites(String subtites) { + this.subtites = subtites; + return this; + } + + /** + * The audio boost + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=audioBoost") + public Double audioBoost; + + public StartUniversalTranscodeRequest withAudioBoost(Double audioBoost) { + this.audioBoost = audioBoost; + return this; + } + + /** + * The location of the transcode session + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=location") + public String location; + + public StartUniversalTranscodeRequest withLocation(String location) { + this.location = location; + return this; + } + + /** + * The size of the media buffer + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=mediaBufferSize") + public Double mediaBufferSize; + + public StartUniversalTranscodeRequest withMediaBufferSize(Double mediaBufferSize) { + this.mediaBufferSize = mediaBufferSize; + return this; + } + + /** + * The session ID + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=session") + public String session; + + public StartUniversalTranscodeRequest withSession(String session) { + this.session = session; + return this; + } + + /** + * Whether to add a debug overlay or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=addDebugOverlay") + public Double addDebugOverlay; + + public StartUniversalTranscodeRequest withAddDebugOverlay(Double addDebugOverlay) { + this.addDebugOverlay = addDebugOverlay; + return this; + } + + /** + * Whether to auto adjust quality or not + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=autoAdjustQuality") + public Double autoAdjustQuality; + + public StartUniversalTranscodeRequest withAutoAdjustQuality(Double autoAdjustQuality) { + this.autoAdjustQuality = autoAdjustQuality; + return this; + } + + public StartUniversalTranscodeRequest(@JsonProperty("hasMDE") Double hasMDE, @JsonProperty("path") String path, @JsonProperty("mediaIndex") Double mediaIndex, @JsonProperty("partIndex") Double partIndex, @JsonProperty("protocol") String protocol) { + this.hasMDE = hasMDE; + this.path = path; + this.mediaIndex = mediaIndex; + this.partIndex = partIndex; + this.protocol = protocol; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponse.java new file mode 100644 index 00000000..73174e30 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StartUniversalTranscodeResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StartUniversalTranscodeResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StartUniversalTranscodeResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StartUniversalTranscodeResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StartUniversalTranscodeResponseBody object; + + public StartUniversalTranscodeResponse withObject(StartUniversalTranscodeResponseBody object) { + this.object = object; + return this; + } + + public StartUniversalTranscodeResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponseBody.java new file mode 100644 index 00000000..803ff056 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StartUniversalTranscodeResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StartUniversalTranscodeResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StartUniversalTranscodeResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StartUniversalTranscodeErrors[] errors; + + public StartUniversalTranscodeResponseBody withErrors(StartUniversalTranscodeErrors[] errors) { + this.errors = errors; + return this; + } + + public StartUniversalTranscodeResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/State.java b/lib/src/main/java/org/openapis/openapi/models/operations/State.java new file mode 100644 index 00000000..1aa8bb6c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/State.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * State - The state of the media item + */ +public enum State { + PLAYING("playing"), + PAUSED("paused"), + STOPPED("stopped"); + + @JsonValue + public final String value; + + private State(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksErrors.java new file mode 100644 index 00000000..ab8ea04c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StopAllTasksErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StopAllTasksErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StopAllTasksErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StopAllTasksErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StopAllTasksErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponse.java new file mode 100644 index 00000000..788a8836 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StopAllTasksResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StopAllTasksResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StopAllTasksResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StopAllTasksResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StopAllTasksResponseBody object; + + public StopAllTasksResponse withObject(StopAllTasksResponseBody object) { + this.object = object; + return this; + } + + public StopAllTasksResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponseBody.java new file mode 100644 index 00000000..8fca65ec --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopAllTasksResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StopAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StopAllTasksResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StopAllTasksErrors[] errors; + + public StopAllTasksResponseBody withErrors(StopAllTasksErrors[] errors) { + this.errors = errors; + return this; + } + + public StopAllTasksResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskErrors.java new file mode 100644 index 00000000..6a56f4ff --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StopTaskErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StopTaskErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StopTaskErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StopTaskErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StopTaskErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskRequest.java new file mode 100644 index 00000000..5b301abd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class StopTaskRequest { + /** + * The name of the task to be started. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=taskName") + public PathParamTaskName taskName; + + public StopTaskRequest withTaskName(PathParamTaskName taskName) { + this.taskName = taskName; + return this; + } + + public StopTaskRequest(@JsonProperty("taskName") PathParamTaskName taskName) { + this.taskName = taskName; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponse.java new file mode 100644 index 00000000..a5cc8e07 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StopTaskResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StopTaskResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StopTaskResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StopTaskResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StopTaskResponseBody object; + + public StopTaskResponse withObject(StopTaskResponseBody object) { + this.object = object; + return this; + } + + public StopTaskResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponseBody.java new file mode 100644 index 00000000..fc37b86c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTaskResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StopTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StopTaskResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StopTaskErrors[] errors; + + public StopTaskResponseBody withErrors(StopTaskErrors[] errors) { + this.errors = errors; + return this; + } + + public StopTaskResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionErrors.java new file mode 100644 index 00000000..d9615f61 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class StopTranscodeSessionErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public StopTranscodeSessionErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public StopTranscodeSessionErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public StopTranscodeSessionErrors withStatus(Double status) { + this.status = status; + return this; + } + + public StopTranscodeSessionErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionRequest.java new file mode 100644 index 00000000..25bdfc74 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class StopTranscodeSessionRequest { + /** + * the Key of the transcode session to stop + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sessionKey") + public String sessionKey; + + public StopTranscodeSessionRequest withSessionKey(String sessionKey) { + this.sessionKey = sessionKey; + return this; + } + + public StopTranscodeSessionRequest(@JsonProperty("sessionKey") String sessionKey) { + this.sessionKey = sessionKey; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponse.java new file mode 100644 index 00000000..8c9d7295 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class StopTranscodeSessionResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public StopTranscodeSessionResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public StopTranscodeSessionResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public StopTranscodeSessionResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public StopTranscodeSessionResponseBody object; + + public StopTranscodeSessionResponse withObject(StopTranscodeSessionResponseBody object) { + this.object = object; + return this; + } + + public StopTranscodeSessionResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponseBody.java new file mode 100644 index 00000000..810a4beb --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/StopTranscodeSessionResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * StopTranscodeSessionResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class StopTranscodeSessionResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public StopTranscodeSessionErrors[] errors; + + public StopTranscodeSessionResponseBody withErrors(StopTranscodeSessionErrors[] errors) { + this.errors = errors; + return this; + } + + public StopTranscodeSessionResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Stream.java b/lib/src/main/java/org/openapis/openapi/models/operations/Stream.java new file mode 100644 index 00000000..77705f3f --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Stream.java @@ -0,0 +1,221 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Stream { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + public Double id; + + public Stream withId(Double id) { + this.id = id; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("streamType") + public Double streamType; + + public Stream withStreamType(Double streamType) { + this.streamType = streamType; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("default") + public Boolean default_; + + public Stream withDefault(Boolean default_) { + this.default_ = default_; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("codec") + public String codec; + + public Stream withCodec(String codec) { + this.codec = codec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("index") + public Double index; + + public Stream withIndex(Double index) { + this.index = index; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bitrate") + public Double bitrate; + + public Stream withBitrate(Double bitrate) { + this.bitrate = bitrate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("language") + public String language; + + public Stream withLanguage(String language) { + this.language = language; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("languageTag") + public String languageTag; + + public Stream withLanguageTag(String languageTag) { + this.languageTag = languageTag; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("languageCode") + public String languageCode; + + public Stream withLanguageCode(String languageCode) { + this.languageCode = languageCode; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bitDepth") + public Double bitDepth; + + public Stream withBitDepth(Double bitDepth) { + this.bitDepth = bitDepth; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("chromaLocation") + public String chromaLocation; + + public Stream withChromaLocation(String chromaLocation) { + this.chromaLocation = chromaLocation; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("chromaSubsampling") + public String chromaSubsampling; + + public Stream withChromaSubsampling(String chromaSubsampling) { + this.chromaSubsampling = chromaSubsampling; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("codedHeight") + public Double codedHeight; + + public Stream withCodedHeight(Double codedHeight) { + this.codedHeight = codedHeight; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("codedWidth") + public Double codedWidth; + + public Stream withCodedWidth(Double codedWidth) { + this.codedWidth = codedWidth; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("colorRange") + public String colorRange; + + public Stream withColorRange(String colorRange) { + this.colorRange = colorRange; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("frameRate") + public Double frameRate; + + public Stream withFrameRate(Double frameRate) { + this.frameRate = frameRate; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("height") + public Double height; + + public Stream withHeight(Double height) { + this.height = height; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("level") + public Double level; + + public Stream withLevel(Double level) { + this.level = level; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("profile") + public String profile; + + public Stream withProfile(String profile) { + this.profile = profile; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("refFrames") + public Double refFrames; + + public Stream withRefFrames(Double refFrames) { + this.refFrames = refFrames; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("width") + public Double width; + + public Stream withWidth(Double width) { + this.width = width; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("displayTitle") + public String displayTitle; + + public Stream withDisplayTitle(String displayTitle) { + this.displayTitle = displayTitle; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("extendedDisplayTitle") + public String extendedDisplayTitle; + + public Stream withExtendedDisplayTitle(String extendedDisplayTitle) { + this.extendedDisplayTitle = extendedDisplayTitle; + return this; + } + + public Stream(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/TaskName.java b/lib/src/main/java/org/openapis/openapi/models/operations/TaskName.java new file mode 100644 index 00000000..eb7ad7e9 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/TaskName.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * TaskName - the name of the task to be started. + */ +public enum TaskName { + BACKUP_DATABASE("BackupDatabase"), + BUILD_GRACENOTE_COLLECTIONS("BuildGracenoteCollections"), + CHECK_FOR_UPDATES("CheckForUpdates"), + CLEAN_OLD_BUNDLES("CleanOldBundles"), + CLEAN_OLD_CACHE_FILES("CleanOldCacheFiles"), + DEEP_MEDIA_ANALYSIS("DeepMediaAnalysis"), + GENERATE_AUTO_TAGS("GenerateAutoTags"), + GENERATE_CHAPTER_THUMBS("GenerateChapterThumbs"), + GENERATE_MEDIA_INDEX_FILES("GenerateMediaIndexFiles"), + OPTIMIZE_DATABASE("OptimizeDatabase"), + REFRESH_LIBRARIES("RefreshLibraries"), + REFRESH_LOCAL_MEDIA("RefreshLocalMedia"), + REFRESH_PERIODIC_METADATA("RefreshPeriodicMetadata"), + UPGRADE_MEDIA_ANALYSIS("UpgradeMediaAnalysis"); + + @JsonValue + public final String value; + + private TaskName(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Tonight.java b/lib/src/main/java/org/openapis/openapi/models/operations/Tonight.java new file mode 100644 index 00000000..2dbc20db --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Tonight.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Tonight - Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + */ +public enum Tonight { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Tonight(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/TranscodeSession.java b/lib/src/main/java/org/openapis/openapi/models/operations/TranscodeSession.java new file mode 100644 index 00000000..4060edbc --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/TranscodeSession.java @@ -0,0 +1,212 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class TranscodeSession { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + public String key; + + public TranscodeSession withKey(String key) { + this.key = key; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("throttled") + public Boolean throttled; + + public TranscodeSession withThrottled(Boolean throttled) { + this.throttled = throttled; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("complete") + public Boolean complete; + + public TranscodeSession withComplete(Boolean complete) { + this.complete = complete; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("progress") + public Double progress; + + public TranscodeSession withProgress(Double progress) { + this.progress = progress; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("size") + public Double size; + + public TranscodeSession withSize(Double size) { + this.size = size; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("speed") + public Double speed; + + public TranscodeSession withSpeed(Double speed) { + this.speed = speed; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + public Boolean error; + + public TranscodeSession withError(Boolean error) { + this.error = error; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("duration") + public Double duration; + + public TranscodeSession withDuration(Double duration) { + this.duration = duration; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("context") + public String context; + + public TranscodeSession withContext(String context) { + this.context = context; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sourceVideoCodec") + public String sourceVideoCodec; + + public TranscodeSession withSourceVideoCodec(String sourceVideoCodec) { + this.sourceVideoCodec = sourceVideoCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sourceAudioCodec") + public String sourceAudioCodec; + + public TranscodeSession withSourceAudioCodec(String sourceAudioCodec) { + this.sourceAudioCodec = sourceAudioCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoDecision") + public String videoDecision; + + public TranscodeSession withVideoDecision(String videoDecision) { + this.videoDecision = videoDecision; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioDecision") + public String audioDecision; + + public TranscodeSession withAudioDecision(String audioDecision) { + this.audioDecision = audioDecision; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("protocol") + public String protocol; + + public TranscodeSession withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("container") + public String container; + + public TranscodeSession withContainer(String container) { + this.container = container; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("videoCodec") + public String videoCodec; + + public TranscodeSession withVideoCodec(String videoCodec) { + this.videoCodec = videoCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioCodec") + public String audioCodec; + + public TranscodeSession withAudioCodec(String audioCodec) { + this.audioCodec = audioCodec; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("audioChannels") + public Double audioChannels; + + public TranscodeSession withAudioChannels(Double audioChannels) { + this.audioChannels = audioChannels; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transcodeHwRequested") + public Boolean transcodeHwRequested; + + public TranscodeSession withTranscodeHwRequested(Boolean transcodeHwRequested) { + this.transcodeHwRequested = transcodeHwRequested; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timeStamp") + public Double timeStamp; + + public TranscodeSession withTimeStamp(Double timeStamp) { + this.timeStamp = timeStamp; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("maxOffsetAvailable") + public Double maxOffsetAvailable; + + public TranscodeSession withMaxOffsetAvailable(Double maxOffsetAvailable) { + this.maxOffsetAvailable = maxOffsetAvailable; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("minOffsetAvailable") + public Double minOffsetAvailable; + + public TranscodeSession withMinOffsetAvailable(Double minOffsetAvailable) { + this.minOffsetAvailable = minOffsetAvailable; + return this; + } + + public TranscodeSession(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Type.java b/lib/src/main/java/org/openapis/openapi/models/operations/Type.java new file mode 100644 index 00000000..ac0fdb1a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Type.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Type - type of playlist to create + */ +public enum Type { + AUDIO("audio"), + VIDEO("video"), + PHOTO("photo"); + + @JsonValue + public final String value; + + private Type(String value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressErrors.java new file mode 100644 index 00000000..d8df57b0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class UpdatePlayProgressErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public UpdatePlayProgressErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public UpdatePlayProgressErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public UpdatePlayProgressErrors withStatus(Double status) { + this.status = status; + return this; + } + + public UpdatePlayProgressErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressRequest.java new file mode 100644 index 00000000..4715063c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressRequest.java @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class UpdatePlayProgressRequest { + /** + * the media key + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") + public String key; + + public UpdatePlayProgressRequest withKey(String key) { + this.key = key; + return this; + } + + /** + * The time, in milliseconds, used to set the media playback progress. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=time") + public Double time; + + public UpdatePlayProgressRequest withTime(Double time) { + this.time = time; + return this; + } + + /** + * The playback state of the media item. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=state") + public String state; + + public UpdatePlayProgressRequest withState(String state) { + this.state = state; + return this; + } + + public UpdatePlayProgressRequest(@JsonProperty("key") String key, @JsonProperty("time") Double time, @JsonProperty("state") String state) { + this.key = key; + this.time = time; + this.state = state; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponse.java new file mode 100644 index 00000000..9c5c2666 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UpdatePlayProgressResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UpdatePlayProgressResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UpdatePlayProgressResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UpdatePlayProgressResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public UpdatePlayProgressResponseBody object; + + public UpdatePlayProgressResponse withObject(UpdatePlayProgressResponseBody object) { + this.object = object; + return this; + } + + public UpdatePlayProgressResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponseBody.java new file mode 100644 index 00000000..3251e306 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlayProgressResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UpdatePlayProgressResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class UpdatePlayProgressResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public UpdatePlayProgressErrors[] errors; + + public UpdatePlayProgressResponseBody withErrors(UpdatePlayProgressErrors[] errors) { + this.errors = errors; + return this; + } + + public UpdatePlayProgressResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistErrors.java new file mode 100644 index 00000000..deaa2c24 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class UpdatePlaylistErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public UpdatePlaylistErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public UpdatePlaylistErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public UpdatePlaylistErrors withStatus(Double status) { + this.status = status; + return this; + } + + public UpdatePlaylistErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistRequest.java new file mode 100644 index 00000000..7ee5316e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class UpdatePlaylistRequest { + /** + * the ID of the playlist + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") + public Double playlistID; + + public UpdatePlaylistRequest withPlaylistID(Double playlistID) { + this.playlistID = playlistID; + return this; + } + + public UpdatePlaylistRequest(@JsonProperty("playlistID") Double playlistID) { + this.playlistID = playlistID; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponse.java new file mode 100644 index 00000000..fb628288 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UpdatePlaylistResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UpdatePlaylistResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UpdatePlaylistResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UpdatePlaylistResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public UpdatePlaylistResponseBody object; + + public UpdatePlaylistResponse withObject(UpdatePlaylistResponseBody object) { + this.object = object; + return this; + } + + public UpdatePlaylistResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponseBody.java new file mode 100644 index 00000000..a64afb34 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UpdatePlaylistResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UpdatePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class UpdatePlaylistResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public UpdatePlaylistErrors[] errors; + + public UpdatePlaylistResponseBody withErrors(UpdatePlaylistErrors[] errors) { + this.errors = errors; + return this; + } + + public UpdatePlaylistResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistErrors.java b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistErrors.java new file mode 100644 index 00000000..ea8b22a4 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistErrors.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class UploadPlaylistErrors { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + public Double code; + + public UploadPlaylistErrors withCode(Double code) { + this.code = code; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("message") + public String message; + + public UploadPlaylistErrors withMessage(String message) { + this.message = message; + return this; + } + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("status") + public Double status; + + public UploadPlaylistErrors withStatus(Double status) { + this.status = status; + return this; + } + + public UploadPlaylistErrors(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistRequest.java b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistRequest.java new file mode 100644 index 00000000..5bd71db0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistRequest.java @@ -0,0 +1,46 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class UploadPlaylistRequest { + /** + * absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. + * If the `path` argument is a directory, that path will be scanned for playlist files to be processed. + * Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. + * The GUID of each playlist is based on the filename. + * If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. + * The GUID of each playlist is based on the filename. + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=path") + public String path; + + public UploadPlaylistRequest withPath(String path) { + this.path = path; + return this; + } + + /** + * force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. + * The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=force") + public Force force; + + public UploadPlaylistRequest withForce(Force force) { + this.force = force; + return this; + } + + public UploadPlaylistRequest(@JsonProperty("path") String path, @JsonProperty("force") Force force) { + this.path = path; + this.force = force; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponse.java b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponse.java new file mode 100644 index 00000000..621f893c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponse.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UploadPlaylistResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UploadPlaylistResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UploadPlaylistResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UploadPlaylistResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + + public UploadPlaylistResponseBody object; + + public UploadPlaylistResponse withObject(UploadPlaylistResponseBody object) { + this.object = object; + return this; + } + + public UploadPlaylistResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponseBody.java b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponseBody.java new file mode 100644 index 00000000..a2a7e862 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/UploadPlaylistResponseBody.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UploadPlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + */ + +public class UploadPlaylistResponseBody { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + public UploadPlaylistErrors[] errors; + + public UploadPlaylistResponseBody withErrors(UploadPlaylistErrors[] errors) { + this.errors = errors; + return this; + } + + public UploadPlaylistResponseBody(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Upscale.java b/lib/src/main/java/org/openapis/openapi/models/operations/Upscale.java new file mode 100644 index 00000000..822bb1b0 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Upscale.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Upscale - allow images to be resized beyond native dimensions. + */ +public enum Upscale { + ZERO(0L), + ONE(1L); + + @JsonValue + public final Long value; + + private Upscale(Long value) { + this.value = value; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/models/operations/Writer.java b/lib/src/main/java/org/openapis/openapi/models/operations/Writer.java new file mode 100644 index 00000000..034ca4a5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/operations/Writer.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class Writer { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tag") + public String tag; + + public Writer withTag(String tag) { + this.tag = tag; + return this; + } + + public Writer(){} +} diff --git a/lib/src/main/java/org/openapis/openapi/models/shared/Security.java b/lib/src/main/java/org/openapis/openapi/models/shared/Security.java new file mode 100644 index 00000000..6f07b9e5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/models/shared/Security.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.shared; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class Security { + @SpeakeasyMetadata("security:scheme=true,type=apiKey,subtype=header,name=X-Plex-Token") + public String accessToken; + + public Security withAccessToken(String accessToken) { + this.accessToken = accessToken; + return this; + } + + public Security(@JsonProperty("accessToken") String accessToken) { + this.accessToken = accessToken; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/DateTimeDeserializer.java b/lib/src/main/java/org/openapis/openapi/utils/DateTimeDeserializer.java new file mode 100644 index 00000000..245f3a4c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/DateTimeDeserializer.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; + +public class DateTimeDeserializer extends StdDeserializer { + public DateTimeDeserializer() { + this(null); + } + + public DateTimeDeserializer(Class t) { + super(t); + } + + @Override + public OffsetDateTime deserialize(JsonParser parser, DeserializationContext context) + throws IOException, JsonProcessingException { + + String date = parser.getText(); + try { + return OffsetDateTime.parse(date); + } catch (Exception e) { + } + return null; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/DateTimeSerializer.java b/lib/src/main/java/org/openapis/openapi/utils/DateTimeSerializer.java new file mode 100644 index 00000000..83df551e --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/DateTimeSerializer.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; + +public class DateTimeSerializer extends StdSerializer { + public DateTimeSerializer() { + this(null); + } + + public DateTimeSerializer(Class t) { + super(t); + } + + @Override + public void serialize(OffsetDateTime value, JsonGenerator gen, SerializerProvider provider) throws IOException { + gen.writeString(value.toString()); + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/FormMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/FormMetadata.java new file mode 100644 index 00000000..627411bd --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/FormMetadata.java @@ -0,0 +1,25 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class FormMetadata extends Metadata { + public String style = "form"; + public boolean explode = true; + public boolean json; + public String name; + + // form:name=propName,style=spaceDelimited,explode=true + public static FormMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + FormMetadata result = new FormMetadata(); + result = (FormMetadata) parse("form", result, field); + + return result; + } + + private FormMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/HTTPClient.java b/lib/src/main/java/org/openapis/openapi/utils/HTTPClient.java new file mode 100644 index 00000000..41b5e032 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/HTTPClient.java @@ -0,0 +1,14 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.net.http.HttpResponse; + +public interface HTTPClient { + public HttpResponse send(HTTPRequest request) + throws IOException, InterruptedException, URISyntaxException; +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/HTTPRequest.java b/lib/src/main/java/org/openapis/openapi/utils/HTTPRequest.java new file mode 100644 index 00000000..45da1c7b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/HTTPRequest.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.net.URI; +import java.net.http.HttpRequest; +import java.net.http.HttpRequest.BodyPublisher; +import java.net.http.HttpRequest.BodyPublishers; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.http.NameValuePair; +import org.apache.http.client.utils.URLEncodedUtils; + +public class HTTPRequest { + private String baseURL; + private String method; + private SerializedBody body; + + private List queryParams = new ArrayList(); + private Map> headers = new HashMap>(); + + public HTTPRequest setMethod(String method) { + this.method = method; + return this; + } + + public HTTPRequest setURL(String url) { + this.baseURL = url; + return this; + } + + public HTTPRequest setBody(SerializedBody body) { + this.body = body; + return this; + } + + public HTTPRequest addHeader(String key, String value) { + List headerValues = this.headers.get(key); + if (headerValues == null) { + headerValues = new ArrayList(); + } + + headerValues.add(value); + this.headers.put(key, headerValues); + return this; + } + + public HTTPRequest addQueryParam(NameValuePair param) { + this.queryParams.add(param); + return this; + } + + public HttpRequest build() { + HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(); + + BodyPublisher bodyPublisher = BodyPublishers.noBody(); + if (this.body != null) { + bodyPublisher = this.body.body; + requestBuilder.header("Content-Type", this.body.contentType); + } + + requestBuilder.method(this.method, bodyPublisher); + requestBuilder.uri(resolveURL()); + + for (Map.Entry> entry : this.headers.entrySet()) { + for (String value : entry.getValue()) { + requestBuilder.header(entry.getKey(), value); + } + } + + return requestBuilder.build(); + } + + private URI resolveURL() { + String url = this.baseURL; + if (this.queryParams != null && this.queryParams.size() > 0) { + url += "?" + URLEncodedUtils.format(this.queryParams, StandardCharsets.UTF_8); + } + return URI.create(url); + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/HeaderMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/HeaderMetadata.java new file mode 100644 index 00000000..08aaf912 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/HeaderMetadata.java @@ -0,0 +1,23 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class HeaderMetadata extends Metadata { + public String style = "simple"; + public boolean explode; + public String name; + + // headerParam:style=simple,explode=false,name=apiID + public static HeaderMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + HeaderMetadata result = new HeaderMetadata(); + result = (HeaderMetadata) parse("header", result, field); + return result; + } + + private HeaderMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/JSON.java b/lib/src/main/java/org/openapis/openapi/utils/JSON.java new file mode 100644 index 00000000..1368b155 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/JSON.java @@ -0,0 +1,19 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class JSON { + public static ObjectMapper getMapper() { + ObjectMapper mapper = new ObjectMapper(); + mapper.findAndRegisterModules(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); + return mapper; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/Metadata.java b/lib/src/main/java/org/openapis/openapi/utils/Metadata.java new file mode 100644 index 00000000..86901b9c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/Metadata.java @@ -0,0 +1,78 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.Map; + +public class Metadata { + protected static Object parse(String name, Object metadata, Field field) + throws IllegalArgumentException, IllegalAccessException { + SpeakeasyMetadata md = field.getAnnotation(SpeakeasyMetadata.class); + if (md == null) { + return null; + } + + String mdValue = md.value(); + + if (mdValue == null || mdValue.isBlank()) { + return null; + } + + String[] groups = mdValue.split(" "); + + boolean handled = false; + + for (String group : groups) { + String[] parts = group.split(":"); + if (parts.length != 2) { + return null; + } + + if (!parts[0].equals(name)) { + continue; + } + + Map values = new HashMap<>(); + + String[] pairs = parts[1].split(","); + for (String pair : pairs) { + String[] keyVal = pair.split("="); + String key = keyVal[0]; + + String val = ""; + if (keyVal.length > 1) { + val = keyVal[1]; + } + + values.put(key, val); + } + + Field[] fields = metadata.getClass().getFields(); + + for (Field f : fields) { + f.setAccessible(true); + if (values.containsKey(f.getName())) { + String val = values.get(f.getName()); + + if (f.getType().equals(boolean.class) || f.getType().equals(Boolean.class)) { + f.set(metadata, val.equals("true") || val.isBlank()); + } else { + f.set(metadata, val); + } + } + } + + handled = true; + } + + if (!handled) { + return null; + } + + return metadata; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/MultipartFormMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/MultipartFormMetadata.java new file mode 100644 index 00000000..d5c54d5a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/MultipartFormMetadata.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class MultipartFormMetadata extends Metadata { + public boolean file; + public boolean content; + public boolean json; + public String name; + + // multipartForm:name=file + public static MultipartFormMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + MultipartFormMetadata result = new MultipartFormMetadata(); + result = (MultipartFormMetadata) parse("multipartForm", result, field); + return result; + } + + private MultipartFormMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/PathParamsMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/PathParamsMetadata.java new file mode 100644 index 00000000..38d46ca5 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/PathParamsMetadata.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class PathParamsMetadata extends Metadata { + public String style = "simple"; + public boolean explode; + public String name; + public String serialization; + + // pathParam:style=simple,explode=false,name=apiID + public static PathParamsMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + PathParamsMetadata result = new PathParamsMetadata(); + result = (PathParamsMetadata) parse("pathParam", result, field); + return result; + } + + private PathParamsMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/QueryParameters.java b/lib/src/main/java/org/openapis/openapi/utils/QueryParameters.java new file mode 100644 index 00000000..c2baa556 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/QueryParameters.java @@ -0,0 +1,220 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import org.apache.http.NameValuePair; +import org.apache.http.message.BasicNameValuePair; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class QueryParameters { + public static List parseQueryParams(Class type, T queryParams, + Map>> globals) throws Exception { + List allParams = new ArrayList<>(); + + Field[] fields = type.getFields(); + + for (Field field : fields) { + Object value = queryParams != null ? field.get(queryParams) : null; + value = Utils.populateGlobal(value, field.getName(), "queryParam", globals); + if (value == null) { + continue; + } + + QueryParamsMetadata queryParamsMetadata = QueryParamsMetadata.parse(field); + if (queryParamsMetadata == null) { + continue; + } + + if (queryParamsMetadata.serialization != null && !queryParamsMetadata.serialization.isBlank()) { + List params = parseSerializedParams(queryParamsMetadata, value); + allParams.addAll(params); + } else { + switch (queryParamsMetadata.style) { + case "form": + List formParams = parseDelimitedParams(queryParamsMetadata, value, ","); + allParams.addAll(formParams); + break; + case "deepObject": + List deepObjectParams = parseDeepObjectParams(queryParamsMetadata, value); + allParams.addAll(deepObjectParams); + break; + case "pipeDelimited": + List pipeDelimitedParams = parseDelimitedParams(queryParamsMetadata, value, "|"); + allParams.addAll(pipeDelimitedParams); + break; + } + } + } + + return allParams; + } + + private static List parseSerializedParams(QueryParamsMetadata queryParamsMetadata, Object value) + throws JsonProcessingException { + List params = new ArrayList<>(); + + switch (queryParamsMetadata.serialization) { + case "json": + ObjectMapper mapper = JSON.getMapper(); + String json = mapper.writeValueAsString(value); + + params.add(new BasicNameValuePair(queryParamsMetadata.name, json)); + break; + } + + return params; + } + + private static List parseDelimitedParams(QueryParamsMetadata queryParamsMetadata, Object value, String delimiter) + throws IllegalArgumentException, IllegalAccessException { + List params = new ArrayList<>(); + + switch (Types.getType(value.getClass())) { + case ARRAY: { + Object[] array = (Object[]) value; + + List values = new ArrayList<>(); + List items = new ArrayList<>(); + + for (Object v : array) { + if (queryParamsMetadata.explode) { + values.add(Utils.valToString(v)); + } else { + items.add(Utils.valToString(v)); + } + } + + if (items.size() > 0) { + values.add(String.join(delimiter, items)); + } + + params.addAll(values.stream().map(v -> new BasicNameValuePair(queryParamsMetadata.name, v)) + .collect(Collectors.toList())); + break; + } + case MAP: { + Map map = (Map) value; + + List items = new ArrayList<>(); + + for (Map.Entry entry : map.entrySet()) { + String key = Utils.valToString(entry.getKey()); + String val = Utils.valToString(entry.getValue()); + + if (queryParamsMetadata.explode) { + params.add(new BasicNameValuePair(key, val)); + } else { + items.add(String.format("%s%s%s", key, delimiter, val)); + } + } + + if (items.size() > 0) { + params.add(new BasicNameValuePair(queryParamsMetadata.name, String.join(delimiter, items))); + } + break; + } + case OBJECT: { + Field[] fields = value.getClass().getFields(); + + List items = new ArrayList<>(); + + for (Field field : fields) { + Object val = field.get(value); + if (val == null) { + continue; + } + + QueryParamsMetadata metadata = QueryParamsMetadata.parse(field); + if (metadata == null) { + continue; + } + + if (queryParamsMetadata.explode) { + params.add(new BasicNameValuePair(metadata.name, Utils.valToString(val))); + } else { + items.add(String.format("%s%s%s", metadata.name, delimiter, Utils.valToString(val))); + } + } + + if (items.size() > 0) { + params.add(new BasicNameValuePair(queryParamsMetadata.name, String.join(delimiter, items))); + } + break; + } + default: + params.add(new BasicNameValuePair(queryParamsMetadata.name, Utils.valToString(value))); + break; + } + + return params; + } + + private static List parseDeepObjectParams(QueryParamsMetadata queryParamsMetadata, Object value) + throws Exception { + List params = new ArrayList<>(); + + switch (Types.getType(value.getClass())) { + case MAP: { + Map map = (Map) value; + + for (Map.Entry entry : map.entrySet()) { + String key = Utils.valToString(entry.getKey()); + Object val = entry.getValue(); + + if (val.getClass().isArray()) { + for (Object v : (Object[]) val) { + params.add(new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, key), + Utils.valToString(v))); + } + } else { + params.add(new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, key), + Utils.valToString(val))); + } + } + + return params; + } + case OBJECT: { + Field[] fields = value.getClass().getFields(); + + for (Field field : fields) { + Object val = field.get(value); + if (val == null) { + continue; + } + + QueryParamsMetadata metadata = QueryParamsMetadata.parse(field); + if (metadata == null) { + continue; + } + + if (val.getClass().isArray()) { + for (Object v : (Object[]) val) { + params.add(new BasicNameValuePair( + String.format("%s[%s]", queryParamsMetadata.name, metadata.name), + Utils.valToString(v))); + } + } else { + params.add( + new BasicNameValuePair(String.format("%s[%s]", queryParamsMetadata.name, metadata.name), + Utils.valToString(val))); + } + } + + return params; + } + default: + throw new Exception("DeepObject style only supports Map and Object types"); + } + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/QueryParamsMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/QueryParamsMetadata.java new file mode 100644 index 00000000..60357c1a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/QueryParamsMetadata.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class QueryParamsMetadata extends Metadata { + public String style = "form"; + public boolean explode = true; + public String name; + public String serialization; + + // queryParam:style=simple,explode=false,name=apiID + public static QueryParamsMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + QueryParamsMetadata result = new QueryParamsMetadata(); + result = (QueryParamsMetadata) parse("queryParam", result, field); + return result; + } + + private QueryParamsMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/RequestBody.java b/lib/src/main/java/org/openapis/openapi/utils/RequestBody.java new file mode 100644 index 00000000..0033f64c --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/RequestBody.java @@ -0,0 +1,335 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.Field; +import java.net.http.HttpRequest.BodyPublishers; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.regex.Pattern; + +import org.apache.http.HttpEntity; +import org.apache.http.NameValuePair; +import org.apache.http.client.entity.UrlEncodedFormEntity; +import org.apache.http.entity.ContentType; +import org.apache.http.entity.mime.HttpMultipartMode; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.message.BasicNameValuePair; + +import com.fasterxml.jackson.databind.ObjectMapper; + +public class RequestBody { + private static final Map SERIALIZATION_METHOD_TO_CONTENT_TYPE = Map.of( + "json", "application/json", + "form", "application/x-www-form-urlencoded", + "multipart", "multipart/form-data", + "raw", "application/octet-stream", + "string", "text/plain"); + + public static SerializedBody serialize(Object request, String requestField, String serializationMethod) + throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, + UnsupportedOperationException, IOException { + if (request == null) { + return null; + } + + if (Types.getType(request.getClass()) != Types.OBJECT) { + return serializeContentType(requestField, SERIALIZATION_METHOD_TO_CONTENT_TYPE.get(serializationMethod), + request); + } + + Field reqField = null; + + try { + reqField = request.getClass().getField(requestField); + } catch (NoSuchFieldException e) { + // ignore + } + if (reqField == null) { + return serializeContentType(requestField, SERIALIZATION_METHOD_TO_CONTENT_TYPE.get(serializationMethod), + request); + } + + Object requestValue = reqField.get(request); + + if (requestValue == null) { + return null; + } + + RequestMetadata requestMetadata = RequestMetadata.parse(reqField); + if (requestMetadata == null) { + throw new Error("Missing request metadata on request field"); + } + + return serializeContentType(requestField, requestMetadata.mediaType, requestValue); + } + + private static SerializedBody serializeContentType(String fieldName, String contentType, Object value) + throws IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { + Pattern jsonPattern = Pattern.compile("(application|text)\\/.*?\\+*json.*"); + Pattern multipartPattern = Pattern.compile("multipart\\/.*"); + Pattern formPattern = Pattern.compile("application\\/x-www-form-urlencoded.*"); + Pattern textPattern = Pattern.compile("text\\/plain"); + + SerializedBody body = new SerializedBody(); + + if (textPattern.matcher(contentType).matches()) { + body.contentType = contentType; + body.body = BodyPublishers.ofString(value.toString()); + } else if (jsonPattern.matcher(contentType).matches()) { + ObjectMapper mapper = JSON.getMapper(); + body.contentType = contentType; + body.body = BodyPublishers.ofString(mapper.writeValueAsString(value)); + } else if (multipartPattern.matcher(contentType).matches()) { + body = serializeMultipart(value); + } else if (formPattern.matcher(contentType).matches()) { + body = serializeFormData(value); + } else { + if (value instanceof String) { + body.contentType = contentType; + body.body = BodyPublishers.ofString((String) value); + } else if (value instanceof byte[]) { + body.contentType = contentType; + body.body = BodyPublishers.ofByteArray((byte[]) value); + } else { + throw new Error("Unsupported content type " + contentType + " for field " + fieldName); + } + } + + return body; + } + + private static SerializedBody serializeMultipart(Object value) + throws IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { + MultipartEntityBuilder builder = MultipartEntityBuilder.create(); + builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); + String boundary = "-------------" + System.currentTimeMillis(); + builder.setBoundary(boundary); + + Field[] fields = value.getClass().getFields(); + + for (Field field : fields) { + Object val = field.get(value); + + if (val == null) { + continue; + } + + MultipartFormMetadata metadata = MultipartFormMetadata.parse(field); + if (metadata == null) { + throw new Error("Missing multipart form metadata on field " + field.getName()); + } + + if (metadata.file) { + serializeMultipartFile(builder, val); + } else if (metadata.json) { + ObjectMapper mapper = JSON.getMapper(); + String json = mapper.writeValueAsString(val); + builder.addTextBody(metadata.name, json, ContentType.APPLICATION_JSON); + } else { + if (val.getClass().isArray()) { + Object[] arr = (Object[]) val; + for (Object item : arr) { + builder.addTextBody(metadata.name + "[]", Utils.valToString(item)); + } + } else { + builder.addTextBody(metadata.name, Utils.valToString(val)); + } + } + } + + HttpEntity entity = builder.build(); + + SerializedBody body = new SerializedBody(); + body.contentType = builder.build().getContentType().getValue(); + + InputStream stream = entity.getContent(); + + body.body = BodyPublishers.ofInputStream(() -> stream); + + return body; + } + + private static void serializeMultipartFile(MultipartEntityBuilder builder, Object file) + throws IllegalArgumentException, IllegalAccessException { + if (Types.getType(file.getClass()) != Types.OBJECT) { + throw new Error("Invalid type for multipart file"); + } + + String fieldName = ""; + String fileName = ""; + byte[] content = null; + + Field[] fields = file.getClass().getFields(); + + for (Field field : fields) { + Object val = field.get(file); + + if (val == null) { + continue; + } + + MultipartFormMetadata metadata = MultipartFormMetadata.parse(field); + if (metadata == null || (!metadata.content && (metadata.name == null || metadata.name.isBlank()))) { + continue; + } + + if (metadata.content) { + content = (byte[]) val; + } else { + fieldName = metadata.name; + fileName = Utils.valToString(val); + } + } + + if (fieldName.isBlank() || fileName.isBlank() || content == null) { + throw new Error("Invalid multipart file"); + } + + builder.addBinaryBody(fieldName, content, ContentType.APPLICATION_OCTET_STREAM, fileName); + } + + private static SerializedBody serializeFormData(Object value) + throws IOException, IllegalArgumentException, IllegalAccessException { + List params = new ArrayList(); + + switch (Types.getType(value.getClass())) { + case MAP: + Map map = (Map) value; + + for (Map.Entry entry : map.entrySet()) { + params.add( + new BasicNameValuePair(Utils.valToString(entry.getKey()), + Utils.valToString(entry.getValue()))); + } + break; + case OBJECT: + Field[] fields = value.getClass().getFields(); + + for (Field field : fields) { + Object val = field.get(value); + + if (val == null) { + continue; + } + + FormMetadata metadata = FormMetadata.parse(field); + if (metadata == null) { + continue; + } + + if (metadata.json) { + ObjectMapper mapper = JSON.getMapper(); + String json = mapper.writeValueAsString(val); + params.add(new BasicNameValuePair(metadata.name, json)); + } else { + switch (Types.getType(val.getClass())) { + case OBJECT: { + if (val.getClass() == LocalDate.class) { + params.add(new BasicNameValuePair(metadata.name, String.valueOf(val))); + } else if (val.getClass() == OffsetDateTime.class) { + params.add(new BasicNameValuePair(metadata.name, String.valueOf(val))); + } else { + + Field[] valFields = val.getClass().getFields(); + + List items = new ArrayList(); + + for (Field valField : valFields) { + Object v = valField.get(val); + if (v == null) { + continue; + } + + FormMetadata valMetadata = FormMetadata.parse(valField); + if (valMetadata == null) { + continue; + } + + if (metadata.explode) { + params.add(new BasicNameValuePair(valMetadata.name, + Utils.valToString(v))); + } else { + items.add(String.format("%s,%s", valMetadata.name, + Utils.valToString(v))); + } + } + + if (items.size() > 0) { + params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); + } + } + break; + } + case MAP: { + Map valMap = (Map) val; + + List items = new ArrayList(); + + for (Map.Entry entry : valMap.entrySet()) { + if (metadata.explode) { + params.add(new BasicNameValuePair(Utils.valToString(entry.getKey()), + Utils.valToString(entry.getValue()))); + } else { + items.add(String.format("%s,%s", entry.getKey(), entry.getValue())); + } + } + + if (items.size() > 0) { + params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); + } + + break; + } + case ARRAY: { + Object[] arr = (Object[]) val; + + List items = new ArrayList(); + + for (Object item : arr) { + if (metadata.explode) { + params.add(new BasicNameValuePair(metadata.name, Utils.valToString(item))); + } else { + items.add(Utils.valToString(item)); + } + } + + if (items.size() > 0) { + params.add(new BasicNameValuePair(metadata.name, String.join(",", items))); + } + + break; + } + default: + params.add(new BasicNameValuePair(metadata.name, Utils.valToString(val))); + break; + } + } + } + break; + default: + throw new Error("Invalid type for form data"); + } + + UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params); + + SerializedBody body = new SerializedBody(); + body.contentType = entity.getContentType().getValue(); + + InputStream stream = entity.getContent(); + + body.body = BodyPublishers.ofInputStream(() -> stream); + + return body; + } + + private RequestBody() { + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/RequestMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/RequestMetadata.java new file mode 100644 index 00000000..e9c6d950 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/RequestMetadata.java @@ -0,0 +1,21 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class RequestMetadata extends Metadata { + public String mediaType = "application/octet-stream"; + + // request:mediaType=multipart/form-data + public static RequestMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + RequestMetadata result = new RequestMetadata(); + result = (RequestMetadata) parse("request", result, field); + return result; + } + + private RequestMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/Security.java b/lib/src/main/java/org/openapis/openapi/utils/Security.java new file mode 100644 index 00000000..7c7e9a5a --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/Security.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; +import java.util.Base64; + +import org.apache.http.message.BasicNameValuePair; + +public class Security { + public static SpeakeasyHTTPSecurityClient createClient(HTTPClient client, Object security) + throws Exception { + + SpeakeasyHTTPSecurityClient securityClient = new SpeakeasyHTTPSecurityClient(client); + + if (security != null) { + Field[] fields = security.getClass().getFields(); + + for (Field field : fields) { + Object value = field.get(security); + if (value == null) { + continue; + } + + SecurityMetadata securityMetadata = SecurityMetadata.parse(field); + if (securityMetadata == null) { + continue; + } + + if (securityMetadata.option) { + parseSecurityOption(securityClient, value); + return securityClient; + } else if (securityMetadata.scheme) { + if ((securityMetadata.subtype != null && securityMetadata.subtype.equals("basic")) + && Types.getType(value.getClass()) != Types.OBJECT) { + parseSecurityScheme(securityClient, securityMetadata, security); + return securityClient; + } else { + parseSecurityScheme(securityClient, securityMetadata, value); + } + } + } + } + + return securityClient; + } + + private static void parseSecurityOption(SpeakeasyHTTPSecurityClient client, Object option) + throws Exception { + Field[] fields = option.getClass().getFields(); + + for (Field field : fields) { + Object value = field.get(option); + + if (value == null) { + continue; + } + + SecurityMetadata securityMetadata = SecurityMetadata.parse(field); + if (securityMetadata == null || !securityMetadata.scheme) { + continue; + } + + parseSecurityScheme(client, securityMetadata, value); + } + } + + private static void parseSecurityScheme(SpeakeasyHTTPSecurityClient client, SecurityMetadata schemeMetadata, + Object scheme) throws Exception { + + if (Types.getType(scheme.getClass()) == Types.OBJECT) { + if (schemeMetadata.type.equals("http") && schemeMetadata.subtype.equals("basic")) { + parseBasicAuthScheme(client, scheme); + return; + } + + Field[] fields = scheme.getClass().getFields(); + + for (Field field : fields) { + Object value = field.get(scheme); + + if (value == null) { + continue; + } + + SecurityMetadata securityMetadata = SecurityMetadata.parse(field); + if (securityMetadata == null || securityMetadata.name.isEmpty()) { + continue; + } + + parseSecuritySchemeValue(client, schemeMetadata, securityMetadata, value); + } + } else { + parseSecuritySchemeValue(client, schemeMetadata, schemeMetadata, scheme); + } + } + + private static void parseSecuritySchemeValue(SpeakeasyHTTPSecurityClient client, SecurityMetadata schemeMetadata, + SecurityMetadata securityMetadata, + Object value) throws Exception { + switch (schemeMetadata.type) { + case "apiKey": + switch (schemeMetadata.subtype) { + case "header": + client.addHeader(securityMetadata.name, Utils.valToString(value)); + break; + case "query": + client.addQueryParam( + new BasicNameValuePair(securityMetadata.name, Utils.valToString(value))); + break; + case "cookie": + client.addHeader("Cookie", + String.format("%s=%s", securityMetadata.name, Utils.valToString(value))); + break; + default: + throw new Error( + "Unsupported security scheme subtype for apiKey: " + securityMetadata.subtype); + } + break; + case "openIdConnect": + client.addHeader(securityMetadata.name, Utils.valToString(value)); + break; + case "oauth2": + client.addHeader(securityMetadata.name, Utils.valToString(value)); + break; + case "http": + switch (schemeMetadata.subtype) { + case "bearer": + client.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); + break; + default: + throw new Error("Unsupported security scheme subtype for bearer"); + } + break; + default: + throw new Error("Unsupported security scheme type"); + } + } + + private static void parseBasicAuthScheme(SpeakeasyHTTPSecurityClient client, Object scheme) + throws IllegalAccessException { + Field[] fields = scheme.getClass().getFields(); + + String username = ""; + String password = ""; + + for (Field field : fields) { + Object value = field.get(scheme); + + if (value == null) { + continue; + } + + SecurityMetadata securityMetadata = SecurityMetadata.parse(field); + if (securityMetadata == null || securityMetadata.name.isEmpty()) { + continue; + } + + switch (securityMetadata.name) { + case "username": + username = Utils.valToString(value); + break; + case "password": + password = Utils.valToString(value); + break; + default: + throw new Error("Unsupported security scheme field for basic auth: " + securityMetadata.name); + } + } + + client.addHeader("Authorization", + "Basic " + Base64.getEncoder().encodeToString(String.format("%s:%s", username, password).getBytes())); + } + + private Security() { + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/SecurityMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/SecurityMetadata.java new file mode 100644 index 00000000..6f089a8b --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/SecurityMetadata.java @@ -0,0 +1,25 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.reflect.Field; + +public class SecurityMetadata extends Metadata { + public String type; + public String subtype; + public boolean option; + public boolean scheme; + public String name; + + // security:scheme=true,type=apiKey,subtype=header + public static SecurityMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { + SecurityMetadata result = new SecurityMetadata(); + result = (SecurityMetadata) parse("security", result, field); + return result; + } + + private SecurityMetadata() { + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/SerializedBody.java b/lib/src/main/java/org/openapis/openapi/utils/SerializedBody.java new file mode 100644 index 00000000..12357686 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/SerializedBody.java @@ -0,0 +1,12 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.net.http.HttpRequest.BodyPublisher; + +public class SerializedBody { + public String contentType; + public BodyPublisher body; +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPClient.java b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPClient.java new file mode 100644 index 00000000..ebcf5539 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPClient.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; + +public class SpeakeasyHTTPClient implements HTTPClient { + @Override + public HttpResponse send(HTTPRequest request) + throws IOException, InterruptedException, URISyntaxException { + HttpClient client = HttpClient.newHttpClient(); + + HttpRequest req = request.build(); + + HttpResponse response = client.send(req, HttpResponse.BodyHandlers.ofByteArray()); + return response; + } +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPSecurityClient.java b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPSecurityClient.java new file mode 100644 index 00000000..c6dc6528 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyHTTPSecurityClient.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.net.http.HttpResponse; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.http.NameValuePair; + +public class SpeakeasyHTTPSecurityClient + implements HTTPClient { + + private HTTPClient client; + + private List queryParams = new ArrayList(); + private Map> headers = new HashMap>(); + + public SpeakeasyHTTPSecurityClient(HTTPClient client) { + this.client = client; + } + + @Override + public HttpResponse send(HTTPRequest request) + throws IOException, InterruptedException, URISyntaxException { + + for (Map.Entry> entry : this.headers.entrySet()) { + for (String value : entry.getValue()) { + request.addHeader(entry.getKey(), value); + } + } + + for (NameValuePair param : this.queryParams) { + request.addQueryParam(param); + } + + return this.client.send(request); + } + + public void addHeader(String key, String value) { + List headerValues = this.headers.get(key); + if (headerValues == null) { + headerValues = new ArrayList(); + } + + headerValues.add(value); + this.headers.put(key, headerValues); + } + + public void addQueryParam(NameValuePair param) { + this.queryParams.add(param); + } + +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyMetadata.java b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyMetadata.java new file mode 100644 index 00000000..2964269d --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/SpeakeasyMetadata.java @@ -0,0 +1,16 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface SpeakeasyMetadata { + public String value() default ""; +} diff --git a/lib/src/main/java/org/openapis/openapi/utils/Types.java b/lib/src/main/java/org/openapis/openapi/utils/Types.java new file mode 100644 index 00000000..fbe55601 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/Types.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +public enum Types { + PRIMITIVE, + ARRAY, + MAP, + OBJECT, + ENUM; + + private static final Set> PRIMITIVE_TYPES = getPrimitiveWrapperTypes(); + + public static Types getType(Class clazz) { + if (clazz.isArray()) { + return Types.ARRAY; + } else if (Map.class.isAssignableFrom(clazz)) { + return Types.MAP; + } else if (clazz.isEnum()) { + return Types.ENUM; + } else if (isPrimitiveWrapperTypes(clazz) || clazz.isPrimitive() || String.class.isAssignableFrom(clazz)) { + return Types.PRIMITIVE; + } else { + return Types.OBJECT; + } + } + + private static boolean isPrimitiveWrapperTypes(Class clazz) { + return PRIMITIVE_TYPES.contains(clazz); + } + + private static Set> getPrimitiveWrapperTypes() { + Set> ret = new HashSet>(); + ret.add(Boolean.class); + ret.add(Character.class); + ret.add(Byte.class); + ret.add(Short.class); + ret.add(Integer.class); + ret.add(Long.class); + ret.add(Float.class); + ret.add(Double.class); + ret.add(Void.class); + return ret; + } +} \ No newline at end of file diff --git a/lib/src/main/java/org/openapis/openapi/utils/Utils.java b/lib/src/main/java/org/openapis/openapi/utils/Utils.java new file mode 100644 index 00000000..e53a1973 --- /dev/null +++ b/lib/src/main/java/org/openapis/openapi/utils/Utils.java @@ -0,0 +1,368 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.utils; + +import java.io.IOException; +import java.lang.reflect.Field; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.stream.Collectors; + +import org.apache.http.NameValuePair; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +public final class Utils { + public static String generateURL(String baseURL, String path) + throws IllegalArgumentException, IllegalAccessException { + if (baseURL != null && baseURL.endsWith("/")) { + baseURL = baseURL.split("/")[0]; + } + + return baseURL + path; + } + + public static String generateURL(Class type, String baseURL, String path, T params, + Map>> globals) + throws IllegalArgumentException, IllegalAccessException, JsonProcessingException { + if (baseURL != null && baseURL.endsWith("/")) { + baseURL = baseURL.split("/")[0]; + } + + Map pathParams = new HashMap<>(); + + Field[] fields = type.getFields(); + + for (Field field : fields) { + PathParamsMetadata pathParamsMetadata = PathParamsMetadata.parse(field); + if (pathParamsMetadata == null) { + continue; + } + + Object value = params != null ? field.get(params) : null; + value = Utils.populateGlobal(value, field.getName(), "pathParam", globals); + if (value == null) { + continue; + } + + if (pathParamsMetadata.serialization != null && !pathParamsMetadata.serialization.isBlank()) { + Map serialized = parseSerializedParams(pathParamsMetadata, value); + pathParams.putAll(serialized); + } else { + switch (pathParamsMetadata.style) { + case "simple": + switch (Types.getType(value.getClass())) { + case ARRAY: + Object[] array = (Object[]) value; + if (array.length == 0) { + continue; + } + + pathParams.put(pathParamsMetadata.name, + String.join(",", + Arrays.asList(array).stream().map(v -> Utils.valToString(v)) + .collect(Collectors.toList()))); + break; + case MAP: + Map map = (Map) value; + if (map.size() == 0) { + continue; + } + + pathParams.put(pathParamsMetadata.name, + String.join(",", map.entrySet().stream().map(e -> { + if (pathParamsMetadata.explode) { + return String.format("%s=%s", Utils.valToString(e.getKey()), + Utils.valToString(e.getValue())); + } else { + return String.format("%s,%s", Utils.valToString(e.getKey()), + Utils.valToString(e.getValue())); + } + }).collect(Collectors.toList()))); + break; + case OBJECT: + List values = new ArrayList(); + + Field[] valueFields = value.getClass().getFields(); + for (Field valueField : valueFields) { + PathParamsMetadata valuePathParamsMetadata = PathParamsMetadata.parse(valueField); + if (valuePathParamsMetadata == null) { + continue; + } + + Object val = valueField.get(value); + + if (val == null) { + continue; + } + + if (pathParamsMetadata.explode) { + values.add(String.format("%s=%s", valuePathParamsMetadata.name, + Utils.valToString(val))); + } else { + values.add(String.format("%s,%s", valuePathParamsMetadata.name, + Utils.valToString(val))); + } + } + + pathParams.put(pathParamsMetadata.name, String.join(",", values)); + break; + default: + pathParams.put(pathParamsMetadata.name, Utils.valToString(value)); + break; + } + } + } + } + + return baseURL + templateUrl(path, pathParams); + } + + public static boolean matchContentType(String contentType, String pattern) { + if (contentType == null || contentType.isBlank()) { + return false; + } + + if (contentType.equals(pattern) || pattern.equals("*") || pattern.equals("*/*")) { + return true; + } + + String[] contentTypeParts = contentType.split(";"); + if (contentTypeParts.length == 0) { + return false; + } + String mediaType = contentTypeParts[0]; + + if (mediaType.equals(pattern)) { + return true; + } + + String[] mediaTypeParts = mediaType.split("/"); + if (mediaTypeParts.length == 2) { + if (String.format("%s/*", mediaTypeParts[0]).equals(pattern) + || String.format("*/%s", mediaTypeParts[1]).equals(pattern)) { + return true; + } + } + + return false; + } + + public static SerializedBody serializeRequestBody(Object request, String requestField, String serializationMethod) + throws NoSuchFieldException, + IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { + return RequestBody.serialize(request, requestField, serializationMethod); + } + + public static List getQueryParams(Class type, T params, + Map>> globals) throws Exception { + return QueryParameters.parseQueryParams(type, params, globals); + } + + public static HTTPClient configureSecurityClient(HTTPClient client, Object security) throws Exception { + return Security.createClient(client, security); + } + + public static String templateUrl(String url, Map params) { + StringBuilder sb = new StringBuilder(); + + Pattern p = Pattern.compile("(\\{.*?\\})"); + Matcher m = p.matcher(url); + + while (m.find()) { + String match = m.group(1); + String key = match.substring(1, match.length() - 1); + String value = params.get(key); + if (value != null) { + m.appendReplacement(sb, value); + } + } + m.appendTail(sb); + + return sb.toString(); + } + + public static Map> getHeaders(Object headers) throws Exception { + if (headers == null) { + return null; + } + + Map> result = new HashMap<>(); + + Field[] fields = headers.getClass().getFields(); + + for (Field field : fields) { + HeaderMetadata headerMetadata = HeaderMetadata.parse(field); + if (headerMetadata == null) { + continue; + } + + Object value = field.get(headers); + if (value == null) { + continue; + } + + switch (Types.getType(value.getClass())) { + case OBJECT: { + List items = new ArrayList(); + + Field[] valueFields = value.getClass().getFields(); + for (Field valueField : valueFields) { + HeaderMetadata valueHeaderMetadata = HeaderMetadata.parse(valueField); + if (valueHeaderMetadata == null || valueHeaderMetadata.name == null + || valueHeaderMetadata.name.isBlank()) { + continue; + } + + Object valueFieldValue = valueField.get(value); + if (valueFieldValue == null) { + continue; + } + + if (headerMetadata.explode) { + items.add( + String.format("%s=%s", valueHeaderMetadata.name, + Utils.valToString(valueFieldValue))); + } else { + items.add(valueHeaderMetadata.name); + items.add(Utils.valToString(valueFieldValue)); + } + } + + if (!result.containsKey(headerMetadata.name)) { + result.put(headerMetadata.name, new ArrayList()); + } + + List values = result.get(headerMetadata.name); + values.add(String.join(",", items)); + + break; + } + case MAP: { + Map map = (Map) value; + if (map.size() == 0) { + continue; + } + + List items = new ArrayList(); + + for (Map.Entry entry : map.entrySet()) { + if (headerMetadata.explode) { + items.add(String.format("%s=%s", Utils.valToString(entry.getKey()), + Utils.valToString(entry.getValue()))); + } else { + items.add(Utils.valToString(entry.getKey())); + items.add(Utils.valToString(entry.getValue())); + } + } + + if (!result.containsKey(headerMetadata.name)) { + result.put(headerMetadata.name, new ArrayList()); + } + + List values = result.get(headerMetadata.name); + values.add(String.join(",", items)); + + break; + } + case ARRAY: { + Object[] array = (Object[]) value; + + if (array.length == 0) { + continue; + } + + List items = new ArrayList(); + + for (Object item : array) { + items.add(Utils.valToString(item)); + } + + if (!result.containsKey(headerMetadata.name)) { + result.put(headerMetadata.name, new ArrayList()); + } + + List values = result.get(headerMetadata.name); + values.add(String.join(",", items)); + + break; + } + default: { + if (!result.containsKey(headerMetadata.name)) { + result.put(headerMetadata.name, new ArrayList()); + } + + List values = result.get(headerMetadata.name); + values.add(Utils.valToString(value)); + break; + } + } + } + + return result; + } + + public static String valToString(Object value) { + switch (Types.getType(value.getClass())) { + case ENUM: + try { + return String.valueOf(value.getClass().getDeclaredField("value").get(value)); + } catch (Exception e) { + return "ERROR_UNKNOWN_VALUE"; + } + default: + return String.valueOf(value); + } + } + + public static String prefixBearer(String authHeaderValue) { + if (authHeaderValue.toLowerCase().startsWith("bearer ")) { + return authHeaderValue; + } + return "Bearer " + authHeaderValue; + } + + public static Object populateGlobal(Object value, String fieldName, String paramType, + Map>> globals) { + if (value == null && + globals != null && + globals.containsKey("parameters") && + globals.get("parameters").containsKey(paramType)) { + Object globalVal = globals.get("parameters").get(paramType).get(fieldName); + if (globalVal != null) { + value = globalVal; + } + } + + return value; + } + + private static Map parseSerializedParams(PathParamsMetadata pathParamsMetadata, Object value) + throws JsonProcessingException { + Map params = new HashMap<>(); + + switch (pathParamsMetadata.serialization) { + case "json": + ObjectMapper mapper = JSON.getMapper(); + String json = mapper.writeValueAsString(value); + + params.put(pathParamsMetadata.name, URLEncoder.encode(json, StandardCharsets.UTF_8)); + break; + } + + return params; + } + + private Utils() { + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 00000000..6cb58bba --- /dev/null +++ b/settings.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html + */ + +rootProject.name = 'openapi' +include('lib')