ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2

This commit is contained in:
speakeasybot
2024-09-19 00:26:57 +00:00
parent ce09c0c9f6
commit f3780ae807
51 changed files with 1266 additions and 504 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 =

View File

@@ -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>>() {});
}

View File

@@ -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);

View File

@@ -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,

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);
}
}

View File

@@ -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);
}

View File

@@ -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);
}
}

View File

@@ -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);
}

View File

@@ -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;
}