mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 12:37: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.core.type.TypeReference;
|
||||
@@ -26,11 +25,12 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* API Calls that perform operations with Plex Media Server Watchlists
|
||||
*
|
||||
*/
|
||||
public class Watchlist implements
|
||||
MethodCallGetWatchList {
|
||||
@@ -54,7 +54,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetWatchListRequestBuilder getWatchList() {
|
||||
@@ -63,7 +65,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
@@ -75,7 +79,9 @@ public class Watchlist implements
|
||||
|
||||
/**
|
||||
* Get User Watchlist
|
||||
* Get User Watchlist
|
||||
*
|
||||
* <p>Get User Watchlist
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
@@ -84,9 +90,11 @@ public class Watchlist implements
|
||||
public GetWatchListResponse getWatchList(
|
||||
GetWatchListRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap<String, String>());
|
||||
final String _baseUrl;
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
} else {
|
||||
_baseUrl = Utils.templateUrl(GET_WATCH_LIST_SERVERS[0], new HashMap<String, String>());
|
||||
}
|
||||
String _url = Utils.generateURL(
|
||||
GetWatchListRequest.class,
|
||||
@@ -113,6 +121,7 @@ public class Watchlist implements
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -124,6 +133,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -133,6 +143,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
@@ -142,6 +153,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
|
||||
Reference in New Issue
Block a user