mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -11,26 +10,30 @@ import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
* # Plex Media Server OpenAPI Specification
|
||||
*
|
||||
* An Open Source OpenAPI Specification for Plex Media Server
|
||||
* <p># Plex Media Server OpenAPI Specification
|
||||
*
|
||||
* Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
* <p>An Open Source OpenAPI Specification for Plex Media Server
|
||||
*
|
||||
* ## Documentation
|
||||
* <p>Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
*
|
||||
* [API Documentation](https://plexapi.dev)
|
||||
* <p>## Documentation
|
||||
*
|
||||
* ## SDKs
|
||||
* <p>[API Documentation](https://plexapi.dev)
|
||||
*
|
||||
* The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
|
||||
* <p>## SDKs
|
||||
*
|
||||
* | Language | Repository | Releases | Other |
|
||||
* <p>The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
|
||||
*
|
||||
* <p>| Language | Repository | Releases | Other |
|
||||
* | --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
|
||||
* | Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
|
||||
* | JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
|
||||
@@ -40,7 +43,6 @@ import java.util.function.Consumer;
|
||||
* | PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
|
||||
* | Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
|
||||
* | C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
*
|
||||
*/
|
||||
public class PlexAPI {
|
||||
|
||||
@@ -57,19 +59,16 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Operations against the Plex Media Server System.
|
||||
*
|
||||
*/
|
||||
private final Server server;
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Media
|
||||
*
|
||||
*/
|
||||
private final Media media;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Videos
|
||||
*
|
||||
*/
|
||||
private final Video video;
|
||||
|
||||
@@ -81,49 +80,41 @@ public class PlexAPI {
|
||||
* - They must contain an `type` which is used by clients to distinguish the specific activity.
|
||||
* - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.)
|
||||
* - The may contain a `Response` object which attributes which represent the result of the asynchronous operation.
|
||||
*
|
||||
*/
|
||||
private final Activities activities;
|
||||
|
||||
/**
|
||||
* Butler is the task manager of the Plex Media Server Ecosystem.
|
||||
*
|
||||
*/
|
||||
private final Butler butler;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations directly against https://Plex.tv
|
||||
*
|
||||
*/
|
||||
private final Plex plex;
|
||||
|
||||
/**
|
||||
* Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
*
|
||||
*/
|
||||
private final Hubs hubs;
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Search search;
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Libraries
|
||||
*
|
||||
*/
|
||||
private final Library library;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
private final Watchlist watchlist;
|
||||
|
||||
/**
|
||||
* Submit logs to the Log Handler for Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Log log;
|
||||
|
||||
@@ -132,32 +123,27 @@ public class PlexAPI {
|
||||
* They can be organized in (optionally nesting) folders.
|
||||
* Retrieving a playlist, or its items, will trigger a refresh of its metadata.
|
||||
* This may cause the duration and number of items to change.
|
||||
*
|
||||
*/
|
||||
private final Playlists playlists;
|
||||
|
||||
/**
|
||||
* API Calls regarding authentication for Plex Media Server
|
||||
*
|
||||
*/
|
||||
private final Authentication authentication;
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Statistics
|
||||
*
|
||||
*/
|
||||
private final Statistics statistics;
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server Sessions
|
||||
*
|
||||
*/
|
||||
private final Sessions sessions;
|
||||
|
||||
/**
|
||||
* This describes the API for searching and applying updates to the Plex Media Server.
|
||||
* Updates to the status can be observed via the Event API.
|
||||
*
|
||||
*/
|
||||
private final Updater updater;
|
||||
|
||||
@@ -165,7 +151,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Operations against the Plex Media Server System.
|
||||
*
|
||||
*/
|
||||
public Server server() {
|
||||
return server;
|
||||
@@ -173,7 +158,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Media
|
||||
*
|
||||
*/
|
||||
public Media media() {
|
||||
return media;
|
||||
@@ -181,7 +165,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Videos
|
||||
*
|
||||
*/
|
||||
public Video video() {
|
||||
return video;
|
||||
@@ -195,7 +178,6 @@ public class PlexAPI {
|
||||
* - They must contain an `type` which is used by clients to distinguish the specific activity.
|
||||
* - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.)
|
||||
* - The may contain a `Response` object which attributes which represent the result of the asynchronous operation.
|
||||
*
|
||||
*/
|
||||
public Activities activities() {
|
||||
return activities;
|
||||
@@ -203,7 +185,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Butler is the task manager of the Plex Media Server Ecosystem.
|
||||
*
|
||||
*/
|
||||
public Butler butler() {
|
||||
return butler;
|
||||
@@ -211,7 +192,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations directly against https://Plex.tv
|
||||
*
|
||||
*/
|
||||
public Plex plex() {
|
||||
return plex;
|
||||
@@ -219,7 +199,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
*
|
||||
*/
|
||||
public Hubs hubs() {
|
||||
return hubs;
|
||||
@@ -227,7 +206,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Search search() {
|
||||
return search;
|
||||
@@ -235,7 +213,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls interacting with Plex Media Server Libraries
|
||||
*
|
||||
*/
|
||||
public Library library() {
|
||||
return library;
|
||||
@@ -243,7 +220,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
public Watchlist watchlist() {
|
||||
return watchlist;
|
||||
@@ -251,7 +227,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Submit logs to the Log Handler for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Log log() {
|
||||
return log;
|
||||
@@ -262,7 +237,6 @@ public class PlexAPI {
|
||||
* They can be organized in (optionally nesting) folders.
|
||||
* Retrieving a playlist, or its items, will trigger a refresh of its metadata.
|
||||
* This may cause the duration and number of items to change.
|
||||
*
|
||||
*/
|
||||
public Playlists playlists() {
|
||||
return playlists;
|
||||
@@ -270,7 +244,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls regarding authentication for Plex Media Server
|
||||
*
|
||||
*/
|
||||
public Authentication authentication() {
|
||||
return authentication;
|
||||
@@ -278,7 +251,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Statistics
|
||||
*
|
||||
*/
|
||||
public Statistics statistics() {
|
||||
return statistics;
|
||||
@@ -286,7 +258,6 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* API Calls that perform search operations with Plex Media Server Sessions
|
||||
*
|
||||
*/
|
||||
public Sessions sessions() {
|
||||
return sessions;
|
||||
@@ -295,7 +266,6 @@ public class PlexAPI {
|
||||
/**
|
||||
* This describes the API for searching and applying updates to the Plex Media Server.
|
||||
* Updates to the status can be observed via the Event API.
|
||||
*
|
||||
*/
|
||||
public Updater updater() {
|
||||
return updater;
|
||||
@@ -342,6 +312,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Configures the SDK to use a custom security source.
|
||||
*
|
||||
* @param securitySource The security source to use for all requests.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
@@ -396,7 +367,9 @@ public class PlexAPI {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* ServerProtocol - The protocol to use for the server connection
|
||||
* ServerProtocol
|
||||
*
|
||||
* <p>The protocol to use for the server connection
|
||||
*/
|
||||
public enum ServerProtocol {
|
||||
HTTP("http"),
|
||||
@@ -412,6 +385,15 @@ public class PlexAPI {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ServerProtocol> fromValue(String value) {
|
||||
for (ServerProtocol o: ServerProtocol.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Sets the protocol variable for url substitution.
|
||||
@@ -478,6 +460,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Builds a new instance of the SDK.
|
||||
*
|
||||
* @return The SDK instance.
|
||||
*/
|
||||
public PlexAPI build() {
|
||||
@@ -500,6 +483,7 @@ public class PlexAPI {
|
||||
|
||||
/**
|
||||
* Get a new instance of the SDK builder to configure a new instance of the SDK.
|
||||
*
|
||||
* @return The SDK builder instance.
|
||||
*/
|
||||
public static Builder builder() {
|
||||
|
||||
Reference in New Issue
Block a user