mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2
This commit is contained in:
@@ -570,7 +570,7 @@ public class Authentication implements
|
||||
/**
|
||||
* Get User Sign In Data
|
||||
* Sign in user with username and password and return user data with Plex authentication token
|
||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
||||
* @param clientID The unique identifier for the client application
|
||||
This is used to track the client application and its usage
|
||||
(UUID, serial number, or other number unique per device)
|
||||
|
||||
@@ -580,13 +580,13 @@ public class Authentication implements
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public PostUsersSignInDataResponse postUsersSignInData(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
PostUsersSignInDataRequest request =
|
||||
PostUsersSignInDataRequest
|
||||
.builder()
|
||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
||||
.clientID(clientID)
|
||||
.requestBody(requestBody)
|
||||
.build();
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl;
|
||||
import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.io.InputStream;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Exception;
|
||||
import java.lang.String;
|
||||
import java.net.http.HttpRequest;
|
||||
@@ -774,7 +773,7 @@ public class Plex implements
|
||||
/**
|
||||
* Get Server Resources
|
||||
* Get Plex server access tokens and server connections
|
||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
||||
* @param clientID The unique identifier for the client application
|
||||
This is used to track the client application and its usage
|
||||
(UUID, serial number, or other number unique per device)
|
||||
|
||||
@@ -788,7 +787,7 @@ public class Plex implements
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetServerResourcesResponse getServerResources(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
@@ -796,7 +795,7 @@ public class Plex implements
|
||||
GetServerResourcesRequest request =
|
||||
GetServerResourcesRequest
|
||||
.builder()
|
||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
||||
.clientID(clientID)
|
||||
.includeHttps(includeHttps)
|
||||
.includeRelay(includeRelay)
|
||||
.includeIPv6(includeIPv6)
|
||||
@@ -942,7 +941,7 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin from Plex.tv for authentication flows
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetPinRequestBuilder getPin() {
|
||||
@@ -951,43 +950,27 @@ public class Plex implements
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin from Plex.tv for authentication flows
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetPinResponse getPinDirect() throws Exception {
|
||||
return getPin(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetPinResponse getPin(
|
||||
GetPinRequest request) throws Exception {
|
||||
return getPin(request, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a Pin
|
||||
* Retrieve a Pin from Plex.tv for authentication flows
|
||||
* @param strong Determines the kind of code returned by the API call
|
||||
Strong codes are used for Pin authentication flows
|
||||
Non-Strong codes are used for `Plex.tv/link`
|
||||
|
||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
||||
This is used to track the client application and its usage
|
||||
(UUID, serial number, or other number unique per device)
|
||||
|
||||
* @param xPlexProduct
|
||||
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||
* @param request The request object containing all of the parameters for the API call.
|
||||
* @param serverURL Overrides the server URL.
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetPinResponse getPin(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> xPlexProduct,
|
||||
GetPinRequest request,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
GetPinRequest request =
|
||||
GetPinRequest
|
||||
.builder()
|
||||
.strong(strong)
|
||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
||||
.xPlexProduct(xPlexProduct)
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap<String, String>());
|
||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||
_baseUrl = serverURL.get();
|
||||
@@ -1059,7 +1042,7 @@ public class Plex implements
|
||||
|
||||
GetPinResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetPinAuthPinContainer _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
@@ -1131,7 +1114,7 @@ public class Plex implements
|
||||
/**
|
||||
* Get Access Token by PinId
|
||||
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
||||
* @param clientID The unique identifier for the client application
|
||||
This is used to track the client application and its usage
|
||||
(UUID, serial number, or other number unique per device)
|
||||
|
||||
@@ -1141,13 +1124,13 @@ public class Plex implements
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetTokenByPinIdResponse getTokenByPinId(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
long pinID,
|
||||
Optional<String> serverURL) throws Exception {
|
||||
GetTokenByPinIdRequest request =
|
||||
GetTokenByPinIdRequest
|
||||
.builder()
|
||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
||||
.clientID(clientID)
|
||||
.pinID(pinID)
|
||||
.build();
|
||||
|
||||
|
||||
@@ -433,17 +433,81 @@ public class PlexAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the xPlexClientIdentifier parameter for all supported operations.
|
||||
* Allows setting the clientID parameter for all supported operations.
|
||||
*
|
||||
* @param xPlexClientIdentifier The value to set.
|
||||
* @param clientID The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
public Builder clientID(String clientID) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("xPlexClientIdentifier", xPlexClientIdentifier);
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientID", clientID);
|
||||
|
||||
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("queryParam")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").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("queryParam")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientVersion", clientVersion);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the clientPlatform parameter for all supported operations.
|
||||
*
|
||||
* @param clientPlatform The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder clientPlatform(String clientPlatform) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientPlatform", clientPlatform);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows setting the deviceName parameter for all supported operations.
|
||||
*
|
||||
* @param deviceName The value to set.
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder deviceName(String deviceName) {
|
||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||
}
|
||||
|
||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("deviceName", deviceName);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ class SDKConfiguration {
|
||||
} };
|
||||
public String language = "java";
|
||||
public String openapiDocVersion = "0.0.3";
|
||||
public String sdkVersion = "0.3.5";
|
||||
public String genVersion = "2.415.8";
|
||||
public String userAgent = "speakeasy-sdk/java 0.3.5 2.415.8 0.0.3 dev.plexapi.sdk";
|
||||
public String sdkVersion = "0.3.6";
|
||||
public String genVersion = "2.416.6";
|
||||
public String userAgent = "speakeasy-sdk/java 0.3.6 2.416.6 0.0.3 dev.plexapi.sdk";
|
||||
|
||||
private Hooks _hooks = createHooks();
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -67,7 +66,7 @@ public class GeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonProperty("postal_code")
|
||||
private long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
/**
|
||||
* Indicates if the country has privacy restrictions.
|
||||
@@ -103,7 +102,7 @@ public class GeoData {
|
||||
@JsonProperty("city") String city,
|
||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||
@JsonProperty("time_zone") String timeZone,
|
||||
@JsonProperty("postal_code") long postalCode,
|
||||
@JsonProperty("postal_code") String postalCode,
|
||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||
@JsonProperty("subdivisions") String subdivisions,
|
||||
@@ -138,7 +137,7 @@ public class GeoData {
|
||||
String country,
|
||||
String city,
|
||||
String timeZone,
|
||||
long postalCode,
|
||||
String postalCode,
|
||||
String subdivisions,
|
||||
String coordinates) {
|
||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||
@@ -196,7 +195,7 @@ public class GeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long postalCode() {
|
||||
public String postalCode() {
|
||||
return postalCode;
|
||||
}
|
||||
|
||||
@@ -302,7 +301,7 @@ public class GeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public GeoData withPostalCode(long postalCode) {
|
||||
public GeoData withPostalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
@@ -431,7 +430,7 @@ public class GeoData {
|
||||
|
||||
private String timeZone;
|
||||
|
||||
private Long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||
|
||||
@@ -511,7 +510,7 @@ public class GeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public Builder postalCode(long postalCode) {
|
||||
public Builder postalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
|
||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -67,7 +66,7 @@ public class GetGeoDataGeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonProperty("postal_code")
|
||||
private long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
/**
|
||||
* Indicates if the country has privacy restrictions.
|
||||
@@ -103,7 +102,7 @@ public class GetGeoDataGeoData {
|
||||
@JsonProperty("city") String city,
|
||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||
@JsonProperty("time_zone") String timeZone,
|
||||
@JsonProperty("postal_code") long postalCode,
|
||||
@JsonProperty("postal_code") String postalCode,
|
||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||
@JsonProperty("subdivisions") String subdivisions,
|
||||
@@ -138,7 +137,7 @@ public class GetGeoDataGeoData {
|
||||
String country,
|
||||
String city,
|
||||
String timeZone,
|
||||
long postalCode,
|
||||
String postalCode,
|
||||
String subdivisions,
|
||||
String coordinates) {
|
||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||
@@ -196,7 +195,7 @@ public class GetGeoDataGeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long postalCode() {
|
||||
public String postalCode() {
|
||||
return postalCode;
|
||||
}
|
||||
|
||||
@@ -302,7 +301,7 @@ public class GetGeoDataGeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public GetGeoDataGeoData withPostalCode(long postalCode) {
|
||||
public GetGeoDataGeoData withPostalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
@@ -431,7 +430,7 @@ public class GetGeoDataGeoData {
|
||||
|
||||
private String timeZone;
|
||||
|
||||
private Long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||
|
||||
@@ -511,7 +510,7 @@ public class GetGeoDataGeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public Builder postalCode(long postalCode) {
|
||||
public Builder postalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
|
||||
@@ -73,7 +73,7 @@ public class GetPinAuthPinContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("authToken")
|
||||
private JsonNullable<? extends Object> authToken;
|
||||
private JsonNullable<String> authToken;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("newRegistration")
|
||||
@@ -91,7 +91,7 @@ public class GetPinAuthPinContainer {
|
||||
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
||||
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
||||
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
||||
@JsonProperty("authToken") JsonNullable<? extends Object> authToken,
|
||||
@JsonProperty("authToken") JsonNullable<String> authToken,
|
||||
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -190,10 +190,9 @@ public class GetPinAuthPinContainer {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public JsonNullable<Object> authToken() {
|
||||
return (JsonNullable<Object>) authToken;
|
||||
public JsonNullable<String> authToken() {
|
||||
return authToken;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -290,13 +289,13 @@ public class GetPinAuthPinContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinAuthPinContainer withAuthToken(Object authToken) {
|
||||
public GetPinAuthPinContainer withAuthToken(String authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = JsonNullable.of(authToken);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinAuthPinContainer withAuthToken(JsonNullable<? extends Object> authToken) {
|
||||
public GetPinAuthPinContainer withAuthToken(JsonNullable<String> authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = authToken;
|
||||
return this;
|
||||
@@ -394,7 +393,7 @@ public class GetPinAuthPinContainer {
|
||||
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
private JsonNullable<? extends Object> authToken = JsonNullable.undefined();
|
||||
private JsonNullable<String> authToken = JsonNullable.undefined();
|
||||
|
||||
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
||||
|
||||
@@ -486,13 +485,13 @@ public class GetPinAuthPinContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder authToken(Object authToken) {
|
||||
public Builder authToken(String authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = JsonNullable.of(authToken);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder authToken(JsonNullable<? extends Object> authToken) {
|
||||
public Builder authToken(JsonNullable<String> authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = authToken;
|
||||
return this;
|
||||
|
||||
@@ -36,26 +36,44 @@ public class GetPinRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> xPlexClientIdentifier;
|
||||
private Optional<String> clientID;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
|
||||
private Optional<String> xPlexProduct;
|
||||
private Optional<String> clientName;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Device")
|
||||
private Optional<String> deviceName;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Version")
|
||||
private Optional<String> clientVersion;
|
||||
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Platform")
|
||||
private Optional<String> clientPlatform;
|
||||
|
||||
@JsonCreator
|
||||
public GetPinRequest(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> xPlexProduct) {
|
||||
Optional<String> clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceName,
|
||||
Optional<String> clientVersion,
|
||||
Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(strong, "strong");
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.strong = strong;
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
this.xPlexProduct = xPlexProduct;
|
||||
this.clientID = clientID;
|
||||
this.clientName = clientName;
|
||||
this.deviceName = deviceName;
|
||||
this.clientVersion = clientVersion;
|
||||
this.clientPlatform = clientPlatform;
|
||||
}
|
||||
|
||||
public GetPinRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,13 +94,28 @@ public class GetPinRequest {
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> xPlexClientIdentifier() {
|
||||
return xPlexClientIdentifier;
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> xPlexProduct() {
|
||||
return xPlexProduct;
|
||||
public Optional<String> clientName() {
|
||||
return clientName;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> deviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientVersion() {
|
||||
return clientVersion;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> clientPlatform() {
|
||||
return clientPlatform;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -119,9 +152,9 @@ public class GetPinRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetPinRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public GetPinRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -131,21 +164,57 @@ public class GetPinRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetPinRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withXPlexProduct(String xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = Optional.ofNullable(xPlexProduct);
|
||||
public GetPinRequest withClientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withXPlexProduct(Optional<String> xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = xPlexProduct;
|
||||
public GetPinRequest withClientName(Optional<String> clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = clientName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withDeviceName(String deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = Optional.ofNullable(deviceName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withDeviceName(Optional<String> deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = deviceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withClientVersion(String clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withClientVersion(Optional<String> clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = clientVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withClientPlatform(String clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequest withClientPlatform(Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = clientPlatform;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -160,33 +229,48 @@ public class GetPinRequest {
|
||||
GetPinRequest other = (GetPinRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.strong, other.strong) &&
|
||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
||||
Objects.deepEquals(this.xPlexProduct, other.xPlexProduct);
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.clientName, other.clientName) &&
|
||||
Objects.deepEquals(this.deviceName, other.deviceName) &&
|
||||
Objects.deepEquals(this.clientVersion, other.clientVersion) &&
|
||||
Objects.deepEquals(this.clientPlatform, other.clientPlatform);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
strong,
|
||||
xPlexClientIdentifier,
|
||||
xPlexProduct);
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
clientPlatform);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetPinRequest.class,
|
||||
"strong", strong,
|
||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
||||
"xPlexProduct", xPlexProduct);
|
||||
"clientID", clientID,
|
||||
"clientName", clientName,
|
||||
"deviceName", deviceName,
|
||||
"clientVersion", clientVersion,
|
||||
"clientPlatform", clientPlatform);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Optional<String> xPlexProduct = Optional.empty();
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
private Optional<String> deviceName = Optional.empty();
|
||||
|
||||
private Optional<String> clientVersion = Optional.empty();
|
||||
|
||||
private Optional<String> clientPlatform = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -222,9 +306,9 @@ public class GetPinRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -234,21 +318,57 @@ public class GetPinRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder xPlexProduct(String xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = Optional.ofNullable(xPlexProduct);
|
||||
public Builder clientName(String clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = Optional.ofNullable(clientName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder xPlexProduct(Optional<String> xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = xPlexProduct;
|
||||
public Builder clientName(Optional<String> clientName) {
|
||||
Utils.checkNotNull(clientName, "clientName");
|
||||
this.clientName = clientName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deviceName(String deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = Optional.ofNullable(deviceName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deviceName(Optional<String> deviceName) {
|
||||
Utils.checkNotNull(deviceName, "deviceName");
|
||||
this.deviceName = deviceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientVersion(String clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientVersion(Optional<String> clientVersion) {
|
||||
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||
this.clientVersion = clientVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientPlatform(String clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clientPlatform(Optional<String> clientPlatform) {
|
||||
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||
this.clientPlatform = clientPlatform;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -257,8 +377,11 @@ public class GetPinRequest {
|
||||
strong = _SINGLETON_VALUE_Strong.value();
|
||||
} return new GetPinRequest(
|
||||
strong,
|
||||
xPlexClientIdentifier,
|
||||
xPlexProduct);
|
||||
clientID,
|
||||
clientName,
|
||||
deviceName,
|
||||
clientVersion,
|
||||
clientPlatform);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Strong =
|
||||
|
||||
@@ -4,61 +4,23 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetPinRequestBuilder {
|
||||
|
||||
private Optional<Boolean> strong = Utils.readDefaultOrConstValue(
|
||||
"strong",
|
||||
"false",
|
||||
new TypeReference<Optional<Boolean>>() {});
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> xPlexProduct = Optional.empty();
|
||||
private GetPinRequest request;
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetPin sdk;
|
||||
|
||||
public GetPinRequestBuilder(SDKMethodInterfaces.MethodCallGetPin sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder strong(boolean strong) {
|
||||
Utils.checkNotNull(strong, "strong");
|
||||
this.strong = Optional.of(strong);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder strong(java.util.Optional<java.lang.Boolean> strong) {
|
||||
Utils.checkNotNull(strong, "strong");
|
||||
this.strong = strong;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder xPlexProduct(java.lang.String xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = Optional.of(xPlexProduct);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetPinRequestBuilder xPlexProduct(java.util.Optional<java.lang.String> xPlexProduct) {
|
||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
||||
this.xPlexProduct = xPlexProduct;
|
||||
public GetPinRequestBuilder request(dev.plexapi.sdk.models.operations.GetPinRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -75,19 +37,9 @@ public class GetPinRequestBuilder {
|
||||
}
|
||||
|
||||
public GetPinResponse call() throws Exception {
|
||||
if (strong == null) {
|
||||
strong = _SINGLETON_VALUE_Strong.value();
|
||||
}
|
||||
|
||||
return sdk.getPin(
|
||||
strong,
|
||||
xPlexClientIdentifier,
|
||||
xPlexProduct,
|
||||
request,
|
||||
serverURL);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Strong =
|
||||
new LazySingletonValue<>(
|
||||
"strong",
|
||||
"false",
|
||||
new TypeReference<Optional<Boolean>>() {});
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class GetServerResourcesRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> xPlexClientIdentifier;
|
||||
private Optional<String> clientID;
|
||||
|
||||
/**
|
||||
* Include Https entries in the results
|
||||
@@ -51,15 +51,15 @@ public class GetServerResourcesRequest {
|
||||
|
||||
@JsonCreator
|
||||
public GetServerResourcesRequest(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(includeHttps, "includeHttps");
|
||||
Utils.checkNotNull(includeRelay, "includeRelay");
|
||||
Utils.checkNotNull(includeIPv6, "includeIPv6");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
this.clientID = clientID;
|
||||
this.includeHttps = includeHttps;
|
||||
this.includeRelay = includeRelay;
|
||||
this.includeIPv6 = includeIPv6;
|
||||
@@ -76,8 +76,8 @@ public class GetServerResourcesRequest {
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> xPlexClientIdentifier() {
|
||||
return xPlexClientIdentifier;
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,9 +119,9 @@ public class GetServerResourcesRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetServerResourcesRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public GetServerResourcesRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -131,9 +131,9 @@ public class GetServerResourcesRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetServerResourcesRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ public class GetServerResourcesRequest {
|
||||
}
|
||||
GetServerResourcesRequest other = (GetServerResourcesRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.includeHttps, other.includeHttps) &&
|
||||
Objects.deepEquals(this.includeRelay, other.includeRelay) &&
|
||||
Objects.deepEquals(this.includeIPv6, other.includeIPv6);
|
||||
@@ -214,7 +214,7 @@ public class GetServerResourcesRequest {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
includeHttps,
|
||||
includeRelay,
|
||||
includeIPv6);
|
||||
@@ -223,7 +223,7 @@ public class GetServerResourcesRequest {
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetServerResourcesRequest.class,
|
||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
||||
"clientID", clientID,
|
||||
"includeHttps", includeHttps,
|
||||
"includeRelay", includeRelay,
|
||||
"includeIPv6", includeIPv6);
|
||||
@@ -231,7 +231,7 @@ public class GetServerResourcesRequest {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Optional<? extends IncludeHttps> includeHttps;
|
||||
|
||||
@@ -249,9 +249,9 @@ public class GetServerResourcesRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -261,9 +261,9 @@ public class GetServerResourcesRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ public class GetServerResourcesRequest {
|
||||
if (includeIPv6 == null) {
|
||||
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
||||
} return new GetServerResourcesRequest(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
includeHttps,
|
||||
includeRelay,
|
||||
includeIPv6);
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Optional;
|
||||
|
||||
public class GetServerResourcesRequestBuilder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private Optional<? extends IncludeHttps> includeHttps = Utils.readDefaultOrConstValue(
|
||||
"includeHttps",
|
||||
"0",
|
||||
@@ -32,15 +32,15 @@ public class GetServerResourcesRequestBuilder {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
||||
public GetServerResourcesRequestBuilder clientID(java.lang.String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.of(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public GetServerResourcesRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class GetServerResourcesRequestBuilder {
|
||||
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
||||
}
|
||||
return sdk.getServerResources(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
includeHttps,
|
||||
includeRelay,
|
||||
includeIPv6,
|
||||
|
||||
@@ -73,7 +73,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("authToken")
|
||||
private JsonNullable<? extends Object> authToken;
|
||||
private JsonNullable<String> authToken;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("newRegistration")
|
||||
@@ -91,7 +91,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
||||
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
||||
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
||||
@JsonProperty("authToken") JsonNullable<? extends Object> authToken,
|
||||
@JsonProperty("authToken") JsonNullable<String> authToken,
|
||||
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(code, "code");
|
||||
@@ -190,10 +190,9 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public JsonNullable<Object> authToken() {
|
||||
return (JsonNullable<Object>) authToken;
|
||||
public JsonNullable<String> authToken() {
|
||||
return authToken;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -290,13 +289,13 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenByPinIdAuthPinContainer withAuthToken(Object authToken) {
|
||||
public GetTokenByPinIdAuthPinContainer withAuthToken(String authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = JsonNullable.of(authToken);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenByPinIdAuthPinContainer withAuthToken(JsonNullable<? extends Object> authToken) {
|
||||
public GetTokenByPinIdAuthPinContainer withAuthToken(JsonNullable<String> authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = authToken;
|
||||
return this;
|
||||
@@ -394,7 +393,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
|
||||
private OffsetDateTime expiresAt;
|
||||
|
||||
private JsonNullable<? extends Object> authToken = JsonNullable.undefined();
|
||||
private JsonNullable<String> authToken = JsonNullable.undefined();
|
||||
|
||||
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
||||
|
||||
@@ -486,13 +485,13 @@ public class GetTokenByPinIdAuthPinContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder authToken(Object authToken) {
|
||||
public Builder authToken(String authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = JsonNullable.of(authToken);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder authToken(JsonNullable<? extends Object> authToken) {
|
||||
public Builder authToken(JsonNullable<String> authToken) {
|
||||
Utils.checkNotNull(authToken, "authToken");
|
||||
this.authToken = authToken;
|
||||
return this;
|
||||
|
||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -67,7 +66,7 @@ public class GetTokenByPinIdGeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonProperty("postal_code")
|
||||
private long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
/**
|
||||
* Indicates if the country has privacy restrictions.
|
||||
@@ -103,7 +102,7 @@ public class GetTokenByPinIdGeoData {
|
||||
@JsonProperty("city") String city,
|
||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||
@JsonProperty("time_zone") String timeZone,
|
||||
@JsonProperty("postal_code") long postalCode,
|
||||
@JsonProperty("postal_code") String postalCode,
|
||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||
@JsonProperty("subdivisions") String subdivisions,
|
||||
@@ -138,7 +137,7 @@ public class GetTokenByPinIdGeoData {
|
||||
String country,
|
||||
String city,
|
||||
String timeZone,
|
||||
long postalCode,
|
||||
String postalCode,
|
||||
String subdivisions,
|
||||
String coordinates) {
|
||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||
@@ -196,7 +195,7 @@ public class GetTokenByPinIdGeoData {
|
||||
* The postal code of the location.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long postalCode() {
|
||||
public String postalCode() {
|
||||
return postalCode;
|
||||
}
|
||||
|
||||
@@ -302,7 +301,7 @@ public class GetTokenByPinIdGeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public GetTokenByPinIdGeoData withPostalCode(long postalCode) {
|
||||
public GetTokenByPinIdGeoData withPostalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
@@ -431,7 +430,7 @@ public class GetTokenByPinIdGeoData {
|
||||
|
||||
private String timeZone;
|
||||
|
||||
private Long postalCode;
|
||||
private String postalCode;
|
||||
|
||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||
|
||||
@@ -511,7 +510,7 @@ public class GetTokenByPinIdGeoData {
|
||||
/**
|
||||
* The postal code of the location.
|
||||
*/
|
||||
public Builder postalCode(long postalCode) {
|
||||
public Builder postalCode(String postalCode) {
|
||||
Utils.checkNotNull(postalCode, "postalCode");
|
||||
this.postalCode = postalCode;
|
||||
return this;
|
||||
|
||||
@@ -25,7 +25,7 @@ public class GetTokenByPinIdRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> xPlexClientIdentifier;
|
||||
private Optional<String> clientID;
|
||||
|
||||
/**
|
||||
* The PinID to retrieve an access token for
|
||||
@@ -35,11 +35,11 @@ public class GetTokenByPinIdRequest {
|
||||
|
||||
@JsonCreator
|
||||
public GetTokenByPinIdRequest(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
long pinID) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(pinID, "pinID");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
this.clientID = clientID;
|
||||
this.pinID = pinID;
|
||||
}
|
||||
|
||||
@@ -55,8 +55,8 @@ public class GetTokenByPinIdRequest {
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> xPlexClientIdentifier() {
|
||||
return xPlexClientIdentifier;
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,9 +77,9 @@ public class GetTokenByPinIdRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetTokenByPinIdRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public GetTokenByPinIdRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -89,9 +89,9 @@ public class GetTokenByPinIdRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public GetTokenByPinIdRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public GetTokenByPinIdRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -114,27 +114,27 @@ public class GetTokenByPinIdRequest {
|
||||
}
|
||||
GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.pinID, other.pinID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
pinID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetTokenByPinIdRequest.class,
|
||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
||||
"clientID", clientID,
|
||||
"pinID", pinID);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Long pinID;
|
||||
|
||||
@@ -148,9 +148,9 @@ public class GetTokenByPinIdRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -160,9 +160,9 @@ public class GetTokenByPinIdRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ public class GetTokenByPinIdRequest {
|
||||
|
||||
public GetTokenByPinIdRequest build() {
|
||||
return new GetTokenByPinIdRequest(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
pinID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.Optional;
|
||||
|
||||
public class GetTokenByPinIdRequestBuilder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private Long pinID;
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk;
|
||||
@@ -20,15 +20,15 @@ public class GetTokenByPinIdRequestBuilder {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
||||
public GetTokenByPinIdRequestBuilder clientID(java.lang.String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.of(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public GetTokenByPinIdRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class GetTokenByPinIdRequestBuilder {
|
||||
public GetTokenByPinIdResponse call() throws Exception {
|
||||
|
||||
return sdk.getTokenByPinId(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
pinID,
|
||||
serverURL);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public class PostUsersSignInDataRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> xPlexClientIdentifier;
|
||||
private Optional<String> clientID;
|
||||
|
||||
/**
|
||||
* Login credentials
|
||||
@@ -35,11 +35,11 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
@JsonCreator
|
||||
public PostUsersSignInDataRequest(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
Utils.checkNotNull(requestBody, "requestBody");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
this.clientID = clientID;
|
||||
this.requestBody = requestBody;
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ public class PostUsersSignInDataRequest {
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> xPlexClientIdentifier() {
|
||||
return xPlexClientIdentifier;
|
||||
public Optional<String> clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,9 +77,9 @@ public class PostUsersSignInDataRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public PostUsersSignInDataRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public PostUsersSignInDataRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -89,9 +89,9 @@ public class PostUsersSignInDataRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public PostUsersSignInDataRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -123,27 +123,27 @@ public class PostUsersSignInDataRequest {
|
||||
}
|
||||
PostUsersSignInDataRequest other = (PostUsersSignInDataRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
||||
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||
Objects.deepEquals(this.requestBody, other.requestBody);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
requestBody);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(PostUsersSignInDataRequest.class,
|
||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
||||
"clientID", clientID,
|
||||
"requestBody", requestBody);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
|
||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
||||
|
||||
@@ -157,9 +157,9 @@ public class PostUsersSignInDataRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -169,9 +169,9 @@ public class PostUsersSignInDataRequest {
|
||||
* (UUID, serial number, or other number unique per device)
|
||||
*
|
||||
*/
|
||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
public PostUsersSignInDataRequest build() {
|
||||
return new PostUsersSignInDataRequest(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
requestBody);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.Optional;
|
||||
|
||||
public class PostUsersSignInDataRequestBuilder {
|
||||
|
||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallPostUsersSignInData sdk;
|
||||
@@ -19,15 +19,15 @@ public class PostUsersSignInDataRequestBuilder {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
||||
public PostUsersSignInDataRequestBuilder clientID(java.lang.String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.of(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
||||
public PostUsersSignInDataRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class PostUsersSignInDataRequestBuilder {
|
||||
public PostUsersSignInDataResponse call() throws Exception {
|
||||
|
||||
return sdk.postUsersSignInData(
|
||||
xPlexClientIdentifier,
|
||||
clientID,
|
||||
requestBody,
|
||||
serverURL);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
@@ -168,7 +167,7 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallGetServerResources {
|
||||
dev.plexapi.sdk.models.operations.GetServerResourcesResponse getServerResources(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
@@ -178,16 +177,14 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallGetPin {
|
||||
dev.plexapi.sdk.models.operations.GetPinResponse getPin(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> xPlexProduct,
|
||||
GetPinRequest request,
|
||||
Optional<String> serverURL) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
public interface MethodCallGetTokenByPinId {
|
||||
dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse getTokenByPinId(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
long pinID,
|
||||
Optional<String> serverURL) throws Exception;
|
||||
}
|
||||
@@ -415,7 +412,7 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallPostUsersSignInData {
|
||||
dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse postUsersSignInData(
|
||||
Optional<String> xPlexClientIdentifier,
|
||||
Optional<String> clientID,
|
||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
||||
Optional<String> serverURL) throws Exception;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user