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.459.2
This commit is contained in:
@@ -78,10 +78,10 @@ public class Activities implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -89,7 +89,7 @@ public class Activities implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -100,7 +100,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -109,7 +109,7 @@ public class Activities implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -118,7 +118,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -229,16 +229,16 @@ public class Activities implements
|
||||
CancelServerActivitiesRequest.class,
|
||||
_baseUrl,
|
||||
"/activities/{activityUUID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -246,7 +246,7 @@ public class Activities implements
|
||||
new BeforeRequestContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -257,7 +257,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -266,7 +266,7 @@ public class Activities implements
|
||||
new AfterSuccessContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -275,7 +275,7 @@ public class Activities implements
|
||||
new AfterErrorContextImpl(
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -122,11 +122,11 @@ public class Authentication implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTransientTokenRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -134,7 +134,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -145,7 +145,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -154,7 +154,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -163,7 +163,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -275,11 +275,11 @@ public class Authentication implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSourceConnectionInformationRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -287,7 +287,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -298,7 +298,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -307,7 +307,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -316,7 +316,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -426,10 +426,10 @@ public class Authentication implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -437,7 +437,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -448,7 +448,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -457,7 +457,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -466,7 +466,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -601,8 +601,8 @@ public class Authentication implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -610,7 +610,7 @@ public class Authentication implements
|
||||
new BeforeRequestContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -621,7 +621,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -630,7 +630,7 @@ public class Authentication implements
|
||||
new AfterSuccessContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -639,7 +639,7 @@ public class Authentication implements
|
||||
new AfterErrorContextImpl(
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -90,10 +90,10 @@ public class Butler implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -101,7 +101,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -112,7 +112,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -121,7 +121,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -130,7 +130,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -247,10 +247,10 @@ public class Butler implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -258,7 +258,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -269,7 +269,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -278,7 +278,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -287,7 +287,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -385,10 +385,10 @@ public class Butler implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -396,7 +396,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -407,7 +407,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -416,7 +416,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -425,7 +425,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -535,16 +535,16 @@ public class Butler implements
|
||||
StartTaskRequest.class,
|
||||
_baseUrl,
|
||||
"/butler/{taskName}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "POST");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -552,7 +552,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -563,7 +563,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -572,7 +572,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -581,7 +581,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -683,16 +683,16 @@ public class Butler implements
|
||||
StopTaskRequest.class,
|
||||
_baseUrl,
|
||||
"/butler/{taskName}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -700,7 +700,7 @@ public class Butler implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -711,7 +711,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -720,7 +720,7 @@ public class Butler implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -729,7 +729,7 @@ public class Butler implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -107,11 +107,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetGlobalHubsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -119,7 +119,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -130,7 +130,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -139,7 +139,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -148,7 +148,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -263,11 +263,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -275,7 +275,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -286,7 +286,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -295,7 +295,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -304,7 +304,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -404,7 +404,7 @@ public class Hubs implements
|
||||
GetLibraryHubsRequest.class,
|
||||
_baseUrl,
|
||||
"/hubs/sections/{sectionId}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -414,11 +414,11 @@ public class Hubs implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryHubsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -426,7 +426,7 @@ public class Hubs implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -437,7 +437,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -446,7 +446,7 @@ public class Hubs implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -455,7 +455,7 @@ public class Hubs implements
|
||||
new AfterErrorContextImpl(
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -179,11 +179,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetFileHashRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -191,7 +191,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -202,7 +202,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -211,7 +211,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -220,7 +220,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getFileHash",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -324,11 +324,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRecentlyAddedLibraryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -336,7 +336,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -347,7 +347,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -356,7 +356,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -365,7 +365,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-recently-added-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -484,10 +484,10 @@ public class Library implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -495,7 +495,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -506,7 +506,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -515,7 +515,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -524,7 +524,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -773,7 +773,7 @@ public class Library implements
|
||||
GetLibraryDetailsRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -783,11 +783,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryDetailsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -795,7 +795,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -806,7 +806,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -815,7 +815,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -824,7 +824,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-details",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -937,16 +937,16 @@ public class Library implements
|
||||
DeleteLibraryRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -954,7 +954,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -965,7 +965,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -974,7 +974,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -983,7 +983,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"deleteLibrary",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1075,6 +1075,7 @@ public class Library implements
|
||||
* - `resolution`: Items categorized by resolution.
|
||||
* - `firstCharacter`: Items categorized by the first letter.
|
||||
* - `folder`: Items categorized by folder.
|
||||
* - `albums`: Items categorized by album.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
@@ -1104,6 +1105,7 @@ public class Library implements
|
||||
* - `resolution`: Items categorized by resolution.
|
||||
* - `firstCharacter`: Items categorized by the first letter.
|
||||
* - `folder`: Items categorized by folder.
|
||||
* - `albums`: Items categorized by album.
|
||||
*
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
@@ -1117,7 +1119,7 @@ public class Library implements
|
||||
GetLibraryItemsRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/{tag}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1127,11 +1129,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetLibraryItemsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1139,7 +1141,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1150,7 +1152,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1159,7 +1161,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1168,7 +1170,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-library-items",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1301,7 +1303,7 @@ public class Library implements
|
||||
GetRefreshLibraryMetadataRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/refresh",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1311,11 +1313,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetRefreshLibraryMetadataRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1323,7 +1325,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1334,7 +1336,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1343,7 +1345,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1352,7 +1354,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-refresh-library-metadata",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1499,7 +1501,7 @@ public class Library implements
|
||||
GetSearchLibraryRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/{sectionKey}/search",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1509,11 +1511,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchLibraryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1521,7 +1523,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1532,7 +1534,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1541,7 +1543,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1550,7 +1552,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-library",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1665,12 +1667,12 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchAllLibrariesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1678,7 +1680,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1689,7 +1691,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1698,7 +1700,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1707,7 +1709,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-search-all-libraries",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1820,16 +1822,16 @@ public class Library implements
|
||||
GetMetaDataByRatingKeyRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1837,7 +1839,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1848,7 +1850,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1857,7 +1859,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1866,7 +1868,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-meta-data-by-rating-key",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1996,7 +1998,7 @@ public class Library implements
|
||||
GetMetadataChildrenRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/children",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -2006,11 +2008,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetMetadataChildrenRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2018,7 +2020,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2029,7 +2031,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2038,7 +2040,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2047,7 +2049,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMetadataChildren",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -2197,11 +2199,11 @@ public class Library implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTopWatchedContentRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2209,7 +2211,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2220,7 +2222,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2229,7 +2231,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2238,7 +2240,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTopWatchedContent",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -2347,10 +2349,10 @@ public class Library implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -2358,7 +2360,7 @@ public class Library implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -2369,7 +2371,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -2378,7 +2380,7 @@ public class Library implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -2387,7 +2389,7 @@ public class Library implements
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -106,11 +106,11 @@ public class Log implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
LogLineRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -118,7 +118,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -129,7 +129,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -138,7 +138,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -147,7 +147,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -300,10 +300,10 @@ public class Log implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -311,7 +311,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -322,7 +322,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -331,7 +331,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -340,7 +340,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -438,10 +438,10 @@ public class Log implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -449,7 +449,7 @@ public class Log implements
|
||||
new BeforeRequestContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -460,7 +460,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -469,7 +469,7 @@ public class Log implements
|
||||
new AfterSuccessContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -478,7 +478,7 @@ public class Log implements
|
||||
new AfterErrorContextImpl(
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -102,11 +102,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
MarkPlayedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -114,7 +114,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -125,7 +125,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -134,7 +134,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -143,7 +143,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -251,11 +251,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
MarkUnplayedRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -263,7 +263,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -274,7 +274,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -283,7 +283,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -292,7 +292,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -408,11 +408,11 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UpdatePlayProgressRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -420,7 +420,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -431,7 +431,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -440,7 +440,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -449,7 +449,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -543,7 +543,7 @@ public class Media implements
|
||||
GetBannerImageRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/banner",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "image/jpeg")
|
||||
@@ -553,12 +553,12 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetBannerImageRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -566,7 +566,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -577,7 +577,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -586,7 +586,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -595,7 +595,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -700,7 +700,7 @@ public class Media implements
|
||||
GetThumbImageRequest.class,
|
||||
_baseUrl,
|
||||
"/library/metadata/{ratingKey}/thumb",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "image/jpeg")
|
||||
@@ -710,12 +710,12 @@ public class Media implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetThumbImageRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -723,7 +723,7 @@ public class Media implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -734,7 +734,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -743,7 +743,7 @@ public class Media implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -752,7 +752,7 @@ public class Media implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -139,11 +139,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
CreatePlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -151,7 +151,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -162,7 +162,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -171,7 +171,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -180,7 +180,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -312,11 +312,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPlaylistsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -324,7 +324,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -335,7 +335,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -344,7 +344,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -353,7 +353,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -468,16 +468,16 @@ public class Playlists implements
|
||||
GetPlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -485,7 +485,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -496,7 +496,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -505,7 +505,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -514,7 +514,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -627,16 +627,16 @@ public class Playlists implements
|
||||
DeletePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -644,7 +644,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -655,7 +655,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -664,7 +664,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -673,7 +673,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -794,7 +794,7 @@ public class Playlists implements
|
||||
UpdatePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "PUT");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -804,11 +804,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UpdatePlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -816,7 +816,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -827,7 +827,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -836,7 +836,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -845,7 +845,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -962,7 +962,7 @@ public class Playlists implements
|
||||
GetPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -972,11 +972,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPlaylistContentsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -984,7 +984,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -995,7 +995,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1004,7 +1004,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1013,7 +1013,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1126,16 +1126,16 @@ public class Playlists implements
|
||||
ClearPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1143,7 +1143,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1154,7 +1154,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1163,7 +1163,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1172,7 +1172,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1298,7 +1298,7 @@ public class Playlists implements
|
||||
AddPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
"/playlists/{playlistID}/items",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "PUT");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -1308,11 +1308,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
AddPlaylistContentsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1320,7 +1320,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1331,7 +1331,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1340,7 +1340,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1349,7 +1349,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1486,11 +1486,11 @@ public class Playlists implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
UploadPlaylistRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1498,7 +1498,7 @@ public class Playlists implements
|
||||
new BeforeRequestContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1509,7 +1509,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1518,7 +1518,7 @@ public class Playlists implements
|
||||
new AfterSuccessContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1527,7 +1527,7 @@ public class Playlists implements
|
||||
new AfterErrorContextImpl(
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -164,10 +164,10 @@ public class Plex implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -175,7 +175,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -186,7 +186,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -195,7 +195,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -204,7 +204,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -325,10 +325,10 @@ public class Plex implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -336,7 +336,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -347,7 +347,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -356,7 +356,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -365,7 +365,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -486,7 +486,7 @@ public class Plex implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -494,7 +494,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -505,7 +505,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -514,7 +514,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -523,7 +523,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -630,10 +630,10 @@ public class Plex implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -641,7 +641,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -652,7 +652,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -661,7 +661,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -670,7 +670,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -763,11 +763,13 @@ public class Plex implements
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
* @param clientID An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetServerResourcesResponse getServerResourcesDirect() throws Exception {
|
||||
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetServerResourcesResponse getServerResources(
|
||||
String clientID) throws Exception {
|
||||
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), clientID, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -787,7 +789,7 @@ public class Plex implements
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
GetServerResourcesRequest request =
|
||||
GetServerResourcesRequest
|
||||
@@ -814,12 +816,12 @@ public class Plex implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetServerResourcesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -827,7 +829,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -838,7 +840,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -847,7 +849,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -856,7 +858,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -985,9 +987,9 @@ public class Plex implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetPinRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -995,7 +997,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1006,7 +1008,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1015,7 +1017,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1024,7 +1026,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1129,14 +1131,14 @@ public class Plex implements
|
||||
GetTokenByPinIdRequest.class,
|
||||
_baseUrl,
|
||||
"/pins/{pinID}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1144,7 +1146,7 @@ public class Plex implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1155,7 +1157,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1164,7 +1166,7 @@ public class Plex implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1173,7 +1175,7 @@ public class Plex implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import dev.plexapi.sdk.models.operations.SDKMethodInterfaces.*;
|
||||
import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
@@ -13,6 +12,7 @@ import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
@@ -458,89 +458,16 @@ public class PlexAPI {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientID parameter for all supported operations.
|
||||
*
|
||||
* @param clientID The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientID", clientID);
|
||||
|
||||
return this;
|
||||
// Visible for testing, may be accessed via reflection in tests
|
||||
Builder _hooks(dev.plexapi.sdk.utils.Hooks hooks) {
|
||||
sdkConfiguration.setHooks(hooks);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientName parameter for all supported operations.
|
||||
*
|
||||
* @param clientName The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientName(String clientName) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientName", clientName);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientVersion parameter for all supported operations.
|
||||
*
|
||||
* @param clientVersion The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientVersion(String clientVersion) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("clientVersion", clientVersion);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the platform parameter for all supported operations.
|
||||
*
|
||||
* @param platform The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder platform(String platform) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("platform", platform);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the deviceNickname parameter for all supported operations.
|
||||
*
|
||||
* @param deviceNickname The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder deviceNickname(String deviceNickname) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("header").put("deviceNickname", deviceNickname);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
// Visible for testing, will be accessed via reflection
|
||||
void _hooks(dev.plexapi.sdk.utils.Hooks hooks) {
|
||||
sdkConfiguration.setHooks(hooks);
|
||||
// Visible for testing, may be accessed via reflection in tests
|
||||
Builder _hooks(Consumer<? super dev.plexapi.sdk.utils.Hooks> consumer) {
|
||||
consumer.accept(sdkConfiguration.hooks());
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.Hook.SdkInitData;
|
||||
import dev.plexapi.sdk.utils.Hooks;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import java.lang.Object;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.ArrayList;
|
||||
@@ -24,9 +24,16 @@ class SDKConfiguration {
|
||||
public Optional<SecuritySource> securitySource() {
|
||||
return Optional.ofNullable(securitySource);
|
||||
}
|
||||
|
||||
public HTTPClient defaultClient;
|
||||
|
||||
public String serverUrl;
|
||||
|
||||
public String resolvedServerUrl() {
|
||||
return Utils.templateUrl(serverUrl, getServerVariableDefaults());
|
||||
}
|
||||
public int serverIdx = 0;
|
||||
@SuppressWarnings("serial")
|
||||
List<Map<String, String>> serverDefaults = new ArrayList<>(){ {
|
||||
add(new HashMap<>(){ {
|
||||
put("protocol", "https");
|
||||
@@ -36,8 +43,8 @@ class SDKConfiguration {
|
||||
} };
|
||||
private static final String LANGUAGE = "java";
|
||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||
public static final String SDK_VERSION = "0.10.1";
|
||||
public static final String GEN_VERSION = "2.457.9";
|
||||
public static final String SDK_VERSION = "0.11.0";
|
||||
public static final String GEN_VERSION = "2.483.1";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
@@ -64,18 +71,15 @@ class SDKConfiguration {
|
||||
public void initialize() {
|
||||
SDKHooks.initialize(_hooks);
|
||||
// apply the sdk init hook immediately
|
||||
SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient));
|
||||
SdkInitData data = _hooks.sdkInit(new SdkInitData(resolvedServerUrl(), defaultClient));
|
||||
this.serverUrl = data.baseUrl();
|
||||
this.defaultClient = data.client();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public Map<String, Map<String, Map<String,Object>>> globals = new HashMap<>(){ {
|
||||
put("parameters", new HashMap<>());
|
||||
} };
|
||||
|
||||
public Map<String, String> getServerVariableDefaults() {
|
||||
return serverDefaults.get(this.serverIdx);
|
||||
}
|
||||
|
||||
public Map<String, String> getServerVariableDefaults() {
|
||||
return serverDefaults.get(this.serverIdx);
|
||||
}
|
||||
public Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
}
|
||||
|
||||
@@ -146,11 +146,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
PerformSearchRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -158,7 +158,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -169,7 +169,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -178,7 +178,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -187,7 +187,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -325,11 +325,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
PerformVoiceSearchRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -337,7 +337,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -348,7 +348,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -357,7 +357,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -366,7 +366,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -474,11 +474,11 @@ public class Search implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSearchResultsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -486,7 +486,7 @@ public class Search implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -497,7 +497,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -506,7 +506,7 @@ public class Search implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -515,7 +515,7 @@ public class Search implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -114,10 +114,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -125,7 +125,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -136,7 +136,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -145,7 +145,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -154,7 +154,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -261,10 +261,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -272,7 +272,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -283,7 +283,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -292,7 +292,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -301,7 +301,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -408,10 +408,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -419,7 +419,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -430,7 +430,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -439,7 +439,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -448,7 +448,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -555,10 +555,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -566,7 +566,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -577,7 +577,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -586,7 +586,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -595,7 +595,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -702,7 +702,7 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -710,7 +710,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -721,7 +721,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -730,7 +730,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -739,7 +739,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -830,10 +830,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -841,7 +841,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -852,7 +852,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -861,7 +861,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -870,7 +870,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -985,11 +985,11 @@ public class Server implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetResizedPhotoRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -997,7 +997,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1008,7 +1008,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1017,7 +1017,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1026,7 +1026,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1130,11 +1130,11 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1142,7 +1142,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1153,7 +1153,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1162,7 +1162,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1171,7 +1171,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -1278,10 +1278,10 @@ public class Server implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -1289,7 +1289,7 @@ public class Server implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -1300,7 +1300,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -1309,7 +1309,7 @@ public class Server implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -1318,7 +1318,7 @@ public class Server implements
|
||||
new AfterErrorContextImpl(
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -87,10 +87,10 @@ public class Sessions implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -98,7 +98,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -109,7 +109,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -118,7 +118,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -127,7 +127,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -270,11 +270,11 @@ public class Sessions implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetSessionHistoryRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -282,7 +282,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -293,7 +293,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -302,7 +302,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -311,7 +311,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -418,10 +418,10 @@ public class Sessions implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -429,7 +429,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -440,7 +440,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -449,7 +449,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -458,7 +458,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -569,16 +569,16 @@ public class Sessions implements
|
||||
StopTranscodeSessionRequest.class,
|
||||
_baseUrl,
|
||||
"/transcode/sessions/{sessionKey}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "DELETE");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -586,7 +586,7 @@ public class Sessions implements
|
||||
new BeforeRequestContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -597,7 +597,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -606,7 +606,7 @@ public class Sessions implements
|
||||
new AfterSuccessContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -615,7 +615,7 @@ public class Sessions implements
|
||||
new AfterErrorContextImpl(
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -106,11 +106,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -118,7 +118,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -129,7 +129,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -138,7 +138,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -147,7 +147,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -278,11 +278,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetResourcesStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -290,7 +290,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -301,7 +301,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -310,7 +310,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -319,7 +319,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -450,11 +450,11 @@ public class Statistics implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetBandwidthStatisticsRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -462,7 +462,7 @@ public class Statistics implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -473,7 +473,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -482,7 +482,7 @@ public class Statistics implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -491,7 +491,7 @@ public class Statistics implements
|
||||
new AfterErrorContextImpl(
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -82,10 +82,10 @@ public class Updater implements
|
||||
_req.addHeader("Accept", "application/json")
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -93,7 +93,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -104,7 +104,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -113,7 +113,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -122,7 +122,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -251,11 +251,11 @@ public class Updater implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
CheckForUpdatesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -263,7 +263,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -274,7 +274,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -283,7 +283,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -292,7 +292,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -416,11 +416,11 @@ public class Updater implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
ApplyUpdatesRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -428,7 +428,7 @@ public class Updater implements
|
||||
new BeforeRequestContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -439,7 +439,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -448,7 +448,7 @@ public class Updater implements
|
||||
new AfterSuccessContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -457,7 +457,7 @@ public class Updater implements
|
||||
new AfterErrorContextImpl(
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -78,11 +78,11 @@ public class Video implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetTimelineRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -90,7 +90,7 @@ public class Video implements
|
||||
new BeforeRequestContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -101,7 +101,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -110,7 +110,7 @@ public class Video implements
|
||||
new AfterSuccessContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -119,7 +119,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
@@ -221,11 +221,11 @@ public class Video implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
StartUniversalTranscodeRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -233,7 +233,7 @@ public class Video implements
|
||||
new BeforeRequestContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -244,7 +244,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -253,7 +253,7 @@ public class Video implements
|
||||
new AfterSuccessContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -262,7 +262,7 @@ public class Video implements
|
||||
new AfterErrorContextImpl(
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class Watchlist implements
|
||||
GetWatchListRequest.class,
|
||||
_baseUrl,
|
||||
"/library/sections/watchlist/{filter}",
|
||||
request, this.sdkConfiguration.globals);
|
||||
request, null);
|
||||
|
||||
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||
_req.addHeader("Accept", "application/json")
|
||||
@@ -102,12 +102,12 @@ public class Watchlist implements
|
||||
_req.addQueryParams(Utils.getQueryParams(
|
||||
GetWatchListRequest.class,
|
||||
request,
|
||||
this.sdkConfiguration.globals));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
|
||||
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
@@ -115,7 +115,7 @@ public class Watchlist implements
|
||||
new BeforeRequestContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
@@ -126,7 +126,7 @@ public class Watchlist implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
@@ -135,7 +135,7 @@ public class Watchlist implements
|
||||
new AfterSuccessContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
@@ -144,7 +144,7 @@ public class Watchlist implements
|
||||
new AfterErrorContextImpl(
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
sdkConfiguration.securitySource()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum ActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ActiveDirection> fromValue(String value) {
|
||||
for (ActiveDirection o: ActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
@@ -23,4 +25,13 @@ public enum AutoSelectSubtitle {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<AutoSelectSubtitle> fromValue(int value) {
|
||||
for (AutoSelectSubtitle o: AutoSelectSubtitle.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CreatePlaylistQueryParamType - type of playlist to create
|
||||
@@ -25,4 +27,13 @@ public enum CreatePlaylistQueryParamType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<CreatePlaylistQueryParamType> fromValue(String value) {
|
||||
for (CreatePlaylistQueryParamType o: CreatePlaylistQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum DefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultDirection> fromValue(String value) {
|
||||
for (DefaultDirection o: DefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleAccessibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleAccessibility> fromValue(int value) {
|
||||
for (DefaultSubtitleAccessibility o: DefaultSubtitleAccessibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleForced {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleForced> fromValue(int value) {
|
||||
for (DefaultSubtitleForced o: DefaultSubtitleForced.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Download - Indicate that you want to start download any updates found.
|
||||
@@ -23,4 +25,13 @@ public enum Download {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Download> fromValue(long value) {
|
||||
for (Download o: Download.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Filter - Filter
|
||||
@@ -25,4 +27,13 @@ public enum Filter {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Filter> fromValue(String value) {
|
||||
for (Filter o: Filter.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum FlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum FlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<FlattenSeasons> fromValue(String value) {
|
||||
for (FlattenSeasons o: FlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Force - Force the refresh even if the library is already being refreshed.
|
||||
@@ -23,4 +25,13 @@ public enum Force {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Force> fromValue(long value) {
|
||||
for (Force o: Force.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsActiveDirection o: GetLibraryItemsActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsDefaultDirection o: GetLibraryItemsDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsFlattenSeasons> fromValue(String value) {
|
||||
for (GetLibraryItemsFlattenSeasons o: GetLibraryItemsFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsHasThumbnail> fromValue(String value) {
|
||||
for (GetLibraryItemsHasThumbnail o: GetLibraryItemsHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryActiveDirection o: GetLibraryItemsLibraryActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryDefaultDirection o: GetLibraryItemsLibraryDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponse200Type {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetLibraryItemsLibraryResponse200Type {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryResponse200Type> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryResponse200Type o: GetLibraryItemsLibraryResponse200Type.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetLibraryItemsLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryType> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryType o: GetLibraryItemsLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetLibraryItemsMetadata {
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetLibraryItemsOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetLibraryItemsOptimizedForStreaming o: GetLibraryItemsOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum GetLibraryItemsQueryParamIncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamIncludeMeta> fromValue(int value) {
|
||||
for (GetLibraryItemsQueryParamIncludeMeta o: GetLibraryItemsQueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetLibraryItemsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetLibraryItemsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamType> fromValue(long value) {
|
||||
for (GetLibraryItemsQueryParamType o: GetLibraryItemsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum GetLibraryItemsShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsShowOrdering> fromValue(String value) {
|
||||
for (GetLibraryItemsShowOrdering o: GetLibraryItemsShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -60,6 +61,41 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionKey")
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("grandparentTitle")
|
||||
private Optional<String> grandparentTitle;
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentTitle")
|
||||
private Optional<String> parentTitle;
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("originalTitle")
|
||||
private Optional<String> originalTitle;
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("index")
|
||||
private Optional<Long> index;
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentIndex")
|
||||
private Optional<Long> parentIndex;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("contentRating")
|
||||
private Optional<String> contentRating;
|
||||
@@ -167,6 +203,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
|
||||
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
||||
@JsonProperty("grandparentTitle") Optional<String> grandparentTitle,
|
||||
@JsonProperty("parentTitle") Optional<String> parentTitle,
|
||||
@JsonProperty("originalTitle") Optional<String> originalTitle,
|
||||
@JsonProperty("index") Optional<Long> index,
|
||||
@JsonProperty("parentIndex") Optional<Long> parentIndex,
|
||||
@JsonProperty("contentRating") Optional<String> contentRating,
|
||||
@JsonProperty("summary") Optional<String> summary,
|
||||
@JsonProperty("rating") Optional<Double> rating,
|
||||
@@ -200,6 +241,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
Utils.checkNotNull(index, "index");
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
Utils.checkNotNull(summary, "summary");
|
||||
Utils.checkNotNull(rating, "rating");
|
||||
@@ -233,6 +279,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
this.parentTitle = parentTitle;
|
||||
this.originalTitle = originalTitle;
|
||||
this.index = index;
|
||||
this.parentIndex = parentIndex;
|
||||
this.contentRating = contentRating;
|
||||
this.summary = summary;
|
||||
this.rating = rating;
|
||||
@@ -260,7 +311,7 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -308,6 +359,46 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return librarySectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> grandparentTitle() {
|
||||
return grandparentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> parentTitle() {
|
||||
return parentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> originalTitle() {
|
||||
return originalTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> index() {
|
||||
return index;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> parentIndex() {
|
||||
return parentIndex;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> contentRating() {
|
||||
return contentRating;
|
||||
@@ -549,6 +640,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata withContentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -856,6 +1037,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||
Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) &&
|
||||
Objects.deepEquals(this.parentTitle, other.parentTitle) &&
|
||||
Objects.deepEquals(this.originalTitle, other.originalTitle) &&
|
||||
Objects.deepEquals(this.index, other.index) &&
|
||||
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
|
||||
Objects.deepEquals(this.contentRating, other.contentRating) &&
|
||||
Objects.deepEquals(this.summary, other.summary) &&
|
||||
Objects.deepEquals(this.rating, other.rating) &&
|
||||
@@ -894,6 +1080,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
@@ -932,6 +1123,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionKey", librarySectionKey,
|
||||
"grandparentTitle", grandparentTitle,
|
||||
"parentTitle", parentTitle,
|
||||
"originalTitle", originalTitle,
|
||||
"index", index,
|
||||
"parentIndex", parentIndex,
|
||||
"contentRating", contentRating,
|
||||
"summary", summary,
|
||||
"rating", rating,
|
||||
@@ -978,6 +1174,16 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
|
||||
private Optional<String> librarySectionKey = Optional.empty();
|
||||
|
||||
private Optional<String> grandparentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> parentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> originalTitle = Optional.empty();
|
||||
|
||||
private Optional<Long> index = Optional.empty();
|
||||
|
||||
private Optional<Long> parentIndex = Optional.empty();
|
||||
|
||||
private Optional<String> contentRating = Optional.empty();
|
||||
|
||||
private Optional<String> summary = Optional.empty();
|
||||
@@ -1138,6 +1344,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder contentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -1437,6 +1733,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
|
||||
@@ -33,7 +33,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -62,7 +62,7 @@ public class GetPinRequest {
|
||||
@JsonCreator
|
||||
public GetPinRequest(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -81,8 +81,9 @@ public class GetPinRequest {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public GetPinRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetPinRequest(
|
||||
String clientID) {
|
||||
this(Optional.empty(), clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,7 +101,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -168,15 +169,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -298,7 +290,7 @@ public class GetPinRequest {
|
||||
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -340,15 +332,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetPlaylistContentsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetPlaylistContentsQueryParamType> fromValue(long value) {
|
||||
for (GetPlaylistContentsQueryParamType o: GetPlaylistContentsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedActiveDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedActiveDirection o: GetRecentlyAddedActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedDefaultDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedDefaultDirection o: GetRecentlyAddedDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetRecentlyAddedHubsResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetRecentlyAddedHubsResponseType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsResponseType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsResponseType o: GetRecentlyAddedHubsResponseType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedHubsType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetRecentlyAddedHubsType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsType o: GetRecentlyAddedHubsType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetRecentlyAddedMetadata {
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesFlattenSeasons> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesFlattenSeasons o: GetSearchAllLibrariesFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesHasThumbnail> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesHasThumbnail o: GetSearchAllLibrariesHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesLibraryType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetSearchAllLibrariesLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesLibraryType> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesLibraryType o: GetSearchAllLibrariesLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetSearchAllLibrariesOptimizedForStreaming o: GetSearchAllLibrariesOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* Limit the number of results returned.
|
||||
@@ -62,7 +62,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
@JsonCreator
|
||||
public GetSearchAllLibrariesRequest(
|
||||
String query,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<Long> limit,
|
||||
Optional<? extends List<SearchTypes>> searchTypes,
|
||||
Optional<? extends QueryParamIncludeCollections> includeCollections,
|
||||
@@ -82,8 +82,9 @@ public class GetSearchAllLibrariesRequest {
|
||||
}
|
||||
|
||||
public GetSearchAllLibrariesRequest(
|
||||
String query) {
|
||||
this(query, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
String query,
|
||||
String clientID) {
|
||||
this(query, clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +99,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -155,15 +156,6 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetSearchAllLibrariesRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetSearchAllLibrariesRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -287,7 +279,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
|
||||
private String query;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<Long> limit = Optional.empty();
|
||||
|
||||
@@ -314,15 +306,6 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetSearchAllLibrariesShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum GetSearchAllLibrariesShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesShowOrdering> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesShowOrdering o: GetSearchAllLibrariesShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetSearchAllLibrariesType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesType> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesType o: GetSearchAllLibrariesType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchLibraryQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetSearchLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetSearchLibraryQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchLibraryQueryParamType> fromValue(long value) {
|
||||
for (GetSearchLibraryQueryParamType o: GetSearchLibraryQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,14 +44,14 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
@JsonCreator
|
||||
public GetServerResourcesRequest(
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
Optional<String> clientID) {
|
||||
String clientID) {
|
||||
Utils.checkNotNull(includeHttps, "includeHttps");
|
||||
Utils.checkNotNull(includeRelay, "includeRelay");
|
||||
Utils.checkNotNull(includeIPv6, "includeIPv6");
|
||||
@@ -62,8 +62,9 @@ public class GetServerResourcesRequest {
|
||||
this.clientID = clientID;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetServerResourcesRequest(
|
||||
String clientID) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), clientID);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,7 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -169,15 +170,6 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetServerResourcesRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -225,7 +217,7 @@ public class GetServerResourcesRequest {
|
||||
|
||||
private Optional<? extends IncludeIPv6> includeIPv6;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -293,15 +285,6 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class GetServerResourcesRequestBuilder {
|
||||
"includeIPv6",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeIPv6>>() {});
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetServerResources sdk;
|
||||
|
||||
@@ -67,14 +67,8 @@ public class GetServerResourcesRequestBuilder {
|
||||
this.includeIPv6 = includeIPv6;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.of(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder clientID(Optional<String> clientID) {
|
||||
public GetServerResourcesRequestBuilder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -57,7 +57,7 @@ public class GetTokenByPinIdRequest {
|
||||
@JsonCreator
|
||||
public GetTokenByPinIdRequest(
|
||||
long pinID,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -77,8 +77,9 @@ public class GetTokenByPinIdRequest {
|
||||
}
|
||||
|
||||
public GetTokenByPinIdRequest(
|
||||
long pinID) {
|
||||
this(pinID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
long pinID,
|
||||
String clientID) {
|
||||
this(pinID, clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -93,7 +94,7 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -146,15 +147,6 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetTokenByPinIdRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetTokenByPinIdRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -276,7 +268,7 @@ public class GetTokenByPinIdRequest {
|
||||
|
||||
private Long pinID;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -303,15 +295,6 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum GetTokenDetailsAuthenticationResponseStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsAuthenticationResponseStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsAuthenticationResponseStatus o: GetTokenDetailsAuthenticationResponseStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum GetTokenDetailsAuthenticationStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsAuthenticationStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsAuthenticationStatus o: GetTokenDetailsAuthenticationStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetTokenDetailsStatus {
|
||||
ONLINE("online"),
|
||||
@@ -21,4 +23,13 @@ public enum GetTokenDetailsStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsStatus o: GetTokenDetailsStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTopWatchedContentQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetTopWatchedContentQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetTopWatchedContentQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTopWatchedContentQueryParamType> fromValue(long value) {
|
||||
for (GetTopWatchedContentQueryParamType o: GetTopWatchedContentQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTransientTokenQueryParamType - `delegation` - This is the only supported `type` parameter.
|
||||
@@ -23,4 +25,13 @@ public enum GetTransientTokenQueryParamType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTransientTokenQueryParamType> fromValue(String value) {
|
||||
for (GetTransientTokenQueryParamType o: GetTransientTokenQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum HasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum HasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<HasThumbnail> fromValue(String value) {
|
||||
for (HasThumbnail o: HasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeCollections - include collections in the results
|
||||
@@ -24,4 +26,13 @@ public enum IncludeCollections {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeCollections> fromValue(long value) {
|
||||
for (IncludeCollections o: IncludeCollections.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeDetails - Whether or not to include details for a section (types, filters, and sorts).
|
||||
@@ -25,4 +27,13 @@ public enum IncludeDetails {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeDetails> fromValue(long value) {
|
||||
for (IncludeDetails o: IncludeDetails.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeExternalMedia - include external media in the results
|
||||
@@ -24,4 +26,13 @@ public enum IncludeExternalMedia {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeExternalMedia> fromValue(long value) {
|
||||
for (IncludeExternalMedia o: IncludeExternalMedia.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeGuids - Adds the Guids object to the response
|
||||
@@ -24,4 +26,13 @@ public enum IncludeGuids {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeGuids> fromValue(int value) {
|
||||
for (IncludeGuids o: IncludeGuids.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeHttps - Include Https entries in the results
|
||||
@@ -23,4 +25,13 @@ public enum IncludeHttps {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeHttps> fromValue(int value) {
|
||||
for (IncludeHttps o: IncludeHttps.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeIPv6 - Include IPv6 entries in the results
|
||||
@@ -23,4 +25,13 @@ public enum IncludeIPv6 {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeIPv6> fromValue(int value) {
|
||||
for (IncludeIPv6 o: IncludeIPv6.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum IncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeMeta> fromValue(int value) {
|
||||
for (IncludeMeta o: IncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeRelay - Include Relay addresses in the results
|
||||
@@ -25,4 +27,13 @@ public enum IncludeRelay {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeRelay> fromValue(int value) {
|
||||
for (IncludeRelay o: IncludeRelay.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Level - An integer log level to write to the PMS log with.
|
||||
@@ -32,4 +34,13 @@ public enum Level {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Level> fromValue(long value) {
|
||||
for (Level o: Level.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Libtype - The type of library to filter. Can be "movie" or "show", or all if not present.
|
||||
@@ -25,4 +27,13 @@ public enum Libtype {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Libtype> fromValue(String value) {
|
||||
for (Libtype o: Libtype.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
@@ -24,4 +26,13 @@ public enum MailingListStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MailingListStatus> fromValue(String value) {
|
||||
for (MailingListStatus o: MailingListStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
@@ -23,4 +25,13 @@ public enum MediaReviewsVisibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MediaReviewsVisibility> fromValue(int value) {
|
||||
for (MediaReviewsVisibility o: MediaReviewsVisibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
|
||||
@@ -23,4 +25,13 @@ public enum MinSize {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MinSize> fromValue(long value) {
|
||||
for (MinSize o: MinSize.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* 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).
|
||||
@@ -23,4 +25,13 @@ public enum OnlyTransient {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<OnlyTransient> fromValue(long value) {
|
||||
for (OnlyTransient o: OnlyTransient.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum OptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum OptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<OptimizedForStreaming> fromValue(int value) {
|
||||
for (OptimizedForStreaming o: OptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PathParamTaskName - The name of the task to be started.
|
||||
@@ -36,4 +38,13 @@ public enum PathParamTaskName {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PathParamTaskName> fromValue(String value) {
|
||||
for (PathParamTaskName o: PathParamTaskName.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PlaylistType - limit to a type of playlist.
|
||||
@@ -25,4 +27,13 @@ public enum PlaylistType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PlaylistType> fromValue(String value) {
|
||||
for (PlaylistType o: PlaylistType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataAuthenticationResponseStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAuthenticationResponseStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataAuthenticationResponseStatus o: PostUsersSignInDataAuthenticationResponseStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataAuthenticationStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAuthenticationStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataAuthenticationStatus o: PostUsersSignInDataAuthenticationStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataAutoSelectSubtitle {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAutoSelectSubtitle> fromValue(int value) {
|
||||
for (PostUsersSignInDataAutoSelectSubtitle o: PostUsersSignInDataAutoSelectSubtitle.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataDefaultSubtitleAccessibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataDefaultSubtitleAccessibility> fromValue(int value) {
|
||||
for (PostUsersSignInDataDefaultSubtitleAccessibility o: PostUsersSignInDataDefaultSubtitleAccessibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataDefaultSubtitleForced {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataDefaultSubtitleForced> fromValue(int value) {
|
||||
for (PostUsersSignInDataDefaultSubtitleForced o: PostUsersSignInDataDefaultSubtitleForced.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataMailingListStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataMailingListStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataMailingListStatus o: PostUsersSignInDataMailingListStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataMediaReviewsVisibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataMediaReviewsVisibility> fromValue(int value) {
|
||||
for (PostUsersSignInDataMediaReviewsVisibility o: PostUsersSignInDataMediaReviewsVisibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -56,7 +56,7 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
@JsonCreator
|
||||
public PostUsersSignInDataRequest(
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -76,15 +76,16 @@ public class PostUsersSignInDataRequest {
|
||||
this.requestBody = requestBody;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public PostUsersSignInDataRequest(
|
||||
String clientID) {
|
||||
this(clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -137,15 +138,6 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -283,7 +275,7 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -303,15 +295,6 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum PostUsersSignInDataState {
|
||||
ENDED("ended");
|
||||
@@ -20,4 +22,13 @@ public enum PostUsersSignInDataState {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataState> fromValue(String value) {
|
||||
for (PostUsersSignInDataState o: PostUsersSignInDataState.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum PostUsersSignInDataStatus {
|
||||
ONLINE("online"),
|
||||
@@ -21,4 +23,13 @@ public enum PostUsersSignInDataStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataStatus o: PostUsersSignInDataStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataWatchedIndicator {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataWatchedIndicator> fromValue(int value) {
|
||||
for (PostUsersSignInDataWatchedIndicator o: PostUsersSignInDataWatchedIndicator.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Protocol - The protocol used for the connection (http, https, etc)
|
||||
@@ -24,4 +26,13 @@ public enum Protocol {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Protocol> fromValue(String value) {
|
||||
for (Protocol o: Protocol.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamForce - Force overwriting of duplicate playlists.
|
||||
@@ -27,4 +29,13 @@ public enum QueryParamForce {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamForce> fromValue(long value) {
|
||||
for (QueryParamForce o: QueryParamForce.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeCollections - Whether to include collections in the search results.
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamIncludeCollections {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeCollections> fromValue(int value) {
|
||||
for (QueryParamIncludeCollections o: QueryParamIncludeCollections.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeExternalMedia - Whether to include external media in the search results.
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamIncludeExternalMedia {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeExternalMedia> fromValue(int value) {
|
||||
for (QueryParamIncludeExternalMedia o: QueryParamIncludeExternalMedia.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum QueryParamIncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeMeta> fromValue(int value) {
|
||||
for (QueryParamIncludeMeta o: QueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user