Compare commits

...

1 Commits

Author SHA1 Message Date
Luke Hagar
d8697f3fa9 SDK update generated by liblab 2023-12-08 20:09:14 -08:00
25 changed files with 80 additions and 80 deletions

View File

@@ -2,7 +2,7 @@ package 47.one0;
public class Configuration {
public static final String USER_AGENT = "liblab/0.1.25 PlexSDK/0.0.1 java/1.8";
public static final String USER_AGENT = "liblab/0.1.28 PlexSDK/0.0.1 java/1.8";
public static final String DEFAULT_API_KEY_HEADER = "X-Plex-Token";

View File

@@ -6,8 +6,8 @@ import 47.one0.exceptions.ApiException;
public interface HubsClient {
ResponseWithHeaders<String> getGlobalHubs(Float count, Float onlyTransient) throws ApiException;
ResponseWithHeaders<String> getLibraryHubs(Float sectionId, Float count, Float onlyTransient) throws ApiException;
ResponseWithHeaders<String> getGlobalHubs(Float count, Integer onlyTransient) throws ApiException;
ResponseWithHeaders<String> getLibraryHubs(Float sectionId, Float count, Integer onlyTransient) throws ApiException;
}

View File

@@ -9,7 +9,7 @@ public interface LibraryClient {
ResponseWithHeaders<String> getFileHash(String url, Float type) throws ApiException;
ResponseWithHeaders<47.one0.models.GetRecentlyAddedResponse> getRecentlyAdded() throws ApiException;
ResponseWithHeaders<String> getLibraries() throws ApiException;
ResponseWithHeaders<String> getLibrary(Float sectionId, Float includeDetails) throws ApiException;
ResponseWithHeaders<String> getLibrary(Float sectionId, Integer includeDetails) throws ApiException;
ResponseWithHeaders<String> deleteLibrary(Float sectionId) throws ApiException;
ResponseWithHeaders<String> getLibraryItems(Float sectionId, Float type, String filter) throws ApiException;
ResponseWithHeaders<String> refreshLibrary(Float sectionId) throws ApiException;

View File

@@ -6,7 +6,7 @@ import 47.one0.exceptions.ApiException;
public interface LogClient {
ResponseWithHeaders<String> logLine(Float level, String message, String source) throws ApiException;
ResponseWithHeaders<String> logLine(Integer level, String message, String source) throws ApiException;
ResponseWithHeaders<String> logMultiLine() throws ApiException;
ResponseWithHeaders<String> enablePaperTrail() throws ApiException;

View File

@@ -6,15 +6,15 @@ import 47.one0.exceptions.ApiException;
public interface PlaylistsClient {
ResponseWithHeaders<String> createPlaylist(String title, String type, Float smart, String uri, Float playQueueID) throws ApiException;
ResponseWithHeaders<String> getPlaylists(String playlistType, Float smart) throws ApiException;
ResponseWithHeaders<String> createPlaylist(String title, String type, Integer smart, String uri, Float playQueueID) throws ApiException;
ResponseWithHeaders<String> getPlaylists(String playlistType, Integer smart) throws ApiException;
ResponseWithHeaders<String> getPlaylist(Float playlistID) throws ApiException;
ResponseWithHeaders<String> updatePlaylist(Float playlistID) throws ApiException;
ResponseWithHeaders<String> deletePlaylist(Float playlistID) throws ApiException;
ResponseWithHeaders<String> getPlaylistContents(Float playlistID, Float type) throws ApiException;
ResponseWithHeaders<String> addPlaylistContents(Float playlistID, String uri, Float playQueueID) throws ApiException;
ResponseWithHeaders<String> clearPlaylistContents(Float playlistID) throws ApiException;
ResponseWithHeaders<String> uploadPlaylist(String path, Float force) throws ApiException;
ResponseWithHeaders<String> uploadPlaylist(String path, Integer force) throws ApiException;
}

View File

@@ -12,7 +12,7 @@ public interface ServerClient {
ResponseWithHeaders<47.one0.models.GetDevicesResponse> getDevices() throws ApiException;
ResponseWithHeaders<47.one0.models.GetServerIdentityResponse> getServerIdentity() throws ApiException;
ResponseWithHeaders<47.one0.models.GetMyPlexAccountResponse> getMyPlexAccount() throws ApiException;
ResponseWithHeaders<String> getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Float minSize, Float upscale, String url) throws ApiException;
ResponseWithHeaders<String> getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Integer minSize, Integer upscale, String url) throws ApiException;
ResponseWithHeaders<47.one0.models.GetServerListResponse> getServerList() throws ApiException;

View File

@@ -7,8 +7,8 @@ import 47.one0.exceptions.ApiException;
public interface UpdaterClient {
ResponseWithHeaders<String> getUpdateStatus() throws ApiException;
ResponseWithHeaders<String> checkForUpdates(String download) throws ApiException;
ResponseWithHeaders<String> applyUpdates(String tonight, String skip) throws ApiException;
ResponseWithHeaders<String> checkForUpdates(Integer download) throws ApiException;
ResponseWithHeaders<String> applyUpdates(Integer tonight, Integer skip) throws ApiException;
}

View File

@@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public enum Download {
V1("1");
V1(1);
public final String label;
public final Integer label;
}

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum Force {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -144,7 +144,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
.collect(java.util.stream.Collectors.toSet());
}
@com.fasterxml.jackson.annotation.JsonProperty("default_") private java.lang.Boolean _default;
@com.fasterxml.jackson.annotation.JsonProperty("bitDepth") private java.lang.Double bitDepth;
@com.fasterxml.jackson.annotation.JsonProperty("bitrate") private java.lang.Double bitrate;
@com.fasterxml.jackson.annotation.JsonProperty("chromaLocation") private java.lang.String chromaLocation;
@@ -153,6 +152,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
@com.fasterxml.jackson.annotation.JsonProperty("codedHeight") private java.lang.Double codedHeight;
@com.fasterxml.jackson.annotation.JsonProperty("codedWidth") private java.lang.Double codedWidth;
@com.fasterxml.jackson.annotation.JsonProperty("colorRange") private java.lang.String colorRange;
@com.fasterxml.jackson.annotation.JsonProperty("default_") private java.lang.Boolean default_;
@com.fasterxml.jackson.annotation.JsonProperty("displayTitle") private java.lang.String displayTitle;
@com.fasterxml.jackson.annotation.JsonProperty("extendedDisplayTitle") private java.lang.String extendedDisplayTitle;
@com.fasterxml.jackson.annotation.JsonProperty("frameRate") private java.lang.Double frameRate;
@@ -216,7 +216,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
}
}
@com.fasterxml.jackson.annotation.JsonProperty("default_") private final java.lang.Boolean _default;
@com.fasterxml.jackson.annotation.JsonProperty("bitDepth") private final java.lang.Double bitDepth;
@com.fasterxml.jackson.annotation.JsonProperty("bitrate") private final java.lang.Double bitrate;
@com.fasterxml.jackson.annotation.JsonProperty("chromaLocation") private final java.lang.String chromaLocation;
@@ -225,6 +224,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
@com.fasterxml.jackson.annotation.JsonProperty("codedHeight") private final java.lang.Double codedHeight;
@com.fasterxml.jackson.annotation.JsonProperty("codedWidth") private final java.lang.Double codedWidth;
@com.fasterxml.jackson.annotation.JsonProperty("colorRange") private final java.lang.String colorRange;
@com.fasterxml.jackson.annotation.JsonProperty("default_") private final java.lang.Boolean default_;
@com.fasterxml.jackson.annotation.JsonProperty("displayTitle") private final java.lang.String displayTitle;
@com.fasterxml.jackson.annotation.JsonProperty("extendedDisplayTitle") private final java.lang.String extendedDisplayTitle;
@com.fasterxml.jackson.annotation.JsonProperty("frameRate") private final java.lang.Double frameRate;
@@ -243,7 +243,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
Stream(Builder builder) {
super(builder);
this._default = builder.get_default();
this.bitDepth = builder.getBitDepth();
this.bitrate = builder.getBitrate();
this.chromaLocation = builder.getChromaLocation();
@@ -252,6 +251,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel {
this.codedHeight = builder.getCodedHeight();
this.codedWidth = builder.getCodedWidth();
this.colorRange = builder.getColorRange();
this.default_ = builder.getDefault_();
this.displayTitle = builder.getDisplayTitle();
this.extendedDisplayTitle = builder.getExtendedDisplayTitle();
this.frameRate = builder.getFrameRate();

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum IncludeDetails {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -10,5 +10,5 @@ public enum Level {
V3(3),
V4(4);
public final Float label;
public final Integer label;
}

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum MinSize {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum OnlyTransient {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public enum Skip {
V1("1");
V1(1);
public final String label;
public final Integer label;
}

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum Smart {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public enum Tonight {
V1("1");
V1(1);
public final String label;
public final Integer label;
}

View File

@@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor;
public enum Upscale {
V1(1);
public final Float label;
public final Integer label;
}

View File

@@ -19,9 +19,9 @@ public HubsService(OkHttpClient httpClient, String serverUrl) { super(httpClien
/**
* @summary Get Global Hubs
* @param {Number} [count] - The number of items to return with each hub.
* @param {Number} [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).
* @param {Integer} [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 ResponseWithHeaders<String> getGlobalHubs(Float count, Float onlyTransient) throws ApiException
public ResponseWithHeaders<String> getGlobalHubs(Float count, Integer onlyTransient) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("hubs")
@@ -44,9 +44,9 @@ Response response = this.execute(request);
* @summary Get library specific hubs
* @param {Number} sectionId - the Id of the library to query
* @param {Number} [count] - The number of items to return with each hub.
* @param {Number} [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).
* @param {Integer} [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 ResponseWithHeaders<String> getLibraryHubs(Float sectionId, Float count, Float onlyTransient) throws ApiException
public ResponseWithHeaders<String> getLibraryHubs(Float sectionId, Float count, Integer onlyTransient) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("hubs")

View File

@@ -81,11 +81,11 @@ Response response = this.execute(request);
/**
* @summary Get Library Details
* @param {Number} sectionId - the Id of the library to query
* @param {Number} [includeDetails] - Whether or not to include details for a section (types, filters, and sorts).
* @param {Integer} [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 ResponseWithHeaders<String> getLibrary(Float sectionId, Float includeDetails) throws ApiException
public ResponseWithHeaders<String> getLibrary(Float sectionId, Integer includeDetails) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("library")

View File

@@ -18,7 +18,7 @@ public class LogService extends BaseService implements LogClient {
public LogService(OkHttpClient httpClient, String serverUrl) { super(httpClient, serverUrl); }
/**
* @summary Logging a single line message.
* @param {Number} level - An integer log level to write to the PMS log with.
* @param {Integer} level - An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
@@ -28,7 +28,7 @@ public LogService(OkHttpClient httpClient, String serverUrl) { super(httpClient
* @param {String} message - The text of the message to write to the log.
* @param {String} source - a string indicating the source of the message.
*/
public ResponseWithHeaders<String> logLine(Float level, String message, String source) throws ApiException
public ResponseWithHeaders<String> logLine(Integer level, String message, String source) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("log")

View File

@@ -20,11 +20,11 @@ public PlaylistsService(OkHttpClient httpClient, String serverUrl) { super(http
* @summary Create a Playlist
* @param {String} title - name of the playlist
* @param {String} type - type of playlist to create
* @param {Number} smart - whether the playlist is smart or not
* @param {Integer} smart - whether the playlist is smart or not
* @param {String} [uri] - the content URI for the playlist
* @param {Number} [playQueueID] - the play queue to copy to a playlist
*/
public ResponseWithHeaders<String> createPlaylist(String title, String type, Float smart, String uri, Float playQueueID) throws ApiException
public ResponseWithHeaders<String> createPlaylist(String title, String type, Integer smart, String uri, Float playQueueID) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("playlists")
@@ -53,9 +53,9 @@ Response response = this.execute(request);
/**
* @summary Get All Playlists
* @param {String} [playlistType] - limit to a type of playlist.
* @param {Number} [smart] - type of playlists to return (default is all).
* @param {Integer} [smart] - type of playlists to return (default is all).
*/
public ResponseWithHeaders<String> getPlaylists(String playlistType, Float smart) throws ApiException
public ResponseWithHeaders<String> getPlaylists(String playlistType, Integer smart) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("playlists")
@@ -233,11 +233,11 @@ 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 {Number} force - force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist.
* @param {Integer} 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 ResponseWithHeaders<String> uploadPlaylist(String path, Float force) throws ApiException
public ResponseWithHeaders<String> uploadPlaylist(String path, Integer force) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("playlists")

View File

@@ -418,7 +418,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.serverService.getResizedPhoto(853213706, 2, 9, 3, 3, 3, "urlSampleValue");
Object response = client.serverService.getResizedPhoto(258203268, 4, 3, 2, 9, 4, "urlSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -493,7 +493,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.mediaService.markPlayed(5);
Object response = client.mediaService.markPlayed(6);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -530,7 +530,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.mediaService.markUnplayed(8);
Object response = client.mediaService.markUnplayed(4);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -569,7 +569,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.mediaService.updatePlayProgress("keySampleValue", 1, "stateSampleValue");
Object response = client.mediaService.updatePlayProgress("keySampleValue", 9, "stateSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -868,7 +868,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.hubsService.getGlobalHubs(4, 4);
Object response = client.hubsService.getGlobalHubs(6, 8);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -907,7 +907,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.hubsService.getLibraryHubs(9, 1, 8);
Object response = client.hubsService.getLibraryHubs(8, 3, 5);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -948,7 +948,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.searchService.performSearch("querySampleValue", 3, 9);
Object response = client.searchService.performSearch("querySampleValue", 2, 4);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -987,7 +987,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.searchService.performVoiceSearch("querySampleValue", 7, 9);
Object response = client.searchService.performVoiceSearch("querySampleValue", 1, 5);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1064,7 +1064,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getFileHash("urlSampleValue", 6);
Object response = client.libraryService.getFileHash("urlSampleValue", 8);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1174,7 +1174,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getLibrary(6, 7);
Object response = client.libraryService.getLibrary(8, 2);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1211,7 +1211,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.deleteLibrary(8);
Object response = client.libraryService.deleteLibrary(2);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1250,7 +1250,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getLibraryItems(9, 1, "filterSampleValue");
Object response = client.libraryService.getLibraryItems(7, 5, "filterSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1287,7 +1287,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.refreshLibrary(2);
Object response = client.libraryService.refreshLibrary(1);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1326,7 +1326,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getLatestLibraryItems(5, 3, "filterSampleValue");
Object response = client.libraryService.getLatestLibraryItems(6, 6, "filterSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1365,7 +1365,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getCommonLibraryItems(1, 8, "filterSampleValue");
Object response = client.libraryService.getCommonLibraryItems(1, 3, "filterSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1402,7 +1402,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getMetadata(5);
Object response = client.libraryService.getMetadata(4);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1439,7 +1439,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.libraryService.getMetadataChildren(3);
Object response = client.libraryService.getMetadataChildren(8);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1552,7 +1552,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.logService.logLine(9, "messageSampleValue", "sourceSampleValue");
Object response = client.logService.logLine(7, "messageSampleValue", "sourceSampleValue");
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1631,7 +1631,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.createPlaylist("titleSampleValue", "typeSampleValue", 2, "uriSampleValue", 1);
Object response = client.playlistsService.createPlaylist("titleSampleValue", "typeSampleValue", 1, "uriSampleValue", 2);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1669,7 +1669,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.getPlaylists("playlistTypeSampleValue", 9);
Object response = client.playlistsService.getPlaylists("playlistTypeSampleValue", 4);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1706,7 +1706,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.getPlaylist(4);
Object response = client.playlistsService.getPlaylist(8);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1743,7 +1743,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.deletePlaylist(1);
Object response = client.playlistsService.deletePlaylist(3);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1780,7 +1780,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.updatePlaylist(7);
Object response = client.playlistsService.updatePlaylist(6);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1818,7 +1818,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.getPlaylistContents(3, 1);
Object response = client.playlistsService.getPlaylistContents(2, 7);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1855,7 +1855,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.clearPlaylistContents(8);
Object response = client.playlistsService.clearPlaylistContents(2);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1894,7 +1894,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.addPlaylistContents(6, "uriSampleValue", 4);
Object response = client.playlistsService.addPlaylistContents(1, "uriSampleValue", 3);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -1932,7 +1932,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.playlistsService.uploadPlaylist("pathSampleValue", 5);
Object response = client.playlistsService.uploadPlaylist("pathSampleValue", 2);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -2231,7 +2231,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.updaterService.checkForUpdates(null);
Object response = client.updaterService.checkForUpdates(5);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -2269,7 +2269,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.updaterService.applyUpdates(null, null);
Object response = client.updaterService.applyUpdates(5, 3);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -2323,7 +2323,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.videoService.startUniversalTranscode(4, "pathSampleValue", 3, 7, "protocolSampleValue", 6, 9, 5, 3, "subtitesSampleValue", 5, "locationSampleValue", 4, "sessionSampleValue", 5, 6);
Object response = client.videoService.startUniversalTranscode(9, "pathSampleValue", 6, 5, "protocolSampleValue", 2, 6, 1, 5, "subtitesSampleValue", 6, "locationSampleValue", 5, "sessionSampleValue", 6, 3);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();
@@ -2369,7 +2369,7 @@ public class Main {
public static void main(String[] args) {
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
try {
Object response = client.videoService.getTimeline(5, "keySampleValue", "stateSampleValue", 8, 4, 2, "contextSampleValue", 2, 3, 9);
Object response = client.videoService.getTimeline(4, "keySampleValue", "stateSampleValue", 9, 4, 8, "contextSampleValue", 3, 7, 8);
System.out.println(response);
} catch(ApiException e) {
e.printStackTrace();

View File

@@ -118,11 +118,11 @@ Response response = this.execute(request);
* @param {Number} height - The height for the resized photo
* @param {Integer} opacity - The opacity for the resized photo
* @param {Number} blur - The width for the resized photo
* @param {Number} minSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
* @param {Number} upscale - allow images to be resized beyond native dimensions.
* @param {Integer} minSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
* @param {Integer} upscale - allow images to be resized beyond native dimensions.
* @param {String} url - path to image within Plex
*/
public ResponseWithHeaders<String> getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Float minSize, Float upscale, String url) throws ApiException
public ResponseWithHeaders<String> getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Integer minSize, Integer upscale, String url) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("photo")

View File

@@ -39,9 +39,9 @@ Response response = this.execute(request);
}
/**
* @summary Checking for updates
* @param {Download} [download] - Indicate that you want to start download any updates found.
* @param {Integer} [download] - Indicate that you want to start download any updates found.
*/
public ResponseWithHeaders<String> checkForUpdates(String download) throws ApiException
public ResponseWithHeaders<String> checkForUpdates(Integer download) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("updater")
@@ -66,10 +66,10 @@ Response response = this.execute(request);
}
/**
* @summary Apply Updates
* @param {Tonight} [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} [skip] - Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`.
* @param {Integer} [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 {Integer} [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 ResponseWithHeaders<String> applyUpdates(String tonight, String skip) throws ApiException
public ResponseWithHeaders<String> applyUpdates(Integer tonight, Integer skip) throws ApiException
{
String url = HttpUrl.builder(this.serverUrl)
.addPathParameter("updater")