[Java] Enhancements for HTTP message signature (#6090)

* Add code comments

* Change 'setup' method to setPrivateKey

* Add support for configuring digest algorithm

* run script in bin directory

* format generated code

* Revert "format generated code"

This reverts commit 3b527784375bcf86cacf75bd0142f63b91c96ff8.
This commit is contained in:
Sebastien Rosset 2020-05-02 08:31:45 -07:00 committed by GitHub
parent 03c3c64d23
commit 77d6c04b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
75 changed files with 4188 additions and 3609 deletions

View File

@ -19,42 +19,110 @@ import java.util.List;
import org.tomitribe.auth.signatures.*; import org.tomitribe.auth.signatures.*;
/**
* A Configuration object for the HTTP message signature security scheme.
*/
public class HttpSignatureAuth implements Authentication { public class HttpSignatureAuth implements Authentication {
private Signer signer; private Signer signer;
private String name; // An opaque string that the server can use to look up the component they need to validate the signature.
private String keyId;
// The HTTP signature algorithm.
private Algorithm algorithm; private Algorithm algorithm;
// The list of HTTP headers that should be included in the HTTP signature.
private List<String> headers; private List<String> headers;
public HttpSignatureAuth(String name, Algorithm algorithm, List<String> headers) { // The digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
this.name = name; private String digestAlgorithm;
/**
* Construct a new HTTP signature auth configuration object.
*
* @param keyId An opaque string that the server can use to look up the component they need to validate the signature.
* @param algorithm The signature algorithm.
* @param headers The list of HTTP headers that should be included in the HTTP signature.
*/
public HttpSignatureAuth(String keyId, Algorithm algorithm, List<String> headers) {
this.keyId = keyId;
this.algorithm = algorithm; this.algorithm = algorithm;
this.headers = headers; this.headers = headers;
this.digestAlgorithm = "SHA-256";
} }
public String getName() { /**
return name; * Returns the opaque string that the server can use to look up the component they need to validate the signature.
*
* @return The keyId.
*/
public String getKeyId() {
return keyId;
} }
public void setName(String name) { /**
this.name = name; * Set the HTTP signature key id.
*
* @param keyId An opaque string that the server can use to look up the component they need to validate the signature.
*/
public void setKeyId(String keyId) {
this.keyId = keyId;
} }
/**
* Returns the HTTP signature algorithm which is used to sign HTTP requests.
*/
public Algorithm getAlgorithm() { public Algorithm getAlgorithm() {
return algorithm; return algorithm;
} }
/**
* Sets the HTTP signature algorithm which is used to sign HTTP requests.
*
* @param algorithm The HTTP signature algorithm.
*/
public void setAlgorithm(Algorithm algorithm) { public void setAlgorithm(Algorithm algorithm) {
this.algorithm = algorithm; this.algorithm = algorithm;
} }
/**
* Returns the digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
*
* @see java.security.MessageDigest
*/
public String getDigestAlgorithm() {
return digestAlgorithm;
}
/**
* Sets the digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
*
* The exact list of supported digest algorithms depends on the installed security providers.
* Every implementation of the Java platform is required to support "MD5", "SHA-1" and "SHA-256".
* Do not use "MD5" and "SHA-1", they are vulnerable to multiple known attacks.
* By default, "SHA-256" is used.
*
* @param digestAlgorithm The digest algorithm.
*
* @see java.security.MessageDigest
*/
public void setDigestAlgorithm(String digestAlgorithm) {
this.digestAlgorithm = digestAlgorithm;
}
/**
* Returns the list of HTTP headers that should be included in the HTTP signature.
*/
public List<String> getHeaders() { public List<String> getHeaders() {
return headers; return headers;
} }
/**
* Sets the list of HTTP headers that should be included in the HTTP signature.
*
* @param headers The HTTP headers.
*/
public void setHeaders(List<String> headers) { public void setHeaders(List<String> headers) {
this.headers = headers; this.headers = headers;
} }
@ -67,12 +135,17 @@ public class HttpSignatureAuth implements Authentication {
this.signer = signer; this.signer = signer;
} }
public void setup(Key key) throws ApiException { /**
* Set the private key used to sign HTTP requests using the HTTP signature scheme.
*
* @param key The private key.
*/
public void setPrivateKey(Key key) throws ApiException {
if (key == null) { if (key == null) {
throw new ApiException("key (java.security.Key) cannot be null"); throw new ApiException("Private key (java.security.Key) cannot be null");
} }
signer = new Signer(key, new Signature(name, algorithm, null, headers)); signer = new Signer(key, new Signature(keyId, algorithm, null, headers));
} }
@Override @Override
@ -88,11 +161,13 @@ public class HttpSignatureAuth implements Authentication {
} }
if (headers.contains("digest")) { if (headers.contains("digest")) {
headerParams.put("digest", "SHA-256=" + new String(Base64.getEncoder().encode(MessageDigest.getInstance("SHA-256").digest(payload.getBytes())))); headerParams.put("digest",
this.digestAlgorithm + "=" +
new String(Base64.getEncoder().encode(MessageDigest.getInstance(this.digestAlgorithm).digest(payload.getBytes()))));
} }
if (signer == null) { if (signer == null) {
throw new ApiException("Signer cannot be null. Please run the method `setup` to set it up correctly"); throw new ApiException("Signer cannot be null. Please call the method `setPrivateKey` to set it up correctly");
} }
// construct the path with the URL query string // construct the path with the URL query string

View File

@ -1,26 +1,5 @@
package org.openapitools.client; package org.openapitools.client;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLEncoder;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.ws.rs.client.Client; import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity; import javax.ws.rs.client.Entity;
@ -31,97 +10,135 @@ import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status; import javax.ws.rs.core.Response.Status;
import org.glassfish.jersey.client.ClientConfig; import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties; import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.HttpUrlConnectorProvider; import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.jackson.JacksonFeature; import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.media.multipart.FormDataBodyPart; import org.glassfish.jersey.media.multipart.FormDataBodyPart;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.glassfish.jersey.media.multipart.MultiPart; import org.glassfish.jersey.media.multipart.MultiPart;
import org.glassfish.jersey.media.multipart.MultiPartFeature; import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.openapitools.client.auth.ApiKeyAuth;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import org.glassfish.jersey.logging.LoggingFeature;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Date;
import java.util.TimeZone;
import java.net.URLEncoder;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.openapitools.client.auth.Authentication; import org.openapitools.client.auth.Authentication;
import org.openapitools.client.auth.HttpBasicAuth; import org.openapitools.client.auth.HttpBasicAuth;
import org.openapitools.client.auth.HttpBearerAuth; import org.openapitools.client.auth.HttpBearerAuth;
import org.openapitools.client.auth.HttpSignatureAuth; import org.openapitools.client.auth.HttpSignatureAuth;
import org.openapitools.client.auth.OAuth; import org.openapitools.client.auth.ApiKeyAuth;
import org.openapitools.client.model.AbstractOpenApiSchema; import org.openapitools.client.model.AbstractOpenApiSchema;
import org.openapitools.client.auth.OAuth;
public class ApiClient { public class ApiClient {
protected Map<String, String> defaultHeaderMap = new HashMap<String, String>(); protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
protected Map<String, String> defaultCookieMap = new HashMap<String, String>(); protected Map<String, String> defaultCookieMap = new HashMap<String, String>();
protected String basePath = "http://petstore.swagger.io:80/v2"; protected String basePath = "http://petstore.swagger.io:80/v2";
protected List<ServerConfiguration> servers = protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>(Arrays.asList(
new ArrayList<ServerConfiguration>(
Arrays.asList(
new ServerConfiguration( new ServerConfiguration(
"http://{server}.swagger.io:{port}/v2", "http://{server}.swagger.io:{port}/v2",
"petstore server", "petstore server",
new HashMap<String, ServerVariable>() { new HashMap<String, ServerVariable>() {{
{ put("server", new ServerVariable(
put(
"server",
new ServerVariable(
"No description provided", "No description provided",
"petstore", "petstore",
new HashSet<String>( new HashSet<String>(
Arrays.asList("petstore", "qa-petstore", "dev-petstore")))); Arrays.asList(
put( "petstore",
"port", "qa-petstore",
new ServerVariable( "dev-petstore"
)
)
));
put("port", new ServerVariable(
"No description provided", "No description provided",
"80", "80",
new HashSet<String>(Arrays.asList("80", "8080")))); new HashSet<String>(
} Arrays.asList(
}), "80",
"8080"
)
)
));
}}
),
new ServerConfiguration( new ServerConfiguration(
"https://localhost:8080/{version}", "https://localhost:8080/{version}",
"The local server", "The local server",
new HashMap<String, ServerVariable>() { new HashMap<String, ServerVariable>() {{
{ put("version", new ServerVariable(
put(
"version",
new ServerVariable(
"No description provided", "No description provided",
"v2", "v2",
new HashSet<String>(Arrays.asList("v1", "v2")))); new HashSet<String>(
} Arrays.asList(
}))); "v1",
"v2"
)
)
));
}}
)
));
protected Integer serverIndex = 0; protected Integer serverIndex = 0;
protected Map<String, String> serverVariables = null; protected Map<String, String> serverVariables = null;
protected Map<String, List<ServerConfiguration>> operationServers = protected Map<String, List<ServerConfiguration>> operationServers = new HashMap<String, List<ServerConfiguration>>() {{
new HashMap<String, List<ServerConfiguration>>() { put("PetApi.addPet", new ArrayList<ServerConfiguration>(Arrays.asList(
{
put(
"PetApi.addPet",
new ArrayList<ServerConfiguration>(
Arrays.asList(
new ServerConfiguration( new ServerConfiguration(
"http://petstore.swagger.io/v2", "http://petstore.swagger.io/v2",
"No description provided", "No description provided",
new HashMap<String, ServerVariable>()), new HashMap<String, ServerVariable>()
),
new ServerConfiguration( new ServerConfiguration(
"http://path-server-test.petstore.local/v2", "http://path-server-test.petstore.local/v2",
"No description provided", "No description provided",
new HashMap<String, ServerVariable>())))); new HashMap<String, ServerVariable>()
put( )
"PetApi.updatePet", )));
new ArrayList<ServerConfiguration>( put("PetApi.updatePet", new ArrayList<ServerConfiguration>(Arrays.asList(
Arrays.asList(
new ServerConfiguration( new ServerConfiguration(
"http://petstore.swagger.io/v2", "http://petstore.swagger.io/v2",
"No description provided", "No description provided",
new HashMap<String, ServerVariable>()), new HashMap<String, ServerVariable>()
),
new ServerConfiguration( new ServerConfiguration(
"http://path-server-test.petstore.local/v2", "http://path-server-test.petstore.local/v2",
"No description provided", "No description provided",
new HashMap<String, ServerVariable>())))); new HashMap<String, ServerVariable>()
} )
}; )));
}};
protected Map<String, Integer> operationServerIndex = new HashMap<String, Integer>(); protected Map<String, Integer> operationServerIndex = new HashMap<String, Integer>();
protected Map<String, Map<String, String>> operationServerVariables = protected Map<String, Map<String, String>> operationServerVariables = new HashMap<String, Map<String, String>>();
new HashMap<String, Map<String, String>>();
protected boolean debugging = false; protected boolean debugging = false;
protected int connectionTimeout = 0; protected int connectionTimeout = 0;
private int readTimeout = 0; private int readTimeout = 0;
@ -150,8 +167,7 @@ public class ApiClient {
authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query")); authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
authentications.put("bearer_test", new HttpBearerAuth("bearer")); authentications.put("bearer_test", new HttpBearerAuth("bearer"));
authentications.put("http_basic_test", new HttpBasicAuth()); authentications.put("http_basic_test", new HttpBasicAuth());
authentications.put( authentications.put("http_signature_test", new HttpSignatureAuth("http_signature_test", null, null));
"http_signature_test", new HttpSignatureAuth("http_signature_test", null, null));
authentications.put("petstore_auth", new OAuth()); authentications.put("petstore_auth", new OAuth());
// Prevent the authentications from being modified. // Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications); authentications = Collections.unmodifiableMap(authentications);
@ -162,7 +178,6 @@ public class ApiClient {
/** /**
* Gets the JSON instance to do JSON serialization and deserialization. * Gets the JSON instance to do JSON serialization and deserialization.
*
* @return JSON * @return JSON
*/ */
public JSON getJSON() { public JSON getJSON() {
@ -216,7 +231,6 @@ public class ApiClient {
/** /**
* Get authentications (key: authentication name, value: authentication). * Get authentications (key: authentication name, value: authentication).
*
* @return Map of authentication object * @return Map of authentication object
*/ */
public Map<String, Authentication> getAuthentications() { public Map<String, Authentication> getAuthentications() {
@ -235,7 +249,6 @@ public class ApiClient {
/** /**
* Helper method to set username for the first HTTP basic authentication. * Helper method to set username for the first HTTP basic authentication.
*
* @param username Username * @param username Username
*/ */
public void setUsername(String username) { public void setUsername(String username) {
@ -250,7 +263,6 @@ public class ApiClient {
/** /**
* Helper method to set password for the first HTTP basic authentication. * Helper method to set password for the first HTTP basic authentication.
*
* @param password Password * @param password Password
*/ */
public void setPassword(String password) { public void setPassword(String password) {
@ -265,7 +277,6 @@ public class ApiClient {
/** /**
* Helper method to set API key value for the first API key authentication. * Helper method to set API key value for the first API key authentication.
*
* @param apiKey API key * @param apiKey API key
*/ */
public void setApiKey(String apiKey) { public void setApiKey(String apiKey) {
@ -299,7 +310,6 @@ public class ApiClient {
/** /**
* Helper method to set API key prefix for the first API key authentication. * Helper method to set API key prefix for the first API key authentication.
*
* @param apiKeyPrefix API key prefix * @param apiKeyPrefix API key prefix
*/ */
public void setApiKeyPrefix(String apiKeyPrefix) { public void setApiKeyPrefix(String apiKeyPrefix) {
@ -314,7 +324,6 @@ public class ApiClient {
/** /**
* Helper method to set bearer token for the first Bearer authentication. * Helper method to set bearer token for the first Bearer authentication.
*
* @param bearerToken Bearer token * @param bearerToken Bearer token
*/ */
public void setBearerToken(String bearerToken) { public void setBearerToken(String bearerToken) {
@ -329,7 +338,6 @@ public class ApiClient {
/** /**
* Helper method to set access token for the first OAuth2 authentication. * Helper method to set access token for the first OAuth2 authentication.
*
* @param accessToken Access token * @param accessToken Access token
*/ */
public void setAccessToken(String accessToken) { public void setAccessToken(String accessToken) {
@ -344,7 +352,6 @@ public class ApiClient {
/** /**
* Set the User-Agent header's value (by adding to the default header map). * Set the User-Agent header's value (by adding to the default header map).
*
* @param userAgent Http user agent * @param userAgent Http user agent
* @return API client * @return API client
*/ */
@ -379,7 +386,6 @@ public class ApiClient {
/** /**
* Check that whether debugging is enabled for this API client. * Check that whether debugging is enabled for this API client.
*
* @return True if debugging is switched on * @return True if debugging is switched on
*/ */
public boolean isDebugging() { public boolean isDebugging() {
@ -400,8 +406,9 @@ public class ApiClient {
} }
/** /**
* The path of temporary folder used to store downloaded files from endpoints with file response. * The path of temporary folder used to store downloaded files from endpoints
* The default value is <code>null</code>, i.e. using the system's default tempopary folder. * with file response. The default value is <code>null</code>, i.e. using
* the system's default tempopary folder.
* *
* @return Temp folder path * @return Temp folder path
*/ */
@ -411,7 +418,6 @@ public class ApiClient {
/** /**
* Set temp folder path * Set temp folder path
*
* @param tempFolderPath Temp folder path * @param tempFolderPath Temp folder path
* @return API client * @return API client
*/ */
@ -422,7 +428,6 @@ public class ApiClient {
/** /**
* Connect timeout (in milliseconds). * Connect timeout (in milliseconds).
*
* @return Connection timeout * @return Connection timeout
*/ */
public int getConnectTimeout() { public int getConnectTimeout() {
@ -430,9 +435,9 @@ public class ApiClient {
} }
/** /**
* Set the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values must * Set the connect timeout (in milliseconds).
* be between 1 and {@link Integer#MAX_VALUE}. * A value of 0 means no timeout, otherwise values must be between 1 and
* * {@link Integer#MAX_VALUE}.
* @param connectionTimeout Connection timeout in milliseconds * @param connectionTimeout Connection timeout in milliseconds
* @return API client * @return API client
*/ */
@ -444,7 +449,6 @@ public class ApiClient {
/** /**
* read timeout (in milliseconds). * read timeout (in milliseconds).
*
* @return Read timeout * @return Read timeout
*/ */
public int getReadTimeout() { public int getReadTimeout() {
@ -452,9 +456,9 @@ public class ApiClient {
} }
/** /**
* Set the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must be * Set the read timeout (in milliseconds).
* between 1 and {@link Integer#MAX_VALUE}. * A value of 0 means no timeout, otherwise values must be between 1 and
* * {@link Integer#MAX_VALUE}.
* @param readTimeout Read timeout in milliseconds * @param readTimeout Read timeout in milliseconds
* @return API client * @return API client
*/ */
@ -466,7 +470,6 @@ public class ApiClient {
/** /**
* Get the date format used to parse/format date parameters. * Get the date format used to parse/format date parameters.
*
* @return Date format * @return Date format
*/ */
public DateFormat getDateFormat() { public DateFormat getDateFormat() {
@ -475,7 +478,6 @@ public class ApiClient {
/** /**
* Set the date format used to parse/format date parameters. * Set the date format used to parse/format date parameters.
*
* @param dateFormat Date format * @param dateFormat Date format
* @return API client * @return API client
*/ */
@ -488,7 +490,6 @@ public class ApiClient {
/** /**
* Parse the given string into Date object. * Parse the given string into Date object.
*
* @param str String * @param str String
* @return Date * @return Date
*/ */
@ -502,7 +503,6 @@ public class ApiClient {
/** /**
* Format the given Date object into string. * Format the given Date object into string.
*
* @param date Date * @param date Date
* @return Date in string format * @return Date in string format
*/ */
@ -512,7 +512,6 @@ public class ApiClient {
/** /**
* Format the given parameter object into string. * Format the given parameter object into string.
*
* @param param Object * @param param Object
* @return Object in string format * @return Object in string format
*/ */
@ -523,8 +522,8 @@ public class ApiClient {
return formatDate((Date) param); return formatDate((Date) param);
} else if (param instanceof Collection) { } else if (param instanceof Collection) {
StringBuilder b = new StringBuilder(); StringBuilder b = new StringBuilder();
for (Object o : (Collection) param) { for(Object o : (Collection)param) {
if (b.length() > 0) { if(b.length() > 0) {
b.append(','); b.append(',');
} }
b.append(String.valueOf(o)); b.append(String.valueOf(o));
@ -542,7 +541,7 @@ public class ApiClient {
* @param value Value * @param value Value
* @return List of pairs * @return List of pairs
*/ */
public List<Pair> parameterToPairs(String collectionFormat, String name, Object value) { public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){
List<Pair> params = new ArrayList<Pair>(); List<Pair> params = new ArrayList<Pair>();
// preconditions // preconditions
@ -556,13 +555,12 @@ public class ApiClient {
return params; return params;
} }
if (valueCollection.isEmpty()) { if (valueCollection.isEmpty()){
return params; return params;
} }
// get the collection format (default: csv) // get the collection format (default: csv)
String format = String format = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat);
(collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat);
// create the params based on the collection format // create the params based on the collection format
if ("multi".equals(format)) { if ("multi".equals(format)) {
@ -585,7 +583,7 @@ public class ApiClient {
delimiter = "|"; delimiter = "|";
} }
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder() ;
for (Object item : valueCollection) { for (Object item : valueCollection) {
sb.append(delimiter); sb.append(delimiter);
sb.append(parameterToString(item)); sb.append(parameterToString(item));
@ -597,9 +595,13 @@ public class ApiClient {
} }
/** /**
* Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; * Check if the given MIME is a JSON MIME.
* charset=UTF8 APPLICATION/JSON application/vnd.company+json "* / *" is also default to JSON * JSON MIME examples:
* * application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* "* / *" is also default to JSON
* @param mime MIME * @param mime MIME
* @return True if the MIME type is JSON * @return True if the MIME type is JSON
*/ */
@ -609,12 +611,13 @@ public class ApiClient {
} }
/** /**
* Select the Accept header's value from the given accepts array: if JSON exists in the given * Select the Accept header's value from the given accepts array:
* array, use it; otherwise use all of them (joining into a string) * if JSON exists in the given array, use it;
* otherwise use all of them (joining into a string)
* *
* @param accepts The accepts array to select from * @param accepts The accepts array to select from
* @return The Accept header to use. If the given array is empty, null will be returned (not to * @return The Accept header to use. If the given array is empty,
* set the Accept header explicitly). * null will be returned (not to set the Accept header explicitly).
*/ */
public String selectHeaderAccept(String[] accepts) { public String selectHeaderAccept(String[] accepts) {
if (accepts.length == 0) { if (accepts.length == 0) {
@ -629,11 +632,13 @@ public class ApiClient {
} }
/** /**
* Select the Content-Type header's value from the given array: if JSON exists in the given array, * Select the Content-Type header's value from the given array:
* use it; otherwise use the first one of the array. * if JSON exists in the given array, use it;
* otherwise use the first one of the array.
* *
* @param contentTypes The Content-Type array to select from * @param contentTypes The Content-Type array to select from
* @return The Content-Type header to use. If the given array is empty, JSON will be used. * @return The Content-Type header to use. If the given array is empty,
* JSON will be used.
*/ */
public String selectHeaderContentType(String[] contentTypes) { public String selectHeaderContentType(String[] contentTypes) {
if (contentTypes.length == 0) { if (contentTypes.length == 0) {
@ -649,7 +654,6 @@ public class ApiClient {
/** /**
* Escape the given string to be used as URL query value. * Escape the given string to be used as URL query value.
*
* @param str String * @param str String
* @return Escaped string * @return Escaped string
*/ */
@ -662,41 +666,33 @@ public class ApiClient {
} }
/** /**
* Serialize the given Java object into string entity according the given Content-Type (only JSON * Serialize the given Java object into string entity according the given
* is supported for now). * Content-Type (only JSON is supported for now).
*
* @param obj Object * @param obj Object
* @param formParams Form parameters * @param formParams Form parameters
* @param contentType Context type * @param contentType Context type
* @return Entity * @return Entity
* @throws ApiException API exception * @throws ApiException API exception
*/ */
public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
throws ApiException {
Entity<?> entity; Entity<?> entity;
if (contentType.startsWith("multipart/form-data")) { if (contentType.startsWith("multipart/form-data")) {
MultiPart multiPart = new MultiPart(); MultiPart multiPart = new MultiPart();
for (Entry<String, Object> param : formParams.entrySet()) { for (Entry<String, Object> param: formParams.entrySet()) {
if (param.getValue() instanceof File) { if (param.getValue() instanceof File) {
File file = (File) param.getValue(); File file = (File) param.getValue();
FormDataContentDisposition contentDisp = FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey())
FormDataContentDisposition.name(param.getKey()) .fileName(file.getName()).size(file.length()).build();
.fileName(file.getName()) multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, MediaType.APPLICATION_OCTET_STREAM_TYPE));
.size(file.length())
.build();
multiPart.bodyPart(
new FormDataBodyPart(contentDisp, file, MediaType.APPLICATION_OCTET_STREAM_TYPE));
} else { } else {
FormDataContentDisposition contentDisp = FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build();
FormDataContentDisposition.name(param.getKey()).build(); multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue())));
multiPart.bodyPart(
new FormDataBodyPart(contentDisp, parameterToString(param.getValue())));
} }
} }
entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE); entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE);
} else if (contentType.startsWith("application/x-www-form-urlencoded")) { } else if (contentType.startsWith("application/x-www-form-urlencoded")) {
Form form = new Form(); Form form = new Form();
for (Entry<String, Object> param : formParams.entrySet()) { for (Entry<String, Object> param: formParams.entrySet()) {
form.param(param.getKey(), parameterToString(param.getValue())); form.param(param.getKey(), parameterToString(param.getValue()));
} }
entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE); entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
@ -708,29 +704,22 @@ public class ApiClient {
} }
/** /**
* Serialize the given Java object into string according the given Content-Type (only JSON, HTTP * Serialize the given Java object into string according the given
* form is supported for now). * Content-Type (only JSON, HTTP form is supported for now).
*
* @param obj Object * @param obj Object
* @param formParams Form parameters * @param formParams Form parameters
* @param contentType Context type * @param contentType Context type
* @return String * @return String
* @throws ApiException API exception * @throws ApiException API exception
*/ */
public String serializeToString(Object obj, Map<String, Object> formParams, String contentType) public String serializeToString(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
throws ApiException {
try { try {
if (contentType.startsWith("multipart/form-data")) { if (contentType.startsWith("multipart/form-data")) {
throw new ApiException( throw new ApiException("multipart/form-data not yet supported for serializeToString (http signature authentication)");
"multipart/form-data not yet supported for serializeToString (http signature authentication)");
} else if (contentType.startsWith("application/x-www-form-urlencoded")) { } else if (contentType.startsWith("application/x-www-form-urlencoded")) {
String formString = ""; String formString = "";
for (Entry<String, Object> param : formParams.entrySet()) { for (Entry<String, Object> param : formParams.entrySet()) {
formString = formString = param.getKey() + "=" + URLEncoder.encode(parameterToString(param.getValue()), "UTF-8") + "&";
param.getKey()
+ "="
+ URLEncoder.encode(parameterToString(param.getValue()), "UTF-8")
+ "&";
} }
if (formString.length() == 0) { // empty string if (formString.length() == 0) { // empty string
@ -746,8 +735,7 @@ public class ApiClient {
} }
} }
public AbstractOpenApiSchema deserializeSchemas(Response response, AbstractOpenApiSchema schema) public AbstractOpenApiSchema deserializeSchemas(Response response, AbstractOpenApiSchema schema) throws ApiException{
throws ApiException {
Object result = null; Object result = null;
int matchCounter = 0; int matchCounter = 0;
@ -769,44 +757,35 @@ public class ApiClient {
} else if ("oneOf".equals(schema.getSchemaType())) { } else if ("oneOf".equals(schema.getSchemaType())) {
matchSchemas.add(schemaName); matchSchemas.add(schemaName);
} else { } else {
throw new ApiException( throw new ApiException("Unknowe type found while expecting anyOf/oneOf:" + schema.getSchemaType());
"Unknowe type found while expecting anyOf/oneOf:" + schema.getSchemaType());
} }
} else { } else {
// failed to deserialize the response in the schema provided, proceed to the next one if // failed to deserialize the response in the schema provided, proceed to the next one if any
// any
} }
} catch (Exception ex) { } catch (Exception ex) {
// failed to deserialize, do nothing and try next one (schema) // failed to deserialize, do nothing and try next one (schema)
} }
} else { // unknown type } else {// unknown type
throw new ApiException( throw new ApiException(schemaType.getClass() + " is not a GenericType and cannot be handled properly in deserialization.");
schemaType.getClass()
+ " is not a GenericType and cannot be handled properly in deserialization.");
}
} }
if (matchCounter > 1 && "oneOf".equals(schema.getSchemaType())) { // more than 1 match for oneOf }
throw new ApiException(
"Response body is invalid as it matches more than one schema (" if (matchCounter > 1 && "oneOf".equals(schema.getSchemaType())) {// more than 1 match for oneOf
+ String.join(", ", matchSchemas) throw new ApiException("Response body is invalid as it matches more than one schema (" + String.join(", ", matchSchemas) + ") defined in the oneOf model: " + schema.getClass().getName());
+ ") defined in the oneOf model: "
+ schema.getClass().getName());
} else if (matchCounter == 0) { // fail to match any in oneOf/anyOf schemas } else if (matchCounter == 0) { // fail to match any in oneOf/anyOf schemas
throw new ApiException( throw new ApiException("Response body is invalid as it doens't match any schemas (" + String.join(", ", schema.getSchemas().keySet()) + ") defined in the oneOf/anyOf model: " + schema.getClass().getName());
"Response body is invalid as it doens't match any schemas ("
+ String.join(", ", schema.getSchemas().keySet())
+ ") defined in the oneOf/anyOf model: "
+ schema.getClass().getName());
} else { // only one matched } else { // only one matched
schema.setActualInstance(result); schema.setActualInstance(result);
return schema; return schema;
} }
} }
/** /**
* Deserialize response body to Java object according to the Content-Type. * Deserialize response body to Java object according to the Content-Type.
*
* @param <T> Type * @param <T> Type
* @param response Response * @param response Response
* @param returnType Return type * @param returnType Return type
@ -841,7 +820,6 @@ public class ApiClient {
/** /**
* Download file from the given response. * Download file from the given response.
*
* @param response Response * @param response Response
* @return File * @return File
* @throws ApiException If fail to read file content from response and write to disk * @throws ApiException If fail to read file content from response and write to disk
@ -849,10 +827,7 @@ public class ApiClient {
public File downloadFileFromResponse(Response response) throws ApiException { public File downloadFileFromResponse(Response response) throws ApiException {
try { try {
File file = prepareDownloadFile(response); File file = prepareDownloadFile(response);
Files.copy( Files.copy(response.readEntity(InputStream.class), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
response.readEntity(InputStream.class),
file.toPath(),
StandardCopyOption.REPLACE_EXISTING);
return file; return file;
} catch (IOException e) { } catch (IOException e) {
throw new ApiException(e); throw new ApiException(e);
@ -866,7 +841,8 @@ public class ApiClient {
// Get filename from the Content-Disposition header. // Get filename from the Content-Disposition header.
Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?");
Matcher matcher = pattern.matcher(contentDisposition); Matcher matcher = pattern.matcher(contentDisposition);
if (matcher.find()) filename = matcher.group(1); if (matcher.find())
filename = matcher.group(1);
} }
String prefix; String prefix;
@ -883,11 +859,14 @@ public class ApiClient {
suffix = filename.substring(pos); suffix = filename.substring(pos);
} }
// File.createTempFile requires the prefix to be at least three characters long // File.createTempFile requires the prefix to be at least three characters long
if (prefix.length() < 3) prefix = "download-"; if (prefix.length() < 3)
prefix = "download-";
} }
if (tempFolderPath == null) return File.createTempFile(prefix, suffix); if (tempFolderPath == null)
else return File.createTempFile(prefix, suffix, new File(tempFolderPath)); return File.createTempFile(prefix, suffix);
else
return File.createTempFile(prefix, suffix, new File(tempFolderPath));
} }
/** /**
@ -910,21 +889,7 @@ public class ApiClient {
* @return The response body in type of string * @return The response body in type of string
* @throws ApiException API exception * @throws ApiException API exception
*/ */
public <T> ApiResponse<T> invokeAPI( public <T> ApiResponse<T> invokeAPI(String operation, String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, GenericType<T> returnType, AbstractOpenApiSchema schema) throws ApiException {
String operation,
String path,
String method,
List<Pair> queryParams,
Object body,
Map<String, String> headerParams,
Map<String, String> cookieParams,
Map<String, Object> formParams,
String accept,
String contentType,
String[] authNames,
GenericType<T> returnType,
AbstractOpenApiSchema schema)
throws ApiException {
// Not using `.target(targetURL).path(path)` below, // Not using `.target(targetURL).path(path)` below,
// to support (constant) query string in `path`, e.g. "/posts?draft=1" // to support (constant) query string in `path`, e.g. "/posts?draft=1"
@ -944,10 +909,9 @@ public class ApiClient {
serverConfigurations = servers; serverConfigurations = servers;
} }
if (index < 0 || index >= serverConfigurations.size()) { if (index < 0 || index >= serverConfigurations.size()) {
throw new ArrayIndexOutOfBoundsException( throw new ArrayIndexOutOfBoundsException(String.format(
String.format( "Invalid index %d when selecting the host settings. Must be less than %d", index, serverConfigurations.size()
"Invalid index %d when selecting the host settings. Must be less than %d", ));
index, serverConfigurations.size()));
} }
targetURL = serverConfigurations.get(index).URL(variables) + path; targetURL = serverConfigurations.get(index).URL(variables) + path;
} else { } else {
@ -1004,14 +968,7 @@ public class ApiClient {
allHeaderParams.putAll(headerParams); allHeaderParams.putAll(headerParams);
// update different parameters (e.g. headers) for authentication // update different parameters (e.g. headers) for authentication
updateParamsForAuth( updateParamsForAuth(authNames, queryParams, allHeaderParams, cookieParams, serializeToString(body, formParams, contentType), method, target.getUri());
authNames,
queryParams,
allHeaderParams,
cookieParams,
serializeToString(body, formParams, contentType),
method,
target.getUri());
Response response = null; Response response = null;
@ -1042,12 +999,13 @@ public class ApiClient {
if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) { if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) {
return new ApiResponse<>(statusCode, responseHeaders); return new ApiResponse<>(statusCode, responseHeaders);
} else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) { } else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) {
if (returnType == null) return new ApiResponse<>(statusCode, responseHeaders); if (returnType == null)
else if (schema == null) { return new ApiResponse<>(statusCode, responseHeaders);
else
if (schema == null) {
return new ApiResponse<>(statusCode, responseHeaders, deserialize(response, returnType)); return new ApiResponse<>(statusCode, responseHeaders, deserialize(response, returnType));
} else { // oneOf/anyOf } else { // oneOf/anyOf
return new ApiResponse<>( return new ApiResponse<>(statusCode, responseHeaders, (T)deserializeSchemas(response, schema));
statusCode, responseHeaders, (T) deserializeSchemas(response, schema));
} }
} else { } else {
String message = "error"; String message = "error";
@ -1061,53 +1019,30 @@ public class ApiClient {
} }
} }
throw new ApiException( throw new ApiException(
response.getStatus(), message, buildResponseHeaders(response), respBody); response.getStatus(),
message,
buildResponseHeaders(response),
respBody);
} }
} finally { } finally {
try { try {
response.close(); response.close();
} catch (Exception e) { } catch (Exception e) {
// it's not critical, since the response object is local in method invokeAPI; that's fine, // it's not critical, since the response object is local in method invokeAPI; that's fine, just continue
// just continue
} }
} }
} }
/** @deprecated Add qualified name of the operation as a first parameter. */ /**
* @deprecated Add qualified name of the operation as a first parameter.
*/
@Deprecated @Deprecated
public <T> ApiResponse<T> invokeAPI( public <T> ApiResponse<T> invokeAPI(String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, GenericType<T> returnType, AbstractOpenApiSchema schema) throws ApiException {
String path, return invokeAPI(null, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, schema);
String method,
List<Pair> queryParams,
Object body,
Map<String, String> headerParams,
Map<String, String> cookieParams,
Map<String, Object> formParams,
String accept,
String contentType,
String[] authNames,
GenericType<T> returnType,
AbstractOpenApiSchema schema)
throws ApiException {
return invokeAPI(
null,
path,
method,
queryParams,
body,
headerParams,
cookieParams,
formParams,
accept,
contentType,
authNames,
returnType,
schema);
} }
/** /**
* Build the Client used to make HTTP requests. * Build the Client used to make HTTP requests.
*
* @param debugging Debug setting * @param debugging Debug setting
* @return Client * @return Client
*/ */
@ -1120,21 +1055,13 @@ public class ApiClient {
// turn off compliance validation to be able to send payloads with DELETE calls // turn off compliance validation to be able to send payloads with DELETE calls
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
if (debugging) { if (debugging) {
clientConfig.register( clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
new LoggingFeature( clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME),
java.util.logging.Level.INFO,
LoggingFeature.Verbosity.PAYLOAD_ANY,
1024 * 50 /* Log payloads up to 50K */));
clientConfig.property(
LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
// Set logger to ALL // Set logger to ALL
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME) java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
.setLevel(java.util.logging.Level.ALL);
} else { } else {
// suppress warnings for payloads with DELETE calls: // suppress warnings for payloads with DELETE calls:
java.util.logging.Logger.getLogger("org.glassfish.jersey.client") java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
.setLevel(java.util.logging.Level.SEVERE);
} }
performAdditionalClientConfiguration(clientConfig); performAdditionalClientConfiguration(clientConfig);
return ClientBuilder.newClient(clientConfig); return ClientBuilder.newClient(clientConfig);
@ -1146,7 +1073,7 @@ public class ApiClient {
protected Map<String, List<String>> buildResponseHeaders(Response response) { protected Map<String, List<String>> buildResponseHeaders(Response response) {
Map<String, List<String>> responseHeaders = new HashMap<String, List<String>>(); Map<String, List<String>> responseHeaders = new HashMap<String, List<String>>();
for (Entry<String, List<Object>> entry : response.getHeaders().entrySet()) { for (Entry<String, List<Object>> entry: response.getHeaders().entrySet()) {
List<Object> values = entry.getValue(); List<Object> values = entry.getValue();
List<String> headers = new ArrayList<String>(); List<String> headers = new ArrayList<String>();
for (Object o : values) { for (Object o : values) {
@ -1167,15 +1094,8 @@ public class ApiClient {
* @param method HTTP method (e.g. POST) * @param method HTTP method (e.g. POST)
* @param uri HTTP URI * @param uri HTTP URI
*/ */
protected void updateParamsForAuth( protected void updateParamsForAuth(String[] authNames, List<Pair> queryParams, Map<String, String> headerParams,
String[] authNames, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
List<Pair> queryParams,
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
for (String authName : authNames) { for (String authName : authNames) {
Authentication auth = authentications.get(authName); Authentication auth = authentications.get(authName);
if (auth == null) { if (auth == null) {

View File

@ -10,12 +10,16 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client; package org.openapitools.client;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.List;
/**
* API Exception
*/
/** API Exception */
public class ApiException extends Exception { public class ApiException extends Exception {
private int code = 0; private int code = 0;
private Map<String, List<String>> responseHeaders = null; private Map<String, List<String>> responseHeaders = null;
@ -31,25 +35,18 @@ public class ApiException extends Exception {
super(message); super(message);
} }
public ApiException( public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) {
String message,
Throwable throwable,
int code,
Map<String, List<String>> responseHeaders,
String responseBody) {
super(message, throwable); super(message, throwable);
this.code = code; this.code = code;
this.responseHeaders = responseHeaders; this.responseHeaders = responseHeaders;
this.responseBody = responseBody; this.responseBody = responseBody;
} }
public ApiException( public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) {
String message, int code, Map<String, List<String>> responseHeaders, String responseBody) {
this(message, (Throwable) null, code, responseHeaders, responseBody); this(message, (Throwable) null, code, responseHeaders, responseBody);
} }
public ApiException( public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) {
String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) {
this(message, throwable, code, responseHeaders, null); this(message, throwable, code, responseHeaders, null);
} }
@ -62,8 +59,7 @@ public class ApiException extends Exception {
this.code = code; this.code = code;
} }
public ApiException( public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) {
int code, String message, Map<String, List<String>> responseHeaders, String responseBody) {
this(code, message); this(code, message);
this.responseHeaders = responseHeaders; this.responseHeaders = responseHeaders;
this.responseBody = responseBody; this.responseBody = responseBody;

View File

@ -10,6 +10,7 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client; package org.openapitools.client;
import java.util.List; import java.util.List;

View File

@ -10,14 +10,16 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client; package org.openapitools.client;
public class Configuration { public class Configuration {
private static ApiClient defaultApiClient = new ApiClient(); private static ApiClient defaultApiClient = new ApiClient();
/** /**
* Get the default API client, which would be used when creating API instances without providing * Get the default API client, which would be used when creating API
* an API client. * instances without providing an API client.
* *
* @return Default API client * @return Default API client
*/ */
@ -26,8 +28,8 @@ public class Configuration {
} }
/** /**
* Set the default API client, which would be used when creating API instances without providing * Set the default API client, which would be used when creating API
* an API client. * instances without providing an API client.
* *
* @param apiClient API client * @param apiClient API client
*/ */

View File

@ -9,8 +9,6 @@ import com.fasterxml.jackson.datatype.threetenbp.DecimalUtils;
import com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase; import com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase;
import com.fasterxml.jackson.datatype.threetenbp.function.BiFunction; import com.fasterxml.jackson.datatype.threetenbp.function.BiFunction;
import com.fasterxml.jackson.datatype.threetenbp.function.Function; import com.fasterxml.jackson.datatype.threetenbp.function.Function;
import java.io.IOException;
import java.math.BigDecimal;
import org.threeten.bp.DateTimeException; import org.threeten.bp.DateTimeException;
import org.threeten.bp.DateTimeUtils; import org.threeten.bp.DateTimeUtils;
import org.threeten.bp.Instant; import org.threeten.bp.Instant;
@ -21,10 +19,12 @@ import org.threeten.bp.format.DateTimeFormatter;
import org.threeten.bp.temporal.Temporal; import org.threeten.bp.temporal.Temporal;
import org.threeten.bp.temporal.TemporalAccessor; import org.threeten.bp.temporal.TemporalAccessor;
import java.io.IOException;
import java.math.BigDecimal;
/** /**
* Deserializer for ThreeTen temporal {@link Instant}s, {@link OffsetDateTime}, and {@link * Deserializer for ThreeTen temporal {@link Instant}s, {@link OffsetDateTime}, and {@link ZonedDateTime}s.
* ZonedDateTime}s. Adapted from the jackson threetenbp InstantDeserializer to add support for * Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.
* deserializing rfc822 format.
* *
* @author Nick Williams * @author Nick Williams
*/ */
@ -32,10 +32,8 @@ public class CustomInstantDeserializer<T extends Temporal>
extends ThreeTenDateTimeDeserializerBase<T> { extends ThreeTenDateTimeDeserializerBase<T> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static final CustomInstantDeserializer<Instant> INSTANT = public static final CustomInstantDeserializer<Instant> INSTANT = new CustomInstantDeserializer<Instant>(
new CustomInstantDeserializer<Instant>( Instant.class, DateTimeFormatter.ISO_INSTANT,
Instant.class,
DateTimeFormatter.ISO_INSTANT,
new Function<TemporalAccessor, Instant>() { new Function<TemporalAccessor, Instant>() {
@Override @Override
public Instant apply(TemporalAccessor temporalAccessor) { public Instant apply(TemporalAccessor temporalAccessor) {
@ -54,12 +52,11 @@ public class CustomInstantDeserializer<T extends Temporal>
return Instant.ofEpochSecond(a.integer, a.fraction); return Instant.ofEpochSecond(a.integer, a.fraction);
} }
}, },
null); null
);
public static final CustomInstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME = public static final CustomInstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME = new CustomInstantDeserializer<OffsetDateTime>(
new CustomInstantDeserializer<OffsetDateTime>( OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME,
OffsetDateTime.class,
DateTimeFormatter.ISO_OFFSET_DATE_TIME,
new Function<TemporalAccessor, OffsetDateTime>() { new Function<TemporalAccessor, OffsetDateTime>() {
@Override @Override
public OffsetDateTime apply(TemporalAccessor temporalAccessor) { public OffsetDateTime apply(TemporalAccessor temporalAccessor) {
@ -75,8 +72,7 @@ public class CustomInstantDeserializer<T extends Temporal>
new Function<FromDecimalArguments, OffsetDateTime>() { new Function<FromDecimalArguments, OffsetDateTime>() {
@Override @Override
public OffsetDateTime apply(FromDecimalArguments a) { public OffsetDateTime apply(FromDecimalArguments a) {
return OffsetDateTime.ofInstant( return OffsetDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
} }
}, },
new BiFunction<OffsetDateTime, ZoneId, OffsetDateTime>() { new BiFunction<OffsetDateTime, ZoneId, OffsetDateTime>() {
@ -84,12 +80,11 @@ public class CustomInstantDeserializer<T extends Temporal>
public OffsetDateTime apply(OffsetDateTime d, ZoneId z) { public OffsetDateTime apply(OffsetDateTime d, ZoneId z) {
return d.withOffsetSameInstant(z.getRules().getOffset(d.toLocalDateTime())); return d.withOffsetSameInstant(z.getRules().getOffset(d.toLocalDateTime()));
} }
}); }
);
public static final CustomInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME = public static final CustomInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME = new CustomInstantDeserializer<ZonedDateTime>(
new CustomInstantDeserializer<ZonedDateTime>( ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME,
ZonedDateTime.class,
DateTimeFormatter.ISO_ZONED_DATE_TIME,
new Function<TemporalAccessor, ZonedDateTime>() { new Function<TemporalAccessor, ZonedDateTime>() {
@Override @Override
public ZonedDateTime apply(TemporalAccessor temporalAccessor) { public ZonedDateTime apply(TemporalAccessor temporalAccessor) {
@ -105,8 +100,7 @@ public class CustomInstantDeserializer<T extends Temporal>
new Function<FromDecimalArguments, ZonedDateTime>() { new Function<FromDecimalArguments, ZonedDateTime>() {
@Override @Override
public ZonedDateTime apply(FromDecimalArguments a) { public ZonedDateTime apply(FromDecimalArguments a) {
return ZonedDateTime.ofInstant( return ZonedDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
} }
}, },
new BiFunction<ZonedDateTime, ZoneId, ZonedDateTime>() { new BiFunction<ZonedDateTime, ZoneId, ZonedDateTime>() {
@ -114,7 +108,8 @@ public class CustomInstantDeserializer<T extends Temporal>
public ZonedDateTime apply(ZonedDateTime zonedDateTime, ZoneId zoneId) { public ZonedDateTime apply(ZonedDateTime zonedDateTime, ZoneId zoneId) {
return zonedDateTime.withZoneSameInstant(zoneId); return zonedDateTime.withZoneSameInstant(zoneId);
} }
}); }
);
protected final Function<FromIntegerArguments, T> fromMilliseconds; protected final Function<FromIntegerArguments, T> fromMilliseconds;
@ -124,8 +119,7 @@ public class CustomInstantDeserializer<T extends Temporal>
protected final BiFunction<T, ZoneId, T> adjust; protected final BiFunction<T, ZoneId, T> adjust;
protected CustomInstantDeserializer( protected CustomInstantDeserializer(Class<T> supportedType,
Class<T> supportedType,
DateTimeFormatter parser, DateTimeFormatter parser,
Function<TemporalAccessor, T> parsedToValue, Function<TemporalAccessor, T> parsedToValue,
Function<FromIntegerArguments, T> fromMilliseconds, Function<FromIntegerArguments, T> fromMilliseconds,
@ -135,15 +129,12 @@ public class CustomInstantDeserializer<T extends Temporal>
this.parsedToValue = parsedToValue; this.parsedToValue = parsedToValue;
this.fromMilliseconds = fromMilliseconds; this.fromMilliseconds = fromMilliseconds;
this.fromNanoseconds = fromNanoseconds; this.fromNanoseconds = fromNanoseconds;
this.adjust = this.adjust = adjust == null ? new BiFunction<T, ZoneId, T>() {
adjust == null
? new BiFunction<T, ZoneId, T>() {
@Override @Override
public T apply(T t, ZoneId zoneId) { public T apply(T t, ZoneId zoneId) {
return t; return t;
} }
} } : adjust;
: adjust;
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -165,31 +156,30 @@ public class CustomInstantDeserializer<T extends Temporal>
@Override @Override
public T deserialize(JsonParser parser, DeserializationContext context) throws IOException { public T deserialize(JsonParser parser, DeserializationContext context) throws IOException {
// NOTE: Timestamps contain no timezone info, and are always in configured TZ. Only //NOTE: Timestamps contain no timezone info, and are always in configured TZ. Only
// string values have to be adjusted to the configured TZ. //string values have to be adjusted to the configured TZ.
switch (parser.getCurrentTokenId()) { switch (parser.getCurrentTokenId()) {
case JsonTokenId.ID_NUMBER_FLOAT: case JsonTokenId.ID_NUMBER_FLOAT: {
{
BigDecimal value = parser.getDecimalValue(); BigDecimal value = parser.getDecimalValue();
long seconds = value.longValue(); long seconds = value.longValue();
int nanoseconds = DecimalUtils.extractNanosecondDecimal(value, seconds); int nanoseconds = DecimalUtils.extractNanosecondDecimal(value, seconds);
return fromNanoseconds.apply( return fromNanoseconds.apply(new FromDecimalArguments(
new FromDecimalArguments(seconds, nanoseconds, getZone(context))); seconds, nanoseconds, getZone(context)));
} }
case JsonTokenId.ID_NUMBER_INT: case JsonTokenId.ID_NUMBER_INT: {
{
long timestamp = parser.getLongValue(); long timestamp = parser.getLongValue();
if (context.isEnabled(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS)) { if (context.isEnabled(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS)) {
return this.fromNanoseconds.apply( return this.fromNanoseconds.apply(new FromDecimalArguments(
new FromDecimalArguments(timestamp, 0, this.getZone(context))); timestamp, 0, this.getZone(context)
));
} }
return this.fromMilliseconds.apply( return this.fromMilliseconds.apply(new FromIntegerArguments(
new FromIntegerArguments(timestamp, this.getZone(context))); timestamp, this.getZone(context)
));
} }
case JsonTokenId.ID_STRING: case JsonTokenId.ID_STRING: {
{
String string = parser.getText().trim(); String string = parser.getText().trim();
if (string.length() == 0) { if (string.length() == 0) {
return null; return null;

View File

@ -1,12 +1,15 @@
package org.openapitools.client; package org.openapitools.client;
import org.threeten.bp.*;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import java.text.DateFormat;
import javax.ws.rs.ext.ContextResolver;
import org.openapitools.jackson.nullable.JsonNullableModule; import org.openapitools.jackson.nullable.JsonNullableModule;
import org.threeten.bp.*; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import java.text.DateFormat;
import javax.ws.rs.ext.ContextResolver;
public class JSON implements ContextResolver<ObjectMapper> { public class JSON implements ContextResolver<ObjectMapper> {
private ObjectMapper mapper; private ObjectMapper mapper;
@ -31,7 +34,6 @@ public class JSON implements ContextResolver<ObjectMapper> {
/** /**
* Set the date format for JSON (de)serialization with Date properties. * Set the date format for JSON (de)serialization with Date properties.
*
* @param dateFormat Date format * @param dateFormat Date format
*/ */
public void setDateFormat(DateFormat dateFormat) { public void setDateFormat(DateFormat dateFormat) {
@ -48,7 +50,5 @@ public class JSON implements ContextResolver<ObjectMapper> {
* *
* @return object mapper * @return object mapper
*/ */
public ObjectMapper getMapper() { public ObjectMapper getMapper() { return mapper; }
return mapper;
}
} }

View File

@ -10,13 +10,15 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client; package org.openapitools.client;
public class Pair { public class Pair {
private String name = ""; private String name = "";
private String value = ""; private String value = "";
public Pair(String name, String value) { public Pair (String name, String value) {
setName(name); setName(name);
setValue(value); setValue(value);
} }

View File

@ -14,9 +14,11 @@ package org.openapitools.client;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat; import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.databind.util.ISO8601Utils; import com.fasterxml.jackson.databind.util.ISO8601Utils;
import java.text.FieldPosition; import java.text.FieldPosition;
import java.util.Date; import java.util.Date;
public class RFC3339DateFormat extends ISO8601DateFormat { public class RFC3339DateFormat extends ISO8601DateFormat {
// Same as ISO8601DateFormat but serializing milliseconds. // Same as ISO8601DateFormat but serializing milliseconds.
@ -26,4 +28,5 @@ public class RFC3339DateFormat extends ISO8601DateFormat {
toAppendTo.append(value); toAppendTo.append(value);
return toAppendTo; return toAppendTo;
} }
} }

View File

@ -2,7 +2,9 @@ package org.openapitools.client;
import java.util.Map; import java.util.Map;
/** Representing a Server configuration. */ /**
* Representing a Server configuration.
*/
public class ServerConfiguration { public class ServerConfiguration {
public String URL; public String URL;
public String description; public String description;
@ -11,11 +13,9 @@ public class ServerConfiguration {
/** /**
* @param URL A URL to the target host. * @param URL A URL to the target host.
* @param description A describtion of the host designated by the URL. * @param description A describtion of the host designated by the URL.
* @param variables A map between a variable name and its value. The value is used for * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
* substitution in the server's URL template.
*/ */
public ServerConfiguration( public ServerConfiguration(String URL, String description, Map<String, ServerVariable> variables) {
String URL, String description, Map<String, ServerVariable> variables) {
this.URL = URL; this.URL = URL;
this.description = description; this.description = description;
this.variables = variables; this.variables = variables;
@ -31,7 +31,7 @@ public class ServerConfiguration {
String url = this.URL; String url = this.URL;
// go through variables and replace placeholders // go through variables and replace placeholders
for (Map.Entry<String, ServerVariable> variable : this.variables.entrySet()) { for (Map.Entry<String, ServerVariable> variable: this.variables.entrySet()) {
String name = variable.getKey(); String name = variable.getKey();
ServerVariable serverVariable = variable.getValue(); ServerVariable serverVariable = variable.getValue();
String value = serverVariable.defaultValue; String value = serverVariable.defaultValue;
@ -39,8 +39,7 @@ public class ServerConfiguration {
if (variables != null && variables.containsKey(name)) { if (variables != null && variables.containsKey(name)) {
value = variables.get(name); value = variables.get(name);
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
throw new RuntimeException( throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
"The variable " + name + " in the server URL has invalid value " + value + ".");
} }
} }
url = url.replaceAll("\\{" + name + "\\}", value); url = url.replaceAll("\\{" + name + "\\}", value);

View File

@ -2,7 +2,9 @@ package org.openapitools.client;
import java.util.HashSet; import java.util.HashSet;
/** Representing a Server Variable for server URL template substitution. */ /**
* Representing a Server Variable for server URL template substitution.
*/
public class ServerVariable { public class ServerVariable {
public String description; public String description;
public String defaultValue; public String defaultValue;
@ -11,8 +13,7 @@ public class ServerVariable {
/** /**
* @param description A description for the server variable. * @param description A description for the server variable.
* @param defaultValue The default value to use for substitution. * @param defaultValue The default value to use for substitution.
* @param enumValues An enumeration of string values to be used if the substitution options are * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
* from a limited set.
*/ */
public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) { public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) {
this.description = description; this.description = description;

View File

@ -10,8 +10,10 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client; package org.openapitools.client;
public class StringUtil { public class StringUtil {
/** /**
* Check if the given array contains the given value (with case-insensitive comparison). * Check if the given array contains the given value (with case-insensitive comparison).
@ -34,9 +36,10 @@ public class StringUtil {
/** /**
* Join an array of strings with the given separator. * Join an array of strings with the given separator.
* * <p>
* <p>Note: This might be replaced by utility method from commons-lang or guava someday if one of * Note: This might be replaced by utility method from commons-lang or guava someday
* those libraries is added as dependency. * if one of those libraries is added as dependency.
* </p>
* *
* @param array The array of strings * @param array The array of strings
* @param separator The separator * @param separator The separator

View File

@ -1,16 +1,20 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.model.Client;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.Client;
public class AnotherFakeApi { public class AnotherFakeApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -42,40 +46,39 @@ public class AnotherFakeApi {
} }
/** /**
* To test special tags To test special tags and operation ID starting with number * To test special tags
* * To test special tags and operation ID starting with number
* @param client client model (required) * @param client client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public Client call123testSpecialTags(Client client) throws ApiException { public Client call123testSpecialTags(Client client) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData(); return call123testSpecialTagsWithHttpInfo(client).getData();
} }
/** /**
* To test special tags To test special tags and operation ID starting with number * To test special tags
* * To test special tags and operation ID starting with number
* @param client client model (required) * @param client client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = client;
// verify the required parameter 'client' is set // verify the required parameter 'client' is set
if (client == null) { if (client == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
400, "Missing the required parameter 'client' when calling call123testSpecialTags");
} }
// create path and map variables // create path and map variables
@ -87,29 +90,26 @@ public class AnotherFakeApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/json"};
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<Client> localVarReturnType = new GenericType<Client>() {}; GenericType<Client> localVarReturnType = new GenericType<Client>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("AnotherFakeApi.call123testSpecialTags", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
"AnotherFakeApi.call123testSpecialTags", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"PATCH",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
} }

View File

@ -1,16 +1,20 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.model.InlineResponseDefault;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.InlineResponseDefault;
public class DefaultApi { public class DefaultApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -42,26 +46,30 @@ public class DefaultApi {
} }
/** /**
*
*
* @return InlineResponseDefault * @return InlineResponseDefault
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> response </td><td> - </td></tr> <tr><td> 0 </td><td> response </td><td> - </td></tr>
* </table> </table>
*/ */
public InlineResponseDefault fooGet() throws ApiException { public InlineResponseDefault fooGet() throws ApiException {
return fooGetWithHttpInfo().getData(); return fooGetWithHttpInfo().getData();
} }
/** /**
*
*
* @return ApiResponse&lt;InlineResponseDefault&gt; * @return ApiResponse&lt;InlineResponseDefault&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> response </td><td> - </td></tr> <tr><td> 0 </td><td> response </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<InlineResponseDefault> fooGetWithHttpInfo() throws ApiException { public ApiResponse<InlineResponseDefault> fooGetWithHttpInfo() throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
@ -75,31 +83,26 @@ public class DefaultApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/json"};
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<InlineResponseDefault> localVarReturnType = GenericType<InlineResponseDefault> localVarReturnType = new GenericType<InlineResponseDefault>() {};
new GenericType<InlineResponseDefault>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("DefaultApi.fooGet", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"DefaultApi.fooGet", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
} }

View File

@ -1,16 +1,20 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.model.Client;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.Client;
public class FakeClassnameTags123Api { public class FakeClassnameTags123Api {
private ApiClient apiClient; private ApiClient apiClient;
@ -42,40 +46,39 @@ public class FakeClassnameTags123Api {
} }
/** /**
* To test class name in snake case To test class name in snake case * To test class name in snake case
* * To test class name in snake case
* @param client client model (required) * @param client client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public Client testClassname(Client client) throws ApiException { public Client testClassname(Client client) throws ApiException {
return testClassnameWithHttpInfo(client).getData(); return testClassnameWithHttpInfo(client).getData();
} }
/** /**
* To test class name in snake case To test class name in snake case * To test class name in snake case
* * To test class name in snake case
* @param client client model (required) * @param client client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = client;
// verify the required parameter 'client' is set // verify the required parameter 'client' is set
if (client == null) { if (client == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
400, "Missing the required parameter 'client' when calling testClassname");
} }
// create path and map variables // create path and map variables
@ -87,29 +90,26 @@ public class FakeClassnameTags123Api {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/json"};
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"api_key_query"}; String[] localVarAuthNames = new String[] { "api_key_query" };
GenericType<Client> localVarReturnType = new GenericType<Client>() {}; GenericType<Client> localVarReturnType = new GenericType<Client>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("FakeClassnameTags123Api.testClassname", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
"FakeClassnameTags123Api.testClassname", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"PATCH",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
} }

View File

@ -1,18 +1,22 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import java.io.File; import java.io.File;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
public class PetApi { public class PetApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -49,10 +53,10 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store (required) * @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr> <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
* </table> </table>
*/ */
public void addPet(Pet pet) throws ApiException { public void addPet(Pet pet) throws ApiException {
addPetWithHttpInfo(pet); addPetWithHttpInfo(pet);
@ -65,10 +69,10 @@ public class PetApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr> <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = pet;
@ -87,29 +91,25 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json", "application/xml"}; final String[] localVarContentTypes = {
"application/json", "application/xml"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.addPet", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"PetApi.addPet", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Deletes a pet * Deletes a pet
@ -118,10 +118,10 @@ public class PetApi {
* @param apiKey (optional) * @param apiKey (optional)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
* </table> </table>
*/ */
public void deletePet(Long petId, String apiKey) throws ApiException { public void deletePet(Long petId, String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey); deletePetWithHttpInfo(petId, apiKey);
@ -135,10 +135,10 @@ public class PetApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
@ -149,8 +149,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/pet/{petId}"
"/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -159,71 +158,64 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
if (apiKey != null) localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
final String[] localVarAccepts = {}; if (apiKey != null)
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.deletePet", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
"PetApi.deletePet", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"DELETE",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Finds Pets by status Multiple status values can be provided with comma separated strings * Finds Pets by status
* * Multiple status values can be provided with comma separated strings
* @param status Status values that need to be considered for filter (required) * @param status Status values that need to be considered for filter (required)
* @return List&lt;Pet&gt; * @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
* </table> </table>
*/ */
public List<Pet> findPetsByStatus(List<String> status) throws ApiException { public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
return findPetsByStatusWithHttpInfo(status).getData(); return findPetsByStatusWithHttpInfo(status).getData();
} }
/** /**
* Finds Pets by status Multiple status values can be provided with comma separated strings * Finds Pets by status
* * Multiple status values can be provided with comma separated strings
* @param status Status values that need to be considered for filter (required) * @param status Status values that need to be considered for filter (required)
* @return ApiResponse&lt;List&lt;Pet&gt;&gt; * @return ApiResponse&lt;List&lt;Pet&gt;&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'status' is set // verify the required parameter 'status' is set
if (status == null) { if (status == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
400, "Missing the required parameter 'status' when calling findPetsByStatus");
} }
// create path and map variables // create path and map variables
@ -237,46 +229,39 @@ public class PetApi {
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {}; GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.findPetsByStatus", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"PetApi.findPetsByStatus", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, * Finds Pets by tags
* tag3 for testing. * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
* @param tags Tags to filter by (required) * @param tags Tags to filter by (required)
* @return List&lt;Pet&gt; * @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
* </table> </table>
*
* @deprecated * @deprecated
*/ */
@Deprecated @Deprecated
@ -285,19 +270,17 @@ public class PetApi {
} }
/** /**
* Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, * Finds Pets by tags
* tag3 for testing. * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
* @param tags Tags to filter by (required) * @param tags Tags to filter by (required)
* @return ApiResponse&lt;List&lt;Pet&gt;&gt; * @return ApiResponse&lt;List&lt;Pet&gt;&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid tag value </td><td> - </td></tr>
* </table> </table>
*
* @deprecated * @deprecated
*/ */
@Deprecated @Deprecated
@ -306,8 +289,7 @@ public class PetApi {
// verify the required parameter 'tags' is set // verify the required parameter 'tags' is set
if (tags == null) { if (tags == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
400, "Missing the required parameter 'tags' when calling findPetsByTags");
} }
// create path and map variables // create path and map variables
@ -321,63 +303,58 @@ public class PetApi {
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags)); localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {}; GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.findPetsByTags", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"PetApi.findPetsByTags", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Find pet by ID Returns a single pet * Find pet by ID
* * Returns a single pet
* @param petId ID of pet to return (required) * @param petId ID of pet to return (required)
* @return Pet * @return Pet
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr> <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
* </table> </table>
*/ */
public Pet getPetById(Long petId) throws ApiException { public Pet getPetById(Long petId) throws ApiException {
return getPetByIdWithHttpInfo(petId).getData(); return getPetByIdWithHttpInfo(petId).getData();
} }
/** /**
* Find pet by ID Returns a single pet * Find pet by ID
* * Returns a single pet
* @param petId ID of pet to return (required) * @param petId ID of pet to return (required)
* @return ApiResponse&lt;Pet&gt; * @return ApiResponse&lt;Pet&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr> <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException { public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
@ -388,8 +365,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/pet/{petId}"
"/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -398,31 +374,27 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"api_key"}; String[] localVarAuthNames = new String[] { "api_key" };
GenericType<Pet> localVarReturnType = new GenericType<Pet>() {}; GenericType<Pet> localVarReturnType = new GenericType<Pet>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.getPetById", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"PetApi.getPetById", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Update an existing pet * Update an existing pet
@ -430,12 +402,12 @@ public class PetApi {
* @param pet Pet object that needs to be added to the store (required) * @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr> <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
* <tr><td> 405 </td><td> Validation exception </td><td> - </td></tr> <tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
* </table> </table>
*/ */
public void updatePet(Pet pet) throws ApiException { public void updatePet(Pet pet) throws ApiException {
updatePetWithHttpInfo(pet); updatePetWithHttpInfo(pet);
@ -448,12 +420,12 @@ public class PetApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr> <tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
* <tr><td> 405 </td><td> Validation exception </td><td> - </td></tr> <tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = pet;
@ -472,29 +444,25 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json", "application/xml"}; final String[] localVarContentTypes = {
"application/json", "application/xml"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.updatePet", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
"PetApi.updatePet", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"PUT",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data
@ -504,10 +472,10 @@ public class PetApi {
* @param status Updated status of the pet (optional) * @param status Updated status of the pet (optional)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr> <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
* </table> </table>
*/ */
public void updatePetWithForm(Long petId, String name, String status) throws ApiException { public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status); updatePetWithFormWithHttpInfo(petId, name, status);
@ -522,24 +490,21 @@ public class PetApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr> <tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) { if (petId == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
400, "Missing the required parameter 'petId' when calling updatePetWithForm");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/pet/{petId}"
"/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -548,32 +513,29 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
if (name != null) localVarFormParams.put("name", name);
if (status != null) localVarFormParams.put("status", status);
final String[] localVarAccepts = {};
if (name != null)
localVarFormParams.put("name", name);
if (status != null)
localVarFormParams.put("status", status);
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/x-www-form-urlencoded"}; final String[] localVarContentTypes = {
"application/x-www-form-urlencoded"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.updatePetWithForm", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"PetApi.updatePetWithForm", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* uploads an image * uploads an image
@ -584,13 +546,12 @@ public class PetApi {
* @return ModelApiResponse * @return ModelApiResponse
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
throws ApiException {
return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData(); return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData();
} }
@ -603,13 +564,12 @@ public class PetApi {
* @return ApiResponse&lt;ModelApiResponse&gt; * @return ApiResponse&lt;ModelApiResponse&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo( public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
Long petId, String additionalMetadata, File file) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
@ -618,8 +578,7 @@ public class PetApi {
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/pet/{petId}/uploadImage"
"/pet/{petId}/uploadImage"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -628,34 +587,31 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
if (additionalMetadata != null) if (additionalMetadata != null)
localVarFormParams.put("additionalMetadata", additionalMetadata); localVarFormParams.put("additionalMetadata", additionalMetadata);
if (file != null) localVarFormParams.put("file", file); if (file != null)
localVarFormParams.put("file", file);
final String[] localVarAccepts = {"application/json"}; final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"multipart/form-data"}; final String[] localVarContentTypes = {
"multipart/form-data"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {}; GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.uploadFile", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"PetApi.uploadFile", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* uploads an image (required) * uploads an image (required)
@ -666,15 +622,13 @@ public class PetApi {
* @return ModelApiResponse * @return ModelApiResponse
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ModelApiResponse uploadFileWithRequiredFile( public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Long petId, File requiredFile, String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData();
return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata)
.getData();
} }
/** /**
@ -686,31 +640,26 @@ public class PetApi {
* @return ApiResponse&lt;ModelApiResponse&gt; * @return ApiResponse&lt;ModelApiResponse&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo( public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) { if (petId == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
} }
// verify the required parameter 'requiredFile' is set // verify the required parameter 'requiredFile' is set
if (requiredFile == null) { if (requiredFile == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile");
400,
"Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/fake/{petId}/uploadImageWithRequiredFile"
"/fake/{petId}/uploadImageWithRequiredFile"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
// query params // query params
@ -719,33 +668,30 @@ public class PetApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
if (additionalMetadata != null) if (additionalMetadata != null)
localVarFormParams.put("additionalMetadata", additionalMetadata); localVarFormParams.put("additionalMetadata", additionalMetadata);
if (requiredFile != null) localVarFormParams.put("requiredFile", requiredFile); if (requiredFile != null)
localVarFormParams.put("requiredFile", requiredFile);
final String[] localVarAccepts = {"application/json"}; final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"multipart/form-data"}; final String[] localVarContentTypes = {
"multipart/form-data"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"petstore_auth"}; String[] localVarAuthNames = new String[] { "petstore_auth" };
GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {}; GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("PetApi.uploadFileWithRequiredFile", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"PetApi.uploadFileWithRequiredFile", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
} }

View File

@ -1,16 +1,20 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.model.Order;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.Order;
public class StoreApi { public class StoreApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -42,48 +46,44 @@ public class StoreApi {
} }
/** /**
* Delete purchase order by ID For valid response try integer IDs with value &lt; 1000. Anything * Delete purchase order by ID
* above 1000 or nonintegers will generate API errors * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*
* @param orderId ID of the order that needs to be deleted (required) * @param orderId ID of the order that needs to be deleted (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Order not found </td><td> - </td></tr> <tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
* </table> </table>
*/ */
public void deleteOrder(String orderId) throws ApiException { public void deleteOrder(String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId); deleteOrderWithHttpInfo(orderId);
} }
/** /**
* Delete purchase order by ID For valid response try integer IDs with value &lt; 1000. Anything * Delete purchase order by ID
* above 1000 or nonintegers will generate API errors * For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*
* @param orderId ID of the order that needs to be deleted (required) * @param orderId ID of the order that needs to be deleted (required)
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Order not found </td><td> - </td></tr> <tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException { public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) { if (orderId == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");
400, "Missing the required parameter 'orderId' when calling deleteOrder");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/store/order/{order_id}"
"/store/order/{order_id}"
.replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
@ -92,56 +92,51 @@ public class StoreApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("StoreApi.deleteOrder", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
"StoreApi.deleteOrder", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"DELETE",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Returns pet inventories by status Returns a map of status codes to quantities * Returns pet inventories by status
* * Returns a map of status codes to quantities
* @return Map&lt;String, Integer&gt; * @return Map&lt;String, Integer&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public Map<String, Integer> getInventory() throws ApiException { public Map<String, Integer> getInventory() throws ApiException {
return getInventoryWithHttpInfo().getData(); return getInventoryWithHttpInfo().getData();
} }
/** /**
* Returns pet inventories by status Returns a map of status codes to quantities * Returns pet inventories by status
* * Returns a map of status codes to quantities
* @return ApiResponse&lt;Map&lt;String, Integer&gt;&gt; * @return ApiResponse&lt;Map&lt;String, Integer&gt;&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException { public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
@ -155,79 +150,70 @@ public class StoreApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/json"};
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {"api_key"}; String[] localVarAuthNames = new String[] { "api_key" };
GenericType<Map<String, Integer>> localVarReturnType = GenericType<Map<String, Integer>> localVarReturnType = new GenericType<Map<String, Integer>>() {};
new GenericType<Map<String, Integer>>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("StoreApi.getInventory", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"StoreApi.getInventory", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Find purchase order by ID For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; * Find purchase order by ID
* 10. Other values will generated exceptions * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
*
* @param orderId ID of pet that needs to be fetched (required) * @param orderId ID of pet that needs to be fetched (required)
* @return Order * @return Order
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Order not found </td><td> - </td></tr> <tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
* </table> </table>
*/ */
public Order getOrderById(Long orderId) throws ApiException { public Order getOrderById(Long orderId) throws ApiException {
return getOrderByIdWithHttpInfo(orderId).getData(); return getOrderByIdWithHttpInfo(orderId).getData();
} }
/** /**
* Find purchase order by ID For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; * Find purchase order by ID
* 10. Other values will generated exceptions * For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
*
* @param orderId ID of pet that needs to be fetched (required) * @param orderId ID of pet that needs to be fetched (required)
* @return ApiResponse&lt;Order&gt; * @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Order not found </td><td> - </td></tr> <tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException { public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) { if (orderId == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById");
400, "Missing the required parameter 'orderId' when calling getOrderById");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/store/order/{order_id}"
"/store/order/{order_id}"
.replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
// query params // query params
@ -236,31 +222,27 @@ public class StoreApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<Order> localVarReturnType = new GenericType<Order>() {}; GenericType<Order> localVarReturnType = new GenericType<Order>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("StoreApi.getOrderById", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"StoreApi.getOrderById", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Place an order for a pet * Place an order for a pet
@ -269,11 +251,11 @@ public class StoreApi {
* @return Order * @return Order
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
* </table> </table>
*/ */
public Order placeOrder(Order order) throws ApiException { public Order placeOrder(Order order) throws ApiException {
return placeOrderWithHttpInfo(order).getData(); return placeOrderWithHttpInfo(order).getData();
@ -286,11 +268,11 @@ public class StoreApi {
* @return ApiResponse&lt;Order&gt; * @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException { public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
Object localVarPostBody = order; Object localVarPostBody = order;
@ -309,29 +291,26 @@ public class StoreApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<Order> localVarReturnType = new GenericType<Order>() {}; GenericType<Order> localVarReturnType = new GenericType<Order>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("StoreApi.placeOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"StoreApi.placeOrder", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
} }

View File

@ -1,16 +1,20 @@
package org.openapitools.client.api; package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.model.User;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.model.User;
public class UserApi { public class UserApi {
private ApiClient apiClient; private ApiClient apiClient;
@ -42,31 +46,31 @@ public class UserApi {
} }
/** /**
* Create user This can only be done by the logged in user. * Create user
* * This can only be done by the logged in user.
* @param user Created user object (required) * @param user Created user object (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public void createUser(User user) throws ApiException { public void createUser(User user) throws ApiException {
createUserWithHttpInfo(user); createUserWithHttpInfo(user);
} }
/** /**
* Create user This can only be done by the logged in user. * Create user
* * This can only be done by the logged in user.
* @param user Created user object (required) * @param user Created user object (required)
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException { public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = user;
@ -85,29 +89,25 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.createUser", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"UserApi.createUser", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
@ -115,10 +115,10 @@ public class UserApi {
* @param user List of user object (required) * @param user List of user object (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public void createUsersWithArrayInput(List<User> user) throws ApiException { public void createUsersWithArrayInput(List<User> user) throws ApiException {
createUsersWithArrayInputWithHttpInfo(user); createUsersWithArrayInputWithHttpInfo(user);
@ -131,19 +131,17 @@ public class UserApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = user;
// verify the required parameter 'user' is set // verify the required parameter 'user' is set
if (user == null) { if (user == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
} }
// create path and map variables // create path and map variables
@ -155,29 +153,25 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.createUsersWithArrayInput", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"UserApi.createUsersWithArrayInput", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
@ -185,10 +179,10 @@ public class UserApi {
* @param user List of user object (required) * @param user List of user object (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public void createUsersWithListInput(List<User> user) throws ApiException { public void createUsersWithListInput(List<User> user) throws ApiException {
createUsersWithListInputWithHttpInfo(user); createUsersWithListInputWithHttpInfo(user);
@ -201,19 +195,17 @@ public class UserApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = user;
// verify the required parameter 'user' is set // verify the required parameter 'user' is set
if (user == null) { if (user == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
400, "Missing the required parameter 'user' when calling createUsersWithListInput");
} }
// create path and map variables // create path and map variables
@ -225,71 +217,65 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.createUsersWithListInput", localVarPath, "POST", localVarQueryParams, localVarPostBody,
"UserApi.createUsersWithListInput", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"POST",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Delete user This can only be done by the logged in user. * Delete user
* * This can only be done by the logged in user.
* @param username The name that needs to be deleted (required) * @param username The name that needs to be deleted (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public void deleteUser(String username) throws ApiException { public void deleteUser(String username) throws ApiException {
deleteUserWithHttpInfo(username); deleteUserWithHttpInfo(username);
} }
/** /**
* Delete user This can only be done by the logged in user. * Delete user
* * This can only be done by the logged in user.
* @param username The name that needs to be deleted (required) * @param username The name that needs to be deleted (required)
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException { public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser");
400, "Missing the required parameter 'username' when calling deleteUser");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/user/{username}"
"/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
@ -298,30 +284,25 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.deleteUser", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
"UserApi.deleteUser", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"DELETE",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Get user by user name * Get user by user name
@ -330,12 +311,12 @@ public class UserApi {
* @return User * @return User
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public User getUserByName(String username) throws ApiException { public User getUserByName(String username) throws ApiException {
return getUserByNameWithHttpInfo(username).getData(); return getUserByNameWithHttpInfo(username).getData();
@ -348,25 +329,23 @@ public class UserApi {
* @return ApiResponse&lt;User&gt; * @return ApiResponse&lt;User&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> - </td></tr> <tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
* <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException { public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName");
400, "Missing the required parameter 'username' when calling getUserByName");
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/user/{username}"
"/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
@ -375,31 +354,27 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<User> localVarReturnType = new GenericType<User>() {}; GenericType<User> localVarReturnType = new GenericType<User>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.getUserByName", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"UserApi.getUserByName", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Logs user into the system * Logs user into the system
@ -409,11 +384,11 @@ public class UserApi {
* @return String * @return String
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> </td></tr> <tr><td> 200 </td><td> successful operation </td><td> * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> </td></tr>
* <tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
* </table> </table>
*/ */
public String loginUser(String username, String password) throws ApiException { public String loginUser(String username, String password) throws ApiException {
return loginUserWithHttpInfo(username, password).getData(); return loginUserWithHttpInfo(username, password).getData();
@ -427,26 +402,23 @@ public class UserApi {
* @return ApiResponse&lt;String&gt; * @return ApiResponse&lt;String&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> </td></tr> <tr><td> 200 </td><td> successful operation </td><td> * X-Rate-Limit - calls per hour allowed by the user <br> * X-Expires-After - date in UTC when token expires <br> </td></tr>
* <tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
400, "Missing the required parameter 'username' when calling loginUser");
} }
// verify the required parameter 'password' is set // verify the required parameter 'password' is set
if (password == null) { if (password == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'password' when calling loginUser");
400, "Missing the required parameter 'password' when calling loginUser");
} }
// create path and map variables // create path and map variables
@ -461,41 +433,36 @@ public class UserApi {
localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password));
final String[] localVarAccepts = {"application/xml", "application/json"};
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
GenericType<String> localVarReturnType = new GenericType<String>() {}; GenericType<String> localVarReturnType = new GenericType<String>() {};
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.loginUser", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"UserApi.loginUser", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, localVarReturnType, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
null);
} }
/** /**
* Logs out current logged in user session * Logs out current logged in user session
* *
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public void logoutUser() throws ApiException { public void logoutUser() throws ApiException {
logoutUserWithHttpInfo(); logoutUserWithHttpInfo();
@ -507,10 +474,10 @@ public class UserApi {
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 0 </td><td> successful operation </td><td> - </td></tr> <tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException { public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
@ -524,69 +491,63 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {}; final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.logoutUser", localVarPath, "GET", localVarQueryParams, localVarPostBody,
"UserApi.logoutUser", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"GET",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
/** /**
* Updated user This can only be done by the logged in user. * Updated user
* * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @param username name that need to be deleted (required)
* @param user Updated user object (required) * @param user Updated user object (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid user supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid user supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public void updateUser(String username, User user) throws ApiException { public void updateUser(String username, User user) throws ApiException {
updateUserWithHttpInfo(username, user); updateUserWithHttpInfo(username, user);
} }
/** /**
* Updated user This can only be done by the logged in user. * Updated user
* * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @param username name that need to be deleted (required)
* @param user Updated user object (required) * @param user Updated user object (required)
* @return ApiResponse&lt;Void&gt; * @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
* @http.response.details * @http.response.details
* <table summary="Response Details" border="1"> <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 400 </td><td> Invalid user supplied </td><td> - </td></tr> <tr><td> 400 </td><td> Invalid user supplied </td><td> - </td></tr>
* <tr><td> 404 </td><td> User not found </td><td> - </td></tr> <tr><td> 404 </td><td> User not found </td><td> - </td></tr>
* </table> </table>
*/ */
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException { public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = user;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException( throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
400, "Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'user' is set // verify the required parameter 'user' is set
@ -595,8 +556,7 @@ public class UserApi {
} }
// create path and map variables // create path and map variables
String localVarPath = String localVarPath = "/user/{username}"
"/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
// query params // query params
@ -605,28 +565,24 @@ public class UserApi {
Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {};
final String[] localVarAccepts = {
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {"application/json"}; final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] {}; String[] localVarAuthNames = new String[] { };
return apiClient.invokeAPI( return apiClient.invokeAPI("UserApi.updateUser", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
"UserApi.updateUser", localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarPath, localVarAuthNames, null, null);
"PUT",
localVarQueryParams,
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
null);
} }
} }

View File

@ -10,13 +10,16 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import java.net.URI;
import java.util.List;
import java.util.Map;
import org.openapitools.client.ApiException;
import org.openapitools.client.Pair; import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import java.net.URI;
import java.util.Map;
import java.util.List;
public class ApiKeyAuth implements Authentication { public class ApiKeyAuth implements Authentication {
private final String location; private final String location;
@ -55,14 +58,7 @@ public class ApiKeyAuth implements Authentication {
} }
@Override @Override
public void applyToParams( public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
List<Pair> queryParams,
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
if (apiKey == null) { if (apiKey == null) {
return; return;
} }

View File

@ -10,13 +10,15 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import java.net.URI;
import java.util.List;
import java.util.Map;
import org.openapitools.client.ApiException;
import org.openapitools.client.Pair; import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import java.net.URI;
import java.util.Map;
import java.util.List;
public interface Authentication { public interface Authentication {
/** /**
@ -26,12 +28,6 @@ public interface Authentication {
* @param headerParams Map of header parameters * @param headerParams Map of header parameters
* @param cookieParams Map of cookie parameters * @param cookieParams Map of cookie parameters
*/ */
void applyToParams( void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException;
List<Pair> queryParams,
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException;
} }

View File

@ -10,15 +10,20 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import com.migcomponents.migbase64.Base64;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.util.List;
import java.util.Map;
import org.openapitools.client.ApiException;
import org.openapitools.client.Pair; import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import com.migcomponents.migbase64.Base64;
import java.net.URI;
import java.util.Map;
import java.util.List;
import java.io.UnsupportedEncodingException;
public class HttpBasicAuth implements Authentication { public class HttpBasicAuth implements Authentication {
private String username; private String username;
@ -41,21 +46,13 @@ public class HttpBasicAuth implements Authentication {
} }
@Override @Override
public void applyToParams( public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
List<Pair> queryParams,
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
if (username == null && password == null) { if (username == null && password == null) {
return; return;
} }
String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
try { try {
headerParams.put( headerParams.put("Authorization", "Basic " + Base64.encodeToString(str.getBytes("UTF-8"), false));
"Authorization", "Basic " + Base64.encodeToString(str.getBytes("UTF-8"), false));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }

View File

@ -10,13 +10,16 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import java.net.URI;
import java.util.List;
import java.util.Map;
import org.openapitools.client.ApiException;
import org.openapitools.client.Pair; import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import java.net.URI;
import java.util.Map;
import java.util.List;
public class HttpBearerAuth implements Authentication { public class HttpBearerAuth implements Authentication {
private final String scheme; private final String scheme;
@ -27,8 +30,7 @@ public class HttpBearerAuth implements Authentication {
} }
/** /**
* Gets the token, which together with the scheme, will be sent as the value of the Authorization * Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
* header.
* *
* @return The bearer token * @return The bearer token
*/ */
@ -37,8 +39,7 @@ public class HttpBearerAuth implements Authentication {
} }
/** /**
* Sets the token, which together with the scheme, will be sent as the value of the Authorization * Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
* header.
* *
* @param bearerToken The bearer token to send in the Authorization header * @param bearerToken The bearer token to send in the Authorization header
*/ */
@ -47,20 +48,12 @@ public class HttpBearerAuth implements Authentication {
} }
@Override @Override
public void applyToParams( public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
List<Pair> queryParams, if(bearerToken == null) {
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
if (bearerToken == null) {
return; return;
} }
headerParams.put( headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
"Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
} }
private static String upperCaseBearer(String scheme) { private static String upperCaseBearer(String scheme) {

View File

@ -10,59 +10,130 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import java.net.URI; import java.net.URI;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.security.Key;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.Key;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Base64; import java.util.Base64;
import java.util.Date; import java.util.Date;
import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import org.openapitools.client.ApiException; import java.util.List;
import org.openapitools.client.Pair;
import org.tomitribe.auth.signatures.*; import org.tomitribe.auth.signatures.*;
/**
* A Configuration object for the HTTP message signature security scheme.
*/
public class HttpSignatureAuth implements Authentication { public class HttpSignatureAuth implements Authentication {
private Signer signer; private Signer signer;
private String name; // An opaque string that the server can use to look up the component they need to validate the signature.
private String keyId;
// The HTTP signature algorithm.
private Algorithm algorithm; private Algorithm algorithm;
// The list of HTTP headers that should be included in the HTTP signature.
private List<String> headers; private List<String> headers;
public HttpSignatureAuth(String name, Algorithm algorithm, List<String> headers) { // The digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
this.name = name; private String digestAlgorithm;
/**
* Construct a new HTTP signature auth configuration object.
*
* @param keyId An opaque string that the server can use to look up the component they need to validate the signature.
* @param algorithm The signature algorithm.
* @param headers The list of HTTP headers that should be included in the HTTP signature.
*/
public HttpSignatureAuth(String keyId, Algorithm algorithm, List<String> headers) {
this.keyId = keyId;
this.algorithm = algorithm; this.algorithm = algorithm;
this.headers = headers; this.headers = headers;
this.digestAlgorithm = "SHA-256";
} }
public String getName() { /**
return name; * Returns the opaque string that the server can use to look up the component they need to validate the signature.
*
* @return The keyId.
*/
public String getKeyId() {
return keyId;
} }
public void setName(String name) { /**
this.name = name; * Set the HTTP signature key id.
*
* @param keyId An opaque string that the server can use to look up the component they need to validate the signature.
*/
public void setKeyId(String keyId) {
this.keyId = keyId;
} }
/**
* Returns the HTTP signature algorithm which is used to sign HTTP requests.
*/
public Algorithm getAlgorithm() { public Algorithm getAlgorithm() {
return algorithm; return algorithm;
} }
/**
* Sets the HTTP signature algorithm which is used to sign HTTP requests.
*
* @param algorithm The HTTP signature algorithm.
*/
public void setAlgorithm(Algorithm algorithm) { public void setAlgorithm(Algorithm algorithm) {
this.algorithm = algorithm; this.algorithm = algorithm;
} }
/**
* Returns the digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
*
* @see java.security.MessageDigest
*/
public String getDigestAlgorithm() {
return digestAlgorithm;
}
/**
* Sets the digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
*
* The exact list of supported digest algorithms depends on the installed security providers.
* Every implementation of the Java platform is required to support "MD5", "SHA-1" and "SHA-256".
* Do not use "MD5" and "SHA-1", they are vulnerable to multiple known attacks.
* By default, "SHA-256" is used.
*
* @param digestAlgorithm The digest algorithm.
*
* @see java.security.MessageDigest
*/
public void setDigestAlgorithm(String digestAlgorithm) {
this.digestAlgorithm = digestAlgorithm;
}
/**
* Returns the list of HTTP headers that should be included in the HTTP signature.
*/
public List<String> getHeaders() { public List<String> getHeaders() {
return headers; return headers;
} }
/**
* Sets the list of HTTP headers that should be included in the HTTP signature.
*
* @param headers The HTTP headers.
*/
public void setHeaders(List<String> headers) { public void setHeaders(List<String> headers) {
this.headers = headers; this.headers = headers;
} }
@ -75,46 +146,39 @@ public class HttpSignatureAuth implements Authentication {
this.signer = signer; this.signer = signer;
} }
public void setup(Key key) throws ApiException { /**
* Set the private key used to sign HTTP requests using the HTTP signature scheme.
*
* @param key The private key.
*/
public void setPrivateKey(Key key) throws ApiException {
if (key == null) { if (key == null) {
throw new ApiException("key (java.security.Key) cannot be null"); throw new ApiException("Private key (java.security.Key) cannot be null");
} }
signer = new Signer(key, new Signature(name, algorithm, null, headers)); signer = new Signer(key, new Signature(keyId, algorithm, null, headers));
} }
@Override @Override
public void applyToParams( public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams,
List<Pair> queryParams, String payload, String method, URI uri) throws ApiException {
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
try { try {
if (headers.contains("host")) { if (headers.contains("host")) {
headerParams.put("host", uri.getHost()); headerParams.put("host", uri.getHost());
} }
if (headers.contains("date")) { if (headers.contains("date")) {
headerParams.put( headerParams.put("date", new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US).format(new Date()));
"date",
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US).format(new Date()));
} }
if (headers.contains("digest")) { if (headers.contains("digest")) {
headerParams.put( headerParams.put("digest",
"digest", this.digestAlgorithm + "=" +
"SHA-256=" new String(Base64.getEncoder().encode(MessageDigest.getInstance(this.digestAlgorithm).digest(payload.getBytes()))));
+ new String(
Base64.getEncoder()
.encode(MessageDigest.getInstance("SHA-256").digest(payload.getBytes()))));
} }
if (signer == null) { if (signer == null) {
throw new ApiException( throw new ApiException("Signer cannot be null. Please call the method `setPrivateKey` to set it up correctly");
"Signer cannot be null. Please run the method `setup` to set it up correctly");
} }
// construct the path with the URL query string // construct the path with the URL query string
@ -122,10 +186,7 @@ public class HttpSignatureAuth implements Authentication {
List<String> urlQueries = new ArrayList<String>(); List<String> urlQueries = new ArrayList<String>();
for (Pair queryParam : queryParams) { for (Pair queryParam : queryParams) {
urlQueries.add( urlQueries.add(queryParam.getName() + "=" + URLEncoder.encode(queryParam.getValue(), "utf8").replaceAll("\\+", "%20"));
queryParam.getName()
+ "="
+ URLEncoder.encode(queryParam.getValue(), "utf8").replaceAll("\\+", "%20"));
} }
if (!urlQueries.isEmpty()) { if (!urlQueries.isEmpty()) {
@ -134,8 +195,7 @@ public class HttpSignatureAuth implements Authentication {
headerParams.put("Authorization", signer.sign(method, path, headerParams).toString()); headerParams.put("Authorization", signer.sign(method, path, headerParams).toString());
} catch (Exception ex) { } catch (Exception ex) {
throw new ApiException( throw new ApiException("Failed to create signature in the HTTP request header: " + ex.toString());
"Failed to create signature in the HTTP request header: " + ex.toString());
} }
} }
} }

View File

@ -10,13 +10,16 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
import java.net.URI;
import java.util.List;
import java.util.Map;
import org.openapitools.client.ApiException;
import org.openapitools.client.Pair; import org.openapitools.client.Pair;
import org.openapitools.client.ApiException;
import java.net.URI;
import java.util.Map;
import java.util.List;
public class OAuth implements Authentication { public class OAuth implements Authentication {
private String accessToken; private String accessToken;
@ -30,14 +33,7 @@ public class OAuth implements Authentication {
} }
@Override @Override
public void applyToParams( public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
List<Pair> queryParams,
Map<String, String> headerParams,
Map<String, String> cookieParams,
String payload,
String method,
URI uri)
throws ApiException {
if (accessToken != null) { if (accessToken != null) {
headerParams.put("Authorization", "Bearer " + accessToken); headerParams.put("Authorization", "Bearer " + accessToken);
} }

View File

@ -10,11 +10,9 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.auth; package org.openapitools.client.auth;
public enum OAuthFlow { public enum OAuthFlow {
accessCode, accessCode, implicit, password, application
implicit,
password,
application
} }

View File

@ -10,12 +10,18 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import org.openapitools.client.ApiException;
import java.lang.reflect.Type;
import java.util.Map; import java.util.Map;
import javax.ws.rs.core.GenericType; import javax.ws.rs.core.GenericType;
/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ /**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
public abstract class AbstractOpenApiSchema { public abstract class AbstractOpenApiSchema {
// store the actual instance of the schema/object // store the actual instance of the schema/object
@ -28,33 +34,29 @@ public abstract class AbstractOpenApiSchema {
this.schemaType = schemaType; this.schemaType = schemaType;
} }
/** /***
* * Get the list of schemas allowed to be stored in this object * Get the list of schemas allowed to be stored in this object
* *
* @return an instance of the actual schema/object * @return an instance of the actual schema/object
*/ */
public abstract Map<String, GenericType> getSchemas(); public abstract Map<String, GenericType> getSchemas();
/** /***
* * Get the actual instance * Get the actual instance
* *
* @return an instance of the actual schema/object * @return an instance of the actual schema/object
*/ */
public Object getActualInstance() { public Object getActualInstance() {return instance;}
return instance;
}
/** /***
* * Set the actual instance * Set the actual instance
* *
* @param instance the actual instance of the schema/object * @param instance the actual instance of the schema/object
*/ */
public void setActualInstance(Object instance) { public void setActualInstance(Object instance) {this.instance = instance;}
this.instance = instance;
}
/** /***
* * Get the schema type (e.g. anyOf, oneOf) * Get the schema type (e.g. anyOf, oneOf)
* *
* @return the schema type * @return the schema type
*/ */

View File

@ -10,21 +10,30 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** AdditionalPropertiesClass */ /**
* AdditionalPropertiesClass
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY, AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY
}) })
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
private Map<String, String> mapProperty = null; private Map<String, String> mapProperty = null;
@ -32,6 +41,7 @@ public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
private Map<String, Map<String, String>> mapOfMapProperty = null; private Map<String, Map<String, String>> mapOfMapProperty = null;
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) { public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
this.mapProperty = mapProperty; this.mapProperty = mapProperty;
@ -48,30 +58,30 @@ public class AdditionalPropertiesClass {
/** /**
* Get mapProperty * Get mapProperty
*
* @return mapProperty * @return mapProperty
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getMapProperty() { public Map<String, String> getMapProperty() {
return mapProperty; return mapProperty;
} }
public void setMapProperty(Map<String, String> mapProperty) { public void setMapProperty(Map<String, String> mapProperty) {
this.mapProperty = mapProperty; this.mapProperty = mapProperty;
} }
public AdditionalPropertiesClass mapOfMapProperty(
Map<String, Map<String, String>> mapOfMapProperty) { public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty; this.mapOfMapProperty = mapOfMapProperty;
return this; return this;
} }
public AdditionalPropertiesClass putMapOfMapPropertyItem( public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
String key, Map<String, String> mapOfMapPropertyItem) {
if (this.mapOfMapProperty == null) { if (this.mapOfMapProperty == null) {
this.mapOfMapProperty = new HashMap<String, Map<String, String>>(); this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
} }
@ -81,21 +91,23 @@ public class AdditionalPropertiesClass {
/** /**
* Get mapOfMapProperty * Get mapOfMapProperty
*
* @return mapOfMapProperty * @return mapOfMapProperty
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapOfMapProperty() { public Map<String, Map<String, String>> getMapOfMapProperty() {
return mapOfMapProperty; return mapOfMapProperty;
} }
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) { public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty; this.mapOfMapProperty = mapOfMapProperty;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -105,8 +117,8 @@ public class AdditionalPropertiesClass {
return false; return false;
} }
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o; AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
&& Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty); Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
} }
@Override @Override
@ -114,6 +126,7 @@ public class AdditionalPropertiesClass {
return Objects.hash(mapProperty, mapOfMapProperty); return Objects.hash(mapProperty, mapOfMapProperty);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -125,7 +138,8 @@ public class AdditionalPropertiesClass {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -133,4 +147,6 @@ public class AdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,27 +10,35 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Animal */ /**
@JsonPropertyOrder({Animal.JSON_PROPERTY_CLASS_NAME, Animal.JSON_PROPERTY_COLOR}) * Animal
@JsonTypeInfo( */
use = JsonTypeInfo.Id.NAME, @JsonPropertyOrder({
include = JsonTypeInfo.As.EXISTING_PROPERTY, Animal.JSON_PROPERTY_CLASS_NAME,
property = "className", Animal.JSON_PROPERTY_COLOR
visible = true) })
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonSubTypes({ @JsonSubTypes({
@JsonSubTypes.Type(value = Dog.class, name = "Dog"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"),
@JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Cat.class, name = "Cat"),
}) })
public class Animal { public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className"; public static final String JSON_PROPERTY_CLASS_NAME = "className";
private String className; private String className;
@ -38,6 +46,7 @@ public class Animal {
public static final String JSON_PROPERTY_COLOR = "color"; public static final String JSON_PROPERTY_COLOR = "color";
private String color = "red"; private String color = "red";
public Animal className(String className) { public Animal className(String className) {
this.className = className; this.className = className;
@ -46,20 +55,22 @@ public class Animal {
/** /**
* Get className * Get className
*
* @return className * @return className
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClassName() { public String getClassName() {
return className; return className;
} }
public void setClassName(String className) { public void setClassName(String className) {
this.className = className; this.className = className;
} }
public Animal color(String color) { public Animal color(String color) {
this.color = color; this.color = color;
@ -68,21 +79,23 @@ public class Animal {
/** /**
* Get color * Get color
*
* @return color * @return color
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COLOR) @JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getColor() { public String getColor() {
return color; return color;
} }
public void setColor(String color) { public void setColor(String color) {
this.color = color; this.color = color;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -92,8 +105,8 @@ public class Animal {
return false; return false;
} }
Animal animal = (Animal) o; Animal animal = (Animal) o;
return Objects.equals(this.className, animal.className) return Objects.equals(this.className, animal.className) &&
&& Objects.equals(this.color, animal.color); Objects.equals(this.color, animal.color);
} }
@Override @Override
@ -101,6 +114,7 @@ public class Animal {
return Objects.hash(className, color); return Objects.hash(className, color);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -112,7 +126,8 @@ public class Animal {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -120,4 +135,6 @@ public class Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,23 +10,34 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ArrayOfArrayOfNumberOnly
*/
@JsonPropertyOrder({
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
})
/** ArrayOfArrayOfNumberOnly */
@JsonPropertyOrder({ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER})
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
private List<List<BigDecimal>> arrayArrayNumber = null; private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
@ -43,21 +54,23 @@ public class ArrayOfArrayOfNumberOnly {
/** /**
* Get arrayArrayNumber * Get arrayArrayNumber
*
* @return arrayArrayNumber * @return arrayArrayNumber
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -75,6 +88,7 @@ public class ArrayOfArrayOfNumberOnly {
return Objects.hash(arrayArrayNumber); return Objects.hash(arrayArrayNumber);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -85,7 +99,8 @@ public class ArrayOfArrayOfNumberOnly {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -93,4 +108,6 @@ public class ArrayOfArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,23 +10,34 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ArrayOfNumberOnly
*/
@JsonPropertyOrder({
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
})
/** ArrayOfNumberOnly */
@JsonPropertyOrder({ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER})
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
private List<BigDecimal> arrayNumber = null; private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) { public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
@ -43,21 +54,23 @@ public class ArrayOfNumberOnly {
/** /**
* Get arrayNumber * Get arrayNumber
*
* @return arrayNumber * @return arrayNumber
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }
public void setArrayNumber(List<BigDecimal> arrayNumber) { public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -75,6 +88,7 @@ public class ArrayOfNumberOnly {
return Objects.hash(arrayNumber); return Objects.hash(arrayNumber);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -85,7 +99,8 @@ public class ArrayOfNumberOnly {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -93,4 +108,6 @@ public class ArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,22 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import org.openapitools.client.model.ReadOnlyFirst;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** ArrayTest */ /**
* ArrayTest
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING, ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
}) })
public class ArrayTest { public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
private List<String> arrayOfString = null; private List<String> arrayOfString = null;
@ -36,6 +45,7 @@ public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null; private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest arrayOfString(List<String> arrayOfString) { public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
@ -52,21 +62,23 @@ public class ArrayTest {
/** /**
* Get arrayOfString * Get arrayOfString
*
* @return arrayOfString * @return arrayOfString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
public void setArrayOfString(List<String> arrayOfString) { public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
} }
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
@ -83,21 +95,23 @@ public class ArrayTest {
/** /**
* Get arrayArrayOfInteger * Get arrayArrayOfInteger
*
* @return arrayArrayOfInteger * @return arrayArrayOfInteger
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
} }
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
@ -114,21 +128,23 @@ public class ArrayTest {
/** /**
* Get arrayArrayOfModel * Get arrayArrayOfModel
*
* @return arrayArrayOfModel * @return arrayArrayOfModel
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -138,9 +154,9 @@ public class ArrayTest {
return false; return false;
} }
ArrayTest arrayTest = (ArrayTest) o; ArrayTest arrayTest = (ArrayTest) o;
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
&& Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
&& Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel); Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
} }
@Override @Override
@ -148,21 +164,21 @@ public class ArrayTest {
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel); return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class ArrayTest {\n"); sb.append("class ArrayTest {\n");
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n"); sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
sb.append(" arrayArrayOfInteger: ") sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
.append(toIndentedString(arrayArrayOfInteger))
.append("\n");
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n"); sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -170,4 +186,6 @@ public class ArrayTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,15 +10,22 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Capitalization */ /**
* Capitalization
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
Capitalization.JSON_PROPERTY_SMALL_CAMEL, Capitalization.JSON_PROPERTY_SMALL_CAMEL,
Capitalization.JSON_PROPERTY_CAPITAL_CAMEL, Capitalization.JSON_PROPERTY_CAPITAL_CAMEL,
@ -27,6 +34,7 @@ import java.util.Objects;
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
}) })
public class Capitalization { public class Capitalization {
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
private String smallCamel; private String smallCamel;
@ -46,6 +54,7 @@ public class Capitalization {
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
private String ATT_NAME; private String ATT_NAME;
public Capitalization smallCamel(String smallCamel) { public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
@ -54,21 +63,23 @@ public class Capitalization {
/** /**
* Get smallCamel * Get smallCamel
*
* @return smallCamel * @return smallCamel
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallCamel() { public String getSmallCamel() {
return smallCamel; return smallCamel;
} }
public void setSmallCamel(String smallCamel) { public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
} }
public Capitalization capitalCamel(String capitalCamel) { public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
@ -77,21 +88,23 @@ public class Capitalization {
/** /**
* Get capitalCamel * Get capitalCamel
*
* @return capitalCamel * @return capitalCamel
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalCamel() { public String getCapitalCamel() {
return capitalCamel; return capitalCamel;
} }
public void setCapitalCamel(String capitalCamel) { public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
} }
public Capitalization smallSnake(String smallSnake) { public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
@ -100,21 +113,23 @@ public class Capitalization {
/** /**
* Get smallSnake * Get smallSnake
*
* @return smallSnake * @return smallSnake
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallSnake() { public String getSmallSnake() {
return smallSnake; return smallSnake;
} }
public void setSmallSnake(String smallSnake) { public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
} }
public Capitalization capitalSnake(String capitalSnake) { public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
@ -123,21 +138,23 @@ public class Capitalization {
/** /**
* Get capitalSnake * Get capitalSnake
*
* @return capitalSnake * @return capitalSnake
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalSnake() { public String getCapitalSnake() {
return capitalSnake; return capitalSnake;
} }
public void setCapitalSnake(String capitalSnake) { public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
} }
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
@ -146,21 +163,23 @@ public class Capitalization {
/** /**
* Get scAETHFlowPoints * Get scAETHFlowPoints
*
* @return scAETHFlowPoints * @return scAETHFlowPoints
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
return scAETHFlowPoints; return scAETHFlowPoints;
} }
public void setScAETHFlowPoints(String scAETHFlowPoints) { public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
} }
public Capitalization ATT_NAME(String ATT_NAME) { public Capitalization ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
@ -169,21 +188,23 @@ public class Capitalization {
/** /**
* Name of the pet * Name of the pet
*
* @return ATT_NAME * @return ATT_NAME
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getATTNAME() { public String getATTNAME() {
return ATT_NAME; return ATT_NAME;
} }
public void setATTNAME(String ATT_NAME) { public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -193,20 +214,20 @@ public class Capitalization {
return false; return false;
} }
Capitalization capitalization = (Capitalization) o; Capitalization capitalization = (Capitalization) o;
return Objects.equals(this.smallCamel, capitalization.smallCamel) return Objects.equals(this.smallCamel, capitalization.smallCamel) &&
&& Objects.equals(this.capitalCamel, capitalization.capitalCamel) Objects.equals(this.capitalCamel, capitalization.capitalCamel) &&
&& Objects.equals(this.smallSnake, capitalization.smallSnake) Objects.equals(this.smallSnake, capitalization.smallSnake) &&
&& Objects.equals(this.capitalSnake, capitalization.capitalSnake) Objects.equals(this.capitalSnake, capitalization.capitalSnake) &&
&& Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
&& Objects.equals(this.ATT_NAME, capitalization.ATT_NAME); Objects.equals(this.ATT_NAME, capitalization.ATT_NAME);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -222,7 +243,8 @@ public class Capitalization {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -230,4 +252,6 @@ public class Capitalization {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,33 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import org.openapitools.client.model.Animal;
import org.openapitools.client.model.CatAllOf;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Cat
*/
@JsonPropertyOrder({
Cat.JSON_PROPERTY_DECLAWED
})
/** Cat */
@JsonPropertyOrder({Cat.JSON_PROPERTY_DECLAWED})
public class Cat extends Animal { public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed; private Boolean declawed;
public Cat declawed(Boolean declawed) { public Cat declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
@ -32,21 +45,23 @@ public class Cat extends Animal {
/** /**
* Get declawed * Get declawed
*
* @return declawed * @return declawed
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED) @JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -56,7 +71,8 @@ public class Cat extends Animal {
return false; return false;
} }
Cat cat = (Cat) o; Cat cat = (Cat) o;
return Objects.equals(this.declawed, cat.declawed) && super.equals(o); return Objects.equals(this.declawed, cat.declawed) &&
super.equals(o);
} }
@Override @Override
@ -64,6 +80,7 @@ public class Cat extends Animal {
return Objects.hash(declawed, super.hashCode()); return Objects.hash(declawed, super.hashCode());
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -75,7 +92,8 @@ public class Cat extends Animal {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -83,4 +101,6 @@ public class Cat extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CatAllOf
*/
@JsonPropertyOrder({
CatAllOf.JSON_PROPERTY_DECLAWED
})
/** CatAllOf */
@JsonPropertyOrder({CatAllOf.JSON_PROPERTY_DECLAWED})
public class CatAllOf { public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed; private Boolean declawed;
public CatAllOf declawed(Boolean declawed) { public CatAllOf declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
@ -32,21 +43,23 @@ public class CatAllOf {
/** /**
* Get declawed * Get declawed
*
* @return declawed * @return declawed
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED) @JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,6 +77,7 @@ public class CatAllOf {
return Objects.hash(declawed); return Objects.hash(declawed);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -74,7 +88,8 @@ public class CatAllOf {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -82,4 +97,6 @@ public class CatAllOf {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Category
*/
@JsonPropertyOrder({
Category.JSON_PROPERTY_ID,
Category.JSON_PROPERTY_NAME
})
/** Category */
@JsonPropertyOrder({Category.JSON_PROPERTY_ID, Category.JSON_PROPERTY_NAME})
public class Category { public class Category {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
private Long id; private Long id;
@ -27,6 +38,7 @@ public class Category {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
private String name = "default-name"; private String name = "default-name";
public Category id(Long id) { public Category id(Long id) {
this.id = id; this.id = id;
@ -35,21 +47,23 @@ public class Category {
/** /**
* Get id * Get id
*
* @return id * @return id
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Category name(String name) { public Category name(String name) {
this.name = name; this.name = name;
@ -58,20 +72,22 @@ public class Category {
/** /**
* Get name * Get name
*
* @return name * @return name
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -81,7 +97,8 @@ public class Category {
return false; return false;
} }
Category category = (Category) o; Category category = (Category) o;
return Objects.equals(this.id, category.id) && Objects.equals(this.name, category.name); return Objects.equals(this.id, category.id) &&
Objects.equals(this.name, category.name);
} }
@Override @Override
@ -89,6 +106,7 @@ public class Category {
return Objects.hash(id, name); return Objects.hash(id, name);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -100,7 +118,8 @@ public class Category {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -108,4 +127,6 @@ public class Category {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,22 +10,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Model for testing model with \&quot;_class\&quot; property */ /**
* Model for testing model with \&quot;_class\&quot; property
*/
@ApiModel(description = "Model for testing model with \"_class\" property") @ApiModel(description = "Model for testing model with \"_class\" property")
@JsonPropertyOrder({ClassModel.JSON_PROPERTY_PROPERTY_CLASS}) @JsonPropertyOrder({
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
})
public class ClassModel { public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
private String propertyClass; private String propertyClass;
public ClassModel propertyClass(String propertyClass) { public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
@ -34,21 +44,23 @@ public class ClassModel {
/** /**
* Get propertyClass * Get propertyClass
*
* @return propertyClass * @return propertyClass
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -66,6 +78,7 @@ public class ClassModel {
return Objects.hash(propertyClass); return Objects.hash(propertyClass);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -76,7 +89,8 @@ public class ClassModel {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -84,4 +98,6 @@ public class ClassModel {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Client
*/
@JsonPropertyOrder({
Client.JSON_PROPERTY_CLIENT
})
/** Client */
@JsonPropertyOrder({Client.JSON_PROPERTY_CLIENT})
public class Client { public class Client {
public static final String JSON_PROPERTY_CLIENT = "client"; public static final String JSON_PROPERTY_CLIENT = "client";
private String client; private String client;
public Client client(String client) { public Client client(String client) {
this.client = client; this.client = client;
@ -32,21 +43,23 @@ public class Client {
/** /**
* Get client * Get client
*
* @return client * @return client
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT) @JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() { public String getClient() {
return client; return client;
} }
public void setClient(String client) { public void setClient(String client) {
this.client = client; this.client = client;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,6 +77,7 @@ public class Client {
return Objects.hash(client); return Objects.hash(client);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -74,7 +88,8 @@ public class Client {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -82,4 +97,6 @@ public class Client {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,33 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import org.openapitools.client.model.Animal;
import org.openapitools.client.model.DogAllOf;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Dog
*/
@JsonPropertyOrder({
Dog.JSON_PROPERTY_BREED
})
/** Dog */
@JsonPropertyOrder({Dog.JSON_PROPERTY_BREED})
public class Dog extends Animal { public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
private String breed; private String breed;
public Dog breed(String breed) { public Dog breed(String breed) {
this.breed = breed; this.breed = breed;
@ -32,21 +45,23 @@ public class Dog extends Animal {
/** /**
* Get breed * Get breed
*
* @return breed * @return breed
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED) @JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -56,7 +71,8 @@ public class Dog extends Animal {
return false; return false;
} }
Dog dog = (Dog) o; Dog dog = (Dog) o;
return Objects.equals(this.breed, dog.breed) && super.equals(o); return Objects.equals(this.breed, dog.breed) &&
super.equals(o);
} }
@Override @Override
@ -64,6 +80,7 @@ public class Dog extends Animal {
return Objects.hash(breed, super.hashCode()); return Objects.hash(breed, super.hashCode());
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -75,7 +92,8 @@ public class Dog extends Animal {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -83,4 +101,6 @@ public class Dog extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DogAllOf
*/
@JsonPropertyOrder({
DogAllOf.JSON_PROPERTY_BREED
})
/** DogAllOf */
@JsonPropertyOrder({DogAllOf.JSON_PROPERTY_BREED})
public class DogAllOf { public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
private String breed; private String breed;
public DogAllOf breed(String breed) { public DogAllOf breed(String breed) {
this.breed = breed; this.breed = breed;
@ -32,21 +43,23 @@ public class DogAllOf {
/** /**
* Get breed * Get breed
*
* @return breed * @return breed
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED) @JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,6 +77,7 @@ public class DogAllOf {
return Objects.hash(breed); return Objects.hash(breed);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -74,7 +88,8 @@ public class DogAllOf {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -82,4 +97,6 @@ public class DogAllOf {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,22 +10,33 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* EnumArrays
*/
@JsonPropertyOrder({
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
})
/** EnumArrays */
@JsonPropertyOrder({EnumArrays.JSON_PROPERTY_JUST_SYMBOL, EnumArrays.JSON_PROPERTY_ARRAY_ENUM})
public class EnumArrays { public class EnumArrays {
/** Gets or Sets justSymbol */ /**
* Gets or Sets justSymbol
*/
public enum JustSymbolEnum { public enum JustSymbolEnum {
GREATER_THAN_OR_EQUAL_TO(">="), GREATER_THAN_OR_EQUAL_TO(">="),
@ -61,7 +72,9 @@ public class EnumArrays {
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
private JustSymbolEnum justSymbol; private JustSymbolEnum justSymbol;
/** Gets or Sets arrayEnum */ /**
* Gets or Sets arrayEnum
*/
public enum ArrayEnumEnum { public enum ArrayEnumEnum {
FISH("fish"), FISH("fish"),
@ -97,6 +110,7 @@ public class EnumArrays {
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
private List<ArrayEnumEnum> arrayEnum = null; private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays justSymbol(JustSymbolEnum justSymbol) { public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
@ -105,21 +119,23 @@ public class EnumArrays {
/** /**
* Get justSymbol * Get justSymbol
*
* @return justSymbol * @return justSymbol
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
public void setJustSymbol(JustSymbolEnum justSymbol) { public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
} }
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) { public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
@ -136,21 +152,23 @@ public class EnumArrays {
/** /**
* Get arrayEnum * Get arrayEnum
*
* @return arrayEnum * @return arrayEnum
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) { public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -160,8 +178,8 @@ public class EnumArrays {
return false; return false;
} }
EnumArrays enumArrays = (EnumArrays) o; EnumArrays enumArrays = (EnumArrays) o;
return Objects.equals(this.justSymbol, enumArrays.justSymbol) return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
&& Objects.equals(this.arrayEnum, enumArrays.arrayEnum); Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
} }
@Override @Override
@ -169,6 +187,7 @@ public class EnumArrays {
return Objects.hash(justSymbol, arrayEnum); return Objects.hash(justSymbol, arrayEnum);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -180,7 +199,8 @@ public class EnumArrays {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -188,4 +208,6 @@ public class EnumArrays {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,14 +10,21 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** Gets or Sets EnumClass */ /**
* Gets or Sets EnumClass
*/
public enum EnumClass { public enum EnumClass {
_ABC("_abc"), _ABC("_abc"),
_EFG("-efg"), _EFG("-efg"),
@ -50,3 +57,4 @@ public enum EnumClass {
throw new IllegalArgumentException("Unexpected value '" + value + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -10,19 +10,29 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import org.openapitools.client.model.OuterEnum;
import org.openapitools.client.model.OuterEnumDefaultValue;
import org.openapitools.client.model.OuterEnumInteger;
import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable; import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** EnumTest */ /**
* EnumTest
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
EnumTest.JSON_PROPERTY_ENUM_STRING, EnumTest.JSON_PROPERTY_ENUM_STRING,
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED, EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
@ -33,8 +43,11 @@ import org.openapitools.jackson.nullable.JsonNullable;
EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE,
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE
}) })
public class EnumTest { public class EnumTest {
/** Gets or Sets enumString */ /**
* Gets or Sets enumString
*/
public enum EnumStringEnum { public enum EnumStringEnum {
UPPER("UPPER"), UPPER("UPPER"),
@ -72,7 +85,9 @@ public class EnumTest {
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
private EnumStringEnum enumString; private EnumStringEnum enumString;
/** Gets or Sets enumStringRequired */ /**
* Gets or Sets enumStringRequired
*/
public enum EnumStringRequiredEnum { public enum EnumStringRequiredEnum {
UPPER("UPPER"), UPPER("UPPER"),
@ -110,7 +125,9 @@ public class EnumTest {
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
private EnumStringRequiredEnum enumStringRequired; private EnumStringRequiredEnum enumStringRequired;
/** Gets or Sets enumInteger */ /**
* Gets or Sets enumInteger
*/
public enum EnumIntegerEnum { public enum EnumIntegerEnum {
NUMBER_1(1), NUMBER_1(1),
@ -146,7 +163,9 @@ public class EnumTest {
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
private EnumIntegerEnum enumInteger; private EnumIntegerEnum enumInteger;
/** Gets or Sets enumNumber */ /**
* Gets or Sets enumNumber
*/
public enum EnumNumberEnum { public enum EnumNumberEnum {
NUMBER_1_DOT_1(1.1), NUMBER_1_DOT_1(1.1),
@ -191,10 +210,9 @@ public class EnumTest {
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
"outerEnumIntegerDefaultValue"; private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue =
OuterEnumIntegerDefaultValue.NUMBER_0;
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
@ -204,21 +222,23 @@ public class EnumTest {
/** /**
* Get enumString * Get enumString
*
* @return enumString * @return enumString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
public void setEnumString(EnumStringEnum enumString) { public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
} }
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
@ -227,20 +247,22 @@ public class EnumTest {
/** /**
* Get enumStringRequired * Get enumStringRequired
*
* @return enumStringRequired * @return enumStringRequired
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public EnumStringRequiredEnum getEnumStringRequired() { public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired; return enumStringRequired;
} }
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
} }
public EnumTest enumInteger(EnumIntegerEnum enumInteger) { public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
@ -249,21 +271,23 @@ public class EnumTest {
/** /**
* Get enumInteger * Get enumInteger
*
* @return enumInteger * @return enumInteger
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
public void setEnumInteger(EnumIntegerEnum enumInteger) { public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
} }
public EnumTest enumNumber(EnumNumberEnum enumNumber) { public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
@ -272,21 +296,23 @@ public class EnumTest {
/** /**
* Get enumNumber * Get enumNumber
*
* @return enumNumber * @return enumNumber
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
public void setEnumNumber(EnumNumberEnum enumNumber) { public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
} }
public EnumTest outerEnum(OuterEnum outerEnum) { public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum); this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
@ -295,18 +321,19 @@ public class EnumTest {
/** /**
* Get outerEnum * Get outerEnum
*
* @return outerEnum * @return outerEnum
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum.orElse(null); return outerEnum.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<OuterEnum> getOuterEnum_JsonNullable() { public JsonNullable<OuterEnum> getOuterEnum_JsonNullable() {
return outerEnum; return outerEnum;
} }
@ -320,6 +347,7 @@ public class EnumTest {
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum); this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
} }
public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger; this.outerEnumInteger = outerEnumInteger;
@ -328,21 +356,23 @@ public class EnumTest {
/** /**
* Get outerEnumInteger * Get outerEnumInteger
*
* @return outerEnumInteger * @return outerEnumInteger
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnumInteger getOuterEnumInteger() { public OuterEnumInteger getOuterEnumInteger() {
return outerEnumInteger; return outerEnumInteger;
} }
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger; this.outerEnumInteger = outerEnumInteger;
} }
public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue; this.outerEnumDefaultValue = outerEnumDefaultValue;
@ -351,23 +381,24 @@ public class EnumTest {
/** /**
* Get outerEnumDefaultValue * Get outerEnumDefaultValue
*
* @return outerEnumDefaultValue * @return outerEnumDefaultValue
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnumDefaultValue getOuterEnumDefaultValue() { public OuterEnumDefaultValue getOuterEnumDefaultValue() {
return outerEnumDefaultValue; return outerEnumDefaultValue;
} }
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue; this.outerEnumDefaultValue = outerEnumDefaultValue;
} }
public EnumTest outerEnumIntegerDefaultValue(
OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
return this; return this;
@ -375,22 +406,23 @@ public class EnumTest {
/** /**
* Get outerEnumIntegerDefaultValue * Get outerEnumIntegerDefaultValue
*
* @return outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
return outerEnumIntegerDefaultValue; return outerEnumIntegerDefaultValue;
} }
public void setOuterEnumIntegerDefaultValue(
OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -400,29 +432,22 @@ public class EnumTest {
return false; return false;
} }
EnumTest enumTest = (EnumTest) o; EnumTest enumTest = (EnumTest) o;
return Objects.equals(this.enumString, enumTest.enumString) return Objects.equals(this.enumString, enumTest.enumString) &&
&& Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
&& Objects.equals(this.enumInteger, enumTest.enumInteger) Objects.equals(this.enumInteger, enumTest.enumInteger) &&
&& Objects.equals(this.enumNumber, enumTest.enumNumber) Objects.equals(this.enumNumber, enumTest.enumNumber) &&
&& Objects.equals(this.outerEnum, enumTest.outerEnum) Objects.equals(this.outerEnum, enumTest.outerEnum) &&
&& Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
&& Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
&& Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue); Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum, outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
enumString,
enumStringRequired,
enumInteger,
enumNumber,
outerEnum,
outerEnumInteger,
outerEnumDefaultValue,
outerEnumIntegerDefaultValue);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -433,18 +458,15 @@ public class EnumTest {
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n"); sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n"); sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n");
sb.append(" outerEnumDefaultValue: ") sb.append(" outerEnumDefaultValue: ").append(toIndentedString(outerEnumDefaultValue)).append("\n");
.append(toIndentedString(outerEnumDefaultValue)) sb.append(" outerEnumIntegerDefaultValue: ").append(toIndentedString(outerEnumIntegerDefaultValue)).append("\n");
.append("\n");
sb.append(" outerEnumIntegerDefaultValue: ")
.append(toIndentedString(outerEnumIntegerDefaultValue))
.append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -452,4 +474,6 @@ public class EnumTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,21 +10,29 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** FileSchemaTestClass */ /**
* FileSchemaTestClass
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
FileSchemaTestClass.JSON_PROPERTY_FILE, FileSchemaTestClass.JSON_PROPERTY_FILE,
FileSchemaTestClass.JSON_PROPERTY_FILES FileSchemaTestClass.JSON_PROPERTY_FILES
}) })
public class FileSchemaTestClass { public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILE = "file"; public static final String JSON_PROPERTY_FILE = "file";
private java.io.File file; private java.io.File file;
@ -32,6 +40,7 @@ public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILES = "files"; public static final String JSON_PROPERTY_FILES = "files";
private List<java.io.File> files = null; private List<java.io.File> files = null;
public FileSchemaTestClass file(java.io.File file) { public FileSchemaTestClass file(java.io.File file) {
this.file = file; this.file = file;
@ -40,21 +49,23 @@ public class FileSchemaTestClass {
/** /**
* Get file * Get file
*
* @return file * @return file
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE) @JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.io.File getFile() { public java.io.File getFile() {
return file; return file;
} }
public void setFile(java.io.File file) { public void setFile(java.io.File file) {
this.file = file; this.file = file;
} }
public FileSchemaTestClass files(List<java.io.File> files) { public FileSchemaTestClass files(List<java.io.File> files) {
this.files = files; this.files = files;
@ -71,21 +82,23 @@ public class FileSchemaTestClass {
/** /**
* Get files * Get files
*
* @return files * @return files
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES) @JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<java.io.File> getFiles() { public List<java.io.File> getFiles() {
return files; return files;
} }
public void setFiles(List<java.io.File> files) { public void setFiles(List<java.io.File> files) {
this.files = files; this.files = files;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -95,8 +108,8 @@ public class FileSchemaTestClass {
return false; return false;
} }
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o; FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
return Objects.equals(this.file, fileSchemaTestClass.file) return Objects.equals(this.file, fileSchemaTestClass.file) &&
&& Objects.equals(this.files, fileSchemaTestClass.files); Objects.equals(this.files, fileSchemaTestClass.files);
} }
@Override @Override
@ -104,6 +117,7 @@ public class FileSchemaTestClass {
return Objects.hash(file, files); return Objects.hash(file, files);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -115,7 +129,8 @@ public class FileSchemaTestClass {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -123,4 +138,6 @@ public class FileSchemaTestClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Foo
*/
@JsonPropertyOrder({
Foo.JSON_PROPERTY_BAR
})
/** Foo */
@JsonPropertyOrder({Foo.JSON_PROPERTY_BAR})
public class Foo { public class Foo {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
private String bar = "bar"; private String bar = "bar";
public Foo bar(String bar) { public Foo bar(String bar) {
this.bar = bar; this.bar = bar;
@ -32,21 +43,23 @@ public class Foo {
/** /**
* Get bar * Get bar
*
* @return bar * @return bar
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR) @JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
public void setBar(String bar) { public void setBar(String bar) {
this.bar = bar; this.bar = bar;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,6 +77,7 @@ public class Foo {
return Objects.hash(bar); return Objects.hash(bar);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -74,7 +88,8 @@ public class Foo {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -82,4 +97,6 @@ public class Foo {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,21 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.File; import java.io.File;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import org.threeten.bp.LocalDate; import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** FormatTest */ /**
* FormatTest
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
FormatTest.JSON_PROPERTY_INTEGER, FormatTest.JSON_PROPERTY_INTEGER,
FormatTest.JSON_PROPERTY_INT32, FormatTest.JSON_PROPERTY_INT32,
@ -42,6 +48,7 @@ import org.threeten.bp.OffsetDateTime;
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS, FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS,
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER
}) })
public class FormatTest { public class FormatTest {
public static final String JSON_PROPERTY_INTEGER = "integer"; public static final String JSON_PROPERTY_INTEGER = "integer";
private Integer integer; private Integer integer;
@ -85,10 +92,10 @@ public class FormatTest {
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
private String patternWithDigits; private String patternWithDigits;
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
"pattern_with_digits_and_delimiter";
private String patternWithDigitsAndDelimiter; private String patternWithDigitsAndDelimiter;
public FormatTest integer(Integer integer) { public FormatTest integer(Integer integer) {
this.integer = integer; this.integer = integer;
@ -96,22 +103,26 @@ public class FormatTest {
} }
/** /**
* Get integer minimum: 10 maximum: 100 * Get integer
* * minimum: 10
* maximum: 100
* @return integer * @return integer
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER) @JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
public void setInteger(Integer integer) { public void setInteger(Integer integer) {
this.integer = integer; this.integer = integer;
} }
public FormatTest int32(Integer int32) { public FormatTest int32(Integer int32) {
this.int32 = int32; this.int32 = int32;
@ -119,22 +130,26 @@ public class FormatTest {
} }
/** /**
* Get int32 minimum: 20 maximum: 200 * Get int32
* * minimum: 20
* maximum: 200
* @return int32 * @return int32
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32) @JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
public void setInt32(Integer int32) { public void setInt32(Integer int32) {
this.int32 = int32; this.int32 = int32;
} }
public FormatTest int64(Long int64) { public FormatTest int64(Long int64) {
this.int64 = int64; this.int64 = int64;
@ -143,21 +158,23 @@ public class FormatTest {
/** /**
* Get int64 * Get int64
*
* @return int64 * @return int64
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64) @JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
public void setInt64(Long int64) { public void setInt64(Long int64) {
this.int64 = int64; this.int64 = int64;
} }
public FormatTest number(BigDecimal number) { public FormatTest number(BigDecimal number) {
this.number = number; this.number = number;
@ -165,21 +182,25 @@ public class FormatTest {
} }
/** /**
* Get number minimum: 32.1 maximum: 543.2 * Get number
* * minimum: 32.1
* maximum: 543.2
* @return number * @return number
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER) @JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
public void setNumber(BigDecimal number) { public void setNumber(BigDecimal number) {
this.number = number; this.number = number;
} }
public FormatTest _float(Float _float) { public FormatTest _float(Float _float) {
this._float = _float; this._float = _float;
@ -187,22 +208,26 @@ public class FormatTest {
} }
/** /**
* Get _float minimum: 54.3 maximum: 987.6 * Get _float
* * minimum: 54.3
* maximum: 987.6
* @return _float * @return _float
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT) @JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
public void setFloat(Float _float) { public void setFloat(Float _float) {
this._float = _float; this._float = _float;
} }
public FormatTest _double(Double _double) { public FormatTest _double(Double _double) {
this._double = _double; this._double = _double;
@ -210,22 +235,26 @@ public class FormatTest {
} }
/** /**
* Get _double minimum: 67.8 maximum: 123.4 * Get _double
* * minimum: 67.8
* maximum: 123.4
* @return _double * @return _double
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE) @JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
public void setDouble(Double _double) { public void setDouble(Double _double) {
this._double = _double; this._double = _double;
} }
public FormatTest string(String string) { public FormatTest string(String string) {
this.string = string; this.string = string;
@ -234,21 +263,23 @@ public class FormatTest {
/** /**
* Get string * Get string
*
* @return string * @return string
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING) @JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getString() { public String getString() {
return string; return string;
} }
public void setString(String string) { public void setString(String string) {
this.string = string; this.string = string;
} }
public FormatTest _byte(byte[] _byte) { public FormatTest _byte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
@ -257,20 +288,22 @@ public class FormatTest {
/** /**
* Get _byte * Get _byte
*
* @return _byte * @return _byte
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE) @JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
public void setByte(byte[] _byte) { public void setByte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
} }
public FormatTest binary(File binary) { public FormatTest binary(File binary) {
this.binary = binary; this.binary = binary;
@ -279,21 +312,23 @@ public class FormatTest {
/** /**
* Get binary * Get binary
*
* @return binary * @return binary
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY) @JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getBinary() { public File getBinary() {
return binary; return binary;
} }
public void setBinary(File binary) { public void setBinary(File binary) {
this.binary = binary; this.binary = binary;
} }
public FormatTest date(LocalDate date) { public FormatTest date(LocalDate date) {
this.date = date; this.date = date;
@ -302,20 +337,22 @@ public class FormatTest {
/** /**
* Get date * Get date
*
* @return date * @return date
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE) @JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
public void setDate(LocalDate date) { public void setDate(LocalDate date) {
this.date = date; this.date = date;
} }
public FormatTest dateTime(OffsetDateTime dateTime) { public FormatTest dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
@ -324,21 +361,23 @@ public class FormatTest {
/** /**
* Get dateTime * Get dateTime
*
* @return dateTime * @return dateTime
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest uuid(UUID uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
@ -347,21 +386,23 @@ public class FormatTest {
/** /**
* Get uuid * Get uuid
*
* @return uuid * @return uuid
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty(JSON_PROPERTY_UUID) @JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public FormatTest password(String password) { public FormatTest password(String password) {
this.password = password; this.password = password;
@ -370,20 +411,22 @@ public class FormatTest {
/** /**
* Get password * Get password
*
* @return password * @return password
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD) @JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public FormatTest patternWithDigits(String patternWithDigits) { public FormatTest patternWithDigits(String patternWithDigits) {
this.patternWithDigits = patternWithDigits; this.patternWithDigits = patternWithDigits;
@ -392,21 +435,23 @@ public class FormatTest {
/** /**
* A string that is a 10 digit number. Can have leading zeros. * A string that is a 10 digit number. Can have leading zeros.
*
* @return patternWithDigits * @return patternWithDigits
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.") @ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.")
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPatternWithDigits() { public String getPatternWithDigits() {
return patternWithDigits; return patternWithDigits;
} }
public void setPatternWithDigits(String patternWithDigits) { public void setPatternWithDigits(String patternWithDigits) {
this.patternWithDigits = patternWithDigits; this.patternWithDigits = patternWithDigits;
} }
public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
@ -414,25 +459,24 @@ public class FormatTest {
} }
/** /**
* A string starting with &#39;image_&#39; (case insensitive) and one to three digits following * A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.
* i.e. Image_01.
*
* @return patternWithDigitsAndDelimiter * @return patternWithDigitsAndDelimiter
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty( @ApiModelProperty(value = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.")
value =
"A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.")
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPatternWithDigitsAndDelimiter() { public String getPatternWithDigitsAndDelimiter() {
return patternWithDigitsAndDelimiter; return patternWithDigitsAndDelimiter;
} }
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -442,44 +486,29 @@ public class FormatTest {
return false; return false;
} }
FormatTest formatTest = (FormatTest) o; FormatTest formatTest = (FormatTest) o;
return Objects.equals(this.integer, formatTest.integer) return Objects.equals(this.integer, formatTest.integer) &&
&& Objects.equals(this.int32, formatTest.int32) Objects.equals(this.int32, formatTest.int32) &&
&& Objects.equals(this.int64, formatTest.int64) Objects.equals(this.int64, formatTest.int64) &&
&& Objects.equals(this.number, formatTest.number) Objects.equals(this.number, formatTest.number) &&
&& Objects.equals(this._float, formatTest._float) Objects.equals(this._float, formatTest._float) &&
&& Objects.equals(this._double, formatTest._double) Objects.equals(this._double, formatTest._double) &&
&& Objects.equals(this.string, formatTest.string) Objects.equals(this.string, formatTest.string) &&
&& Arrays.equals(this._byte, formatTest._byte) Arrays.equals(this._byte, formatTest._byte) &&
&& Objects.equals(this.binary, formatTest.binary) Objects.equals(this.binary, formatTest.binary) &&
&& Objects.equals(this.date, formatTest.date) Objects.equals(this.date, formatTest.date) &&
&& Objects.equals(this.dateTime, formatTest.dateTime) Objects.equals(this.dateTime, formatTest.dateTime) &&
&& Objects.equals(this.uuid, formatTest.uuid) Objects.equals(this.uuid, formatTest.uuid) &&
&& Objects.equals(this.password, formatTest.password) Objects.equals(this.password, formatTest.password) &&
&& Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
&& Objects.equals( Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
integer,
int32,
int64,
number,
_float,
_double,
string,
Arrays.hashCode(_byte),
binary,
date,
dateTime,
uuid,
password,
patternWithDigits,
patternWithDigitsAndDelimiter);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -498,15 +527,14 @@ public class FormatTest {
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n"); sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n");
sb.append(" patternWithDigitsAndDelimiter: ") sb.append(" patternWithDigitsAndDelimiter: ").append(toIndentedString(patternWithDigitsAndDelimiter)).append("\n");
.append(toIndentedString(patternWithDigitsAndDelimiter))
.append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -514,4 +542,6 @@ public class FormatTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* HasOnlyReadOnly
*/
@JsonPropertyOrder({
HasOnlyReadOnly.JSON_PROPERTY_BAR,
HasOnlyReadOnly.JSON_PROPERTY_FOO
})
/** HasOnlyReadOnly */
@JsonPropertyOrder({HasOnlyReadOnly.JSON_PROPERTY_BAR, HasOnlyReadOnly.JSON_PROPERTY_FOO})
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
private String bar; private String bar;
@ -27,32 +38,39 @@ public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_FOO = "foo"; public static final String JSON_PROPERTY_FOO = "foo";
private String foo; private String foo;
/** /**
* Get bar * Get bar
*
* @return bar * @return bar
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR) @JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
/** /**
* Get foo * Get foo
*
* @return foo * @return foo
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO) @JsonProperty(JSON_PROPERTY_FOO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFoo() { public String getFoo() {
return foo; return foo;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -62,8 +80,8 @@ public class HasOnlyReadOnly {
return false; return false;
} }
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o; HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
return Objects.equals(this.bar, hasOnlyReadOnly.bar) return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
&& Objects.equals(this.foo, hasOnlyReadOnly.foo); Objects.equals(this.foo, hasOnlyReadOnly.foo);
} }
@Override @Override
@ -71,6 +89,7 @@ public class HasOnlyReadOnly {
return Objects.hash(bar, foo); return Objects.hash(bar, foo);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -82,7 +101,8 @@ public class HasOnlyReadOnly {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -90,4 +110,6 @@ public class HasOnlyReadOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,29 +10,35 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable; import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** /**
* Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
* in generated model.
*/ */
@ApiModel( @ApiModel(description = "Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.")
description = @JsonPropertyOrder({
"Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.") HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE
@JsonPropertyOrder({HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE}) })
public class HealthCheckResult { public class HealthCheckResult {
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined(); private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
public HealthCheckResult nullableMessage(String nullableMessage) { public HealthCheckResult nullableMessage(String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage); this.nullableMessage = JsonNullable.<String>of(nullableMessage);
@ -41,18 +47,19 @@ public class HealthCheckResult {
/** /**
* Get nullableMessage * Get nullableMessage
*
* @return nullableMessage * @return nullableMessage
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public String getNullableMessage() { public String getNullableMessage() {
return nullableMessage.orElse(null); return nullableMessage.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<String> getNullableMessage_JsonNullable() { public JsonNullable<String> getNullableMessage_JsonNullable() {
return nullableMessage; return nullableMessage;
} }
@ -66,6 +73,7 @@ public class HealthCheckResult {
this.nullableMessage = JsonNullable.<String>of(nullableMessage); this.nullableMessage = JsonNullable.<String>of(nullableMessage);
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -83,6 +91,7 @@ public class HealthCheckResult {
return Objects.hash(nullableMessage); return Objects.hash(nullableMessage);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -93,7 +102,8 @@ public class HealthCheckResult {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -101,4 +111,6 @@ public class HealthCheckResult {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* InlineObject
*/
@JsonPropertyOrder({
InlineObject.JSON_PROPERTY_NAME,
InlineObject.JSON_PROPERTY_STATUS
})
/** InlineObject */
@JsonPropertyOrder({InlineObject.JSON_PROPERTY_NAME, InlineObject.JSON_PROPERTY_STATUS})
public class InlineObject { public class InlineObject {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
private String name; private String name;
@ -27,6 +38,7 @@ public class InlineObject {
public static final String JSON_PROPERTY_STATUS = "status"; public static final String JSON_PROPERTY_STATUS = "status";
private String status; private String status;
public InlineObject name(String name) { public InlineObject name(String name) {
this.name = name; this.name = name;
@ -35,21 +47,23 @@ public class InlineObject {
/** /**
* Updated name of the pet * Updated name of the pet
*
* @return name * @return name
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Updated name of the pet") @ApiModelProperty(value = "Updated name of the pet")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public InlineObject status(String status) { public InlineObject status(String status) {
this.status = status; this.status = status;
@ -58,21 +72,23 @@ public class InlineObject {
/** /**
* Updated status of the pet * Updated status of the pet
*
* @return status * @return status
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Updated status of the pet") @ApiModelProperty(value = "Updated status of the pet")
@JsonProperty(JSON_PROPERTY_STATUS) @JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStatus() { public String getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(String status) {
this.status = status; this.status = status;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -82,8 +98,8 @@ public class InlineObject {
return false; return false;
} }
InlineObject inlineObject = (InlineObject) o; InlineObject inlineObject = (InlineObject) o;
return Objects.equals(this.name, inlineObject.name) return Objects.equals(this.name, inlineObject.name) &&
&& Objects.equals(this.status, inlineObject.status); Objects.equals(this.status, inlineObject.status);
} }
@Override @Override
@ -91,6 +107,7 @@ public class InlineObject {
return Objects.hash(name, status); return Objects.hash(name, status);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -102,7 +119,8 @@ public class InlineObject {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -110,4 +128,6 @@ public class InlineObject {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,28 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.File; import java.io.File;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** InlineObject1 */ /**
* InlineObject1
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
InlineObject1.JSON_PROPERTY_ADDITIONAL_METADATA, InlineObject1.JSON_PROPERTY_ADDITIONAL_METADATA,
InlineObject1.JSON_PROPERTY_FILE InlineObject1.JSON_PROPERTY_FILE
}) })
public class InlineObject1 { public class InlineObject1 {
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata"; public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
private String additionalMetadata; private String additionalMetadata;
@ -31,6 +39,7 @@ public class InlineObject1 {
public static final String JSON_PROPERTY_FILE = "file"; public static final String JSON_PROPERTY_FILE = "file";
private File file; private File file;
public InlineObject1 additionalMetadata(String additionalMetadata) { public InlineObject1 additionalMetadata(String additionalMetadata) {
this.additionalMetadata = additionalMetadata; this.additionalMetadata = additionalMetadata;
@ -39,21 +48,23 @@ public class InlineObject1 {
/** /**
* Additional data to pass to server * Additional data to pass to server
*
* @return additionalMetadata * @return additionalMetadata
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Additional data to pass to server") @ApiModelProperty(value = "Additional data to pass to server")
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA) @JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdditionalMetadata() { public String getAdditionalMetadata() {
return additionalMetadata; return additionalMetadata;
} }
public void setAdditionalMetadata(String additionalMetadata) { public void setAdditionalMetadata(String additionalMetadata) {
this.additionalMetadata = additionalMetadata; this.additionalMetadata = additionalMetadata;
} }
public InlineObject1 file(File file) { public InlineObject1 file(File file) {
this.file = file; this.file = file;
@ -62,21 +73,23 @@ public class InlineObject1 {
/** /**
* file to upload * file to upload
*
* @return file * @return file
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "file to upload") @ApiModelProperty(value = "file to upload")
@JsonProperty(JSON_PROPERTY_FILE) @JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getFile() { public File getFile() {
return file; return file;
} }
public void setFile(File file) { public void setFile(File file) {
this.file = file; this.file = file;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -86,8 +99,8 @@ public class InlineObject1 {
return false; return false;
} }
InlineObject1 inlineObject1 = (InlineObject1) o; InlineObject1 inlineObject1 = (InlineObject1) o;
return Objects.equals(this.additionalMetadata, inlineObject1.additionalMetadata) return Objects.equals(this.additionalMetadata, inlineObject1.additionalMetadata) &&
&& Objects.equals(this.file, inlineObject1.file); Objects.equals(this.file, inlineObject1.file);
} }
@Override @Override
@ -95,6 +108,7 @@ public class InlineObject1 {
return Objects.hash(additionalMetadata, file); return Objects.hash(additionalMetadata, file);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -106,7 +120,8 @@ public class InlineObject1 {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -114,4 +129,6 @@ public class InlineObject1 {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,25 +10,33 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** InlineObject2 */ /**
* InlineObject2
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING_ARRAY, InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING_ARRAY,
InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING
}) })
public class InlineObject2 { public class InlineObject2 {
/** Gets or Sets enumFormStringArray */ /**
* Gets or Sets enumFormStringArray
*/
public enum EnumFormStringArrayEnum { public enum EnumFormStringArrayEnum {
GREATER_THAN(">"), GREATER_THAN(">"),
@ -64,7 +72,9 @@ public class InlineObject2 {
public static final String JSON_PROPERTY_ENUM_FORM_STRING_ARRAY = "enum_form_string_array"; public static final String JSON_PROPERTY_ENUM_FORM_STRING_ARRAY = "enum_form_string_array";
private List<EnumFormStringArrayEnum> enumFormStringArray = null; private List<EnumFormStringArrayEnum> enumFormStringArray = null;
/** Form parameter enum test (string) */ /**
* Form parameter enum test (string)
*/
public enum EnumFormStringEnum { public enum EnumFormStringEnum {
_ABC("_abc"), _ABC("_abc"),
@ -102,6 +112,7 @@ public class InlineObject2 {
public static final String JSON_PROPERTY_ENUM_FORM_STRING = "enum_form_string"; public static final String JSON_PROPERTY_ENUM_FORM_STRING = "enum_form_string";
private EnumFormStringEnum enumFormString = EnumFormStringEnum._EFG; private EnumFormStringEnum enumFormString = EnumFormStringEnum._EFG;
public InlineObject2 enumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) { public InlineObject2 enumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) {
this.enumFormStringArray = enumFormStringArray; this.enumFormStringArray = enumFormStringArray;
@ -118,21 +129,23 @@ public class InlineObject2 {
/** /**
* Form parameter enum test (string array) * Form parameter enum test (string array)
*
* @return enumFormStringArray * @return enumFormStringArray
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Form parameter enum test (string array)") @ApiModelProperty(value = "Form parameter enum test (string array)")
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING_ARRAY) @JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<EnumFormStringArrayEnum> getEnumFormStringArray() { public List<EnumFormStringArrayEnum> getEnumFormStringArray() {
return enumFormStringArray; return enumFormStringArray;
} }
public void setEnumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) { public void setEnumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) {
this.enumFormStringArray = enumFormStringArray; this.enumFormStringArray = enumFormStringArray;
} }
public InlineObject2 enumFormString(EnumFormStringEnum enumFormString) { public InlineObject2 enumFormString(EnumFormStringEnum enumFormString) {
this.enumFormString = enumFormString; this.enumFormString = enumFormString;
@ -141,21 +154,23 @@ public class InlineObject2 {
/** /**
* Form parameter enum test (string) * Form parameter enum test (string)
*
* @return enumFormString * @return enumFormString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Form parameter enum test (string)") @ApiModelProperty(value = "Form parameter enum test (string)")
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING) @JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumFormStringEnum getEnumFormString() { public EnumFormStringEnum getEnumFormString() {
return enumFormString; return enumFormString;
} }
public void setEnumFormString(EnumFormStringEnum enumFormString) { public void setEnumFormString(EnumFormStringEnum enumFormString) {
this.enumFormString = enumFormString; this.enumFormString = enumFormString;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -165,8 +180,8 @@ public class InlineObject2 {
return false; return false;
} }
InlineObject2 inlineObject2 = (InlineObject2) o; InlineObject2 inlineObject2 = (InlineObject2) o;
return Objects.equals(this.enumFormStringArray, inlineObject2.enumFormStringArray) return Objects.equals(this.enumFormStringArray, inlineObject2.enumFormStringArray) &&
&& Objects.equals(this.enumFormString, inlineObject2.enumFormString); Objects.equals(this.enumFormString, inlineObject2.enumFormString);
} }
@Override @Override
@ -174,20 +189,20 @@ public class InlineObject2 {
return Objects.hash(enumFormStringArray, enumFormString); return Objects.hash(enumFormStringArray, enumFormString);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class InlineObject2 {\n"); sb.append("class InlineObject2 {\n");
sb.append(" enumFormStringArray: ") sb.append(" enumFormStringArray: ").append(toIndentedString(enumFormStringArray)).append("\n");
.append(toIndentedString(enumFormStringArray))
.append("\n");
sb.append(" enumFormString: ").append(toIndentedString(enumFormString)).append("\n"); sb.append(" enumFormString: ").append(toIndentedString(enumFormString)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -195,4 +210,6 @@ public class InlineObject2 {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,26 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.File; import java.io.File;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Objects;
import org.threeten.bp.LocalDate; import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** InlineObject3 */ /**
* InlineObject3
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
InlineObject3.JSON_PROPERTY_INTEGER, InlineObject3.JSON_PROPERTY_INTEGER,
InlineObject3.JSON_PROPERTY_INT32, InlineObject3.JSON_PROPERTY_INT32,
@ -40,6 +46,7 @@ import org.threeten.bp.OffsetDateTime;
InlineObject3.JSON_PROPERTY_PASSWORD, InlineObject3.JSON_PROPERTY_PASSWORD,
InlineObject3.JSON_PROPERTY_CALLBACK InlineObject3.JSON_PROPERTY_CALLBACK
}) })
public class InlineObject3 { public class InlineObject3 {
public static final String JSON_PROPERTY_INTEGER = "integer"; public static final String JSON_PROPERTY_INTEGER = "integer";
private Integer integer; private Integer integer;
@ -83,6 +90,7 @@ public class InlineObject3 {
public static final String JSON_PROPERTY_CALLBACK = "callback"; public static final String JSON_PROPERTY_CALLBACK = "callback";
private String callback; private String callback;
public InlineObject3 integer(Integer integer) { public InlineObject3 integer(Integer integer) {
this.integer = integer; this.integer = integer;
@ -90,22 +98,26 @@ public class InlineObject3 {
} }
/** /**
* None minimum: 10 maximum: 100 * None
* * minimum: 10
* maximum: 100
* @return integer * @return integer
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_INTEGER) @JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
public void setInteger(Integer integer) { public void setInteger(Integer integer) {
this.integer = integer; this.integer = integer;
} }
public InlineObject3 int32(Integer int32) { public InlineObject3 int32(Integer int32) {
this.int32 = int32; this.int32 = int32;
@ -113,22 +125,26 @@ public class InlineObject3 {
} }
/** /**
* None minimum: 20 maximum: 200 * None
* * minimum: 20
* maximum: 200
* @return int32 * @return int32
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_INT32) @JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
public void setInt32(Integer int32) { public void setInt32(Integer int32) {
this.int32 = int32; this.int32 = int32;
} }
public InlineObject3 int64(Long int64) { public InlineObject3 int64(Long int64) {
this.int64 = int64; this.int64 = int64;
@ -137,21 +153,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return int64 * @return int64
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_INT64) @JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
public void setInt64(Long int64) { public void setInt64(Long int64) {
this.int64 = int64; this.int64 = int64;
} }
public InlineObject3 number(BigDecimal number) { public InlineObject3 number(BigDecimal number) {
this.number = number; this.number = number;
@ -159,21 +177,25 @@ public class InlineObject3 {
} }
/** /**
* None minimum: 32.1 maximum: 543.2 * None
* * minimum: 32.1
* maximum: 543.2
* @return number * @return number
*/ **/
@ApiModelProperty(required = true, value = "None") @ApiModelProperty(required = true, value = "None")
@JsonProperty(JSON_PROPERTY_NUMBER) @JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
public void setNumber(BigDecimal number) { public void setNumber(BigDecimal number) {
this.number = number; this.number = number;
} }
public InlineObject3 _float(Float _float) { public InlineObject3 _float(Float _float) {
this._float = _float; this._float = _float;
@ -181,22 +203,25 @@ public class InlineObject3 {
} }
/** /**
* None maximum: 987.6 * None
* * maximum: 987.6
* @return _float * @return _float
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_FLOAT) @JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
public void setFloat(Float _float) { public void setFloat(Float _float) {
this._float = _float; this._float = _float;
} }
public InlineObject3 _double(Double _double) { public InlineObject3 _double(Double _double) {
this._double = _double; this._double = _double;
@ -204,21 +229,25 @@ public class InlineObject3 {
} }
/** /**
* None minimum: 67.8 maximum: 123.4 * None
* * minimum: 67.8
* maximum: 123.4
* @return _double * @return _double
*/ **/
@ApiModelProperty(required = true, value = "None") @ApiModelProperty(required = true, value = "None")
@JsonProperty(JSON_PROPERTY_DOUBLE) @JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
public void setDouble(Double _double) { public void setDouble(Double _double) {
this._double = _double; this._double = _double;
} }
public InlineObject3 string(String string) { public InlineObject3 string(String string) {
this.string = string; this.string = string;
@ -227,21 +256,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return string * @return string
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_STRING) @JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getString() { public String getString() {
return string; return string;
} }
public void setString(String string) { public void setString(String string) {
this.string = string; this.string = string;
} }
public InlineObject3 patternWithoutDelimiter(String patternWithoutDelimiter) { public InlineObject3 patternWithoutDelimiter(String patternWithoutDelimiter) {
this.patternWithoutDelimiter = patternWithoutDelimiter; this.patternWithoutDelimiter = patternWithoutDelimiter;
@ -250,20 +281,22 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return patternWithoutDelimiter * @return patternWithoutDelimiter
*/ **/
@ApiModelProperty(required = true, value = "None") @ApiModelProperty(required = true, value = "None")
@JsonProperty(JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER) @JsonProperty(JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPatternWithoutDelimiter() { public String getPatternWithoutDelimiter() {
return patternWithoutDelimiter; return patternWithoutDelimiter;
} }
public void setPatternWithoutDelimiter(String patternWithoutDelimiter) { public void setPatternWithoutDelimiter(String patternWithoutDelimiter) {
this.patternWithoutDelimiter = patternWithoutDelimiter; this.patternWithoutDelimiter = patternWithoutDelimiter;
} }
public InlineObject3 _byte(byte[] _byte) { public InlineObject3 _byte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
@ -272,20 +305,22 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return _byte * @return _byte
*/ **/
@ApiModelProperty(required = true, value = "None") @ApiModelProperty(required = true, value = "None")
@JsonProperty(JSON_PROPERTY_BYTE) @JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
public void setByte(byte[] _byte) { public void setByte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
} }
public InlineObject3 binary(File binary) { public InlineObject3 binary(File binary) {
this.binary = binary; this.binary = binary;
@ -294,21 +329,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return binary * @return binary
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_BINARY) @JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getBinary() { public File getBinary() {
return binary; return binary;
} }
public void setBinary(File binary) { public void setBinary(File binary) {
this.binary = binary; this.binary = binary;
} }
public InlineObject3 date(LocalDate date) { public InlineObject3 date(LocalDate date) {
this.date = date; this.date = date;
@ -317,21 +354,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return date * @return date
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_DATE) @JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
public void setDate(LocalDate date) { public void setDate(LocalDate date) {
this.date = date; this.date = date;
} }
public InlineObject3 dateTime(OffsetDateTime dateTime) { public InlineObject3 dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
@ -340,21 +379,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return dateTime * @return dateTime
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public InlineObject3 password(String password) { public InlineObject3 password(String password) {
this.password = password; this.password = password;
@ -363,21 +404,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return password * @return password
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_PASSWORD) @JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public InlineObject3 callback(String callback) { public InlineObject3 callback(String callback) {
this.callback = callback; this.callback = callback;
@ -386,21 +429,23 @@ public class InlineObject3 {
/** /**
* None * None
*
* @return callback * @return callback
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "None") @ApiModelProperty(value = "None")
@JsonProperty(JSON_PROPERTY_CALLBACK) @JsonProperty(JSON_PROPERTY_CALLBACK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCallback() { public String getCallback() {
return callback; return callback;
} }
public void setCallback(String callback) { public void setCallback(String callback) {
this.callback = callback; this.callback = callback;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -410,41 +455,28 @@ public class InlineObject3 {
return false; return false;
} }
InlineObject3 inlineObject3 = (InlineObject3) o; InlineObject3 inlineObject3 = (InlineObject3) o;
return Objects.equals(this.integer, inlineObject3.integer) return Objects.equals(this.integer, inlineObject3.integer) &&
&& Objects.equals(this.int32, inlineObject3.int32) Objects.equals(this.int32, inlineObject3.int32) &&
&& Objects.equals(this.int64, inlineObject3.int64) Objects.equals(this.int64, inlineObject3.int64) &&
&& Objects.equals(this.number, inlineObject3.number) Objects.equals(this.number, inlineObject3.number) &&
&& Objects.equals(this._float, inlineObject3._float) Objects.equals(this._float, inlineObject3._float) &&
&& Objects.equals(this._double, inlineObject3._double) Objects.equals(this._double, inlineObject3._double) &&
&& Objects.equals(this.string, inlineObject3.string) Objects.equals(this.string, inlineObject3.string) &&
&& Objects.equals(this.patternWithoutDelimiter, inlineObject3.patternWithoutDelimiter) Objects.equals(this.patternWithoutDelimiter, inlineObject3.patternWithoutDelimiter) &&
&& Arrays.equals(this._byte, inlineObject3._byte) Arrays.equals(this._byte, inlineObject3._byte) &&
&& Objects.equals(this.binary, inlineObject3.binary) Objects.equals(this.binary, inlineObject3.binary) &&
&& Objects.equals(this.date, inlineObject3.date) Objects.equals(this.date, inlineObject3.date) &&
&& Objects.equals(this.dateTime, inlineObject3.dateTime) Objects.equals(this.dateTime, inlineObject3.dateTime) &&
&& Objects.equals(this.password, inlineObject3.password) Objects.equals(this.password, inlineObject3.password) &&
&& Objects.equals(this.callback, inlineObject3.callback); Objects.equals(this.callback, inlineObject3.callback);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), binary, date, dateTime, password, callback);
integer,
int32,
int64,
number,
_float,
_double,
string,
patternWithoutDelimiter,
Arrays.hashCode(_byte),
binary,
date,
dateTime,
password,
callback);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -456,9 +488,7 @@ public class InlineObject3 {
sb.append(" _float: ").append(toIndentedString(_float)).append("\n"); sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
sb.append(" _double: ").append(toIndentedString(_double)).append("\n"); sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
sb.append(" string: ").append(toIndentedString(string)).append("\n"); sb.append(" string: ").append(toIndentedString(string)).append("\n");
sb.append(" patternWithoutDelimiter: ") sb.append(" patternWithoutDelimiter: ").append(toIndentedString(patternWithoutDelimiter)).append("\n");
.append(toIndentedString(patternWithoutDelimiter))
.append("\n");
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n"); sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
sb.append(" binary: ").append(toIndentedString(binary)).append("\n"); sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n");
@ -470,7 +500,8 @@ public class InlineObject3 {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -478,4 +509,6 @@ public class InlineObject3 {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* InlineObject4
*/
@JsonPropertyOrder({
InlineObject4.JSON_PROPERTY_PARAM,
InlineObject4.JSON_PROPERTY_PARAM2
})
/** InlineObject4 */
@JsonPropertyOrder({InlineObject4.JSON_PROPERTY_PARAM, InlineObject4.JSON_PROPERTY_PARAM2})
public class InlineObject4 { public class InlineObject4 {
public static final String JSON_PROPERTY_PARAM = "param"; public static final String JSON_PROPERTY_PARAM = "param";
private String param; private String param;
@ -27,6 +38,7 @@ public class InlineObject4 {
public static final String JSON_PROPERTY_PARAM2 = "param2"; public static final String JSON_PROPERTY_PARAM2 = "param2";
private String param2; private String param2;
public InlineObject4 param(String param) { public InlineObject4 param(String param) {
this.param = param; this.param = param;
@ -35,20 +47,22 @@ public class InlineObject4 {
/** /**
* field1 * field1
*
* @return param * @return param
*/ **/
@ApiModelProperty(required = true, value = "field1") @ApiModelProperty(required = true, value = "field1")
@JsonProperty(JSON_PROPERTY_PARAM) @JsonProperty(JSON_PROPERTY_PARAM)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getParam() { public String getParam() {
return param; return param;
} }
public void setParam(String param) { public void setParam(String param) {
this.param = param; this.param = param;
} }
public InlineObject4 param2(String param2) { public InlineObject4 param2(String param2) {
this.param2 = param2; this.param2 = param2;
@ -57,20 +71,22 @@ public class InlineObject4 {
/** /**
* field2 * field2
*
* @return param2 * @return param2
*/ **/
@ApiModelProperty(required = true, value = "field2") @ApiModelProperty(required = true, value = "field2")
@JsonProperty(JSON_PROPERTY_PARAM2) @JsonProperty(JSON_PROPERTY_PARAM2)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getParam2() { public String getParam2() {
return param2; return param2;
} }
public void setParam2(String param2) { public void setParam2(String param2) {
this.param2 = param2; this.param2 = param2;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -80,8 +96,8 @@ public class InlineObject4 {
return false; return false;
} }
InlineObject4 inlineObject4 = (InlineObject4) o; InlineObject4 inlineObject4 = (InlineObject4) o;
return Objects.equals(this.param, inlineObject4.param) return Objects.equals(this.param, inlineObject4.param) &&
&& Objects.equals(this.param2, inlineObject4.param2); Objects.equals(this.param2, inlineObject4.param2);
} }
@Override @Override
@ -89,6 +105,7 @@ public class InlineObject4 {
return Objects.hash(param, param2); return Objects.hash(param, param2);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -100,7 +117,8 @@ public class InlineObject4 {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -108,4 +126,6 @@ public class InlineObject4 {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,28 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.File; import java.io.File;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** InlineObject5 */ /**
* InlineObject5
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
InlineObject5.JSON_PROPERTY_ADDITIONAL_METADATA, InlineObject5.JSON_PROPERTY_ADDITIONAL_METADATA,
InlineObject5.JSON_PROPERTY_REQUIRED_FILE InlineObject5.JSON_PROPERTY_REQUIRED_FILE
}) })
public class InlineObject5 { public class InlineObject5 {
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata"; public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
private String additionalMetadata; private String additionalMetadata;
@ -31,6 +39,7 @@ public class InlineObject5 {
public static final String JSON_PROPERTY_REQUIRED_FILE = "requiredFile"; public static final String JSON_PROPERTY_REQUIRED_FILE = "requiredFile";
private File requiredFile; private File requiredFile;
public InlineObject5 additionalMetadata(String additionalMetadata) { public InlineObject5 additionalMetadata(String additionalMetadata) {
this.additionalMetadata = additionalMetadata; this.additionalMetadata = additionalMetadata;
@ -39,21 +48,23 @@ public class InlineObject5 {
/** /**
* Additional data to pass to server * Additional data to pass to server
*
* @return additionalMetadata * @return additionalMetadata
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Additional data to pass to server") @ApiModelProperty(value = "Additional data to pass to server")
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA) @JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdditionalMetadata() { public String getAdditionalMetadata() {
return additionalMetadata; return additionalMetadata;
} }
public void setAdditionalMetadata(String additionalMetadata) { public void setAdditionalMetadata(String additionalMetadata) {
this.additionalMetadata = additionalMetadata; this.additionalMetadata = additionalMetadata;
} }
public InlineObject5 requiredFile(File requiredFile) { public InlineObject5 requiredFile(File requiredFile) {
this.requiredFile = requiredFile; this.requiredFile = requiredFile;
@ -62,20 +73,22 @@ public class InlineObject5 {
/** /**
* file to upload * file to upload
*
* @return requiredFile * @return requiredFile
*/ **/
@ApiModelProperty(required = true, value = "file to upload") @ApiModelProperty(required = true, value = "file to upload")
@JsonProperty(JSON_PROPERTY_REQUIRED_FILE) @JsonProperty(JSON_PROPERTY_REQUIRED_FILE)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public File getRequiredFile() { public File getRequiredFile() {
return requiredFile; return requiredFile;
} }
public void setRequiredFile(File requiredFile) { public void setRequiredFile(File requiredFile) {
this.requiredFile = requiredFile; this.requiredFile = requiredFile;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -85,8 +98,8 @@ public class InlineObject5 {
return false; return false;
} }
InlineObject5 inlineObject5 = (InlineObject5) o; InlineObject5 inlineObject5 = (InlineObject5) o;
return Objects.equals(this.additionalMetadata, inlineObject5.additionalMetadata) return Objects.equals(this.additionalMetadata, inlineObject5.additionalMetadata) &&
&& Objects.equals(this.requiredFile, inlineObject5.requiredFile); Objects.equals(this.requiredFile, inlineObject5.requiredFile);
} }
@Override @Override
@ -94,6 +107,7 @@ public class InlineObject5 {
return Objects.hash(additionalMetadata, requiredFile); return Objects.hash(additionalMetadata, requiredFile);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -105,7 +119,8 @@ public class InlineObject5 {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -113,4 +128,6 @@ public class InlineObject5 {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import org.openapitools.client.model.Foo;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* InlineResponseDefault
*/
@JsonPropertyOrder({
InlineResponseDefault.JSON_PROPERTY_STRING
})
/** InlineResponseDefault */
@JsonPropertyOrder({InlineResponseDefault.JSON_PROPERTY_STRING})
public class InlineResponseDefault { public class InlineResponseDefault {
public static final String JSON_PROPERTY_STRING = "string"; public static final String JSON_PROPERTY_STRING = "string";
private Foo string; private Foo string;
public InlineResponseDefault string(Foo string) { public InlineResponseDefault string(Foo string) {
this.string = string; this.string = string;
@ -32,21 +44,23 @@ public class InlineResponseDefault {
/** /**
* Get string * Get string
*
* @return string * @return string
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING) @JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Foo getString() { public Foo getString() {
return string; return string;
} }
public void setString(Foo string) { public void setString(Foo string) {
this.string = string; this.string = string;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,6 +78,7 @@ public class InlineResponseDefault {
return Objects.hash(string); return Objects.hash(string);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -74,7 +89,8 @@ public class InlineResponseDefault {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -82,4 +98,6 @@ public class InlineResponseDefault {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,30 +10,39 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** MapTest */ /**
* MapTest
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING, MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING,
MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING, MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING,
MapTest.JSON_PROPERTY_DIRECT_MAP, MapTest.JSON_PROPERTY_DIRECT_MAP,
MapTest.JSON_PROPERTY_INDIRECT_MAP MapTest.JSON_PROPERTY_INDIRECT_MAP
}) })
public class MapTest { public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
private Map<String, Map<String, String>> mapMapOfString = null; private Map<String, Map<String, String>> mapMapOfString = null;
/** Gets or Sets inner */ /**
* Gets or Sets inner
*/
public enum InnerEnum { public enum InnerEnum {
UPPER("UPPER"), UPPER("UPPER"),
@ -75,6 +84,7 @@ public class MapTest {
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
private Map<String, Boolean> indirectMap = null; private Map<String, Boolean> indirectMap = null;
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
@ -91,21 +101,23 @@ public class MapTest {
/** /**
* Get mapMapOfString * Get mapMapOfString
*
* @return mapMapOfString * @return mapMapOfString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
} }
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
@ -122,21 +134,23 @@ public class MapTest {
/** /**
* Get mapOfEnumString * Get mapOfEnumString
*
* @return mapOfEnumString * @return mapOfEnumString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
} }
public MapTest directMap(Map<String, Boolean> directMap) { public MapTest directMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
@ -153,21 +167,23 @@ public class MapTest {
/** /**
* Get directMap * Get directMap
*
* @return directMap * @return directMap
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
return directMap; return directMap;
} }
public void setDirectMap(Map<String, Boolean> directMap) { public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
} }
public MapTest indirectMap(Map<String, Boolean> indirectMap) { public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
@ -184,21 +200,23 @@ public class MapTest {
/** /**
* Get indirectMap * Get indirectMap
*
* @return indirectMap * @return indirectMap
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
return indirectMap; return indirectMap;
} }
public void setIndirectMap(Map<String, Boolean> indirectMap) { public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -208,10 +226,10 @@ public class MapTest {
return false; return false;
} }
MapTest mapTest = (MapTest) o; MapTest mapTest = (MapTest) o;
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
&& Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
&& Objects.equals(this.directMap, mapTest.directMap) Objects.equals(this.directMap, mapTest.directMap) &&
&& Objects.equals(this.indirectMap, mapTest.indirectMap); Objects.equals(this.indirectMap, mapTest.indirectMap);
} }
@Override @Override
@ -219,6 +237,7 @@ public class MapTest {
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap); return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -232,7 +251,8 @@ public class MapTest {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -240,4 +260,6 @@ public class MapTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,24 +10,34 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import org.openapitools.client.model.Animal;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** MixedPropertiesAndAdditionalPropertiesClass */ /**
* MixedPropertiesAndAdditionalPropertiesClass
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID, MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME, MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
}) })
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_UUID = "uuid"; public static final String JSON_PROPERTY_UUID = "uuid";
private UUID uuid; private UUID uuid;
@ -38,6 +48,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP = "map"; public static final String JSON_PROPERTY_MAP = "map";
private Map<String, Animal> map = null; private Map<String, Animal> map = null;
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
@ -46,21 +57,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
/** /**
* Get uuid * Get uuid
*
* @return uuid * @return uuid
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UUID) @JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
@ -69,21 +82,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
/** /**
* Get dateTime * Get dateTime
*
* @return dateTime * @return dateTime
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) { public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
this.map = map; this.map = map;
@ -100,21 +115,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
/** /**
* Get map * Get map
*
* @return map * @return map
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP) @JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;
} }
public void setMap(Map<String, Animal> map) { public void setMap(Map<String, Animal> map) {
this.map = map; this.map = map;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -123,11 +140,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
if (o == null || getClass() != o.getClass()) { if (o == null || getClass() != o.getClass()) {
return false; return false;
} }
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
(MixedPropertiesAndAdditionalPropertiesClass) o; return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
&& Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
&& Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
} }
@Override @Override
@ -135,6 +151,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return Objects.hash(uuid, dateTime, map); return Objects.hash(uuid, dateTime, map);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -147,7 +164,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -155,4 +173,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,21 +10,28 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Model for testing model name starting with number */ /**
* Model for testing model name starting with number
*/
@ApiModel(description = "Model for testing model name starting with number") @ApiModel(description = "Model for testing model name starting with number")
@JsonPropertyOrder({ @JsonPropertyOrder({
Model200Response.JSON_PROPERTY_NAME, Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS Model200Response.JSON_PROPERTY_PROPERTY_CLASS
}) })
public class Model200Response { public class Model200Response {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
private Integer name; private Integer name;
@ -32,6 +39,7 @@ public class Model200Response {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
private String propertyClass; private String propertyClass;
public Model200Response name(Integer name) { public Model200Response name(Integer name) {
this.name = name; this.name = name;
@ -40,21 +48,23 @@ public class Model200Response {
/** /**
* Get name * Get name
*
* @return name * @return name
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }
public Model200Response propertyClass(String propertyClass) { public Model200Response propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
@ -63,21 +73,23 @@ public class Model200Response {
/** /**
* Get propertyClass * Get propertyClass
*
* @return propertyClass * @return propertyClass
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -87,8 +99,8 @@ public class Model200Response {
return false; return false;
} }
Model200Response _200response = (Model200Response) o; Model200Response _200response = (Model200Response) o;
return Objects.equals(this.name, _200response.name) return Objects.equals(this.name, _200response.name) &&
&& Objects.equals(this.propertyClass, _200response.propertyClass); Objects.equals(this.propertyClass, _200response.propertyClass);
} }
@Override @Override
@ -96,6 +108,7 @@ public class Model200Response {
return Objects.hash(name, propertyClass); return Objects.hash(name, propertyClass);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -107,7 +120,8 @@ public class Model200Response {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -115,4 +129,6 @@ public class Model200Response {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,28 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** ModelApiResponse */ /**
* ModelApiResponse
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
ModelApiResponse.JSON_PROPERTY_CODE, ModelApiResponse.JSON_PROPERTY_CODE,
ModelApiResponse.JSON_PROPERTY_TYPE, ModelApiResponse.JSON_PROPERTY_TYPE,
ModelApiResponse.JSON_PROPERTY_MESSAGE ModelApiResponse.JSON_PROPERTY_MESSAGE
}) })
public class ModelApiResponse { public class ModelApiResponse {
public static final String JSON_PROPERTY_CODE = "code"; public static final String JSON_PROPERTY_CODE = "code";
private Integer code; private Integer code;
@ -34,6 +42,7 @@ public class ModelApiResponse {
public static final String JSON_PROPERTY_MESSAGE = "message"; public static final String JSON_PROPERTY_MESSAGE = "message";
private String message; private String message;
public ModelApiResponse code(Integer code) { public ModelApiResponse code(Integer code) {
this.code = code; this.code = code;
@ -42,21 +51,23 @@ public class ModelApiResponse {
/** /**
* Get code * Get code
*
* @return code * @return code
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CODE) @JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(Integer code) {
this.code = code; this.code = code;
} }
public ModelApiResponse type(String type) { public ModelApiResponse type(String type) {
this.type = type; this.type = type;
@ -65,21 +76,23 @@ public class ModelApiResponse {
/** /**
* Get type * Get type
*
* @return type * @return type
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE) @JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
public ModelApiResponse message(String message) { public ModelApiResponse message(String message) {
this.message = message; this.message = message;
@ -88,21 +101,23 @@ public class ModelApiResponse {
/** /**
* Get message * Get message
*
* @return message * @return message
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE) @JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -112,9 +127,9 @@ public class ModelApiResponse {
return false; return false;
} }
ModelApiResponse _apiResponse = (ModelApiResponse) o; ModelApiResponse _apiResponse = (ModelApiResponse) o;
return Objects.equals(this.code, _apiResponse.code) return Objects.equals(this.code, _apiResponse.code) &&
&& Objects.equals(this.type, _apiResponse.type) Objects.equals(this.type, _apiResponse.type) &&
&& Objects.equals(this.message, _apiResponse.message); Objects.equals(this.message, _apiResponse.message);
} }
@Override @Override
@ -122,6 +137,7 @@ public class ModelApiResponse {
return Objects.hash(code, type, message); return Objects.hash(code, type, message);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -134,7 +150,8 @@ public class ModelApiResponse {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -142,4 +159,6 @@ public class ModelApiResponse {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,22 +10,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Model for testing reserved words */ /**
* Model for testing reserved words
*/
@ApiModel(description = "Model for testing reserved words") @ApiModel(description = "Model for testing reserved words")
@JsonPropertyOrder({ModelReturn.JSON_PROPERTY_RETURN}) @JsonPropertyOrder({
ModelReturn.JSON_PROPERTY_RETURN
})
public class ModelReturn { public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return"; public static final String JSON_PROPERTY_RETURN = "return";
private Integer _return; private Integer _return;
public ModelReturn _return(Integer _return) { public ModelReturn _return(Integer _return) {
this._return = _return; this._return = _return;
@ -34,21 +44,23 @@ public class ModelReturn {
/** /**
* Get _return * Get _return
*
* @return _return * @return _return
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RETURN) @JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;
} }
public void setReturn(Integer _return) { public void setReturn(Integer _return) {
this._return = _return; this._return = _return;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -66,6 +78,7 @@ public class ModelReturn {
return Objects.hash(_return); return Objects.hash(_return);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -76,7 +89,8 @@ public class ModelReturn {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -84,4 +98,6 @@ public class ModelReturn {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,22 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Model for testing model name same as property name */ /**
* Model for testing model name same as property name
*/
@ApiModel(description = "Model for testing model name same as property name") @ApiModel(description = "Model for testing model name same as property name")
@JsonPropertyOrder({ @JsonPropertyOrder({
Name.JSON_PROPERTY_NAME, Name.JSON_PROPERTY_NAME,
@ -27,6 +33,7 @@ import java.util.Objects;
Name.JSON_PROPERTY_PROPERTY, Name.JSON_PROPERTY_PROPERTY,
Name.JSON_PROPERTY_123NUMBER Name.JSON_PROPERTY_123NUMBER
}) })
public class Name { public class Name {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
private Integer name; private Integer name;
@ -40,6 +47,7 @@ public class Name {
public static final String JSON_PROPERTY_123NUMBER = "123Number"; public static final String JSON_PROPERTY_123NUMBER = "123Number";
private Integer _123number; private Integer _123number;
public Name name(Integer name) { public Name name(Integer name) {
this.name = name; this.name = name;
@ -48,33 +56,38 @@ public class Name {
/** /**
* Get name * Get name
*
* @return name * @return name
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }
/** /**
* Get snakeCase * Get snakeCase
*
* @return snakeCase * @return snakeCase
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
} }
public Name property(String property) { public Name property(String property) {
this.property = property; this.property = property;
@ -83,34 +96,39 @@ public class Name {
/** /**
* Get property * Get property
*
* @return property * @return property
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY) @JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProperty() { public String getProperty() {
return property; return property;
} }
public void setProperty(String property) { public void setProperty(String property) {
this.property = property; this.property = property;
} }
/** /**
* Get _123number * Get _123number
*
* @return _123number * @return _123number
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123NUMBER) @JsonProperty(JSON_PROPERTY_123NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer get123number() { public Integer get123number() {
return _123number; return _123number;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -120,10 +138,10 @@ public class Name {
return false; return false;
} }
Name name = (Name) o; Name name = (Name) o;
return Objects.equals(this.name, name.name) return Objects.equals(this.name, name.name) &&
&& Objects.equals(this.snakeCase, name.snakeCase) Objects.equals(this.snakeCase, name.snakeCase) &&
&& Objects.equals(this.property, name.property) Objects.equals(this.property, name.property) &&
&& Objects.equals(this._123number, name._123number); Objects.equals(this._123number, name._123number);
} }
@Override @Override
@ -131,6 +149,7 @@ public class Name {
return Objects.hash(name, snakeCase, property, _123number); return Objects.hash(name, snakeCase, property, _123number);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -144,7 +163,8 @@ public class Name {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -152,4 +172,6 @@ public class Name {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,24 +10,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import org.openapitools.jackson.nullable.JsonNullable;
import org.threeten.bp.LocalDate; import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** NullableClass */ /**
* NullableClass
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
NullableClass.JSON_PROPERTY_INTEGER_PROP, NullableClass.JSON_PROPERTY_INTEGER_PROP,
NullableClass.JSON_PROPERTY_NUMBER_PROP, NullableClass.JSON_PROPERTY_NUMBER_PROP,
@ -42,6 +50,7 @@ import org.threeten.bp.OffsetDateTime;
NullableClass.JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, NullableClass.JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP,
NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE
}) })
public class NullableClass extends HashMap<String, Object> { public class NullableClass extends HashMap<String, Object> {
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined(); private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined();
@ -64,26 +73,22 @@ public class NullableClass extends HashMap<String, Object> {
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined(); private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined();
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
"array_and_items_nullable_prop"; private JsonNullable<List<Object>> arrayAndItemsNullableProp = JsonNullable.<List<Object>>undefined();
private JsonNullable<List<Object>> arrayAndItemsNullableProp =
JsonNullable.<List<Object>>undefined();
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
private List<Object> arrayItemsNullable = null; private List<Object> arrayItemsNullable = null;
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
private JsonNullable<Map<String, Object>> objectNullableProp = private JsonNullable<Map<String, Object>> objectNullableProp = JsonNullable.<Map<String, Object>>undefined();
JsonNullable.<Map<String, Object>>undefined();
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
"object_and_items_nullable_prop"; private JsonNullable<Map<String, Object>> objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>undefined();
private JsonNullable<Map<String, Object>> objectAndItemsNullableProp =
JsonNullable.<Map<String, Object>>undefined();
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
private Map<String, Object> objectItemsNullable = null; private Map<String, Object> objectItemsNullable = null;
public NullableClass integerProp(Integer integerProp) { public NullableClass integerProp(Integer integerProp) {
this.integerProp = JsonNullable.<Integer>of(integerProp); this.integerProp = JsonNullable.<Integer>of(integerProp);
@ -92,18 +97,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get integerProp * Get integerProp
*
* @return integerProp * @return integerProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public Integer getIntegerProp() { public Integer getIntegerProp() {
return integerProp.orElse(null); return integerProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonProperty(JSON_PROPERTY_INTEGER_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<Integer> getIntegerProp_JsonNullable() { public JsonNullable<Integer> getIntegerProp_JsonNullable() {
return integerProp; return integerProp;
} }
@ -117,6 +123,7 @@ public class NullableClass extends HashMap<String, Object> {
this.integerProp = JsonNullable.<Integer>of(integerProp); this.integerProp = JsonNullable.<Integer>of(integerProp);
} }
public NullableClass numberProp(BigDecimal numberProp) { public NullableClass numberProp(BigDecimal numberProp) {
this.numberProp = JsonNullable.<BigDecimal>of(numberProp); this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
@ -125,18 +132,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get numberProp * Get numberProp
*
* @return numberProp * @return numberProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public BigDecimal getNumberProp() { public BigDecimal getNumberProp() {
return numberProp.orElse(null); return numberProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonProperty(JSON_PROPERTY_NUMBER_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<BigDecimal> getNumberProp_JsonNullable() { public JsonNullable<BigDecimal> getNumberProp_JsonNullable() {
return numberProp; return numberProp;
} }
@ -150,6 +158,7 @@ public class NullableClass extends HashMap<String, Object> {
this.numberProp = JsonNullable.<BigDecimal>of(numberProp); this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
} }
public NullableClass booleanProp(Boolean booleanProp) { public NullableClass booleanProp(Boolean booleanProp) {
this.booleanProp = JsonNullable.<Boolean>of(booleanProp); this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
@ -158,18 +167,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get booleanProp * Get booleanProp
*
* @return booleanProp * @return booleanProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public Boolean getBooleanProp() { public Boolean getBooleanProp() {
return booleanProp.orElse(null); return booleanProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<Boolean> getBooleanProp_JsonNullable() { public JsonNullable<Boolean> getBooleanProp_JsonNullable() {
return booleanProp; return booleanProp;
} }
@ -183,6 +193,7 @@ public class NullableClass extends HashMap<String, Object> {
this.booleanProp = JsonNullable.<Boolean>of(booleanProp); this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
} }
public NullableClass stringProp(String stringProp) { public NullableClass stringProp(String stringProp) {
this.stringProp = JsonNullable.<String>of(stringProp); this.stringProp = JsonNullable.<String>of(stringProp);
@ -191,18 +202,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get stringProp * Get stringProp
*
* @return stringProp * @return stringProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public String getStringProp() { public String getStringProp() {
return stringProp.orElse(null); return stringProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonProperty(JSON_PROPERTY_STRING_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<String> getStringProp_JsonNullable() { public JsonNullable<String> getStringProp_JsonNullable() {
return stringProp; return stringProp;
} }
@ -216,6 +228,7 @@ public class NullableClass extends HashMap<String, Object> {
this.stringProp = JsonNullable.<String>of(stringProp); this.stringProp = JsonNullable.<String>of(stringProp);
} }
public NullableClass dateProp(LocalDate dateProp) { public NullableClass dateProp(LocalDate dateProp) {
this.dateProp = JsonNullable.<LocalDate>of(dateProp); this.dateProp = JsonNullable.<LocalDate>of(dateProp);
@ -224,18 +237,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get dateProp * Get dateProp
*
* @return dateProp * @return dateProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public LocalDate getDateProp() { public LocalDate getDateProp() {
return dateProp.orElse(null); return dateProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonProperty(JSON_PROPERTY_DATE_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<LocalDate> getDateProp_JsonNullable() { public JsonNullable<LocalDate> getDateProp_JsonNullable() {
return dateProp; return dateProp;
} }
@ -249,6 +263,7 @@ public class NullableClass extends HashMap<String, Object> {
this.dateProp = JsonNullable.<LocalDate>of(dateProp); this.dateProp = JsonNullable.<LocalDate>of(dateProp);
} }
public NullableClass datetimeProp(OffsetDateTime datetimeProp) { public NullableClass datetimeProp(OffsetDateTime datetimeProp) {
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp); this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
@ -257,18 +272,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get datetimeProp * Get datetimeProp
*
* @return datetimeProp * @return datetimeProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public OffsetDateTime getDatetimeProp() { public OffsetDateTime getDatetimeProp() {
return datetimeProp.orElse(null); return datetimeProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonProperty(JSON_PROPERTY_DATETIME_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<OffsetDateTime> getDatetimeProp_JsonNullable() { public JsonNullable<OffsetDateTime> getDatetimeProp_JsonNullable() {
return datetimeProp; return datetimeProp;
} }
@ -282,6 +298,7 @@ public class NullableClass extends HashMap<String, Object> {
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp); this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
} }
public NullableClass arrayNullableProp(List<Object> arrayNullableProp) { public NullableClass arrayNullableProp(List<Object> arrayNullableProp) {
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp); this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
@ -302,18 +319,19 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get arrayNullableProp * Get arrayNullableProp
*
* @return arrayNullableProp * @return arrayNullableProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public List<Object> getArrayNullableProp() { public List<Object> getArrayNullableProp() {
return arrayNullableProp.orElse(null); return arrayNullableProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<List<Object>> getArrayNullableProp_JsonNullable() { public JsonNullable<List<Object>> getArrayNullableProp_JsonNullable() {
return arrayNullableProp; return arrayNullableProp;
} }
@ -327,6 +345,7 @@ public class NullableClass extends HashMap<String, Object> {
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp); this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
} }
public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) { public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp); this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
@ -347,25 +366,25 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get arrayAndItemsNullableProp * Get arrayAndItemsNullableProp
*
* @return arrayAndItemsNullableProp * @return arrayAndItemsNullableProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public List<Object> getArrayAndItemsNullableProp() { public List<Object> getArrayAndItemsNullableProp() {
return arrayAndItemsNullableProp.orElse(null); return arrayAndItemsNullableProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<List<Object>> getArrayAndItemsNullableProp_JsonNullable() { public JsonNullable<List<Object>> getArrayAndItemsNullableProp_JsonNullable() {
return arrayAndItemsNullableProp; return arrayAndItemsNullableProp;
} }
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
public void setArrayAndItemsNullableProp_JsonNullable( public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable<List<Object>> arrayAndItemsNullableProp) {
JsonNullable<List<Object>> arrayAndItemsNullableProp) {
this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; this.arrayAndItemsNullableProp = arrayAndItemsNullableProp;
} }
@ -373,6 +392,7 @@ public class NullableClass extends HashMap<String, Object> {
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp); this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
} }
public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) { public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) {
this.arrayItemsNullable = arrayItemsNullable; this.arrayItemsNullable = arrayItemsNullable;
@ -389,21 +409,23 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get arrayItemsNullable * Get arrayItemsNullable
*
* @return arrayItemsNullable * @return arrayItemsNullable
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Object> getArrayItemsNullable() { public List<Object> getArrayItemsNullable() {
return arrayItemsNullable; return arrayItemsNullable;
} }
public void setArrayItemsNullable(List<Object> arrayItemsNullable) { public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
this.arrayItemsNullable = arrayItemsNullable; this.arrayItemsNullable = arrayItemsNullable;
} }
public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) { public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) {
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp); this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
@ -424,25 +446,25 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get objectNullableProp * Get objectNullableProp
*
* @return objectNullableProp * @return objectNullableProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public Map<String, Object> getObjectNullableProp() { public Map<String, Object> getObjectNullableProp() {
return objectNullableProp.orElse(null); return objectNullableProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<Map<String, Object>> getObjectNullableProp_JsonNullable() { public JsonNullable<Map<String, Object>> getObjectNullableProp_JsonNullable() {
return objectNullableProp; return objectNullableProp;
} }
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
public void setObjectNullableProp_JsonNullable( public void setObjectNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectNullableProp) {
JsonNullable<Map<String, Object>> objectNullableProp) {
this.objectNullableProp = objectNullableProp; this.objectNullableProp = objectNullableProp;
} }
@ -450,18 +472,16 @@ public class NullableClass extends HashMap<String, Object> {
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp); this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
} }
public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) { public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
this.objectAndItemsNullableProp = this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
return this; return this;
} }
public NullableClass putObjectAndItemsNullablePropItem( public NullableClass putObjectAndItemsNullablePropItem(String key, Object objectAndItemsNullablePropItem) {
String key, Object objectAndItemsNullablePropItem) {
if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) { if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) {
this.objectAndItemsNullableProp = this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<String, Object>());
JsonNullable.<Map<String, Object>>of(new HashMap<String, Object>());
} }
try { try {
this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem); this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem);
@ -473,33 +493,33 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get objectAndItemsNullableProp * Get objectAndItemsNullableProp
*
* @return objectAndItemsNullableProp * @return objectAndItemsNullableProp
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonIgnore @JsonIgnore
public Map<String, Object> getObjectAndItemsNullableProp() { public Map<String, Object> getObjectAndItemsNullableProp() {
return objectAndItemsNullableProp.orElse(null); return objectAndItemsNullableProp.orElse(null);
} }
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<Map<String, Object>> getObjectAndItemsNullableProp_JsonNullable() { public JsonNullable<Map<String, Object>> getObjectAndItemsNullableProp_JsonNullable() {
return objectAndItemsNullableProp; return objectAndItemsNullableProp;
} }
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
public void setObjectAndItemsNullableProp_JsonNullable( public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectAndItemsNullableProp) {
JsonNullable<Map<String, Object>> objectAndItemsNullableProp) {
this.objectAndItemsNullableProp = objectAndItemsNullableProp; this.objectAndItemsNullableProp = objectAndItemsNullableProp;
} }
public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) { public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
this.objectAndItemsNullableProp = this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
} }
public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) { public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) {
this.objectItemsNullable = objectItemsNullable; this.objectItemsNullable = objectItemsNullable;
@ -516,21 +536,23 @@ public class NullableClass extends HashMap<String, Object> {
/** /**
* Get objectItemsNullable * Get objectItemsNullable
*
* @return objectItemsNullable * @return objectItemsNullable
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Object> getObjectItemsNullable() { public Map<String, Object> getObjectItemsNullable() {
return objectItemsNullable; return objectItemsNullable;
} }
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) { public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
this.objectItemsNullable = objectItemsNullable; this.objectItemsNullable = objectItemsNullable;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -540,39 +562,27 @@ public class NullableClass extends HashMap<String, Object> {
return false; return false;
} }
NullableClass nullableClass = (NullableClass) o; NullableClass nullableClass = (NullableClass) o;
return Objects.equals(this.integerProp, nullableClass.integerProp) return Objects.equals(this.integerProp, nullableClass.integerProp) &&
&& Objects.equals(this.numberProp, nullableClass.numberProp) Objects.equals(this.numberProp, nullableClass.numberProp) &&
&& Objects.equals(this.booleanProp, nullableClass.booleanProp) Objects.equals(this.booleanProp, nullableClass.booleanProp) &&
&& Objects.equals(this.stringProp, nullableClass.stringProp) Objects.equals(this.stringProp, nullableClass.stringProp) &&
&& Objects.equals(this.dateProp, nullableClass.dateProp) Objects.equals(this.dateProp, nullableClass.dateProp) &&
&& Objects.equals(this.datetimeProp, nullableClass.datetimeProp) Objects.equals(this.datetimeProp, nullableClass.datetimeProp) &&
&& Objects.equals(this.arrayNullableProp, nullableClass.arrayNullableProp) Objects.equals(this.arrayNullableProp, nullableClass.arrayNullableProp) &&
&& Objects.equals(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) Objects.equals(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) &&
&& Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) &&
&& Objects.equals(this.objectNullableProp, nullableClass.objectNullableProp) Objects.equals(this.objectNullableProp, nullableClass.objectNullableProp) &&
&& Objects.equals(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) Objects.equals(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) &&
&& Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable) Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable) &&
&& super.equals(o); super.equals(o);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(integerProp, numberProp, booleanProp, stringProp, dateProp, datetimeProp, arrayNullableProp, arrayAndItemsNullableProp, arrayItemsNullable, objectNullableProp, objectAndItemsNullableProp, objectItemsNullable, super.hashCode());
integerProp,
numberProp,
booleanProp,
stringProp,
dateProp,
datetimeProp,
arrayNullableProp,
arrayAndItemsNullableProp,
arrayItemsNullable,
objectNullableProp,
objectAndItemsNullableProp,
objectItemsNullable,
super.hashCode());
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -585,23 +595,18 @@ public class NullableClass extends HashMap<String, Object> {
sb.append(" dateProp: ").append(toIndentedString(dateProp)).append("\n"); sb.append(" dateProp: ").append(toIndentedString(dateProp)).append("\n");
sb.append(" datetimeProp: ").append(toIndentedString(datetimeProp)).append("\n"); sb.append(" datetimeProp: ").append(toIndentedString(datetimeProp)).append("\n");
sb.append(" arrayNullableProp: ").append(toIndentedString(arrayNullableProp)).append("\n"); sb.append(" arrayNullableProp: ").append(toIndentedString(arrayNullableProp)).append("\n");
sb.append(" arrayAndItemsNullableProp: ") sb.append(" arrayAndItemsNullableProp: ").append(toIndentedString(arrayAndItemsNullableProp)).append("\n");
.append(toIndentedString(arrayAndItemsNullableProp))
.append("\n");
sb.append(" arrayItemsNullable: ").append(toIndentedString(arrayItemsNullable)).append("\n"); sb.append(" arrayItemsNullable: ").append(toIndentedString(arrayItemsNullable)).append("\n");
sb.append(" objectNullableProp: ").append(toIndentedString(objectNullableProp)).append("\n"); sb.append(" objectNullableProp: ").append(toIndentedString(objectNullableProp)).append("\n");
sb.append(" objectAndItemsNullableProp: ") sb.append(" objectAndItemsNullableProp: ").append(toIndentedString(objectAndItemsNullableProp)).append("\n");
.append(toIndentedString(objectAndItemsNullableProp)) sb.append(" objectItemsNullable: ").append(toIndentedString(objectItemsNullable)).append("\n");
.append("\n");
sb.append(" objectItemsNullable: ")
.append(toIndentedString(objectItemsNullable))
.append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -609,4 +614,6 @@ public class NullableClass extends HashMap<String, Object> {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,21 +10,32 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* NumberOnly
*/
@JsonPropertyOrder({
NumberOnly.JSON_PROPERTY_JUST_NUMBER
})
/** NumberOnly */
@JsonPropertyOrder({NumberOnly.JSON_PROPERTY_JUST_NUMBER})
public class NumberOnly { public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
private BigDecimal justNumber; private BigDecimal justNumber;
public NumberOnly justNumber(BigDecimal justNumber) { public NumberOnly justNumber(BigDecimal justNumber) {
this.justNumber = justNumber; this.justNumber = justNumber;
@ -33,21 +44,23 @@ public class NumberOnly {
/** /**
* Get justNumber * Get justNumber
*
* @return justNumber * @return justNumber
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;
} }
public void setJustNumber(BigDecimal justNumber) { public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber; this.justNumber = justNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -65,6 +78,7 @@ public class NumberOnly {
return Objects.hash(justNumber); return Objects.hash(justNumber);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -75,7 +89,8 @@ public class NumberOnly {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -83,4 +98,6 @@ public class NumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,18 +10,23 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Order */ /**
* Order
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
Order.JSON_PROPERTY_ID, Order.JSON_PROPERTY_ID,
Order.JSON_PROPERTY_PET_ID, Order.JSON_PROPERTY_PET_ID,
@ -30,6 +35,7 @@ import org.threeten.bp.OffsetDateTime;
Order.JSON_PROPERTY_STATUS, Order.JSON_PROPERTY_STATUS,
Order.JSON_PROPERTY_COMPLETE Order.JSON_PROPERTY_COMPLETE
}) })
public class Order { public class Order {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
private Long id; private Long id;
@ -43,7 +49,9 @@ public class Order {
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
private OffsetDateTime shipDate; private OffsetDateTime shipDate;
/** Order Status */ /**
* Order Status
*/
public enum StatusEnum { public enum StatusEnum {
PLACED("placed"), PLACED("placed"),
@ -84,6 +92,7 @@ public class Order {
public static final String JSON_PROPERTY_COMPLETE = "complete"; public static final String JSON_PROPERTY_COMPLETE = "complete";
private Boolean complete = false; private Boolean complete = false;
public Order id(Long id) { public Order id(Long id) {
this.id = id; this.id = id;
@ -92,21 +101,23 @@ public class Order {
/** /**
* Get id * Get id
*
* @return id * @return id
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Order petId(Long petId) { public Order petId(Long petId) {
this.petId = petId; this.petId = petId;
@ -115,21 +126,23 @@ public class Order {
/** /**
* Get petId * Get petId
*
* @return petId * @return petId
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_ID) @JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
public void setPetId(Long petId) { public void setPetId(Long petId) {
this.petId = petId; this.petId = petId;
} }
public Order quantity(Integer quantity) { public Order quantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
@ -138,21 +151,23 @@ public class Order {
/** /**
* Get quantity * Get quantity
*
* @return quantity * @return quantity
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUANTITY) @JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
public void setQuantity(Integer quantity) { public void setQuantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
} }
public Order shipDate(OffsetDateTime shipDate) { public Order shipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
@ -161,21 +176,23 @@ public class Order {
/** /**
* Get shipDate * Get shipDate
*
* @return shipDate * @return shipDate
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getShipDate() { public OffsetDateTime getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(OffsetDateTime shipDate) { public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }
public Order status(StatusEnum status) { public Order status(StatusEnum status) {
this.status = status; this.status = status;
@ -184,21 +201,23 @@ public class Order {
/** /**
* Order Status * Order Status
*
* @return status * @return status
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty(JSON_PROPERTY_STATUS) @JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Order complete(Boolean complete) { public Order complete(Boolean complete) {
this.complete = complete; this.complete = complete;
@ -207,21 +226,23 @@ public class Order {
/** /**
* Get complete * Get complete
*
* @return complete * @return complete
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COMPLETE) @JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }
public void setComplete(Boolean complete) { public void setComplete(Boolean complete) {
this.complete = complete; this.complete = complete;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -231,12 +252,12 @@ public class Order {
return false; return false;
} }
Order order = (Order) o; Order order = (Order) o;
return Objects.equals(this.id, order.id) return Objects.equals(this.id, order.id) &&
&& Objects.equals(this.petId, order.petId) Objects.equals(this.petId, order.petId) &&
&& Objects.equals(this.quantity, order.quantity) Objects.equals(this.quantity, order.quantity) &&
&& Objects.equals(this.shipDate, order.shipDate) Objects.equals(this.shipDate, order.shipDate) &&
&& Objects.equals(this.status, order.status) Objects.equals(this.status, order.status) &&
&& Objects.equals(this.complete, order.complete); Objects.equals(this.complete, order.complete);
} }
@Override @Override
@ -244,6 +265,7 @@ public class Order {
return Objects.hash(id, petId, quantity, shipDate, status, complete); return Objects.hash(id, petId, quantity, shipDate, status, complete);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -259,7 +281,8 @@ public class Order {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -267,4 +290,6 @@ public class Order {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,21 +10,29 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** OuterComposite */ /**
* OuterComposite
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
OuterComposite.JSON_PROPERTY_MY_NUMBER, OuterComposite.JSON_PROPERTY_MY_NUMBER,
OuterComposite.JSON_PROPERTY_MY_STRING, OuterComposite.JSON_PROPERTY_MY_STRING,
OuterComposite.JSON_PROPERTY_MY_BOOLEAN OuterComposite.JSON_PROPERTY_MY_BOOLEAN
}) })
public class OuterComposite { public class OuterComposite {
public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
private BigDecimal myNumber; private BigDecimal myNumber;
@ -35,6 +43,7 @@ public class OuterComposite {
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
private Boolean myBoolean; private Boolean myBoolean;
public OuterComposite myNumber(BigDecimal myNumber) { public OuterComposite myNumber(BigDecimal myNumber) {
this.myNumber = myNumber; this.myNumber = myNumber;
@ -43,21 +52,23 @@ public class OuterComposite {
/** /**
* Get myNumber * Get myNumber
*
* @return myNumber * @return myNumber
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
return myNumber; return myNumber;
} }
public void setMyNumber(BigDecimal myNumber) { public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber; this.myNumber = myNumber;
} }
public OuterComposite myString(String myString) { public OuterComposite myString(String myString) {
this.myString = myString; this.myString = myString;
@ -66,21 +77,23 @@ public class OuterComposite {
/** /**
* Get myString * Get myString
*
* @return myString * @return myString
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_STRING) @JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMyString() { public String getMyString() {
return myString; return myString;
} }
public void setMyString(String myString) { public void setMyString(String myString) {
this.myString = myString; this.myString = myString;
} }
public OuterComposite myBoolean(Boolean myBoolean) { public OuterComposite myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
@ -89,21 +102,23 @@ public class OuterComposite {
/** /**
* Get myBoolean * Get myBoolean
*
* @return myBoolean * @return myBoolean
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMyBoolean() { public Boolean getMyBoolean() {
return myBoolean; return myBoolean;
} }
public void setMyBoolean(Boolean myBoolean) { public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -113,9 +128,9 @@ public class OuterComposite {
return false; return false;
} }
OuterComposite outerComposite = (OuterComposite) o; OuterComposite outerComposite = (OuterComposite) o;
return Objects.equals(this.myNumber, outerComposite.myNumber) return Objects.equals(this.myNumber, outerComposite.myNumber) &&
&& Objects.equals(this.myString, outerComposite.myString) Objects.equals(this.myString, outerComposite.myString) &&
&& Objects.equals(this.myBoolean, outerComposite.myBoolean); Objects.equals(this.myBoolean, outerComposite.myBoolean);
} }
@Override @Override
@ -123,6 +138,7 @@ public class OuterComposite {
return Objects.hash(myNumber, myString, myBoolean); return Objects.hash(myNumber, myString, myBoolean);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -135,7 +151,8 @@ public class OuterComposite {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -143,4 +160,6 @@ public class OuterComposite {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,14 +10,21 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** Gets or Sets OuterEnum */ /**
* Gets or Sets OuterEnum
*/
public enum OuterEnum { public enum OuterEnum {
PLACED("placed"), PLACED("placed"),
APPROVED("approved"), APPROVED("approved"),
@ -50,3 +57,4 @@ public enum OuterEnum {
return null; return null;
} }
} }

View File

@ -10,14 +10,21 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** Gets or Sets OuterEnumDefaultValue */ /**
* Gets or Sets OuterEnumDefaultValue
*/
public enum OuterEnumDefaultValue { public enum OuterEnumDefaultValue {
PLACED("placed"), PLACED("placed"),
APPROVED("approved"), APPROVED("approved"),
@ -50,3 +57,4 @@ public enum OuterEnumDefaultValue {
throw new IllegalArgumentException("Unexpected value '" + value + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -10,14 +10,21 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** Gets or Sets OuterEnumInteger */ /**
* Gets or Sets OuterEnumInteger
*/
public enum OuterEnumInteger { public enum OuterEnumInteger {
NUMBER_0(0), NUMBER_0(0),
NUMBER_1(1), NUMBER_1(1),
@ -50,3 +57,4 @@ public enum OuterEnumInteger {
throw new IllegalArgumentException("Unexpected value '" + value + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -10,14 +10,21 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** Gets or Sets OuterEnumIntegerDefaultValue */ /**
* Gets or Sets OuterEnumIntegerDefaultValue
*/
public enum OuterEnumIntegerDefaultValue { public enum OuterEnumIntegerDefaultValue {
NUMBER_0(0), NUMBER_0(0),
NUMBER_1(1), NUMBER_1(1),
@ -50,3 +57,4 @@ public enum OuterEnumIntegerDefaultValue {
throw new IllegalArgumentException("Unexpected value '" + value + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -10,19 +10,26 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** Pet */ /**
* Pet
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
Pet.JSON_PROPERTY_ID, Pet.JSON_PROPERTY_ID,
Pet.JSON_PROPERTY_CATEGORY, Pet.JSON_PROPERTY_CATEGORY,
@ -31,6 +38,7 @@ import java.util.Objects;
Pet.JSON_PROPERTY_TAGS, Pet.JSON_PROPERTY_TAGS,
Pet.JSON_PROPERTY_STATUS Pet.JSON_PROPERTY_STATUS
}) })
public class Pet { public class Pet {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
private Long id; private Long id;
@ -47,7 +55,9 @@ public class Pet {
public static final String JSON_PROPERTY_TAGS = "tags"; public static final String JSON_PROPERTY_TAGS = "tags";
private List<Tag> tags = null; private List<Tag> tags = null;
/** pet status in the store */ /**
* pet status in the store
*/
public enum StatusEnum { public enum StatusEnum {
AVAILABLE("available"), AVAILABLE("available"),
@ -85,6 +95,7 @@ public class Pet {
public static final String JSON_PROPERTY_STATUS = "status"; public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status; private StatusEnum status;
public Pet id(Long id) { public Pet id(Long id) {
this.id = id; this.id = id;
@ -93,21 +104,23 @@ public class Pet {
/** /**
* Get id * Get id
*
* @return id * @return id
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Pet category(Category category) { public Pet category(Category category) {
this.category = category; this.category = category;
@ -116,21 +129,23 @@ public class Pet {
/** /**
* Get category * Get category
*
* @return category * @return category
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY) @JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
public void setCategory(Category category) { public void setCategory(Category category) {
this.category = category; this.category = category;
} }
public Pet name(String name) { public Pet name(String name) {
this.name = name; this.name = name;
@ -139,20 +154,22 @@ public class Pet {
/** /**
* Get name * Get name
*
* @return name * @return name
*/ **/
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Pet photoUrls(List<String> photoUrls) { public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
@ -166,20 +183,22 @@ public class Pet {
/** /**
* Get photoUrls * Get photoUrls
*
* @return photoUrls * @return photoUrls
*/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS) @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
public Pet tags(List<Tag> tags) { public Pet tags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
@ -196,21 +215,23 @@ public class Pet {
/** /**
* Get tags * Get tags
*
* @return tags * @return tags
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS) @JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }
public Pet status(StatusEnum status) { public Pet status(StatusEnum status) {
this.status = status; this.status = status;
@ -219,21 +240,23 @@ public class Pet {
/** /**
* pet status in the store * pet status in the store
*
* @return status * @return status
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty(JSON_PROPERTY_STATUS) @JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -243,12 +266,12 @@ public class Pet {
return false; return false;
} }
Pet pet = (Pet) o; Pet pet = (Pet) o;
return Objects.equals(this.id, pet.id) return Objects.equals(this.id, pet.id) &&
&& Objects.equals(this.category, pet.category) Objects.equals(this.category, pet.category) &&
&& Objects.equals(this.name, pet.name) Objects.equals(this.name, pet.name) &&
&& Objects.equals(this.photoUrls, pet.photoUrls) Objects.equals(this.photoUrls, pet.photoUrls) &&
&& Objects.equals(this.tags, pet.tags) Objects.equals(this.tags, pet.tags) &&
&& Objects.equals(this.status, pet.status); Objects.equals(this.status, pet.status);
} }
@Override @Override
@ -256,6 +279,7 @@ public class Pet {
return Objects.hash(id, category, name, photoUrls, tags, status); return Objects.hash(id, category, name, photoUrls, tags, status);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -271,7 +295,8 @@ public class Pet {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -279,4 +304,6 @@ public class Pet {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ReadOnlyFirst
*/
@JsonPropertyOrder({
ReadOnlyFirst.JSON_PROPERTY_BAR,
ReadOnlyFirst.JSON_PROPERTY_BAZ
})
/** ReadOnlyFirst */
@JsonPropertyOrder({ReadOnlyFirst.JSON_PROPERTY_BAR, ReadOnlyFirst.JSON_PROPERTY_BAZ})
public class ReadOnlyFirst { public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
private String bar; private String bar;
@ -27,19 +38,23 @@ public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAZ = "baz"; public static final String JSON_PROPERTY_BAZ = "baz";
private String baz; private String baz;
/** /**
* Get bar * Get bar
*
* @return bar * @return bar
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR) @JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
public ReadOnlyFirst baz(String baz) { public ReadOnlyFirst baz(String baz) {
this.baz = baz; this.baz = baz;
@ -48,21 +63,23 @@ public class ReadOnlyFirst {
/** /**
* Get baz * Get baz
*
* @return baz * @return baz
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAZ) @JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBaz() { public String getBaz() {
return baz; return baz;
} }
public void setBaz(String baz) { public void setBaz(String baz) {
this.baz = baz; this.baz = baz;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -72,8 +89,8 @@ public class ReadOnlyFirst {
return false; return false;
} }
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o; ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
return Objects.equals(this.bar, readOnlyFirst.bar) return Objects.equals(this.bar, readOnlyFirst.bar) &&
&& Objects.equals(this.baz, readOnlyFirst.baz); Objects.equals(this.baz, readOnlyFirst.baz);
} }
@Override @Override
@ -81,6 +98,7 @@ public class ReadOnlyFirst {
return Objects.hash(bar, baz); return Objects.hash(bar, baz);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -92,7 +110,8 @@ public class ReadOnlyFirst {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -100,4 +119,6 @@ public class ReadOnlyFirst {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,20 +10,31 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* SpecialModelName
*/
@JsonPropertyOrder({
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
})
/** SpecialModelName */
@JsonPropertyOrder({SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME})
public class SpecialModelName { public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
private Long $specialPropertyName; private Long $specialPropertyName;
public SpecialModelName $specialPropertyName(Long $specialPropertyName) { public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName; this.$specialPropertyName = $specialPropertyName;
@ -32,21 +43,23 @@ public class SpecialModelName {
/** /**
* Get $specialPropertyName * Get $specialPropertyName
*
* @return $specialPropertyName * @return $specialPropertyName
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {
return $specialPropertyName; return $specialPropertyName;
} }
public void set$SpecialPropertyName(Long $specialPropertyName) { public void set$SpecialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName; this.$specialPropertyName = $specialPropertyName;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -64,19 +77,19 @@ public class SpecialModelName {
return Objects.hash($specialPropertyName); return Objects.hash($specialPropertyName);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class SpecialModelName {\n"); sb.append("class SpecialModelName {\n");
sb.append(" $specialPropertyName: ") sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
.append(toIndentedString($specialPropertyName))
.append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -84,4 +97,6 @@ public class SpecialModelName {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,16 +10,27 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Tag
*/
@JsonPropertyOrder({
Tag.JSON_PROPERTY_ID,
Tag.JSON_PROPERTY_NAME
})
/** Tag */
@JsonPropertyOrder({Tag.JSON_PROPERTY_ID, Tag.JSON_PROPERTY_NAME})
public class Tag { public class Tag {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
private Long id; private Long id;
@ -27,6 +38,7 @@ public class Tag {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
private String name; private String name;
public Tag id(Long id) { public Tag id(Long id) {
this.id = id; this.id = id;
@ -35,21 +47,23 @@ public class Tag {
/** /**
* Get id * Get id
*
* @return id * @return id
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Tag name(String name) { public Tag name(String name) {
this.name = name; this.name = name;
@ -58,21 +72,23 @@ public class Tag {
/** /**
* Get name * Get name
*
* @return name * @return name
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME) @JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -82,7 +98,8 @@ public class Tag {
return false; return false;
} }
Tag tag = (Tag) o; Tag tag = (Tag) o;
return Objects.equals(this.id, tag.id) && Objects.equals(this.name, tag.name); return Objects.equals(this.id, tag.id) &&
Objects.equals(this.name, tag.name);
} }
@Override @Override
@ -90,6 +107,7 @@ public class Tag {
return Objects.hash(id, name); return Objects.hash(id, name);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -101,7 +119,8 @@ public class Tag {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -109,4 +128,6 @@ public class Tag {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -10,15 +10,22 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package org.openapitools.client.model; package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/** User */ /**
* User
*/
@JsonPropertyOrder({ @JsonPropertyOrder({
User.JSON_PROPERTY_ID, User.JSON_PROPERTY_ID,
User.JSON_PROPERTY_USERNAME, User.JSON_PROPERTY_USERNAME,
@ -29,6 +36,7 @@ import java.util.Objects;
User.JSON_PROPERTY_PHONE, User.JSON_PROPERTY_PHONE,
User.JSON_PROPERTY_USER_STATUS User.JSON_PROPERTY_USER_STATUS
}) })
public class User { public class User {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
private Long id; private Long id;
@ -54,6 +62,7 @@ public class User {
public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
private Integer userStatus; private Integer userStatus;
public User id(Long id) { public User id(Long id) {
this.id = id; this.id = id;
@ -62,21 +71,23 @@ public class User {
/** /**
* Get id * Get id
*
* @return id * @return id
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID) @JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public User username(String username) { public User username(String username) {
this.username = username; this.username = username;
@ -85,21 +96,23 @@ public class User {
/** /**
* Get username * Get username
*
* @return username * @return username
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME) @JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
public User firstName(String firstName) { public User firstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
@ -108,21 +121,23 @@ public class User {
/** /**
* Get firstName * Get firstName
*
* @return firstName * @return firstName
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
} }
public User lastName(String lastName) { public User lastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
@ -131,21 +146,23 @@ public class User {
/** /**
* Get lastName * Get lastName
*
* @return lastName * @return lastName
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
public void setLastName(String lastName) { public void setLastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
} }
public User email(String email) { public User email(String email) {
this.email = email; this.email = email;
@ -154,21 +171,23 @@ public class User {
/** /**
* Get email * Get email
*
* @return email * @return email
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL) @JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public User password(String password) { public User password(String password) {
this.password = password; this.password = password;
@ -177,21 +196,23 @@ public class User {
/** /**
* Get password * Get password
*
* @return password * @return password
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD) @JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public User phone(String phone) { public User phone(String phone) {
this.phone = phone; this.phone = phone;
@ -200,21 +221,23 @@ public class User {
/** /**
* Get phone * Get phone
*
* @return phone * @return phone
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE) @JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
public void setPhone(String phone) { public void setPhone(String phone) {
this.phone = phone; this.phone = phone;
} }
public User userStatus(Integer userStatus) { public User userStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
@ -223,21 +246,23 @@ public class User {
/** /**
* User Status * User Status
*
* @return userStatus * @return userStatus
*/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }
public void setUserStatus(Integer userStatus) { public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -247,14 +272,14 @@ public class User {
return false; return false;
} }
User user = (User) o; User user = (User) o;
return Objects.equals(this.id, user.id) return Objects.equals(this.id, user.id) &&
&& Objects.equals(this.username, user.username) Objects.equals(this.username, user.username) &&
&& Objects.equals(this.firstName, user.firstName) Objects.equals(this.firstName, user.firstName) &&
&& Objects.equals(this.lastName, user.lastName) Objects.equals(this.lastName, user.lastName) &&
&& Objects.equals(this.email, user.email) Objects.equals(this.email, user.email) &&
&& Objects.equals(this.password, user.password) Objects.equals(this.password, user.password) &&
&& Objects.equals(this.phone, user.phone) Objects.equals(this.phone, user.phone) &&
&& Objects.equals(this.userStatus, user.userStatus); Objects.equals(this.userStatus, user.userStatus);
} }
@Override @Override
@ -262,6 +287,7 @@ public class User {
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus); return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -279,7 +305,8 @@ public class User {
} }
/** /**
* Convert the given object to string with each line indented by 4 spaces (except the first line). * Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/ */
private String toIndentedString(java.lang.Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
@ -287,4 +314,6 @@ public class User {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -70,7 +70,7 @@ public class FakeApiTest {
HttpSignatureAuth auth = (HttpSignatureAuth) client.getAuthentication("http_signature_test"); HttpSignatureAuth auth = (HttpSignatureAuth) client.getAuthentication("http_signature_test");
auth.setAlgorithm(Algorithm.RSA_SHA512); auth.setAlgorithm(Algorithm.RSA_SHA512);
auth.setHeaders(Arrays.asList("(request-target)", "host", "date")); auth.setHeaders(Arrays.asList("(request-target)", "host", "date"));
auth.setup(privateKey); auth.setPrivateKey(privateKey);
Pet pet = new Pet(); Pet pet = new Pet();
pet.setId(10l); pet.setId(10l);